id
int32
0
167k
repo
stringlengths
5
54
path
stringlengths
4
155
func_name
stringlengths
1
118
original_string
stringlengths
52
85.5k
language
stringclasses
1 value
code
stringlengths
52
85.5k
code_tokens
sequencelengths
21
1.41k
docstring
stringlengths
6
2.61k
docstring_tokens
sequencelengths
3
215
sha
stringlengths
40
40
url
stringlengths
85
252
1,500
aws/aws-sdk-go
service/xray/api.go
SetHTTPCode4XXCount
func (s *BackendConnectionErrors) SetHTTPCode4XXCount(v int64) *BackendConnectionErrors { s.HTTPCode4XXCount = &v return s }
go
func (s *BackendConnectionErrors) SetHTTPCode4XXCount(v int64) *BackendConnectionErrors { s.HTTPCode4XXCount = &v return s }
[ "func", "(", "s", "*", "BackendConnectionErrors", ")", "SetHTTPCode4XXCount", "(", "v", "int64", ")", "*", "BackendConnectionErrors", "{", "s", ".", "HTTPCode4XXCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetHTTPCode4XXCount sets the HTTPCode4XXCount field's value.
[ "SetHTTPCode4XXCount", "sets", "the", "HTTPCode4XXCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L2324-L2327
1,501
aws/aws-sdk-go
service/xray/api.go
SetHTTPCode5XXCount
func (s *BackendConnectionErrors) SetHTTPCode5XXCount(v int64) *BackendConnectionErrors { s.HTTPCode5XXCount = &v return s }
go
func (s *BackendConnectionErrors) SetHTTPCode5XXCount(v int64) *BackendConnectionErrors { s.HTTPCode5XXCount = &v return s }
[ "func", "(", "s", "*", "BackendConnectionErrors", ")", "SetHTTPCode5XXCount", "(", "v", "int64", ")", "*", "BackendConnectionErrors", "{", "s", ".", "HTTPCode5XXCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetHTTPCode5XXCount sets the HTTPCode5XXCount field's value.
[ "SetHTTPCode5XXCount", "sets", "the", "HTTPCode5XXCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L2330-L2333
1,502
aws/aws-sdk-go
service/xray/api.go
SetTimeoutCount
func (s *BackendConnectionErrors) SetTimeoutCount(v int64) *BackendConnectionErrors { s.TimeoutCount = &v return s }
go
func (s *BackendConnectionErrors) SetTimeoutCount(v int64) *BackendConnectionErrors { s.TimeoutCount = &v return s }
[ "func", "(", "s", "*", "BackendConnectionErrors", ")", "SetTimeoutCount", "(", "v", "int64", ")", "*", "BackendConnectionErrors", "{", "s", ".", "TimeoutCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetTimeoutCount sets the TimeoutCount field's value.
[ "SetTimeoutCount", "sets", "the", "TimeoutCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L2342-L2345
1,503
aws/aws-sdk-go
service/xray/api.go
SetUnknownHostCount
func (s *BackendConnectionErrors) SetUnknownHostCount(v int64) *BackendConnectionErrors { s.UnknownHostCount = &v return s }
go
func (s *BackendConnectionErrors) SetUnknownHostCount(v int64) *BackendConnectionErrors { s.UnknownHostCount = &v return s }
[ "func", "(", "s", "*", "BackendConnectionErrors", ")", "SetUnknownHostCount", "(", "v", "int64", ")", "*", "BackendConnectionErrors", "{", "s", ".", "UnknownHostCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetUnknownHostCount sets the UnknownHostCount field's value.
[ "SetUnknownHostCount", "sets", "the", "UnknownHostCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L2348-L2351
1,504
aws/aws-sdk-go
service/xray/api.go
SetTraces
func (s *BatchGetTracesOutput) SetTraces(v []*Trace) *BatchGetTracesOutput { s.Traces = v return s }
go
func (s *BatchGetTracesOutput) SetTraces(v []*Trace) *BatchGetTracesOutput { s.Traces = v return s }
[ "func", "(", "s", "*", "BatchGetTracesOutput", ")", "SetTraces", "(", "v", "[", "]", "*", "Trace", ")", "*", "BatchGetTracesOutput", "{", "s", ".", "Traces", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetTraces sets the Traces field's value.
[ "SetTraces", "sets", "the", "Traces", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L2430-L2433
1,505
aws/aws-sdk-go
service/xray/api.go
SetUnprocessedTraceIds
func (s *BatchGetTracesOutput) SetUnprocessedTraceIds(v []*string) *BatchGetTracesOutput { s.UnprocessedTraceIds = v return s }
go
func (s *BatchGetTracesOutput) SetUnprocessedTraceIds(v []*string) *BatchGetTracesOutput { s.UnprocessedTraceIds = v return s }
[ "func", "(", "s", "*", "BatchGetTracesOutput", ")", "SetUnprocessedTraceIds", "(", "v", "[", "]", "*", "string", ")", "*", "BatchGetTracesOutput", "{", "s", ".", "UnprocessedTraceIds", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetUnprocessedTraceIds sets the UnprocessedTraceIds field's value.
[ "SetUnprocessedTraceIds", "sets", "the", "UnprocessedTraceIds", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L2436-L2439
1,506
aws/aws-sdk-go
service/xray/api.go
SetThrottleCount
func (s *ErrorStatistics) SetThrottleCount(v int64) *ErrorStatistics { s.ThrottleCount = &v return s }
go
func (s *ErrorStatistics) SetThrottleCount(v int64) *ErrorStatistics { s.ThrottleCount = &v return s }
[ "func", "(", "s", "*", "ErrorStatistics", ")", "SetThrottleCount", "(", "v", "int64", ")", "*", "ErrorStatistics", "{", "s", ".", "ThrottleCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetThrottleCount sets the ThrottleCount field's value.
[ "SetThrottleCount", "sets", "the", "ThrottleCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L3044-L3047
1,507
aws/aws-sdk-go
service/xray/api.go
SetSamplingRuleRecords
func (s *GetSamplingRulesOutput) SetSamplingRuleRecords(v []*SamplingRuleRecord) *GetSamplingRulesOutput { s.SamplingRuleRecords = v return s }
go
func (s *GetSamplingRulesOutput) SetSamplingRuleRecords(v []*SamplingRuleRecord) *GetSamplingRulesOutput { s.SamplingRuleRecords = v return s }
[ "func", "(", "s", "*", "GetSamplingRulesOutput", ")", "SetSamplingRuleRecords", "(", "v", "[", "]", "*", "SamplingRuleRecord", ")", "*", "GetSamplingRulesOutput", "{", "s", ".", "SamplingRuleRecords", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSamplingRuleRecords sets the SamplingRuleRecords field's value.
[ "SetSamplingRuleRecords", "sets", "the", "SamplingRuleRecords", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L3453-L3456
1,508
aws/aws-sdk-go
service/xray/api.go
SetSamplingStatisticSummaries
func (s *GetSamplingStatisticSummariesOutput) SetSamplingStatisticSummaries(v []*SamplingStatisticSummary) *GetSamplingStatisticSummariesOutput { s.SamplingStatisticSummaries = v return s }
go
func (s *GetSamplingStatisticSummariesOutput) SetSamplingStatisticSummaries(v []*SamplingStatisticSummary) *GetSamplingStatisticSummariesOutput { s.SamplingStatisticSummaries = v return s }
[ "func", "(", "s", "*", "GetSamplingStatisticSummariesOutput", ")", "SetSamplingStatisticSummaries", "(", "v", "[", "]", "*", "SamplingStatisticSummary", ")", "*", "GetSamplingStatisticSummariesOutput", "{", "s", ".", "SamplingStatisticSummaries", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSamplingStatisticSummaries sets the SamplingStatisticSummaries field's value.
[ "SetSamplingStatisticSummaries", "sets", "the", "SamplingStatisticSummaries", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L3508-L3511
1,509
aws/aws-sdk-go
service/xray/api.go
SetSamplingStatisticsDocuments
func (s *GetSamplingTargetsInput) SetSamplingStatisticsDocuments(v []*SamplingStatisticsDocument) *GetSamplingTargetsInput { s.SamplingStatisticsDocuments = v return s }
go
func (s *GetSamplingTargetsInput) SetSamplingStatisticsDocuments(v []*SamplingStatisticsDocument) *GetSamplingTargetsInput { s.SamplingStatisticsDocuments = v return s }
[ "func", "(", "s", "*", "GetSamplingTargetsInput", ")", "SetSamplingStatisticsDocuments", "(", "v", "[", "]", "*", "SamplingStatisticsDocument", ")", "*", "GetSamplingTargetsInput", "{", "s", ".", "SamplingStatisticsDocuments", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSamplingStatisticsDocuments sets the SamplingStatisticsDocuments field's value.
[ "SetSamplingStatisticsDocuments", "sets", "the", "SamplingStatisticsDocuments", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L3556-L3559
1,510
aws/aws-sdk-go
service/xray/api.go
SetLastRuleModification
func (s *GetSamplingTargetsOutput) SetLastRuleModification(v time.Time) *GetSamplingTargetsOutput { s.LastRuleModification = &v return s }
go
func (s *GetSamplingTargetsOutput) SetLastRuleModification(v time.Time) *GetSamplingTargetsOutput { s.LastRuleModification = &v return s }
[ "func", "(", "s", "*", "GetSamplingTargetsOutput", ")", "SetLastRuleModification", "(", "v", "time", ".", "Time", ")", "*", "GetSamplingTargetsOutput", "{", "s", ".", "LastRuleModification", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetLastRuleModification sets the LastRuleModification field's value.
[ "SetLastRuleModification", "sets", "the", "LastRuleModification", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L3587-L3590
1,511
aws/aws-sdk-go
service/xray/api.go
SetSamplingTargetDocuments
func (s *GetSamplingTargetsOutput) SetSamplingTargetDocuments(v []*SamplingTargetDocument) *GetSamplingTargetsOutput { s.SamplingTargetDocuments = v return s }
go
func (s *GetSamplingTargetsOutput) SetSamplingTargetDocuments(v []*SamplingTargetDocument) *GetSamplingTargetsOutput { s.SamplingTargetDocuments = v return s }
[ "func", "(", "s", "*", "GetSamplingTargetsOutput", ")", "SetSamplingTargetDocuments", "(", "v", "[", "]", "*", "SamplingTargetDocument", ")", "*", "GetSamplingTargetsOutput", "{", "s", ".", "SamplingTargetDocuments", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSamplingTargetDocuments sets the SamplingTargetDocuments field's value.
[ "SetSamplingTargetDocuments", "sets", "the", "SamplingTargetDocuments", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L3593-L3596
1,512
aws/aws-sdk-go
service/xray/api.go
SetUnprocessedStatistics
func (s *GetSamplingTargetsOutput) SetUnprocessedStatistics(v []*UnprocessedStatistics) *GetSamplingTargetsOutput { s.UnprocessedStatistics = v return s }
go
func (s *GetSamplingTargetsOutput) SetUnprocessedStatistics(v []*UnprocessedStatistics) *GetSamplingTargetsOutput { s.UnprocessedStatistics = v return s }
[ "func", "(", "s", "*", "GetSamplingTargetsOutput", ")", "SetUnprocessedStatistics", "(", "v", "[", "]", "*", "UnprocessedStatistics", ")", "*", "GetSamplingTargetsOutput", "{", "s", ".", "UnprocessedStatistics", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetUnprocessedStatistics sets the UnprocessedStatistics field's value.
[ "SetUnprocessedStatistics", "sets", "the", "UnprocessedStatistics", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L3599-L3602
1,513
aws/aws-sdk-go
service/xray/api.go
SetEntitySelectorExpression
func (s *GetTimeSeriesServiceStatisticsInput) SetEntitySelectorExpression(v string) *GetTimeSeriesServiceStatisticsInput { s.EntitySelectorExpression = &v return s }
go
func (s *GetTimeSeriesServiceStatisticsInput) SetEntitySelectorExpression(v string) *GetTimeSeriesServiceStatisticsInput { s.EntitySelectorExpression = &v return s }
[ "func", "(", "s", "*", "GetTimeSeriesServiceStatisticsInput", ")", "SetEntitySelectorExpression", "(", "v", "string", ")", "*", "GetTimeSeriesServiceStatisticsInput", "{", "s", ".", "EntitySelectorExpression", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetEntitySelectorExpression sets the EntitySelectorExpression field's value.
[ "SetEntitySelectorExpression", "sets", "the", "EntitySelectorExpression", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L3824-L3827
1,514
aws/aws-sdk-go
service/xray/api.go
SetTimeSeriesServiceStatistics
func (s *GetTimeSeriesServiceStatisticsOutput) SetTimeSeriesServiceStatistics(v []*TimeSeriesServiceStatistics) *GetTimeSeriesServiceStatisticsOutput { s.TimeSeriesServiceStatistics = v return s }
go
func (s *GetTimeSeriesServiceStatisticsOutput) SetTimeSeriesServiceStatistics(v []*TimeSeriesServiceStatistics) *GetTimeSeriesServiceStatisticsOutput { s.TimeSeriesServiceStatistics = v return s }
[ "func", "(", "s", "*", "GetTimeSeriesServiceStatisticsOutput", ")", "SetTimeSeriesServiceStatistics", "(", "v", "[", "]", "*", "TimeSeriesServiceStatistics", ")", "*", "GetTimeSeriesServiceStatisticsOutput", "{", "s", ".", "TimeSeriesServiceStatistics", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetTimeSeriesServiceStatistics sets the TimeSeriesServiceStatistics field's value.
[ "SetTimeSeriesServiceStatistics", "sets", "the", "TimeSeriesServiceStatistics", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L3897-L3900
1,515
aws/aws-sdk-go
service/xray/api.go
SetSampling
func (s *GetTraceSummariesInput) SetSampling(v bool) *GetTraceSummariesInput { s.Sampling = &v return s }
go
func (s *GetTraceSummariesInput) SetSampling(v bool) *GetTraceSummariesInput { s.Sampling = &v return s }
[ "func", "(", "s", "*", "GetTraceSummariesInput", ")", "SetSampling", "(", "v", "bool", ")", "*", "GetTraceSummariesInput", "{", "s", ".", "Sampling", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetSampling sets the Sampling field's value.
[ "SetSampling", "sets", "the", "Sampling", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L4059-L4062
1,516
aws/aws-sdk-go
service/xray/api.go
SetSamplingStrategy
func (s *GetTraceSummariesInput) SetSamplingStrategy(v *SamplingStrategy) *GetTraceSummariesInput { s.SamplingStrategy = v return s }
go
func (s *GetTraceSummariesInput) SetSamplingStrategy(v *SamplingStrategy) *GetTraceSummariesInput { s.SamplingStrategy = v return s }
[ "func", "(", "s", "*", "GetTraceSummariesInput", ")", "SetSamplingStrategy", "(", "v", "*", "SamplingStrategy", ")", "*", "GetTraceSummariesInput", "{", "s", ".", "SamplingStrategy", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSamplingStrategy sets the SamplingStrategy field's value.
[ "SetSamplingStrategy", "sets", "the", "SamplingStrategy", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L4065-L4068
1,517
aws/aws-sdk-go
service/xray/api.go
SetTimeRangeType
func (s *GetTraceSummariesInput) SetTimeRangeType(v string) *GetTraceSummariesInput { s.TimeRangeType = &v return s }
go
func (s *GetTraceSummariesInput) SetTimeRangeType(v string) *GetTraceSummariesInput { s.TimeRangeType = &v return s }
[ "func", "(", "s", "*", "GetTraceSummariesInput", ")", "SetTimeRangeType", "(", "v", "string", ")", "*", "GetTraceSummariesInput", "{", "s", ".", "TimeRangeType", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetTimeRangeType sets the TimeRangeType field's value.
[ "SetTimeRangeType", "sets", "the", "TimeRangeType", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L4077-L4080
1,518
aws/aws-sdk-go
service/xray/api.go
SetApproximateTime
func (s *GetTraceSummariesOutput) SetApproximateTime(v time.Time) *GetTraceSummariesOutput { s.ApproximateTime = &v return s }
go
func (s *GetTraceSummariesOutput) SetApproximateTime(v time.Time) *GetTraceSummariesOutput { s.ApproximateTime = &v return s }
[ "func", "(", "s", "*", "GetTraceSummariesOutput", ")", "SetApproximateTime", "(", "v", "time", ".", "Time", ")", "*", "GetTraceSummariesOutput", "{", "s", ".", "ApproximateTime", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetApproximateTime sets the ApproximateTime field's value.
[ "SetApproximateTime", "sets", "the", "ApproximateTime", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L4112-L4115
1,519
aws/aws-sdk-go
service/xray/api.go
SetTraceSummaries
func (s *GetTraceSummariesOutput) SetTraceSummaries(v []*TraceSummary) *GetTraceSummariesOutput { s.TraceSummaries = v return s }
go
func (s *GetTraceSummariesOutput) SetTraceSummaries(v []*TraceSummary) *GetTraceSummariesOutput { s.TraceSummaries = v return s }
[ "func", "(", "s", "*", "GetTraceSummariesOutput", ")", "SetTraceSummaries", "(", "v", "[", "]", "*", "TraceSummary", ")", "*", "GetTraceSummariesOutput", "{", "s", ".", "TraceSummaries", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetTraceSummaries sets the TraceSummaries field's value.
[ "SetTraceSummaries", "sets", "the", "TraceSummaries", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L4124-L4127
1,520
aws/aws-sdk-go
service/xray/api.go
SetTracesProcessedCount
func (s *GetTraceSummariesOutput) SetTracesProcessedCount(v int64) *GetTraceSummariesOutput { s.TracesProcessedCount = &v return s }
go
func (s *GetTraceSummariesOutput) SetTracesProcessedCount(v int64) *GetTraceSummariesOutput { s.TracesProcessedCount = &v return s }
[ "func", "(", "s", "*", "GetTraceSummariesOutput", ")", "SetTracesProcessedCount", "(", "v", "int64", ")", "*", "GetTraceSummariesOutput", "{", "s", ".", "TracesProcessedCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetTracesProcessedCount sets the TracesProcessedCount field's value.
[ "SetTracesProcessedCount", "sets", "the", "TracesProcessedCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L4130-L4133
1,521
aws/aws-sdk-go
service/xray/api.go
SetClientIp
func (s *Http) SetClientIp(v string) *Http { s.ClientIp = &v return s }
go
func (s *Http) SetClientIp(v string) *Http { s.ClientIp = &v return s }
[ "func", "(", "s", "*", "Http", ")", "SetClientIp", "(", "v", "string", ")", "*", "Http", "{", "s", ".", "ClientIp", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetClientIp sets the ClientIp field's value.
[ "SetClientIp", "sets", "the", "ClientIp", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L4284-L4287
1,522
aws/aws-sdk-go
service/xray/api.go
SetHttpStatus
func (s *Http) SetHttpStatus(v int64) *Http { s.HttpStatus = &v return s }
go
func (s *Http) SetHttpStatus(v int64) *Http { s.HttpStatus = &v return s }
[ "func", "(", "s", "*", "Http", ")", "SetHttpStatus", "(", "v", "int64", ")", "*", "Http", "{", "s", ".", "HttpStatus", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetHttpStatus sets the HttpStatus field's value.
[ "SetHttpStatus", "sets", "the", "HttpStatus", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L4296-L4299
1,523
aws/aws-sdk-go
service/xray/api.go
SetHttpURL
func (s *Http) SetHttpURL(v string) *Http { s.HttpURL = &v return s }
go
func (s *Http) SetHttpURL(v string) *Http { s.HttpURL = &v return s }
[ "func", "(", "s", "*", "Http", ")", "SetHttpURL", "(", "v", "string", ")", "*", "Http", "{", "s", ".", "HttpURL", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetHttpURL sets the HttpURL field's value.
[ "SetHttpURL", "sets", "the", "HttpURL", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L4302-L4305
1,524
aws/aws-sdk-go
service/xray/api.go
SetUserAgent
func (s *Http) SetUserAgent(v string) *Http { s.UserAgent = &v return s }
go
func (s *Http) SetUserAgent(v string) *Http { s.UserAgent = &v return s }
[ "func", "(", "s", "*", "Http", ")", "SetUserAgent", "(", "v", "string", ")", "*", "Http", "{", "s", ".", "UserAgent", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetUserAgent sets the UserAgent field's value.
[ "SetUserAgent", "sets", "the", "UserAgent", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L4308-L4311
1,525
aws/aws-sdk-go
service/xray/api.go
SetEC2InstanceId
func (s *PutTelemetryRecordsInput) SetEC2InstanceId(v string) *PutTelemetryRecordsInput { s.EC2InstanceId = &v return s }
go
func (s *PutTelemetryRecordsInput) SetEC2InstanceId(v string) *PutTelemetryRecordsInput { s.EC2InstanceId = &v return s }
[ "func", "(", "s", "*", "PutTelemetryRecordsInput", ")", "SetEC2InstanceId", "(", "v", "string", ")", "*", "PutTelemetryRecordsInput", "{", "s", ".", "EC2InstanceId", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetEC2InstanceId sets the EC2InstanceId field's value.
[ "SetEC2InstanceId", "sets", "the", "EC2InstanceId", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L4468-L4471
1,526
aws/aws-sdk-go
service/xray/api.go
SetTelemetryRecords
func (s *PutTelemetryRecordsInput) SetTelemetryRecords(v []*TelemetryRecord) *PutTelemetryRecordsInput { s.TelemetryRecords = v return s }
go
func (s *PutTelemetryRecordsInput) SetTelemetryRecords(v []*TelemetryRecord) *PutTelemetryRecordsInput { s.TelemetryRecords = v return s }
[ "func", "(", "s", "*", "PutTelemetryRecordsInput", ")", "SetTelemetryRecords", "(", "v", "[", "]", "*", "TelemetryRecord", ")", "*", "PutTelemetryRecordsInput", "{", "s", ".", "TelemetryRecords", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetTelemetryRecords sets the TelemetryRecords field's value.
[ "SetTelemetryRecords", "sets", "the", "TelemetryRecords", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L4486-L4489
1,527
aws/aws-sdk-go
service/xray/api.go
SetTraceSegmentDocuments
func (s *PutTraceSegmentsInput) SetTraceSegmentDocuments(v []*string) *PutTraceSegmentsInput { s.TraceSegmentDocuments = v return s }
go
func (s *PutTraceSegmentsInput) SetTraceSegmentDocuments(v []*string) *PutTraceSegmentsInput { s.TraceSegmentDocuments = v return s }
[ "func", "(", "s", "*", "PutTraceSegmentsInput", ")", "SetTraceSegmentDocuments", "(", "v", "[", "]", "*", "string", ")", "*", "PutTraceSegmentsInput", "{", "s", ".", "TraceSegmentDocuments", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetTraceSegmentDocuments sets the TraceSegmentDocuments field's value.
[ "SetTraceSegmentDocuments", "sets", "the", "TraceSegmentDocuments", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L4538-L4541
1,528
aws/aws-sdk-go
service/xray/api.go
SetUnprocessedTraceSegments
func (s *PutTraceSegmentsOutput) SetUnprocessedTraceSegments(v []*UnprocessedTraceSegment) *PutTraceSegmentsOutput { s.UnprocessedTraceSegments = v return s }
go
func (s *PutTraceSegmentsOutput) SetUnprocessedTraceSegments(v []*UnprocessedTraceSegment) *PutTraceSegmentsOutput { s.UnprocessedTraceSegments = v return s }
[ "func", "(", "s", "*", "PutTraceSegmentsOutput", ")", "SetUnprocessedTraceSegments", "(", "v", "[", "]", "*", "UnprocessedTraceSegment", ")", "*", "PutTraceSegmentsOutput", "{", "s", ".", "UnprocessedTraceSegments", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetUnprocessedTraceSegments sets the UnprocessedTraceSegments field's value.
[ "SetUnprocessedTraceSegments", "sets", "the", "UnprocessedTraceSegments", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L4561-L4564
1,529
aws/aws-sdk-go
service/xray/api.go
SetModifiedAt
func (s *SamplingRuleRecord) SetModifiedAt(v time.Time) *SamplingRuleRecord { s.ModifiedAt = &v return s }
go
func (s *SamplingRuleRecord) SetModifiedAt(v time.Time) *SamplingRuleRecord { s.ModifiedAt = &v return s }
[ "func", "(", "s", "*", "SamplingRuleRecord", ")", "SetModifiedAt", "(", "v", "time", ".", "Time", ")", "*", "SamplingRuleRecord", "{", "s", ".", "ModifiedAt", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetModifiedAt sets the ModifiedAt field's value.
[ "SetModifiedAt", "sets", "the", "ModifiedAt", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L4999-L5002
1,530
aws/aws-sdk-go
service/xray/api.go
SetReservoirQuota
func (s *SamplingTargetDocument) SetReservoirQuota(v int64) *SamplingTargetDocument { s.ReservoirQuota = &v return s }
go
func (s *SamplingTargetDocument) SetReservoirQuota(v int64) *SamplingTargetDocument { s.ReservoirQuota = &v return s }
[ "func", "(", "s", "*", "SamplingTargetDocument", ")", "SetReservoirQuota", "(", "v", "int64", ")", "*", "SamplingTargetDocument", "{", "s", ".", "ReservoirQuota", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetReservoirQuota sets the ReservoirQuota field's value.
[ "SetReservoirQuota", "sets", "the", "ReservoirQuota", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L5404-L5407
1,531
aws/aws-sdk-go
service/xray/api.go
SetReservoirQuotaTTL
func (s *SamplingTargetDocument) SetReservoirQuotaTTL(v time.Time) *SamplingTargetDocument { s.ReservoirQuotaTTL = &v return s }
go
func (s *SamplingTargetDocument) SetReservoirQuotaTTL(v time.Time) *SamplingTargetDocument { s.ReservoirQuotaTTL = &v return s }
[ "func", "(", "s", "*", "SamplingTargetDocument", ")", "SetReservoirQuotaTTL", "(", "v", "time", ".", "Time", ")", "*", "SamplingTargetDocument", "{", "s", ".", "ReservoirQuotaTTL", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetReservoirQuotaTTL sets the ReservoirQuotaTTL field's value.
[ "SetReservoirQuotaTTL", "sets", "the", "ReservoirQuotaTTL", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L5410-L5413
1,532
aws/aws-sdk-go
service/xray/api.go
SetDurationHistogram
func (s *Service) SetDurationHistogram(v []*HistogramEntry) *Service { s.DurationHistogram = v return s }
go
func (s *Service) SetDurationHistogram(v []*HistogramEntry) *Service { s.DurationHistogram = v return s }
[ "func", "(", "s", "*", "Service", ")", "SetDurationHistogram", "(", "v", "[", "]", "*", "HistogramEntry", ")", "*", "Service", "{", "s", ".", "DurationHistogram", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetDurationHistogram sets the DurationHistogram field's value.
[ "SetDurationHistogram", "sets", "the", "DurationHistogram", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L5535-L5538
1,533
aws/aws-sdk-go
service/xray/api.go
SetEdges
func (s *Service) SetEdges(v []*Edge) *Service { s.Edges = v return s }
go
func (s *Service) SetEdges(v []*Edge) *Service { s.Edges = v return s }
[ "func", "(", "s", "*", "Service", ")", "SetEdges", "(", "v", "[", "]", "*", "Edge", ")", "*", "Service", "{", "s", ".", "Edges", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetEdges sets the Edges field's value.
[ "SetEdges", "sets", "the", "Edges", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L5541-L5544
1,534
aws/aws-sdk-go
service/xray/api.go
SetBackendConnectionErrors
func (s *TelemetryRecord) SetBackendConnectionErrors(v *BackendConnectionErrors) *TelemetryRecord { s.BackendConnectionErrors = v return s }
go
func (s *TelemetryRecord) SetBackendConnectionErrors(v *BackendConnectionErrors) *TelemetryRecord { s.BackendConnectionErrors = v return s }
[ "func", "(", "s", "*", "TelemetryRecord", ")", "SetBackendConnectionErrors", "(", "v", "*", "BackendConnectionErrors", ")", "*", "TelemetryRecord", "{", "s", ".", "BackendConnectionErrors", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetBackendConnectionErrors sets the BackendConnectionErrors field's value.
[ "SetBackendConnectionErrors", "sets", "the", "BackendConnectionErrors", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L5753-L5756
1,535
aws/aws-sdk-go
service/xray/api.go
SetSegmentsReceivedCount
func (s *TelemetryRecord) SetSegmentsReceivedCount(v int64) *TelemetryRecord { s.SegmentsReceivedCount = &v return s }
go
func (s *TelemetryRecord) SetSegmentsReceivedCount(v int64) *TelemetryRecord { s.SegmentsReceivedCount = &v return s }
[ "func", "(", "s", "*", "TelemetryRecord", ")", "SetSegmentsReceivedCount", "(", "v", "int64", ")", "*", "TelemetryRecord", "{", "s", ".", "SegmentsReceivedCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetSegmentsReceivedCount sets the SegmentsReceivedCount field's value.
[ "SetSegmentsReceivedCount", "sets", "the", "SegmentsReceivedCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L5759-L5762
1,536
aws/aws-sdk-go
service/xray/api.go
SetSegmentsRejectedCount
func (s *TelemetryRecord) SetSegmentsRejectedCount(v int64) *TelemetryRecord { s.SegmentsRejectedCount = &v return s }
go
func (s *TelemetryRecord) SetSegmentsRejectedCount(v int64) *TelemetryRecord { s.SegmentsRejectedCount = &v return s }
[ "func", "(", "s", "*", "TelemetryRecord", ")", "SetSegmentsRejectedCount", "(", "v", "int64", ")", "*", "TelemetryRecord", "{", "s", ".", "SegmentsRejectedCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetSegmentsRejectedCount sets the SegmentsRejectedCount field's value.
[ "SetSegmentsRejectedCount", "sets", "the", "SegmentsRejectedCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L5765-L5768
1,537
aws/aws-sdk-go
service/xray/api.go
SetSegmentsSentCount
func (s *TelemetryRecord) SetSegmentsSentCount(v int64) *TelemetryRecord { s.SegmentsSentCount = &v return s }
go
func (s *TelemetryRecord) SetSegmentsSentCount(v int64) *TelemetryRecord { s.SegmentsSentCount = &v return s }
[ "func", "(", "s", "*", "TelemetryRecord", ")", "SetSegmentsSentCount", "(", "v", "int64", ")", "*", "TelemetryRecord", "{", "s", ".", "SegmentsSentCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetSegmentsSentCount sets the SegmentsSentCount field's value.
[ "SetSegmentsSentCount", "sets", "the", "SegmentsSentCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L5771-L5774
1,538
aws/aws-sdk-go
service/xray/api.go
SetSegmentsSpilloverCount
func (s *TelemetryRecord) SetSegmentsSpilloverCount(v int64) *TelemetryRecord { s.SegmentsSpilloverCount = &v return s }
go
func (s *TelemetryRecord) SetSegmentsSpilloverCount(v int64) *TelemetryRecord { s.SegmentsSpilloverCount = &v return s }
[ "func", "(", "s", "*", "TelemetryRecord", ")", "SetSegmentsSpilloverCount", "(", "v", "int64", ")", "*", "TelemetryRecord", "{", "s", ".", "SegmentsSpilloverCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetSegmentsSpilloverCount sets the SegmentsSpilloverCount field's value.
[ "SetSegmentsSpilloverCount", "sets", "the", "SegmentsSpilloverCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L5777-L5780
1,539
aws/aws-sdk-go
service/xray/api.go
SetEdgeSummaryStatistics
func (s *TimeSeriesServiceStatistics) SetEdgeSummaryStatistics(v *EdgeStatistics) *TimeSeriesServiceStatistics { s.EdgeSummaryStatistics = v return s }
go
func (s *TimeSeriesServiceStatistics) SetEdgeSummaryStatistics(v *EdgeStatistics) *TimeSeriesServiceStatistics { s.EdgeSummaryStatistics = v return s }
[ "func", "(", "s", "*", "TimeSeriesServiceStatistics", ")", "SetEdgeSummaryStatistics", "(", "v", "*", "EdgeStatistics", ")", "*", "TimeSeriesServiceStatistics", "{", "s", ".", "EdgeSummaryStatistics", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetEdgeSummaryStatistics sets the EdgeSummaryStatistics field's value.
[ "SetEdgeSummaryStatistics", "sets", "the", "EdgeSummaryStatistics", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L5816-L5819
1,540
aws/aws-sdk-go
service/xray/api.go
SetServiceSummaryStatistics
func (s *TimeSeriesServiceStatistics) SetServiceSummaryStatistics(v *ServiceStatistics) *TimeSeriesServiceStatistics { s.ServiceSummaryStatistics = v return s }
go
func (s *TimeSeriesServiceStatistics) SetServiceSummaryStatistics(v *ServiceStatistics) *TimeSeriesServiceStatistics { s.ServiceSummaryStatistics = v return s }
[ "func", "(", "s", "*", "TimeSeriesServiceStatistics", ")", "SetServiceSummaryStatistics", "(", "v", "*", "ServiceStatistics", ")", "*", "TimeSeriesServiceStatistics", "{", "s", ".", "ServiceSummaryStatistics", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetServiceSummaryStatistics sets the ServiceSummaryStatistics field's value.
[ "SetServiceSummaryStatistics", "sets", "the", "ServiceSummaryStatistics", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L5828-L5831
1,541
aws/aws-sdk-go
service/xray/api.go
SetSegments
func (s *Trace) SetSegments(v []*Segment) *Trace { s.Segments = v return s }
go
func (s *Trace) SetSegments(v []*Segment) *Trace { s.Segments = v return s }
[ "func", "(", "s", "*", "Trace", ")", "SetSegments", "(", "v", "[", "]", "*", "Segment", ")", "*", "Trace", "{", "s", ".", "Segments", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSegments sets the Segments field's value.
[ "SetSegments", "sets", "the", "Segments", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L5878-L5881
1,542
aws/aws-sdk-go
service/xray/api.go
SetErrorRootCauses
func (s *TraceSummary) SetErrorRootCauses(v []*ErrorRootCause) *TraceSummary { s.ErrorRootCauses = v return s }
go
func (s *TraceSummary) SetErrorRootCauses(v []*ErrorRootCause) *TraceSummary { s.ErrorRootCauses = v return s }
[ "func", "(", "s", "*", "TraceSummary", ")", "SetErrorRootCauses", "(", "v", "[", "]", "*", "ErrorRootCause", ")", "*", "TraceSummary", "{", "s", ".", "ErrorRootCauses", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetErrorRootCauses sets the ErrorRootCauses field's value.
[ "SetErrorRootCauses", "sets", "the", "ErrorRootCauses", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L5990-L5993
1,543
aws/aws-sdk-go
service/xray/api.go
SetFaultRootCauses
func (s *TraceSummary) SetFaultRootCauses(v []*FaultRootCause) *TraceSummary { s.FaultRootCauses = v return s }
go
func (s *TraceSummary) SetFaultRootCauses(v []*FaultRootCause) *TraceSummary { s.FaultRootCauses = v return s }
[ "func", "(", "s", "*", "TraceSummary", ")", "SetFaultRootCauses", "(", "v", "[", "]", "*", "FaultRootCause", ")", "*", "TraceSummary", "{", "s", ".", "FaultRootCauses", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetFaultRootCauses sets the FaultRootCauses field's value.
[ "SetFaultRootCauses", "sets", "the", "FaultRootCauses", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L5996-L5999
1,544
aws/aws-sdk-go
service/xray/api.go
SetHasError
func (s *TraceSummary) SetHasError(v bool) *TraceSummary { s.HasError = &v return s }
go
func (s *TraceSummary) SetHasError(v bool) *TraceSummary { s.HasError = &v return s }
[ "func", "(", "s", "*", "TraceSummary", ")", "SetHasError", "(", "v", "bool", ")", "*", "TraceSummary", "{", "s", ".", "HasError", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetHasError sets the HasError field's value.
[ "SetHasError", "sets", "the", "HasError", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L6002-L6005
1,545
aws/aws-sdk-go
service/xray/api.go
SetHasFault
func (s *TraceSummary) SetHasFault(v bool) *TraceSummary { s.HasFault = &v return s }
go
func (s *TraceSummary) SetHasFault(v bool) *TraceSummary { s.HasFault = &v return s }
[ "func", "(", "s", "*", "TraceSummary", ")", "SetHasFault", "(", "v", "bool", ")", "*", "TraceSummary", "{", "s", ".", "HasFault", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetHasFault sets the HasFault field's value.
[ "SetHasFault", "sets", "the", "HasFault", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L6008-L6011
1,546
aws/aws-sdk-go
service/xray/api.go
SetHasThrottle
func (s *TraceSummary) SetHasThrottle(v bool) *TraceSummary { s.HasThrottle = &v return s }
go
func (s *TraceSummary) SetHasThrottle(v bool) *TraceSummary { s.HasThrottle = &v return s }
[ "func", "(", "s", "*", "TraceSummary", ")", "SetHasThrottle", "(", "v", "bool", ")", "*", "TraceSummary", "{", "s", ".", "HasThrottle", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetHasThrottle sets the HasThrottle field's value.
[ "SetHasThrottle", "sets", "the", "HasThrottle", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L6014-L6017
1,547
aws/aws-sdk-go
service/xray/api.go
SetHttp
func (s *TraceSummary) SetHttp(v *Http) *TraceSummary { s.Http = v return s }
go
func (s *TraceSummary) SetHttp(v *Http) *TraceSummary { s.Http = v return s }
[ "func", "(", "s", "*", "TraceSummary", ")", "SetHttp", "(", "v", "*", "Http", ")", "*", "TraceSummary", "{", "s", ".", "Http", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetHttp sets the Http field's value.
[ "SetHttp", "sets", "the", "Http", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L6020-L6023
1,548
aws/aws-sdk-go
service/xray/api.go
SetIsPartial
func (s *TraceSummary) SetIsPartial(v bool) *TraceSummary { s.IsPartial = &v return s }
go
func (s *TraceSummary) SetIsPartial(v bool) *TraceSummary { s.IsPartial = &v return s }
[ "func", "(", "s", "*", "TraceSummary", ")", "SetIsPartial", "(", "v", "bool", ")", "*", "TraceSummary", "{", "s", ".", "IsPartial", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetIsPartial sets the IsPartial field's value.
[ "SetIsPartial", "sets", "the", "IsPartial", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L6038-L6041
1,549
aws/aws-sdk-go
service/xray/api.go
SetMatchedEventTime
func (s *TraceSummary) SetMatchedEventTime(v time.Time) *TraceSummary { s.MatchedEventTime = &v return s }
go
func (s *TraceSummary) SetMatchedEventTime(v time.Time) *TraceSummary { s.MatchedEventTime = &v return s }
[ "func", "(", "s", "*", "TraceSummary", ")", "SetMatchedEventTime", "(", "v", "time", ".", "Time", ")", "*", "TraceSummary", "{", "s", ".", "MatchedEventTime", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetMatchedEventTime sets the MatchedEventTime field's value.
[ "SetMatchedEventTime", "sets", "the", "MatchedEventTime", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L6044-L6047
1,550
aws/aws-sdk-go
service/xray/api.go
SetResourceARNs
func (s *TraceSummary) SetResourceARNs(v []*ResourceARNDetail) *TraceSummary { s.ResourceARNs = v return s }
go
func (s *TraceSummary) SetResourceARNs(v []*ResourceARNDetail) *TraceSummary { s.ResourceARNs = v return s }
[ "func", "(", "s", "*", "TraceSummary", ")", "SetResourceARNs", "(", "v", "[", "]", "*", "ResourceARNDetail", ")", "*", "TraceSummary", "{", "s", ".", "ResourceARNs", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetResourceARNs sets the ResourceARNs field's value.
[ "SetResourceARNs", "sets", "the", "ResourceARNs", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L6050-L6053
1,551
aws/aws-sdk-go
service/xray/api.go
SetResponseTime
func (s *TraceSummary) SetResponseTime(v float64) *TraceSummary { s.ResponseTime = &v return s }
go
func (s *TraceSummary) SetResponseTime(v float64) *TraceSummary { s.ResponseTime = &v return s }
[ "func", "(", "s", "*", "TraceSummary", ")", "SetResponseTime", "(", "v", "float64", ")", "*", "TraceSummary", "{", "s", ".", "ResponseTime", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetResponseTime sets the ResponseTime field's value.
[ "SetResponseTime", "sets", "the", "ResponseTime", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L6056-L6059
1,552
aws/aws-sdk-go
service/xray/api.go
SetResponseTimeRootCauses
func (s *TraceSummary) SetResponseTimeRootCauses(v []*ResponseTimeRootCause) *TraceSummary { s.ResponseTimeRootCauses = v return s }
go
func (s *TraceSummary) SetResponseTimeRootCauses(v []*ResponseTimeRootCause) *TraceSummary { s.ResponseTimeRootCauses = v return s }
[ "func", "(", "s", "*", "TraceSummary", ")", "SetResponseTimeRootCauses", "(", "v", "[", "]", "*", "ResponseTimeRootCause", ")", "*", "TraceSummary", "{", "s", ".", "ResponseTimeRootCauses", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetResponseTimeRootCauses sets the ResponseTimeRootCauses field's value.
[ "SetResponseTimeRootCauses", "sets", "the", "ResponseTimeRootCauses", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L6062-L6065
1,553
aws/aws-sdk-go
service/xray/api.go
SetSamplingRuleUpdate
func (s *UpdateSamplingRuleInput) SetSamplingRuleUpdate(v *SamplingRuleUpdate) *UpdateSamplingRuleInput { s.SamplingRuleUpdate = v return s }
go
func (s *UpdateSamplingRuleInput) SetSamplingRuleUpdate(v *SamplingRuleUpdate) *UpdateSamplingRuleInput { s.SamplingRuleUpdate = v return s }
[ "func", "(", "s", "*", "UpdateSamplingRuleInput", ")", "SetSamplingRuleUpdate", "(", "v", "*", "SamplingRuleUpdate", ")", "*", "UpdateSamplingRuleInput", "{", "s", ".", "SamplingRuleUpdate", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSamplingRuleUpdate sets the SamplingRuleUpdate field's value.
[ "SetSamplingRuleUpdate", "sets", "the", "SamplingRuleUpdate", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L6323-L6326
1,554
aws/aws-sdk-go
service/xray/api.go
SetAnnotationValue
func (s *ValueWithServiceIds) SetAnnotationValue(v *AnnotationValue) *ValueWithServiceIds { s.AnnotationValue = v return s }
go
func (s *ValueWithServiceIds) SetAnnotationValue(v *AnnotationValue) *ValueWithServiceIds { s.AnnotationValue = v return s }
[ "func", "(", "s", "*", "ValueWithServiceIds", ")", "SetAnnotationValue", "(", "v", "*", "AnnotationValue", ")", "*", "ValueWithServiceIds", "{", "s", ".", "AnnotationValue", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetAnnotationValue sets the AnnotationValue field's value.
[ "SetAnnotationValue", "sets", "the", "AnnotationValue", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L6373-L6376
1,555
aws/aws-sdk-go
private/model/api/waiters.go
ExpectedString
func (a *WaiterAcceptor) ExpectedString() string { switch a.Expected.(type) { case string: return fmt.Sprintf("%q", a.Expected) default: return fmt.Sprintf("%v", a.Expected) } }
go
func (a *WaiterAcceptor) ExpectedString() string { switch a.Expected.(type) { case string: return fmt.Sprintf("%q", a.Expected) default: return fmt.Sprintf("%v", a.Expected) } }
[ "func", "(", "a", "*", "WaiterAcceptor", ")", "ExpectedString", "(", ")", "string", "{", "switch", "a", ".", "Expected", ".", "(", "type", ")", "{", "case", "string", ":", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "a", ".", "Expected", ")", "\n", "default", ":", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "a", ".", "Expected", ")", "\n", "}", "\n", "}" ]
// ExpectedString returns the string that was expected by the WaiterAcceptor
[ "ExpectedString", "returns", "the", "string", "that", "was", "expected", "by", "the", "WaiterAcceptor" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/waiters.go#L25-L32
1,556
aws/aws-sdk-go
private/model/api/waiters.go
WaitersGoCode
func (a *API) WaitersGoCode() string { var buf bytes.Buffer fmt.Fprintf(&buf, "import (\n%q\n\n%q\n%q\n)", "time", SDKImportRoot+"/aws", SDKImportRoot+"/aws/request", ) for _, w := range a.Waiters { buf.WriteString(w.GoCode()) } return buf.String() }
go
func (a *API) WaitersGoCode() string { var buf bytes.Buffer fmt.Fprintf(&buf, "import (\n%q\n\n%q\n%q\n)", "time", SDKImportRoot+"/aws", SDKImportRoot+"/aws/request", ) for _, w := range a.Waiters { buf.WriteString(w.GoCode()) } return buf.String() }
[ "func", "(", "a", "*", "API", ")", "WaitersGoCode", "(", ")", "string", "{", "var", "buf", "bytes", ".", "Buffer", "\n", "fmt", ".", "Fprintf", "(", "&", "buf", ",", "\"", "\\n", "\\n", "\\n", "\\n", "\\n", "\"", ",", "\"", "\"", ",", "SDKImportRoot", "+", "\"", "\"", ",", "SDKImportRoot", "+", "\"", "\"", ",", ")", "\n\n", "for", "_", ",", "w", ":=", "range", "a", ".", "Waiters", "{", "buf", ".", "WriteString", "(", "w", ".", "GoCode", "(", ")", ")", "\n", "}", "\n", "return", "buf", ".", "String", "(", ")", "\n", "}" ]
// WaitersGoCode generates and returns Go code for each of the waiters of // this API.
[ "WaitersGoCode", "generates", "and", "returns", "Go", "code", "for", "each", "of", "the", "waiters", "of", "this", "API", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/waiters.go#L46-L58
1,557
aws/aws-sdk-go
private/model/api/waiters.go
AttachWaiters
func (a *API) AttachWaiters(filename string) { p := waiterDefinitions{API: a} f, err := os.Open(filename) defer f.Close() if err != nil { panic(err) } err = json.NewDecoder(f).Decode(&p) if err != nil { panic(err) } p.setup() }
go
func (a *API) AttachWaiters(filename string) { p := waiterDefinitions{API: a} f, err := os.Open(filename) defer f.Close() if err != nil { panic(err) } err = json.NewDecoder(f).Decode(&p) if err != nil { panic(err) } p.setup() }
[ "func", "(", "a", "*", "API", ")", "AttachWaiters", "(", "filename", "string", ")", "{", "p", ":=", "waiterDefinitions", "{", "API", ":", "a", "}", "\n\n", "f", ",", "err", ":=", "os", ".", "Open", "(", "filename", ")", "\n", "defer", "f", ".", "Close", "(", ")", "\n", "if", "err", "!=", "nil", "{", "panic", "(", "err", ")", "\n", "}", "\n", "err", "=", "json", ".", "NewDecoder", "(", "f", ")", ".", "Decode", "(", "&", "p", ")", "\n", "if", "err", "!=", "nil", "{", "panic", "(", "err", ")", "\n", "}", "\n\n", "p", ".", "setup", "(", ")", "\n", "}" ]
// AttachWaiters reads a file of waiter definitions, and adds those to the API. // Will panic if an error occurs.
[ "AttachWaiters", "reads", "a", "file", "of", "waiter", "definitions", "and", "adds", "those", "to", "the", "API", ".", "Will", "panic", "if", "an", "error", "occurs", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/waiters.go#L68-L82
1,558
aws/aws-sdk-go
private/model/api/waiters.go
InterfaceSignature
func (w *Waiter) InterfaceSignature() string { var buf bytes.Buffer if err := waiterTmpls.ExecuteTemplate(&buf, "waiter interface", w); err != nil { panic(err) } return strings.TrimSpace(buf.String()) }
go
func (w *Waiter) InterfaceSignature() string { var buf bytes.Buffer if err := waiterTmpls.ExecuteTemplate(&buf, "waiter interface", w); err != nil { panic(err) } return strings.TrimSpace(buf.String()) }
[ "func", "(", "w", "*", "Waiter", ")", "InterfaceSignature", "(", ")", "string", "{", "var", "buf", "bytes", ".", "Buffer", "\n", "if", "err", ":=", "waiterTmpls", ".", "ExecuteTemplate", "(", "&", "buf", ",", "\"", "\"", ",", "w", ")", ";", "err", "!=", "nil", "{", "panic", "(", "err", ")", "\n", "}", "\n\n", "return", "strings", ".", "TrimSpace", "(", "buf", ".", "String", "(", ")", ")", "\n", "}" ]
// InterfaceSignature returns a string representing the Waiter's interface // function signature.
[ "InterfaceSignature", "returns", "a", "string", "representing", "the", "Waiter", "s", "interface", "function", "signature", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/waiters.go#L172-L179
1,559
aws/aws-sdk-go
private/model/api/waiters.go
GoCode
func (w *Waiter) GoCode() string { var buf bytes.Buffer if err := waiterTmpls.ExecuteTemplate(&buf, "waiter", w); err != nil { panic(err) } return buf.String() }
go
func (w *Waiter) GoCode() string { var buf bytes.Buffer if err := waiterTmpls.ExecuteTemplate(&buf, "waiter", w); err != nil { panic(err) } return buf.String() }
[ "func", "(", "w", "*", "Waiter", ")", "GoCode", "(", ")", "string", "{", "var", "buf", "bytes", ".", "Buffer", "\n", "if", "err", ":=", "waiterTmpls", ".", "ExecuteTemplate", "(", "&", "buf", ",", "\"", "\"", ",", "w", ")", ";", "err", "!=", "nil", "{", "panic", "(", "err", ")", "\n", "}", "\n\n", "return", "buf", ".", "String", "(", ")", "\n", "}" ]
// GoCode returns the generated Go code for an individual waiter.
[ "GoCode", "returns", "the", "generated", "Go", "code", "for", "an", "individual", "waiter", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/waiters.go#L182-L189
1,560
aws/aws-sdk-go
service/s3/s3crypto/aes_gcm.go
Encrypt
func (c *aesGCM) Encrypt(src io.Reader) io.Reader { reader := &gcmEncryptReader{ encrypter: c.aead, nonce: c.nonce, src: src, } return reader }
go
func (c *aesGCM) Encrypt(src io.Reader) io.Reader { reader := &gcmEncryptReader{ encrypter: c.aead, nonce: c.nonce, src: src, } return reader }
[ "func", "(", "c", "*", "aesGCM", ")", "Encrypt", "(", "src", "io", ".", "Reader", ")", "io", ".", "Reader", "{", "reader", ":=", "&", "gcmEncryptReader", "{", "encrypter", ":", "c", ".", "aead", ",", "nonce", ":", "c", ".", "nonce", ",", "src", ":", "src", ",", "}", "\n", "return", "reader", "\n", "}" ]
// Encrypt will encrypt the data using AES GCM // Tag will be included as the last 16 bytes of the slice
[ "Encrypt", "will", "encrypt", "the", "data", "using", "AES", "GCM", "Tag", "will", "be", "included", "as", "the", "last", "16", "bytes", "of", "the", "slice" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3crypto/aes_gcm.go#L45-L52
1,561
aws/aws-sdk-go
service/s3/s3crypto/aes_gcm.go
Decrypt
func (c *aesGCM) Decrypt(src io.Reader) io.Reader { return &gcmDecryptReader{ decrypter: c.aead, nonce: c.nonce, src: src, } }
go
func (c *aesGCM) Decrypt(src io.Reader) io.Reader { return &gcmDecryptReader{ decrypter: c.aead, nonce: c.nonce, src: src, } }
[ "func", "(", "c", "*", "aesGCM", ")", "Decrypt", "(", "src", "io", ".", "Reader", ")", "io", ".", "Reader", "{", "return", "&", "gcmDecryptReader", "{", "decrypter", ":", "c", ".", "aead", ",", "nonce", ":", "c", ".", "nonce", ",", "src", ":", "src", ",", "}", "\n", "}" ]
// Decrypt will decrypt the data using AES GCM
[ "Decrypt", "will", "decrypt", "the", "data", "using", "AES", "GCM" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3crypto/aes_gcm.go#L75-L81
1,562
aws/aws-sdk-go
service/databasemigrationservice/waiters.go
WaitUntilEndpointDeleted
func (c *DatabaseMigrationService) WaitUntilEndpointDeleted(input *DescribeEndpointsInput) error { return c.WaitUntilEndpointDeletedWithContext(aws.BackgroundContext(), input) }
go
func (c *DatabaseMigrationService) WaitUntilEndpointDeleted(input *DescribeEndpointsInput) error { return c.WaitUntilEndpointDeletedWithContext(aws.BackgroundContext(), input) }
[ "func", "(", "c", "*", "DatabaseMigrationService", ")", "WaitUntilEndpointDeleted", "(", "input", "*", "DescribeEndpointsInput", ")", "error", "{", "return", "c", ".", "WaitUntilEndpointDeletedWithContext", "(", "aws", ".", "BackgroundContext", "(", ")", ",", "input", ")", "\n", "}" ]
// WaitUntilEndpointDeleted uses the AWS Database Migration Service API operation // DescribeEndpoints to wait for a condition to be met before returning. // If the condition is not met within the max attempt window, an error will // be returned.
[ "WaitUntilEndpointDeleted", "uses", "the", "AWS", "Database", "Migration", "Service", "API", "operation", "DescribeEndpoints", "to", "wait", "for", "a", "condition", "to", "be", "met", "before", "returning", ".", "If", "the", "condition", "is", "not", "met", "within", "the", "max", "attempt", "window", "an", "error", "will", "be", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/databasemigrationservice/waiters.go#L16-L18
1,563
aws/aws-sdk-go
service/databasemigrationservice/waiters.go
WaitUntilReplicationInstanceAvailable
func (c *DatabaseMigrationService) WaitUntilReplicationInstanceAvailable(input *DescribeReplicationInstancesInput) error { return c.WaitUntilReplicationInstanceAvailableWithContext(aws.BackgroundContext(), input) }
go
func (c *DatabaseMigrationService) WaitUntilReplicationInstanceAvailable(input *DescribeReplicationInstancesInput) error { return c.WaitUntilReplicationInstanceAvailableWithContext(aws.BackgroundContext(), input) }
[ "func", "(", "c", "*", "DatabaseMigrationService", ")", "WaitUntilReplicationInstanceAvailable", "(", "input", "*", "DescribeReplicationInstancesInput", ")", "error", "{", "return", "c", ".", "WaitUntilReplicationInstanceAvailableWithContext", "(", "aws", ".", "BackgroundContext", "(", ")", ",", "input", ")", "\n", "}" ]
// WaitUntilReplicationInstanceAvailable uses the AWS Database Migration Service API operation // DescribeReplicationInstances to wait for a condition to be met before returning. // If the condition is not met within the max attempt window, an error will // be returned.
[ "WaitUntilReplicationInstanceAvailable", "uses", "the", "AWS", "Database", "Migration", "Service", "API", "operation", "DescribeReplicationInstances", "to", "wait", "for", "a", "condition", "to", "be", "met", "before", "returning", ".", "If", "the", "condition", "is", "not", "met", "within", "the", "max", "attempt", "window", "an", "error", "will", "be", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/databasemigrationservice/waiters.go#L72-L74
1,564
aws/aws-sdk-go
service/databasemigrationservice/waiters.go
WaitUntilReplicationInstanceDeleted
func (c *DatabaseMigrationService) WaitUntilReplicationInstanceDeleted(input *DescribeReplicationInstancesInput) error { return c.WaitUntilReplicationInstanceDeletedWithContext(aws.BackgroundContext(), input) }
go
func (c *DatabaseMigrationService) WaitUntilReplicationInstanceDeleted(input *DescribeReplicationInstancesInput) error { return c.WaitUntilReplicationInstanceDeletedWithContext(aws.BackgroundContext(), input) }
[ "func", "(", "c", "*", "DatabaseMigrationService", ")", "WaitUntilReplicationInstanceDeleted", "(", "input", "*", "DescribeReplicationInstancesInput", ")", "error", "{", "return", "c", ".", "WaitUntilReplicationInstanceDeletedWithContext", "(", "aws", ".", "BackgroundContext", "(", ")", ",", "input", ")", "\n", "}" ]
// WaitUntilReplicationInstanceDeleted uses the AWS Database Migration Service API operation // DescribeReplicationInstances to wait for a condition to be met before returning. // If the condition is not met within the max attempt window, an error will // be returned.
[ "WaitUntilReplicationInstanceDeleted", "uses", "the", "AWS", "Database", "Migration", "Service", "API", "operation", "DescribeReplicationInstances", "to", "wait", "for", "a", "condition", "to", "be", "met", "before", "returning", ".", "If", "the", "condition", "is", "not", "met", "within", "the", "max", "attempt", "window", "an", "error", "will", "be", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/databasemigrationservice/waiters.go#L138-L140
1,565
aws/aws-sdk-go
service/databasemigrationservice/waiters.go
WaitUntilReplicationTaskDeleted
func (c *DatabaseMigrationService) WaitUntilReplicationTaskDeleted(input *DescribeReplicationTasksInput) error { return c.WaitUntilReplicationTaskDeletedWithContext(aws.BackgroundContext(), input) }
go
func (c *DatabaseMigrationService) WaitUntilReplicationTaskDeleted(input *DescribeReplicationTasksInput) error { return c.WaitUntilReplicationTaskDeletedWithContext(aws.BackgroundContext(), input) }
[ "func", "(", "c", "*", "DatabaseMigrationService", ")", "WaitUntilReplicationTaskDeleted", "(", "input", "*", "DescribeReplicationTasksInput", ")", "error", "{", "return", "c", ".", "WaitUntilReplicationTaskDeletedWithContext", "(", "aws", ".", "BackgroundContext", "(", ")", ",", "input", ")", "\n", "}" ]
// WaitUntilReplicationTaskDeleted uses the AWS Database Migration Service API operation // DescribeReplicationTasks to wait for a condition to be met before returning. // If the condition is not met within the max attempt window, an error will // be returned.
[ "WaitUntilReplicationTaskDeleted", "uses", "the", "AWS", "Database", "Migration", "Service", "API", "operation", "DescribeReplicationTasks", "to", "wait", "for", "a", "condition", "to", "be", "met", "before", "returning", ".", "If", "the", "condition", "is", "not", "met", "within", "the", "max", "attempt", "window", "an", "error", "will", "be", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/databasemigrationservice/waiters.go#L189-L191
1,566
aws/aws-sdk-go
service/databasemigrationservice/waiters.go
WaitUntilReplicationTaskReady
func (c *DatabaseMigrationService) WaitUntilReplicationTaskReady(input *DescribeReplicationTasksInput) error { return c.WaitUntilReplicationTaskReadyWithContext(aws.BackgroundContext(), input) }
go
func (c *DatabaseMigrationService) WaitUntilReplicationTaskReady(input *DescribeReplicationTasksInput) error { return c.WaitUntilReplicationTaskReadyWithContext(aws.BackgroundContext(), input) }
[ "func", "(", "c", "*", "DatabaseMigrationService", ")", "WaitUntilReplicationTaskReady", "(", "input", "*", "DescribeReplicationTasksInput", ")", "error", "{", "return", "c", ".", "WaitUntilReplicationTaskReadyWithContext", "(", "aws", ".", "BackgroundContext", "(", ")", ",", "input", ")", "\n", "}" ]
// WaitUntilReplicationTaskReady uses the AWS Database Migration Service API operation // DescribeReplicationTasks to wait for a condition to be met before returning. // If the condition is not met within the max attempt window, an error will // be returned.
[ "WaitUntilReplicationTaskReady", "uses", "the", "AWS", "Database", "Migration", "Service", "API", "operation", "DescribeReplicationTasks", "to", "wait", "for", "a", "condition", "to", "be", "met", "before", "returning", ".", "If", "the", "condition", "is", "not", "met", "within", "the", "max", "attempt", "window", "an", "error", "will", "be", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/databasemigrationservice/waiters.go#L260-L262
1,567
aws/aws-sdk-go
service/databasemigrationservice/waiters.go
WaitUntilReplicationTaskRunning
func (c *DatabaseMigrationService) WaitUntilReplicationTaskRunning(input *DescribeReplicationTasksInput) error { return c.WaitUntilReplicationTaskRunningWithContext(aws.BackgroundContext(), input) }
go
func (c *DatabaseMigrationService) WaitUntilReplicationTaskRunning(input *DescribeReplicationTasksInput) error { return c.WaitUntilReplicationTaskRunningWithContext(aws.BackgroundContext(), input) }
[ "func", "(", "c", "*", "DatabaseMigrationService", ")", "WaitUntilReplicationTaskRunning", "(", "input", "*", "DescribeReplicationTasksInput", ")", "error", "{", "return", "c", ".", "WaitUntilReplicationTaskRunningWithContext", "(", "aws", ".", "BackgroundContext", "(", ")", ",", "input", ")", "\n", "}" ]
// WaitUntilReplicationTaskRunning uses the AWS Database Migration Service API operation // DescribeReplicationTasks to wait for a condition to be met before returning. // If the condition is not met within the max attempt window, an error will // be returned.
[ "WaitUntilReplicationTaskRunning", "uses", "the", "AWS", "Database", "Migration", "Service", "API", "operation", "DescribeReplicationTasks", "to", "wait", "for", "a", "condition", "to", "be", "met", "before", "returning", ".", "If", "the", "condition", "is", "not", "met", "within", "the", "max", "attempt", "window", "an", "error", "will", "be", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/databasemigrationservice/waiters.go#L346-L348
1,568
aws/aws-sdk-go
service/databasemigrationservice/waiters.go
WaitUntilReplicationTaskStopped
func (c *DatabaseMigrationService) WaitUntilReplicationTaskStopped(input *DescribeReplicationTasksInput) error { return c.WaitUntilReplicationTaskStoppedWithContext(aws.BackgroundContext(), input) }
go
func (c *DatabaseMigrationService) WaitUntilReplicationTaskStopped(input *DescribeReplicationTasksInput) error { return c.WaitUntilReplicationTaskStoppedWithContext(aws.BackgroundContext(), input) }
[ "func", "(", "c", "*", "DatabaseMigrationService", ")", "WaitUntilReplicationTaskStopped", "(", "input", "*", "DescribeReplicationTasksInput", ")", "error", "{", "return", "c", ".", "WaitUntilReplicationTaskStoppedWithContext", "(", "aws", ".", "BackgroundContext", "(", ")", ",", "input", ")", "\n", "}" ]
// WaitUntilReplicationTaskStopped uses the AWS Database Migration Service API operation // DescribeReplicationTasks to wait for a condition to be met before returning. // If the condition is not met within the max attempt window, an error will // be returned.
[ "WaitUntilReplicationTaskStopped", "uses", "the", "AWS", "Database", "Migration", "Service", "API", "operation", "DescribeReplicationTasks", "to", "wait", "for", "a", "condition", "to", "be", "met", "before", "returning", ".", "If", "the", "condition", "is", "not", "met", "within", "the", "max", "attempt", "window", "an", "error", "will", "be", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/databasemigrationservice/waiters.go#L432-L434
1,569
aws/aws-sdk-go
aws/session/session.go
ClientConfigNoResolveEndpoint
func (s *Session) ClientConfigNoResolveEndpoint(cfgs ...*aws.Config) client.Config { s = s.Copy(cfgs...) var resolved endpoints.ResolvedEndpoint region := aws.StringValue(s.Config.Region) if ep := aws.StringValue(s.Config.Endpoint); len(ep) > 0 { resolved.URL = endpoints.AddScheme(ep, aws.BoolValue(s.Config.DisableSSL)) resolved.SigningRegion = region } return client.Config{ Config: s.Config, Handlers: s.Handlers, Endpoint: resolved.URL, SigningRegion: resolved.SigningRegion, SigningNameDerived: resolved.SigningNameDerived, SigningName: resolved.SigningName, } }
go
func (s *Session) ClientConfigNoResolveEndpoint(cfgs ...*aws.Config) client.Config { s = s.Copy(cfgs...) var resolved endpoints.ResolvedEndpoint region := aws.StringValue(s.Config.Region) if ep := aws.StringValue(s.Config.Endpoint); len(ep) > 0 { resolved.URL = endpoints.AddScheme(ep, aws.BoolValue(s.Config.DisableSSL)) resolved.SigningRegion = region } return client.Config{ Config: s.Config, Handlers: s.Handlers, Endpoint: resolved.URL, SigningRegion: resolved.SigningRegion, SigningNameDerived: resolved.SigningNameDerived, SigningName: resolved.SigningName, } }
[ "func", "(", "s", "*", "Session", ")", "ClientConfigNoResolveEndpoint", "(", "cfgs", "...", "*", "aws", ".", "Config", ")", "client", ".", "Config", "{", "s", "=", "s", ".", "Copy", "(", "cfgs", "...", ")", "\n\n", "var", "resolved", "endpoints", ".", "ResolvedEndpoint", "\n\n", "region", ":=", "aws", ".", "StringValue", "(", "s", ".", "Config", ".", "Region", ")", "\n\n", "if", "ep", ":=", "aws", ".", "StringValue", "(", "s", ".", "Config", ".", "Endpoint", ")", ";", "len", "(", "ep", ")", ">", "0", "{", "resolved", ".", "URL", "=", "endpoints", ".", "AddScheme", "(", "ep", ",", "aws", ".", "BoolValue", "(", "s", ".", "Config", ".", "DisableSSL", ")", ")", "\n", "resolved", ".", "SigningRegion", "=", "region", "\n", "}", "\n\n", "return", "client", ".", "Config", "{", "Config", ":", "s", ".", "Config", ",", "Handlers", ":", "s", ".", "Handlers", ",", "Endpoint", ":", "resolved", ".", "URL", ",", "SigningRegion", ":", "resolved", ".", "SigningRegion", ",", "SigningNameDerived", ":", "resolved", ".", "SigningNameDerived", ",", "SigningName", ":", "resolved", ".", "SigningName", ",", "}", "\n", "}" ]
// ClientConfigNoResolveEndpoint is the same as ClientConfig with the exception // that the EndpointResolver will not be used to resolve the endpoint. The only // endpoint set must come from the aws.Config.Endpoint field.
[ "ClientConfigNoResolveEndpoint", "is", "the", "same", "as", "ClientConfig", "with", "the", "exception", "that", "the", "EndpointResolver", "will", "not", "be", "used", "to", "resolve", "the", "endpoint", ".", "The", "only", "endpoint", "set", "must", "come", "from", "the", "aws", ".", "Config", ".", "Endpoint", "field", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/session/session.go#L699-L719
1,570
aws/aws-sdk-go
internal/ini/visitor.go
VisitExpr
func (v *DefaultVisitor) VisitExpr(expr AST) error { t := v.Sections.container[v.scope] if t.values == nil { t.values = values{} } switch expr.Kind { case ASTKindExprStatement: opExpr := expr.GetRoot() switch opExpr.Kind { case ASTKindEqualExpr: children := opExpr.GetChildren() if len(children) <= 1 { return NewParseError("unexpected token type") } rhs := children[1] if rhs.Root.Type() != TokenLit { return NewParseError("unexpected token type") } key := EqualExprKey(opExpr) v, err := newValue(rhs.Root.ValueType, rhs.Root.base, rhs.Root.Raw()) if err != nil { return err } t.values[key] = v default: return NewParseError(fmt.Sprintf("unsupported expression %v", expr)) } default: return NewParseError(fmt.Sprintf("unsupported expression %v", expr)) } v.Sections.container[v.scope] = t return nil }
go
func (v *DefaultVisitor) VisitExpr(expr AST) error { t := v.Sections.container[v.scope] if t.values == nil { t.values = values{} } switch expr.Kind { case ASTKindExprStatement: opExpr := expr.GetRoot() switch opExpr.Kind { case ASTKindEqualExpr: children := opExpr.GetChildren() if len(children) <= 1 { return NewParseError("unexpected token type") } rhs := children[1] if rhs.Root.Type() != TokenLit { return NewParseError("unexpected token type") } key := EqualExprKey(opExpr) v, err := newValue(rhs.Root.ValueType, rhs.Root.base, rhs.Root.Raw()) if err != nil { return err } t.values[key] = v default: return NewParseError(fmt.Sprintf("unsupported expression %v", expr)) } default: return NewParseError(fmt.Sprintf("unsupported expression %v", expr)) } v.Sections.container[v.scope] = t return nil }
[ "func", "(", "v", "*", "DefaultVisitor", ")", "VisitExpr", "(", "expr", "AST", ")", "error", "{", "t", ":=", "v", ".", "Sections", ".", "container", "[", "v", ".", "scope", "]", "\n", "if", "t", ".", "values", "==", "nil", "{", "t", ".", "values", "=", "values", "{", "}", "\n", "}", "\n\n", "switch", "expr", ".", "Kind", "{", "case", "ASTKindExprStatement", ":", "opExpr", ":=", "expr", ".", "GetRoot", "(", ")", "\n", "switch", "opExpr", ".", "Kind", "{", "case", "ASTKindEqualExpr", ":", "children", ":=", "opExpr", ".", "GetChildren", "(", ")", "\n", "if", "len", "(", "children", ")", "<=", "1", "{", "return", "NewParseError", "(", "\"", "\"", ")", "\n", "}", "\n\n", "rhs", ":=", "children", "[", "1", "]", "\n\n", "if", "rhs", ".", "Root", ".", "Type", "(", ")", "!=", "TokenLit", "{", "return", "NewParseError", "(", "\"", "\"", ")", "\n", "}", "\n\n", "key", ":=", "EqualExprKey", "(", "opExpr", ")", "\n", "v", ",", "err", ":=", "newValue", "(", "rhs", ".", "Root", ".", "ValueType", ",", "rhs", ".", "Root", ".", "base", ",", "rhs", ".", "Root", ".", "Raw", "(", ")", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n\n", "t", ".", "values", "[", "key", "]", "=", "v", "\n", "default", ":", "return", "NewParseError", "(", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "expr", ")", ")", "\n", "}", "\n", "default", ":", "return", "NewParseError", "(", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "expr", ")", ")", "\n", "}", "\n\n", "v", ".", "Sections", ".", "container", "[", "v", ".", "scope", "]", "=", "t", "\n", "return", "nil", "\n", "}" ]
// VisitExpr visits expressions...
[ "VisitExpr", "visits", "expressions", "..." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/internal/ini/visitor.go#L35-L73
1,571
aws/aws-sdk-go
internal/ini/visitor.go
VisitStatement
func (v *DefaultVisitor) VisitStatement(stmt AST) error { switch stmt.Kind { case ASTKindCompletedSectionStatement: child := stmt.GetRoot() if child.Kind != ASTKindSectionStatement { return NewParseError(fmt.Sprintf("unsupported child statement: %T", child)) } name := string(child.Root.Raw()) v.Sections.container[name] = Section{} v.scope = name default: return NewParseError(fmt.Sprintf("unsupported statement: %s", stmt.Kind)) } return nil }
go
func (v *DefaultVisitor) VisitStatement(stmt AST) error { switch stmt.Kind { case ASTKindCompletedSectionStatement: child := stmt.GetRoot() if child.Kind != ASTKindSectionStatement { return NewParseError(fmt.Sprintf("unsupported child statement: %T", child)) } name := string(child.Root.Raw()) v.Sections.container[name] = Section{} v.scope = name default: return NewParseError(fmt.Sprintf("unsupported statement: %s", stmt.Kind)) } return nil }
[ "func", "(", "v", "*", "DefaultVisitor", ")", "VisitStatement", "(", "stmt", "AST", ")", "error", "{", "switch", "stmt", ".", "Kind", "{", "case", "ASTKindCompletedSectionStatement", ":", "child", ":=", "stmt", ".", "GetRoot", "(", ")", "\n", "if", "child", ".", "Kind", "!=", "ASTKindSectionStatement", "{", "return", "NewParseError", "(", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "child", ")", ")", "\n", "}", "\n\n", "name", ":=", "string", "(", "child", ".", "Root", ".", "Raw", "(", ")", ")", "\n", "v", ".", "Sections", ".", "container", "[", "name", "]", "=", "Section", "{", "}", "\n", "v", ".", "scope", "=", "name", "\n", "default", ":", "return", "NewParseError", "(", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "stmt", ".", "Kind", ")", ")", "\n", "}", "\n\n", "return", "nil", "\n", "}" ]
// VisitStatement visits statements...
[ "VisitStatement", "visits", "statements", "..." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/internal/ini/visitor.go#L76-L92
1,572
aws/aws-sdk-go
internal/ini/visitor.go
GetSection
func (t Sections) GetSection(p string) (Section, bool) { v, ok := t.container[p] return v, ok }
go
func (t Sections) GetSection(p string) (Section, bool) { v, ok := t.container[p] return v, ok }
[ "func", "(", "t", "Sections", ")", "GetSection", "(", "p", "string", ")", "(", "Section", ",", "bool", ")", "{", "v", ",", "ok", ":=", "t", ".", "container", "[", "p", "]", "\n", "return", "v", ",", "ok", "\n", "}" ]
// GetSection will return section p. If section p does not exist, // false will be returned in the second parameter.
[ "GetSection", "will", "return", "section", "p", ".", "If", "section", "p", "does", "not", "exist", "false", "will", "be", "returned", "in", "the", "second", "parameter", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/internal/ini/visitor.go#L102-L105
1,573
aws/aws-sdk-go
internal/ini/visitor.go
List
func (t Sections) List() []string { keys := make([]string, len(t.container)) i := 0 for k := range t.container { keys[i] = k i++ } sort.Strings(keys) return keys }
go
func (t Sections) List() []string { keys := make([]string, len(t.container)) i := 0 for k := range t.container { keys[i] = k i++ } sort.Strings(keys) return keys }
[ "func", "(", "t", "Sections", ")", "List", "(", ")", "[", "]", "string", "{", "keys", ":=", "make", "(", "[", "]", "string", ",", "len", "(", "t", ".", "container", ")", ")", "\n", "i", ":=", "0", "\n", "for", "k", ":=", "range", "t", ".", "container", "{", "keys", "[", "i", "]", "=", "k", "\n", "i", "++", "\n", "}", "\n\n", "sort", ".", "Strings", "(", "keys", ")", "\n", "return", "keys", "\n", "}" ]
// List will return a list of all sections that were successfully // parsed.
[ "List", "will", "return", "a", "list", "of", "all", "sections", "that", "were", "successfully", "parsed", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/internal/ini/visitor.go#L112-L122
1,574
aws/aws-sdk-go
internal/ini/visitor.go
Has
func (t Section) Has(k string) bool { _, ok := t.values[k] return ok }
go
func (t Section) Has(k string) bool { _, ok := t.values[k] return ok }
[ "func", "(", "t", "Section", ")", "Has", "(", "k", "string", ")", "bool", "{", "_", ",", "ok", ":=", "t", ".", "values", "[", "k", "]", "\n", "return", "ok", "\n", "}" ]
// Has will return whether or not an entry exists in a given section
[ "Has", "will", "return", "whether", "or", "not", "an", "entry", "exists", "in", "a", "given", "section" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/internal/ini/visitor.go#L132-L135
1,575
aws/aws-sdk-go
internal/ini/visitor.go
ValueType
func (t Section) ValueType(k string) (ValueType, bool) { v, ok := t.values[k] return v.Type, ok }
go
func (t Section) ValueType(k string) (ValueType, bool) { v, ok := t.values[k] return v.Type, ok }
[ "func", "(", "t", "Section", ")", "ValueType", "(", "k", "string", ")", "(", "ValueType", ",", "bool", ")", "{", "v", ",", "ok", ":=", "t", ".", "values", "[", "k", "]", "\n", "return", "v", ".", "Type", ",", "ok", "\n", "}" ]
// ValueType will returned what type the union is set to. If // k was not found, the NoneType will be returned.
[ "ValueType", "will", "returned", "what", "type", "the", "union", "is", "set", "to", ".", "If", "k", "was", "not", "found", "the", "NoneType", "will", "be", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/internal/ini/visitor.go#L139-L142
1,576
aws/aws-sdk-go
internal/ini/visitor.go
Bool
func (t Section) Bool(k string) bool { return t.values[k].BoolValue() }
go
func (t Section) Bool(k string) bool { return t.values[k].BoolValue() }
[ "func", "(", "t", "Section", ")", "Bool", "(", "k", "string", ")", "bool", "{", "return", "t", ".", "values", "[", "k", "]", ".", "BoolValue", "(", ")", "\n", "}" ]
// Bool returns a bool value at k
[ "Bool", "returns", "a", "bool", "value", "at", "k" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/internal/ini/visitor.go#L145-L147
1,577
aws/aws-sdk-go
internal/ini/visitor.go
Int
func (t Section) Int(k string) int64 { return t.values[k].IntValue() }
go
func (t Section) Int(k string) int64 { return t.values[k].IntValue() }
[ "func", "(", "t", "Section", ")", "Int", "(", "k", "string", ")", "int64", "{", "return", "t", ".", "values", "[", "k", "]", ".", "IntValue", "(", ")", "\n", "}" ]
// Int returns an integer value at k
[ "Int", "returns", "an", "integer", "value", "at", "k" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/internal/ini/visitor.go#L150-L152
1,578
aws/aws-sdk-go
internal/ini/visitor.go
Float64
func (t Section) Float64(k string) float64 { return t.values[k].FloatValue() }
go
func (t Section) Float64(k string) float64 { return t.values[k].FloatValue() }
[ "func", "(", "t", "Section", ")", "Float64", "(", "k", "string", ")", "float64", "{", "return", "t", ".", "values", "[", "k", "]", ".", "FloatValue", "(", ")", "\n", "}" ]
// Float64 returns a float value at k
[ "Float64", "returns", "a", "float", "value", "at", "k" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/internal/ini/visitor.go#L155-L157
1,579
aws/aws-sdk-go
internal/ini/visitor.go
String
func (t Section) String(k string) string { _, ok := t.values[k] if !ok { return "" } return t.values[k].StringValue() }
go
func (t Section) String(k string) string { _, ok := t.values[k] if !ok { return "" } return t.values[k].StringValue() }
[ "func", "(", "t", "Section", ")", "String", "(", "k", "string", ")", "string", "{", "_", ",", "ok", ":=", "t", ".", "values", "[", "k", "]", "\n", "if", "!", "ok", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "t", ".", "values", "[", "k", "]", ".", "StringValue", "(", ")", "\n", "}" ]
// String returns the string value at k
[ "String", "returns", "the", "string", "value", "at", "k" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/internal/ini/visitor.go#L160-L166
1,580
aws/aws-sdk-go
aws/logger.go
Matches
func (l *LogLevelType) Matches(v LogLevelType) bool { c := l.Value() return c&v == v }
go
func (l *LogLevelType) Matches(v LogLevelType) bool { c := l.Value() return c&v == v }
[ "func", "(", "l", "*", "LogLevelType", ")", "Matches", "(", "v", "LogLevelType", ")", "bool", "{", "c", ":=", "l", ".", "Value", "(", ")", "\n", "return", "c", "&", "v", "==", "v", "\n", "}" ]
// Matches returns true if the v LogLevel is enabled by this LogLevel. Should be // used with logging sub levels. Is safe to use on nil value LogLevelTypes. If // LogLevel is nil, will default to LogOff comparison.
[ "Matches", "returns", "true", "if", "the", "v", "LogLevel", "is", "enabled", "by", "this", "LogLevel", ".", "Should", "be", "used", "with", "logging", "sub", "levels", ".", "Is", "safe", "to", "use", "on", "nil", "value", "LogLevelTypes", ".", "If", "LogLevel", "is", "nil", "will", "default", "to", "LogOff", "comparison", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/logger.go#L30-L33
1,581
aws/aws-sdk-go
aws/logger.go
AtLeast
func (l *LogLevelType) AtLeast(v LogLevelType) bool { c := l.Value() return c >= v }
go
func (l *LogLevelType) AtLeast(v LogLevelType) bool { c := l.Value() return c >= v }
[ "func", "(", "l", "*", "LogLevelType", ")", "AtLeast", "(", "v", "LogLevelType", ")", "bool", "{", "c", ":=", "l", ".", "Value", "(", ")", "\n", "return", "c", ">=", "v", "\n", "}" ]
// AtLeast returns true if this LogLevel is at least high enough to satisfies v. // Is safe to use on nil value LogLevelTypes. If LogLevel is nil, will default // to LogOff comparison.
[ "AtLeast", "returns", "true", "if", "this", "LogLevel", "is", "at", "least", "high", "enough", "to", "satisfies", "v", ".", "Is", "safe", "to", "use", "on", "nil", "value", "LogLevelTypes", ".", "If", "LogLevel", "is", "nil", "will", "default", "to", "LogOff", "comparison", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/logger.go#L38-L41
1,582
aws/aws-sdk-go
aws/logger.go
NewDefaultLogger
func NewDefaultLogger() Logger { return &defaultLogger{ logger: log.New(os.Stdout, "", log.LstdFlags), } }
go
func NewDefaultLogger() Logger { return &defaultLogger{ logger: log.New(os.Stdout, "", log.LstdFlags), } }
[ "func", "NewDefaultLogger", "(", ")", "Logger", "{", "return", "&", "defaultLogger", "{", "logger", ":", "log", ".", "New", "(", "os", ".", "Stdout", ",", "\"", "\"", ",", "log", ".", "LstdFlags", ")", ",", "}", "\n", "}" ]
// NewDefaultLogger returns a Logger which will write log messages to stdout, and // use same formatting runes as the stdlib log.Logger
[ "NewDefaultLogger", "returns", "a", "Logger", "which", "will", "write", "log", "messages", "to", "stdout", "and", "use", "same", "formatting", "runes", "as", "the", "stdlib", "log", ".", "Logger" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/logger.go#L104-L108
1,583
aws/aws-sdk-go
aws/signer/v4/v4.go
NewSigner
func NewSigner(credentials *credentials.Credentials, options ...func(*Signer)) *Signer { v4 := &Signer{ Credentials: credentials, } for _, option := range options { option(v4) } return v4 }
go
func NewSigner(credentials *credentials.Credentials, options ...func(*Signer)) *Signer { v4 := &Signer{ Credentials: credentials, } for _, option := range options { option(v4) } return v4 }
[ "func", "NewSigner", "(", "credentials", "*", "credentials", ".", "Credentials", ",", "options", "...", "func", "(", "*", "Signer", ")", ")", "*", "Signer", "{", "v4", ":=", "&", "Signer", "{", "Credentials", ":", "credentials", ",", "}", "\n\n", "for", "_", ",", "option", ":=", "range", "options", "{", "option", "(", "v4", ")", "\n", "}", "\n\n", "return", "v4", "\n", "}" ]
// NewSigner returns a Signer pointer configured with the credentials and optional // option values provided. If not options are provided the Signer will use its // default configuration.
[ "NewSigner", "returns", "a", "Signer", "pointer", "configured", "with", "the", "credentials", "and", "optional", "option", "values", "provided", ".", "If", "not", "options", "are", "provided", "the", "Signer", "will", "use", "its", "default", "configuration", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/signer/v4/v4.go#L208-L218
1,584
aws/aws-sdk-go
aws/signer/v4/v4.go
BuildNamedHandler
func BuildNamedHandler(name string, opts ...func(*Signer)) request.NamedHandler { return request.NamedHandler{ Name: name, Fn: func(req *request.Request) { SignSDKRequestWithCurrentTime(req, time.Now, opts...) }, } }
go
func BuildNamedHandler(name string, opts ...func(*Signer)) request.NamedHandler { return request.NamedHandler{ Name: name, Fn: func(req *request.Request) { SignSDKRequestWithCurrentTime(req, time.Now, opts...) }, } }
[ "func", "BuildNamedHandler", "(", "name", "string", ",", "opts", "...", "func", "(", "*", "Signer", ")", ")", "request", ".", "NamedHandler", "{", "return", "request", ".", "NamedHandler", "{", "Name", ":", "name", ",", "Fn", ":", "func", "(", "req", "*", "request", ".", "Request", ")", "{", "SignSDKRequestWithCurrentTime", "(", "req", ",", "time", ".", "Now", ",", "opts", "...", ")", "\n", "}", ",", "}", "\n", "}" ]
// BuildNamedHandler will build a generic handler for signing.
[ "BuildNamedHandler", "will", "build", "a", "generic", "handler", "for", "signing", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/signer/v4/v4.go#L429-L436
1,585
aws/aws-sdk-go
aws/signer/v4/v4.go
SignSDKRequestWithCurrentTime
func SignSDKRequestWithCurrentTime(req *request.Request, curTimeFn func() time.Time, opts ...func(*Signer)) { // If the request does not need to be signed ignore the signing of the // request if the AnonymousCredentials object is used. if req.Config.Credentials == credentials.AnonymousCredentials { return } region := req.ClientInfo.SigningRegion if region == "" { region = aws.StringValue(req.Config.Region) } name := req.ClientInfo.SigningName if name == "" { name = req.ClientInfo.ServiceName } v4 := NewSigner(req.Config.Credentials, func(v4 *Signer) { v4.Debug = req.Config.LogLevel.Value() v4.Logger = req.Config.Logger v4.DisableHeaderHoisting = req.NotHoist v4.currentTimeFn = curTimeFn if name == "s3" { // S3 service should not have any escaping applied v4.DisableURIPathEscaping = true } // Prevents setting the HTTPRequest's Body. Since the Body could be // wrapped in a custom io.Closer that we do not want to be stompped // on top of by the signer. v4.DisableRequestBodyOverwrite = true }) for _, opt := range opts { opt(v4) } curTime := curTimeFn() signedHeaders, err := v4.signWithBody(req.HTTPRequest, req.GetBody(), name, region, req.ExpireTime, req.ExpireTime > 0, curTime, ) if err != nil { req.Error = err req.SignedHeaderVals = nil return } req.SignedHeaderVals = signedHeaders req.LastSignedAt = curTime }
go
func SignSDKRequestWithCurrentTime(req *request.Request, curTimeFn func() time.Time, opts ...func(*Signer)) { // If the request does not need to be signed ignore the signing of the // request if the AnonymousCredentials object is used. if req.Config.Credentials == credentials.AnonymousCredentials { return } region := req.ClientInfo.SigningRegion if region == "" { region = aws.StringValue(req.Config.Region) } name := req.ClientInfo.SigningName if name == "" { name = req.ClientInfo.ServiceName } v4 := NewSigner(req.Config.Credentials, func(v4 *Signer) { v4.Debug = req.Config.LogLevel.Value() v4.Logger = req.Config.Logger v4.DisableHeaderHoisting = req.NotHoist v4.currentTimeFn = curTimeFn if name == "s3" { // S3 service should not have any escaping applied v4.DisableURIPathEscaping = true } // Prevents setting the HTTPRequest's Body. Since the Body could be // wrapped in a custom io.Closer that we do not want to be stompped // on top of by the signer. v4.DisableRequestBodyOverwrite = true }) for _, opt := range opts { opt(v4) } curTime := curTimeFn() signedHeaders, err := v4.signWithBody(req.HTTPRequest, req.GetBody(), name, region, req.ExpireTime, req.ExpireTime > 0, curTime, ) if err != nil { req.Error = err req.SignedHeaderVals = nil return } req.SignedHeaderVals = signedHeaders req.LastSignedAt = curTime }
[ "func", "SignSDKRequestWithCurrentTime", "(", "req", "*", "request", ".", "Request", ",", "curTimeFn", "func", "(", ")", "time", ".", "Time", ",", "opts", "...", "func", "(", "*", "Signer", ")", ")", "{", "// If the request does not need to be signed ignore the signing of the", "// request if the AnonymousCredentials object is used.", "if", "req", ".", "Config", ".", "Credentials", "==", "credentials", ".", "AnonymousCredentials", "{", "return", "\n", "}", "\n\n", "region", ":=", "req", ".", "ClientInfo", ".", "SigningRegion", "\n", "if", "region", "==", "\"", "\"", "{", "region", "=", "aws", ".", "StringValue", "(", "req", ".", "Config", ".", "Region", ")", "\n", "}", "\n\n", "name", ":=", "req", ".", "ClientInfo", ".", "SigningName", "\n", "if", "name", "==", "\"", "\"", "{", "name", "=", "req", ".", "ClientInfo", ".", "ServiceName", "\n", "}", "\n\n", "v4", ":=", "NewSigner", "(", "req", ".", "Config", ".", "Credentials", ",", "func", "(", "v4", "*", "Signer", ")", "{", "v4", ".", "Debug", "=", "req", ".", "Config", ".", "LogLevel", ".", "Value", "(", ")", "\n", "v4", ".", "Logger", "=", "req", ".", "Config", ".", "Logger", "\n", "v4", ".", "DisableHeaderHoisting", "=", "req", ".", "NotHoist", "\n", "v4", ".", "currentTimeFn", "=", "curTimeFn", "\n", "if", "name", "==", "\"", "\"", "{", "// S3 service should not have any escaping applied", "v4", ".", "DisableURIPathEscaping", "=", "true", "\n", "}", "\n", "// Prevents setting the HTTPRequest's Body. Since the Body could be", "// wrapped in a custom io.Closer that we do not want to be stompped", "// on top of by the signer.", "v4", ".", "DisableRequestBodyOverwrite", "=", "true", "\n", "}", ")", "\n\n", "for", "_", ",", "opt", ":=", "range", "opts", "{", "opt", "(", "v4", ")", "\n", "}", "\n\n", "curTime", ":=", "curTimeFn", "(", ")", "\n", "signedHeaders", ",", "err", ":=", "v4", ".", "signWithBody", "(", "req", ".", "HTTPRequest", ",", "req", ".", "GetBody", "(", ")", ",", "name", ",", "region", ",", "req", ".", "ExpireTime", ",", "req", ".", "ExpireTime", ">", "0", ",", "curTime", ",", ")", "\n", "if", "err", "!=", "nil", "{", "req", ".", "Error", "=", "err", "\n", "req", ".", "SignedHeaderVals", "=", "nil", "\n", "return", "\n", "}", "\n\n", "req", ".", "SignedHeaderVals", "=", "signedHeaders", "\n", "req", ".", "LastSignedAt", "=", "curTime", "\n", "}" ]
// SignSDKRequestWithCurrentTime will sign the SDK's request using the time // function passed in. Behaves the same as SignSDKRequest with the exception // the request is signed with the value returned by the current time function.
[ "SignSDKRequestWithCurrentTime", "will", "sign", "the", "SDK", "s", "request", "using", "the", "time", "function", "passed", "in", ".", "Behaves", "the", "same", "as", "SignSDKRequest", "with", "the", "exception", "the", "request", "is", "signed", "with", "the", "value", "returned", "by", "the", "current", "time", "function", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/signer/v4/v4.go#L441-L489
1,586
aws/aws-sdk-go
aws/signer/v4/v4.go
isRequestSigned
func (ctx *signingCtx) isRequestSigned() bool { if ctx.isPresign && ctx.Query.Get("X-Amz-Signature") != "" { return true } if ctx.Request.Header.Get("Authorization") != "" { return true } return false }
go
func (ctx *signingCtx) isRequestSigned() bool { if ctx.isPresign && ctx.Query.Get("X-Amz-Signature") != "" { return true } if ctx.Request.Header.Get("Authorization") != "" { return true } return false }
[ "func", "(", "ctx", "*", "signingCtx", ")", "isRequestSigned", "(", ")", "bool", "{", "if", "ctx", ".", "isPresign", "&&", "ctx", ".", "Query", ".", "Get", "(", "\"", "\"", ")", "!=", "\"", "\"", "{", "return", "true", "\n", "}", "\n", "if", "ctx", ".", "Request", ".", "Header", ".", "Get", "(", "\"", "\"", ")", "!=", "\"", "\"", "{", "return", "true", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
// isRequestSigned returns if the request is currently signed or presigned
[ "isRequestSigned", "returns", "if", "the", "request", "is", "currently", "signed", "or", "presigned" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/signer/v4/v4.go#L703-L712
1,587
aws/aws-sdk-go
aws/signer/v4/v4.go
removePresign
func (ctx *signingCtx) removePresign() { ctx.Query.Del("X-Amz-Algorithm") ctx.Query.Del("X-Amz-Signature") ctx.Query.Del("X-Amz-Security-Token") ctx.Query.Del("X-Amz-Date") ctx.Query.Del("X-Amz-Expires") ctx.Query.Del("X-Amz-Credential") ctx.Query.Del("X-Amz-SignedHeaders") }
go
func (ctx *signingCtx) removePresign() { ctx.Query.Del("X-Amz-Algorithm") ctx.Query.Del("X-Amz-Signature") ctx.Query.Del("X-Amz-Security-Token") ctx.Query.Del("X-Amz-Date") ctx.Query.Del("X-Amz-Expires") ctx.Query.Del("X-Amz-Credential") ctx.Query.Del("X-Amz-SignedHeaders") }
[ "func", "(", "ctx", "*", "signingCtx", ")", "removePresign", "(", ")", "{", "ctx", ".", "Query", ".", "Del", "(", "\"", "\"", ")", "\n", "ctx", ".", "Query", ".", "Del", "(", "\"", "\"", ")", "\n", "ctx", ".", "Query", ".", "Del", "(", "\"", "\"", ")", "\n", "ctx", ".", "Query", ".", "Del", "(", "\"", "\"", ")", "\n", "ctx", ".", "Query", ".", "Del", "(", "\"", "\"", ")", "\n", "ctx", ".", "Query", ".", "Del", "(", "\"", "\"", ")", "\n", "ctx", ".", "Query", ".", "Del", "(", "\"", "\"", ")", "\n", "}" ]
// unsign removes signing flags for both signed and presigned requests.
[ "unsign", "removes", "signing", "flags", "for", "both", "signed", "and", "presigned", "requests", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/signer/v4/v4.go#L715-L723
1,588
aws/aws-sdk-go
aws/signer/v4/v4.go
stripExcessSpaces
func stripExcessSpaces(vals []string) { var j, k, l, m, spaces int for i, str := range vals { // Trim trailing spaces for j = len(str) - 1; j >= 0 && str[j] == ' '; j-- { } // Trim leading spaces for k = 0; k < j && str[k] == ' '; k++ { } str = str[k : j+1] // Strip multiple spaces. j = strings.Index(str, doubleSpace) if j < 0 { vals[i] = str continue } buf := []byte(str) for k, m, l = j, j, len(buf); k < l; k++ { if buf[k] == ' ' { if spaces == 0 { // First space. buf[m] = buf[k] m++ } spaces++ } else { // End of multiple spaces. spaces = 0 buf[m] = buf[k] m++ } } vals[i] = string(buf[:m]) } }
go
func stripExcessSpaces(vals []string) { var j, k, l, m, spaces int for i, str := range vals { // Trim trailing spaces for j = len(str) - 1; j >= 0 && str[j] == ' '; j-- { } // Trim leading spaces for k = 0; k < j && str[k] == ' '; k++ { } str = str[k : j+1] // Strip multiple spaces. j = strings.Index(str, doubleSpace) if j < 0 { vals[i] = str continue } buf := []byte(str) for k, m, l = j, j, len(buf); k < l; k++ { if buf[k] == ' ' { if spaces == 0 { // First space. buf[m] = buf[k] m++ } spaces++ } else { // End of multiple spaces. spaces = 0 buf[m] = buf[k] m++ } } vals[i] = string(buf[:m]) } }
[ "func", "stripExcessSpaces", "(", "vals", "[", "]", "string", ")", "{", "var", "j", ",", "k", ",", "l", ",", "m", ",", "spaces", "int", "\n", "for", "i", ",", "str", ":=", "range", "vals", "{", "// Trim trailing spaces", "for", "j", "=", "len", "(", "str", ")", "-", "1", ";", "j", ">=", "0", "&&", "str", "[", "j", "]", "==", "' '", ";", "j", "--", "{", "}", "\n\n", "// Trim leading spaces", "for", "k", "=", "0", ";", "k", "<", "j", "&&", "str", "[", "k", "]", "==", "' '", ";", "k", "++", "{", "}", "\n", "str", "=", "str", "[", "k", ":", "j", "+", "1", "]", "\n\n", "// Strip multiple spaces.", "j", "=", "strings", ".", "Index", "(", "str", ",", "doubleSpace", ")", "\n", "if", "j", "<", "0", "{", "vals", "[", "i", "]", "=", "str", "\n", "continue", "\n", "}", "\n\n", "buf", ":=", "[", "]", "byte", "(", "str", ")", "\n", "for", "k", ",", "m", ",", "l", "=", "j", ",", "j", ",", "len", "(", "buf", ")", ";", "k", "<", "l", ";", "k", "++", "{", "if", "buf", "[", "k", "]", "==", "' '", "{", "if", "spaces", "==", "0", "{", "// First space.", "buf", "[", "m", "]", "=", "buf", "[", "k", "]", "\n", "m", "++", "\n", "}", "\n", "spaces", "++", "\n", "}", "else", "{", "// End of multiple spaces.", "spaces", "=", "0", "\n", "buf", "[", "m", "]", "=", "buf", "[", "k", "]", "\n", "m", "++", "\n", "}", "\n", "}", "\n\n", "vals", "[", "i", "]", "=", "string", "(", "buf", "[", ":", "m", "]", ")", "\n", "}", "\n", "}" ]
// stripExcessSpaces will rewrite the passed in slice's string values to not // contain multiple side-by-side spaces.
[ "stripExcessSpaces", "will", "rewrite", "the", "passed", "in", "slice", "s", "string", "values", "to", "not", "contain", "multiple", "side", "-", "by", "-", "side", "spaces", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/signer/v4/v4.go#L758-L796
1,589
aws/aws-sdk-go
service/workspaces/api.go
SetModificationState
func (s *AccountModification) SetModificationState(v string) *AccountModification { s.ModificationState = &v return s }
go
func (s *AccountModification) SetModificationState(v string) *AccountModification { s.ModificationState = &v return s }
[ "func", "(", "s", "*", "AccountModification", ")", "SetModificationState", "(", "v", "string", ")", "*", "AccountModification", "{", "s", ".", "ModificationState", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetModificationState sets the ModificationState field's value.
[ "SetModificationState", "sets", "the", "ModificationState", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/workspaces/api.go#L3003-L3006
1,590
aws/aws-sdk-go
service/workspaces/api.go
SetReconnectEnabled
func (s *ClientProperties) SetReconnectEnabled(v string) *ClientProperties { s.ReconnectEnabled = &v return s }
go
func (s *ClientProperties) SetReconnectEnabled(v string) *ClientProperties { s.ReconnectEnabled = &v return s }
[ "func", "(", "s", "*", "ClientProperties", ")", "SetReconnectEnabled", "(", "v", "string", ")", "*", "ClientProperties", "{", "s", ".", "ReconnectEnabled", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetReconnectEnabled sets the ReconnectEnabled field's value.
[ "SetReconnectEnabled", "sets", "the", "ReconnectEnabled", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/workspaces/api.go#L3167-L3170
1,591
aws/aws-sdk-go
service/workspaces/api.go
SetPendingRequests
func (s *CreateWorkspacesOutput) SetPendingRequests(v []*Workspace) *CreateWorkspacesOutput { s.PendingRequests = v return s }
go
func (s *CreateWorkspacesOutput) SetPendingRequests(v []*Workspace) *CreateWorkspacesOutput { s.PendingRequests = v return s }
[ "func", "(", "s", "*", "CreateWorkspacesOutput", ")", "SetPendingRequests", "(", "v", "[", "]", "*", "Workspace", ")", "*", "CreateWorkspacesOutput", "{", "s", ".", "PendingRequests", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetPendingRequests sets the PendingRequests field's value.
[ "SetPendingRequests", "sets", "the", "PendingRequests", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/workspaces/api.go#L3490-L3493
1,592
aws/aws-sdk-go
service/workspaces/api.go
SetCustomSecurityGroupId
func (s *DefaultWorkspaceCreationProperties) SetCustomSecurityGroupId(v string) *DefaultWorkspaceCreationProperties { s.CustomSecurityGroupId = &v return s }
go
func (s *DefaultWorkspaceCreationProperties) SetCustomSecurityGroupId(v string) *DefaultWorkspaceCreationProperties { s.CustomSecurityGroupId = &v return s }
[ "func", "(", "s", "*", "DefaultWorkspaceCreationProperties", ")", "SetCustomSecurityGroupId", "(", "v", "string", ")", "*", "DefaultWorkspaceCreationProperties", "{", "s", ".", "CustomSecurityGroupId", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetCustomSecurityGroupId sets the CustomSecurityGroupId field's value.
[ "SetCustomSecurityGroupId", "sets", "the", "CustomSecurityGroupId", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/workspaces/api.go#L3527-L3530
1,593
aws/aws-sdk-go
service/workspaces/api.go
SetDefaultOu
func (s *DefaultWorkspaceCreationProperties) SetDefaultOu(v string) *DefaultWorkspaceCreationProperties { s.DefaultOu = &v return s }
go
func (s *DefaultWorkspaceCreationProperties) SetDefaultOu(v string) *DefaultWorkspaceCreationProperties { s.DefaultOu = &v return s }
[ "func", "(", "s", "*", "DefaultWorkspaceCreationProperties", ")", "SetDefaultOu", "(", "v", "string", ")", "*", "DefaultWorkspaceCreationProperties", "{", "s", ".", "DefaultOu", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDefaultOu sets the DefaultOu field's value.
[ "SetDefaultOu", "sets", "the", "DefaultOu", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/workspaces/api.go#L3533-L3536
1,594
aws/aws-sdk-go
service/workspaces/api.go
SetEnableInternetAccess
func (s *DefaultWorkspaceCreationProperties) SetEnableInternetAccess(v bool) *DefaultWorkspaceCreationProperties { s.EnableInternetAccess = &v return s }
go
func (s *DefaultWorkspaceCreationProperties) SetEnableInternetAccess(v bool) *DefaultWorkspaceCreationProperties { s.EnableInternetAccess = &v return s }
[ "func", "(", "s", "*", "DefaultWorkspaceCreationProperties", ")", "SetEnableInternetAccess", "(", "v", "bool", ")", "*", "DefaultWorkspaceCreationProperties", "{", "s", ".", "EnableInternetAccess", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetEnableInternetAccess sets the EnableInternetAccess field's value.
[ "SetEnableInternetAccess", "sets", "the", "EnableInternetAccess", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/workspaces/api.go#L3539-L3542
1,595
aws/aws-sdk-go
service/workspaces/api.go
SetEnableWorkDocs
func (s *DefaultWorkspaceCreationProperties) SetEnableWorkDocs(v bool) *DefaultWorkspaceCreationProperties { s.EnableWorkDocs = &v return s }
go
func (s *DefaultWorkspaceCreationProperties) SetEnableWorkDocs(v bool) *DefaultWorkspaceCreationProperties { s.EnableWorkDocs = &v return s }
[ "func", "(", "s", "*", "DefaultWorkspaceCreationProperties", ")", "SetEnableWorkDocs", "(", "v", "bool", ")", "*", "DefaultWorkspaceCreationProperties", "{", "s", ".", "EnableWorkDocs", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetEnableWorkDocs sets the EnableWorkDocs field's value.
[ "SetEnableWorkDocs", "sets", "the", "EnableWorkDocs", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/workspaces/api.go#L3545-L3548
1,596
aws/aws-sdk-go
service/workspaces/api.go
SetUserEnabledAsLocalAdministrator
func (s *DefaultWorkspaceCreationProperties) SetUserEnabledAsLocalAdministrator(v bool) *DefaultWorkspaceCreationProperties { s.UserEnabledAsLocalAdministrator = &v return s }
go
func (s *DefaultWorkspaceCreationProperties) SetUserEnabledAsLocalAdministrator(v bool) *DefaultWorkspaceCreationProperties { s.UserEnabledAsLocalAdministrator = &v return s }
[ "func", "(", "s", "*", "DefaultWorkspaceCreationProperties", ")", "SetUserEnabledAsLocalAdministrator", "(", "v", "bool", ")", "*", "DefaultWorkspaceCreationProperties", "{", "s", ".", "UserEnabledAsLocalAdministrator", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetUserEnabledAsLocalAdministrator sets the UserEnabledAsLocalAdministrator field's value.
[ "SetUserEnabledAsLocalAdministrator", "sets", "the", "UserEnabledAsLocalAdministrator", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/workspaces/api.go#L3551-L3554
1,597
aws/aws-sdk-go
service/workspaces/api.go
SetAccountModifications
func (s *DescribeAccountModificationsOutput) SetAccountModifications(v []*AccountModification) *DescribeAccountModificationsOutput { s.AccountModifications = v return s }
go
func (s *DescribeAccountModificationsOutput) SetAccountModifications(v []*AccountModification) *DescribeAccountModificationsOutput { s.AccountModifications = v return s }
[ "func", "(", "s", "*", "DescribeAccountModificationsOutput", ")", "SetAccountModifications", "(", "v", "[", "]", "*", "AccountModification", ")", "*", "DescribeAccountModificationsOutput", "{", "s", ".", "AccountModifications", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetAccountModifications sets the AccountModifications field's value.
[ "SetAccountModifications", "sets", "the", "AccountModifications", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/workspaces/api.go#L3804-L3807
1,598
aws/aws-sdk-go
service/workspaces/api.go
SetClientPropertiesList
func (s *DescribeClientPropertiesOutput) SetClientPropertiesList(v []*ClientPropertiesResult) *DescribeClientPropertiesOutput { s.ClientPropertiesList = v return s }
go
func (s *DescribeClientPropertiesOutput) SetClientPropertiesList(v []*ClientPropertiesResult) *DescribeClientPropertiesOutput { s.ClientPropertiesList = v return s }
[ "func", "(", "s", "*", "DescribeClientPropertiesOutput", ")", "SetClientPropertiesList", "(", "v", "[", "]", "*", "ClientPropertiesResult", ")", "*", "DescribeClientPropertiesOutput", "{", "s", ".", "ClientPropertiesList", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetClientPropertiesList sets the ClientPropertiesList field's value.
[ "SetClientPropertiesList", "sets", "the", "ClientPropertiesList", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/workspaces/api.go#L3912-L3915
1,599
aws/aws-sdk-go
service/workspaces/api.go
SetBundleIds
func (s *DescribeWorkspaceBundlesInput) SetBundleIds(v []*string) *DescribeWorkspaceBundlesInput { s.BundleIds = v return s }
go
func (s *DescribeWorkspaceBundlesInput) SetBundleIds(v []*string) *DescribeWorkspaceBundlesInput { s.BundleIds = v return s }
[ "func", "(", "s", "*", "DescribeWorkspaceBundlesInput", ")", "SetBundleIds", "(", "v", "[", "]", "*", "string", ")", "*", "DescribeWorkspaceBundlesInput", "{", "s", ".", "BundleIds", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetBundleIds sets the BundleIds field's value.
[ "SetBundleIds", "sets", "the", "BundleIds", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/workspaces/api.go#L4120-L4123