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
sequence
docstring
stringlengths
6
2.61k
docstring_tokens
sequence
sha
stringlengths
40
40
url
stringlengths
85
252
400
aws/aws-sdk-go
service/servicecatalog/api.go
SetProvisionToken
func (s *ProvisionProductInput) SetProvisionToken(v string) *ProvisionProductInput { s.ProvisionToken = &v return s }
go
func (s *ProvisionProductInput) SetProvisionToken(v string) *ProvisionProductInput { s.ProvisionToken = &v return s }
[ "func", "(", "s", "*", "ProvisionProductInput", ")", "SetProvisionToken", "(", "v", "string", ")", "*", "ProvisionProductInput", "{", "s", ".", "ProvisionToken", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetProvisionToken sets the ProvisionToken field's value.
[ "SetProvisionToken", "sets", "the", "ProvisionToken", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L15304-L15307
401
aws/aws-sdk-go
service/servicecatalog/api.go
SetPhysicalId
func (s *ProvisionedProductAttribute) SetPhysicalId(v string) *ProvisionedProductAttribute { s.PhysicalId = &v return s }
go
func (s *ProvisionedProductAttribute) SetPhysicalId(v string) *ProvisionedProductAttribute { s.PhysicalId = &v return s }
[ "func", "(", "s", "*", "ProvisionedProductAttribute", ")", "SetPhysicalId", "(", "v", "string", ")", "*", "ProvisionedProductAttribute", "{", "s", ".", "PhysicalId", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetPhysicalId sets the PhysicalId field's value.
[ "SetPhysicalId", "sets", "the", "PhysicalId", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L15483-L15486
402
aws/aws-sdk-go
service/servicecatalog/api.go
SetUserArnSession
func (s *ProvisionedProductAttribute) SetUserArnSession(v string) *ProvisionedProductAttribute { s.UserArnSession = &v return s }
go
func (s *ProvisionedProductAttribute) SetUserArnSession(v string) *ProvisionedProductAttribute { s.UserArnSession = &v return s }
[ "func", "(", "s", "*", "ProvisionedProductAttribute", ")", "SetUserArnSession", "(", "v", "string", ")", "*", "ProvisionedProductAttribute", "{", "s", ".", "UserArnSession", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetUserArnSession sets the UserArnSession field's value.
[ "SetUserArnSession", "sets", "the", "UserArnSession", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L15531-L15534
403
aws/aws-sdk-go
service/servicecatalog/api.go
SetIsNoEcho
func (s *ProvisioningArtifactParameter) SetIsNoEcho(v bool) *ProvisioningArtifactParameter { s.IsNoEcho = &v return s }
go
func (s *ProvisioningArtifactParameter) SetIsNoEcho(v bool) *ProvisioningArtifactParameter { s.IsNoEcho = &v return s }
[ "func", "(", "s", "*", "ProvisioningArtifactParameter", ")", "SetIsNoEcho", "(", "v", "bool", ")", "*", "ProvisioningArtifactParameter", "{", "s", ".", "IsNoEcho", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetIsNoEcho sets the IsNoEcho field's value.
[ "SetIsNoEcho", "sets", "the", "IsNoEcho", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L16071-L16074
404
aws/aws-sdk-go
service/servicecatalog/api.go
SetDisableTemplateValidation
func (s *ProvisioningArtifactProperties) SetDisableTemplateValidation(v bool) *ProvisioningArtifactProperties { s.DisableTemplateValidation = &v return s }
go
func (s *ProvisioningArtifactProperties) SetDisableTemplateValidation(v bool) *ProvisioningArtifactProperties { s.DisableTemplateValidation = &v return s }
[ "func", "(", "s", "*", "ProvisioningArtifactProperties", ")", "SetDisableTemplateValidation", "(", "v", "bool", ")", "*", "ProvisioningArtifactProperties", "{", "s", ".", "DisableTemplateValidation", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDisableTemplateValidation sets the DisableTemplateValidation field's value.
[ "SetDisableTemplateValidation", "sets", "the", "DisableTemplateValidation", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L16208-L16211
405
aws/aws-sdk-go
service/servicecatalog/api.go
SetProvisioningArtifactMetadata
func (s *ProvisioningArtifactSummary) SetProvisioningArtifactMetadata(v map[string]*string) *ProvisioningArtifactSummary { s.ProvisioningArtifactMetadata = v return s }
go
func (s *ProvisioningArtifactSummary) SetProvisioningArtifactMetadata(v map[string]*string) *ProvisioningArtifactSummary { s.ProvisioningArtifactMetadata = v return s }
[ "func", "(", "s", "*", "ProvisioningArtifactSummary", ")", "SetProvisioningArtifactMetadata", "(", "v", "map", "[", "string", "]", "*", "string", ")", "*", "ProvisioningArtifactSummary", "{", "s", ".", "ProvisioningArtifactMetadata", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetProvisioningArtifactMetadata sets the ProvisioningArtifactMetadata field's value.
[ "SetProvisioningArtifactMetadata", "sets", "the", "ProvisioningArtifactMetadata", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L16288-L16291
406
aws/aws-sdk-go
service/servicecatalog/api.go
SetProvisioningArtifact
func (s *ProvisioningArtifactView) SetProvisioningArtifact(v *ProvisioningArtifact) *ProvisioningArtifactView { s.ProvisioningArtifact = v return s }
go
func (s *ProvisioningArtifactView) SetProvisioningArtifact(v *ProvisioningArtifact) *ProvisioningArtifactView { s.ProvisioningArtifact = v return s }
[ "func", "(", "s", "*", "ProvisioningArtifactView", ")", "SetProvisioningArtifact", "(", "v", "*", "ProvisioningArtifact", ")", "*", "ProvisioningArtifactView", "{", "s", ".", "ProvisioningArtifact", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetProvisioningArtifact sets the ProvisioningArtifact field's value.
[ "SetProvisioningArtifact", "sets", "the", "ProvisioningArtifact", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L16323-L16326
407
aws/aws-sdk-go
service/servicecatalog/api.go
SetProvisionedProductType
func (s *RecordDetail) SetProvisionedProductType(v string) *RecordDetail { s.ProvisionedProductType = &v return s }
go
func (s *RecordDetail) SetProvisionedProductType(v string) *RecordDetail { s.ProvisionedProductType = &v return s }
[ "func", "(", "s", "*", "RecordDetail", ")", "SetProvisionedProductType", "(", "v", "string", ")", "*", "RecordDetail", "{", "s", ".", "ProvisionedProductType", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetProvisionedProductType sets the ProvisionedProductType field's value.
[ "SetProvisionedProductType", "sets", "the", "ProvisionedProductType", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L16629-L16632
408
aws/aws-sdk-go
service/servicecatalog/api.go
SetRecordErrors
func (s *RecordDetail) SetRecordErrors(v []*RecordError) *RecordDetail { s.RecordErrors = v return s }
go
func (s *RecordDetail) SetRecordErrors(v []*RecordError) *RecordDetail { s.RecordErrors = v return s }
[ "func", "(", "s", "*", "RecordDetail", ")", "SetRecordErrors", "(", "v", "[", "]", "*", "RecordError", ")", "*", "RecordDetail", "{", "s", ".", "RecordErrors", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetRecordErrors sets the RecordErrors field's value.
[ "SetRecordErrors", "sets", "the", "RecordErrors", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L16641-L16644
409
aws/aws-sdk-go
service/servicecatalog/api.go
SetRecordTags
func (s *RecordDetail) SetRecordTags(v []*RecordTag) *RecordDetail { s.RecordTags = v return s }
go
func (s *RecordDetail) SetRecordTags(v []*RecordTag) *RecordDetail { s.RecordTags = v return s }
[ "func", "(", "s", "*", "RecordDetail", ")", "SetRecordTags", "(", "v", "[", "]", "*", "RecordTag", ")", "*", "RecordDetail", "{", "s", ".", "RecordTags", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetRecordTags sets the RecordTags field's value.
[ "SetRecordTags", "sets", "the", "RecordTags", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L16653-L16656
410
aws/aws-sdk-go
service/servicecatalog/api.go
SetReplacement
func (s *ResourceChange) SetReplacement(v string) *ResourceChange { s.Replacement = &v return s }
go
func (s *ResourceChange) SetReplacement(v string) *ResourceChange { s.Replacement = &v return s }
[ "func", "(", "s", "*", "ResourceChange", ")", "SetReplacement", "(", "v", "string", ")", "*", "ResourceChange", "{", "s", ".", "Replacement", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetReplacement sets the Replacement field's value.
[ "SetReplacement", "sets", "the", "Replacement", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L16938-L16941
411
aws/aws-sdk-go
service/servicecatalog/api.go
SetCausingEntity
func (s *ResourceChangeDetail) SetCausingEntity(v string) *ResourceChangeDetail { s.CausingEntity = &v return s }
go
func (s *ResourceChangeDetail) SetCausingEntity(v string) *ResourceChangeDetail { s.CausingEntity = &v return s }
[ "func", "(", "s", "*", "ResourceChangeDetail", ")", "SetCausingEntity", "(", "v", "string", ")", "*", "ResourceChangeDetail", "{", "s", ".", "CausingEntity", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetCausingEntity sets the CausingEntity field's value.
[ "SetCausingEntity", "sets", "the", "CausingEntity", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L16982-L16985
412
aws/aws-sdk-go
service/servicecatalog/api.go
SetEvaluation
func (s *ResourceChangeDetail) SetEvaluation(v string) *ResourceChangeDetail { s.Evaluation = &v return s }
go
func (s *ResourceChangeDetail) SetEvaluation(v string) *ResourceChangeDetail { s.Evaluation = &v return s }
[ "func", "(", "s", "*", "ResourceChangeDetail", ")", "SetEvaluation", "(", "v", "string", ")", "*", "ResourceChangeDetail", "{", "s", ".", "Evaluation", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetEvaluation sets the Evaluation field's value.
[ "SetEvaluation", "sets", "the", "Evaluation", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L16988-L16991
413
aws/aws-sdk-go
service/servicecatalog/api.go
SetRequiresRecreation
func (s *ResourceTargetDefinition) SetRequiresRecreation(v string) *ResourceTargetDefinition { s.RequiresRecreation = &v return s }
go
func (s *ResourceTargetDefinition) SetRequiresRecreation(v string) *ResourceTargetDefinition { s.RequiresRecreation = &v return s }
[ "func", "(", "s", "*", "ResourceTargetDefinition", ")", "SetRequiresRecreation", "(", "v", "string", ")", "*", "ResourceTargetDefinition", "{", "s", ".", "RequiresRecreation", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetRequiresRecreation sets the RequiresRecreation field's value.
[ "SetRequiresRecreation", "sets", "the", "RequiresRecreation", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L17098-L17101
414
aws/aws-sdk-go
service/servicecatalog/api.go
SetProductSource
func (s *SearchProductsAsAdminInput) SetProductSource(v string) *SearchProductsAsAdminInput { s.ProductSource = &v return s }
go
func (s *SearchProductsAsAdminInput) SetProductSource(v string) *SearchProductsAsAdminInput { s.ProductSource = &v return s }
[ "func", "(", "s", "*", "SearchProductsAsAdminInput", ")", "SetProductSource", "(", "v", "string", ")", "*", "SearchProductsAsAdminInput", "{", "s", ".", "ProductSource", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetProductSource sets the ProductSource field's value.
[ "SetProductSource", "sets", "the", "ProductSource", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L17283-L17286
415
aws/aws-sdk-go
service/servicecatalog/api.go
SetProductViewDetails
func (s *SearchProductsAsAdminOutput) SetProductViewDetails(v []*ProductViewDetail) *SearchProductsAsAdminOutput { s.ProductViewDetails = v return s }
go
func (s *SearchProductsAsAdminOutput) SetProductViewDetails(v []*ProductViewDetail) *SearchProductsAsAdminOutput { s.ProductViewDetails = v return s }
[ "func", "(", "s", "*", "SearchProductsAsAdminOutput", ")", "SetProductViewDetails", "(", "v", "[", "]", "*", "ProductViewDetail", ")", "*", "SearchProductsAsAdminOutput", "{", "s", ".", "ProductViewDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetProductViewDetails sets the ProductViewDetails field's value.
[ "SetProductViewDetails", "sets", "the", "ProductViewDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L17328-L17331
416
aws/aws-sdk-go
service/servicecatalog/api.go
SetProductViewAggregations
func (s *SearchProductsOutput) SetProductViewAggregations(v map[string][]*ProductViewAggregationValue) *SearchProductsOutput { s.ProductViewAggregations = v return s }
go
func (s *SearchProductsOutput) SetProductViewAggregations(v map[string][]*ProductViewAggregationValue) *SearchProductsOutput { s.ProductViewAggregations = v return s }
[ "func", "(", "s", "*", "SearchProductsOutput", ")", "SetProductViewAggregations", "(", "v", "map", "[", "string", "]", "[", "]", "*", "ProductViewAggregationValue", ")", "*", "SearchProductsOutput", "{", "s", ".", "ProductViewAggregations", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetProductViewAggregations sets the ProductViewAggregations field's value.
[ "SetProductViewAggregations", "sets", "the", "ProductViewAggregations", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L17440-L17443
417
aws/aws-sdk-go
service/servicecatalog/api.go
SetProductViewSummaries
func (s *SearchProductsOutput) SetProductViewSummaries(v []*ProductViewSummary) *SearchProductsOutput { s.ProductViewSummaries = v return s }
go
func (s *SearchProductsOutput) SetProductViewSummaries(v []*ProductViewSummary) *SearchProductsOutput { s.ProductViewSummaries = v return s }
[ "func", "(", "s", "*", "SearchProductsOutput", ")", "SetProductViewSummaries", "(", "v", "[", "]", "*", "ProductViewSummary", ")", "*", "SearchProductsOutput", "{", "s", ".", "ProductViewSummaries", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetProductViewSummaries sets the ProductViewSummaries field's value.
[ "SetProductViewSummaries", "sets", "the", "ProductViewSummaries", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L17446-L17449
418
aws/aws-sdk-go
service/servicecatalog/api.go
SetTotalResultsCount
func (s *SearchProvisionedProductsOutput) SetTotalResultsCount(v int64) *SearchProvisionedProductsOutput { s.TotalResultsCount = &v return s }
go
func (s *SearchProvisionedProductsOutput) SetTotalResultsCount(v int64) *SearchProvisionedProductsOutput { s.TotalResultsCount = &v return s }
[ "func", "(", "s", "*", "SearchProvisionedProductsOutput", ")", "SetTotalResultsCount", "(", "v", "int64", ")", "*", "SearchProvisionedProductsOutput", "{", "s", ".", "TotalResultsCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetTotalResultsCount sets the TotalResultsCount field's value.
[ "SetTotalResultsCount", "sets", "the", "TotalResultsCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L17579-L17582
419
aws/aws-sdk-go
service/servicecatalog/api.go
SetServiceActionSummary
func (s *ServiceActionDetail) SetServiceActionSummary(v *ServiceActionSummary) *ServiceActionDetail { s.ServiceActionSummary = v return s }
go
func (s *ServiceActionDetail) SetServiceActionSummary(v *ServiceActionSummary) *ServiceActionDetail { s.ServiceActionSummary = v return s }
[ "func", "(", "s", "*", "ServiceActionDetail", ")", "SetServiceActionSummary", "(", "v", "*", "ServiceActionSummary", ")", "*", "ServiceActionDetail", "{", "s", ".", "ServiceActionSummary", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetServiceActionSummary sets the ServiceActionSummary field's value.
[ "SetServiceActionSummary", "sets", "the", "ServiceActionSummary", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L17689-L17692
420
aws/aws-sdk-go
service/servicecatalog/api.go
SetShareErrors
func (s *ShareDetails) SetShareErrors(v []*ShareError) *ShareDetails { s.ShareErrors = v return s }
go
func (s *ShareDetails) SetShareErrors(v []*ShareError) *ShareDetails { s.ShareErrors = v return s }
[ "func", "(", "s", "*", "ShareDetails", ")", "SetShareErrors", "(", "v", "[", "]", "*", "ShareError", ")", "*", "ShareDetails", "{", "s", ".", "ShareErrors", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetShareErrors sets the ShareErrors field's value.
[ "SetShareErrors", "sets", "the", "ShareErrors", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L17767-L17770
421
aws/aws-sdk-go
service/servicecatalog/api.go
SetSuccessfulShares
func (s *ShareDetails) SetSuccessfulShares(v []*string) *ShareDetails { s.SuccessfulShares = v return s }
go
func (s *ShareDetails) SetSuccessfulShares(v []*string) *ShareDetails { s.SuccessfulShares = v return s }
[ "func", "(", "s", "*", "ShareDetails", ")", "SetSuccessfulShares", "(", "v", "[", "]", "*", "string", ")", "*", "ShareDetails", "{", "s", ".", "SuccessfulShares", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSuccessfulShares sets the SuccessfulShares field's value.
[ "SetSuccessfulShares", "sets", "the", "SuccessfulShares", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L17773-L17776
422
aws/aws-sdk-go
service/servicecatalog/api.go
SetTerminateToken
func (s *TerminateProvisionedProductInput) SetTerminateToken(v string) *TerminateProvisionedProductInput { s.TerminateToken = &v return s }
go
func (s *TerminateProvisionedProductInput) SetTerminateToken(v string) *TerminateProvisionedProductInput { s.TerminateToken = &v return s }
[ "func", "(", "s", "*", "TerminateProvisionedProductInput", ")", "SetTerminateToken", "(", "v", "string", ")", "*", "TerminateProvisionedProductInput", "{", "s", ".", "TerminateToken", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetTerminateToken sets the TerminateToken field's value.
[ "SetTerminateToken", "sets", "the", "TerminateToken", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L18049-L18052
423
aws/aws-sdk-go
service/servicecatalog/api.go
SetUpdateToken
func (s *UpdateProvisionedProductInput) SetUpdateToken(v string) *UpdateProvisionedProductInput { s.UpdateToken = &v return s }
go
func (s *UpdateProvisionedProductInput) SetUpdateToken(v string) *UpdateProvisionedProductInput { s.UpdateToken = &v return s }
[ "func", "(", "s", "*", "UpdateProvisionedProductInput", ")", "SetUpdateToken", "(", "v", "string", ")", "*", "UpdateProvisionedProductInput", "{", "s", ".", "UpdateToken", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetUpdateToken sets the UpdateToken field's value.
[ "SetUpdateToken", "sets", "the", "UpdateToken", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L18674-L18677
424
aws/aws-sdk-go
service/servicecatalog/api.go
SetStackSetOperationType
func (s *UpdateProvisioningPreferences) SetStackSetOperationType(v string) *UpdateProvisioningPreferences { s.StackSetOperationType = &v return s }
go
func (s *UpdateProvisioningPreferences) SetStackSetOperationType(v string) *UpdateProvisioningPreferences { s.StackSetOperationType = &v return s }
[ "func", "(", "s", "*", "UpdateProvisioningPreferences", ")", "SetStackSetOperationType", "(", "v", "string", ")", "*", "UpdateProvisioningPreferences", "{", "s", ".", "StackSetOperationType", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetStackSetOperationType sets the StackSetOperationType field's value.
[ "SetStackSetOperationType", "sets", "the", "StackSetOperationType", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/servicecatalog/api.go#L19062-L19065
425
aws/aws-sdk-go
service/dynamodb/expression/key_condition.go
andBuildKeyCondition
func andBuildKeyCondition(keyConditionBuilder KeyConditionBuilder, node exprNode) (exprNode, error) { if len(keyConditionBuilder.keyConditionList) == 0 && len(keyConditionBuilder.operandList) == 0 { return exprNode{}, newInvalidParameterError("andBuildKeyCondition", "KeyConditionBuilder") } // create a string with escaped characters to substitute them with proper // aliases during runtime node.fmtExpr = "($c) AND ($c)" return node, nil }
go
func andBuildKeyCondition(keyConditionBuilder KeyConditionBuilder, node exprNode) (exprNode, error) { if len(keyConditionBuilder.keyConditionList) == 0 && len(keyConditionBuilder.operandList) == 0 { return exprNode{}, newInvalidParameterError("andBuildKeyCondition", "KeyConditionBuilder") } // create a string with escaped characters to substitute them with proper // aliases during runtime node.fmtExpr = "($c) AND ($c)" return node, nil }
[ "func", "andBuildKeyCondition", "(", "keyConditionBuilder", "KeyConditionBuilder", ",", "node", "exprNode", ")", "(", "exprNode", ",", "error", ")", "{", "if", "len", "(", "keyConditionBuilder", ".", "keyConditionList", ")", "==", "0", "&&", "len", "(", "keyConditionBuilder", ".", "operandList", ")", "==", "0", "{", "return", "exprNode", "{", "}", ",", "newInvalidParameterError", "(", "\"", "\"", ",", "\"", "\"", ")", "\n", "}", "\n", "// create a string with escaped characters to substitute them with proper", "// aliases during runtime", "node", ".", "fmtExpr", "=", "\"", "\"", "\n\n", "return", "node", ",", "nil", "\n", "}" ]
// andBuildKeyCondition is the function to make exprNodes from And // KeyConditionBuilders. andBuildKeyCondition is only called by the // buildKeyCondition method. This function assumes that the argument // KeyConditionBuilder has the right format.
[ "andBuildKeyCondition", "is", "the", "function", "to", "make", "exprNodes", "from", "And", "KeyConditionBuilders", ".", "andBuildKeyCondition", "is", "only", "called", "by", "the", "buildKeyCondition", "method", ".", "This", "function", "assumes", "that", "the", "argument", "KeyConditionBuilder", "has", "the", "right", "format", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/expression/key_condition.go#L504-L513
426
aws/aws-sdk-go
service/dynamodb/expression/key_condition.go
buildChildNodes
func (kcb KeyConditionBuilder) buildChildNodes() ([]exprNode, error) { childNodes := make([]exprNode, 0, len(kcb.keyConditionList)+len(kcb.operandList)) for _, keyCondition := range kcb.keyConditionList { node, err := keyCondition.buildTree() if err != nil { return []exprNode{}, err } childNodes = append(childNodes, node) } for _, operand := range kcb.operandList { ope, err := operand.BuildOperand() if err != nil { return []exprNode{}, err } childNodes = append(childNodes, ope.exprNode) } return childNodes, nil }
go
func (kcb KeyConditionBuilder) buildChildNodes() ([]exprNode, error) { childNodes := make([]exprNode, 0, len(kcb.keyConditionList)+len(kcb.operandList)) for _, keyCondition := range kcb.keyConditionList { node, err := keyCondition.buildTree() if err != nil { return []exprNode{}, err } childNodes = append(childNodes, node) } for _, operand := range kcb.operandList { ope, err := operand.BuildOperand() if err != nil { return []exprNode{}, err } childNodes = append(childNodes, ope.exprNode) } return childNodes, nil }
[ "func", "(", "kcb", "KeyConditionBuilder", ")", "buildChildNodes", "(", ")", "(", "[", "]", "exprNode", ",", "error", ")", "{", "childNodes", ":=", "make", "(", "[", "]", "exprNode", ",", "0", ",", "len", "(", "kcb", ".", "keyConditionList", ")", "+", "len", "(", "kcb", ".", "operandList", ")", ")", "\n", "for", "_", ",", "keyCondition", ":=", "range", "kcb", ".", "keyConditionList", "{", "node", ",", "err", ":=", "keyCondition", ".", "buildTree", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "[", "]", "exprNode", "{", "}", ",", "err", "\n", "}", "\n", "childNodes", "=", "append", "(", "childNodes", ",", "node", ")", "\n", "}", "\n", "for", "_", ",", "operand", ":=", "range", "kcb", ".", "operandList", "{", "ope", ",", "err", ":=", "operand", ".", "BuildOperand", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "[", "]", "exprNode", "{", "}", ",", "err", "\n", "}", "\n", "childNodes", "=", "append", "(", "childNodes", ",", "ope", ".", "exprNode", ")", "\n", "}", "\n\n", "return", "childNodes", ",", "nil", "\n", "}" ]
// buildChildNodes creates the list of the child exprNodes. This avoids // duplication of code amongst the various buildConditions.
[ "buildChildNodes", "creates", "the", "list", "of", "the", "child", "exprNodes", ".", "This", "avoids", "duplication", "of", "code", "amongst", "the", "various", "buildConditions", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/expression/key_condition.go#L539-L557
427
aws/aws-sdk-go
service/appstream/api.go
SetIconURL
func (s *Application) SetIconURL(v string) *Application { s.IconURL = &v return s }
go
func (s *Application) SetIconURL(v string) *Application { s.IconURL = &v return s }
[ "func", "(", "s", "*", "Application", ")", "SetIconURL", "(", "v", "string", ")", "*", "Application", "{", "s", ".", "IconURL", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetIconURL sets the IconURL field's value.
[ "SetIconURL", "sets", "the", "IconURL", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L4015-L4018
428
aws/aws-sdk-go
service/appstream/api.go
SetLaunchParameters
func (s *Application) SetLaunchParameters(v string) *Application { s.LaunchParameters = &v return s }
go
func (s *Application) SetLaunchParameters(v string) *Application { s.LaunchParameters = &v return s }
[ "func", "(", "s", "*", "Application", ")", "SetLaunchParameters", "(", "v", "string", ")", "*", "Application", "{", "s", ".", "LaunchParameters", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetLaunchParameters sets the LaunchParameters field's value.
[ "SetLaunchParameters", "sets", "the", "LaunchParameters", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L4021-L4024
429
aws/aws-sdk-go
service/appstream/api.go
SetDesired
func (s *ComputeCapacityStatus) SetDesired(v int64) *ComputeCapacityStatus { s.Desired = &v return s }
go
func (s *ComputeCapacityStatus) SetDesired(v int64) *ComputeCapacityStatus { s.Desired = &v return s }
[ "func", "(", "s", "*", "ComputeCapacityStatus", ")", "SetDesired", "(", "v", "int64", ")", "*", "ComputeCapacityStatus", "{", "s", ".", "Desired", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDesired sets the Desired field's value.
[ "SetDesired", "sets", "the", "Desired", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L4432-L4435
430
aws/aws-sdk-go
service/appstream/api.go
SetInUse
func (s *ComputeCapacityStatus) SetInUse(v int64) *ComputeCapacityStatus { s.InUse = &v return s }
go
func (s *ComputeCapacityStatus) SetInUse(v int64) *ComputeCapacityStatus { s.InUse = &v return s }
[ "func", "(", "s", "*", "ComputeCapacityStatus", ")", "SetInUse", "(", "v", "int64", ")", "*", "ComputeCapacityStatus", "{", "s", ".", "InUse", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetInUse sets the InUse field's value.
[ "SetInUse", "sets", "the", "InUse", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L4438-L4441
431
aws/aws-sdk-go
service/appstream/api.go
SetRunning
func (s *ComputeCapacityStatus) SetRunning(v int64) *ComputeCapacityStatus { s.Running = &v return s }
go
func (s *ComputeCapacityStatus) SetRunning(v int64) *ComputeCapacityStatus { s.Running = &v return s }
[ "func", "(", "s", "*", "ComputeCapacityStatus", ")", "SetRunning", "(", "v", "int64", ")", "*", "ComputeCapacityStatus", "{", "s", ".", "Running", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetRunning sets the Running field's value.
[ "SetRunning", "sets", "the", "Running", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L4444-L4447
432
aws/aws-sdk-go
service/appstream/api.go
SetDestinationImageDescription
func (s *CopyImageInput) SetDestinationImageDescription(v string) *CopyImageInput { s.DestinationImageDescription = &v return s }
go
func (s *CopyImageInput) SetDestinationImageDescription(v string) *CopyImageInput { s.DestinationImageDescription = &v return s }
[ "func", "(", "s", "*", "CopyImageInput", ")", "SetDestinationImageDescription", "(", "v", "string", ")", "*", "CopyImageInput", "{", "s", ".", "DestinationImageDescription", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDestinationImageDescription sets the DestinationImageDescription field's value.
[ "SetDestinationImageDescription", "sets", "the", "DestinationImageDescription", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L4505-L4508
433
aws/aws-sdk-go
service/appstream/api.go
SetSourceImageName
func (s *CopyImageInput) SetSourceImageName(v string) *CopyImageInput { s.SourceImageName = &v return s }
go
func (s *CopyImageInput) SetSourceImageName(v string) *CopyImageInput { s.SourceImageName = &v return s }
[ "func", "(", "s", "*", "CopyImageInput", ")", "SetSourceImageName", "(", "v", "string", ")", "*", "CopyImageInput", "{", "s", ".", "SourceImageName", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetSourceImageName sets the SourceImageName field's value.
[ "SetSourceImageName", "sets", "the", "SourceImageName", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L4523-L4526
434
aws/aws-sdk-go
service/appstream/api.go
SetSessionContext
func (s *CreateStreamingURLInput) SetSessionContext(v string) *CreateStreamingURLInput { s.SessionContext = &v return s }
go
func (s *CreateStreamingURLInput) SetSessionContext(v string) *CreateStreamingURLInput { s.SessionContext = &v return s }
[ "func", "(", "s", "*", "CreateStreamingURLInput", ")", "SetSessionContext", "(", "v", "string", ")", "*", "CreateStreamingURLInput", "{", "s", ".", "SessionContext", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetSessionContext sets the SessionContext field's value.
[ "SetSessionContext", "sets", "the", "SessionContext", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L5432-L5435
435
aws/aws-sdk-go
service/appstream/api.go
SetDirectoryNames
func (s *DescribeDirectoryConfigsInput) SetDirectoryNames(v []*string) *DescribeDirectoryConfigsInput { s.DirectoryNames = v return s }
go
func (s *DescribeDirectoryConfigsInput) SetDirectoryNames(v []*string) *DescribeDirectoryConfigsInput { s.DirectoryNames = v return s }
[ "func", "(", "s", "*", "DescribeDirectoryConfigsInput", ")", "SetDirectoryNames", "(", "v", "[", "]", "*", "string", ")", "*", "DescribeDirectoryConfigsInput", "{", "s", ".", "DirectoryNames", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetDirectoryNames sets the DirectoryNames field's value.
[ "SetDirectoryNames", "sets", "the", "DirectoryNames", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L6047-L6050
436
aws/aws-sdk-go
service/appstream/api.go
SetDirectoryConfigs
func (s *DescribeDirectoryConfigsOutput) SetDirectoryConfigs(v []*DirectoryConfig) *DescribeDirectoryConfigsOutput { s.DirectoryConfigs = v return s }
go
func (s *DescribeDirectoryConfigsOutput) SetDirectoryConfigs(v []*DirectoryConfig) *DescribeDirectoryConfigsOutput { s.DirectoryConfigs = v return s }
[ "func", "(", "s", "*", "DescribeDirectoryConfigsOutput", ")", "SetDirectoryConfigs", "(", "v", "[", "]", "*", "DirectoryConfig", ")", "*", "DescribeDirectoryConfigsOutput", "{", "s", ".", "DirectoryConfigs", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetDirectoryConfigs sets the DirectoryConfigs field's value.
[ "SetDirectoryConfigs", "sets", "the", "DirectoryConfigs", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L6088-L6091
437
aws/aws-sdk-go
service/appstream/api.go
SetFleets
func (s *DescribeFleetsOutput) SetFleets(v []*Fleet) *DescribeFleetsOutput { s.Fleets = v return s }
go
func (s *DescribeFleetsOutput) SetFleets(v []*Fleet) *DescribeFleetsOutput { s.Fleets = v return s }
[ "func", "(", "s", "*", "DescribeFleetsOutput", ")", "SetFleets", "(", "v", "[", "]", "*", "Fleet", ")", "*", "DescribeFleetsOutput", "{", "s", ".", "Fleets", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetFleets sets the Fleets field's value.
[ "SetFleets", "sets", "the", "Fleets", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L6167-L6170
438
aws/aws-sdk-go
service/appstream/api.go
SetImageBuilders
func (s *DescribeImageBuildersOutput) SetImageBuilders(v []*ImageBuilder) *DescribeImageBuildersOutput { s.ImageBuilders = v return s }
go
func (s *DescribeImageBuildersOutput) SetImageBuilders(v []*ImageBuilder) *DescribeImageBuildersOutput { s.ImageBuilders = v return s }
[ "func", "(", "s", "*", "DescribeImageBuildersOutput", ")", "SetImageBuilders", "(", "v", "[", "]", "*", "ImageBuilder", ")", "*", "DescribeImageBuildersOutput", "{", "s", ".", "ImageBuilders", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetImageBuilders sets the ImageBuilders field's value.
[ "SetImageBuilders", "sets", "the", "ImageBuilders", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L6255-L6258
439
aws/aws-sdk-go
service/appstream/api.go
SetSharedAwsAccountIds
func (s *DescribeImagePermissionsInput) SetSharedAwsAccountIds(v []*string) *DescribeImagePermissionsInput { s.SharedAwsAccountIds = v return s }
go
func (s *DescribeImagePermissionsInput) SetSharedAwsAccountIds(v []*string) *DescribeImagePermissionsInput { s.SharedAwsAccountIds = v return s }
[ "func", "(", "s", "*", "DescribeImagePermissionsInput", ")", "SetSharedAwsAccountIds", "(", "v", "[", "]", "*", "string", ")", "*", "DescribeImagePermissionsInput", "{", "s", ".", "SharedAwsAccountIds", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSharedAwsAccountIds sets the SharedAwsAccountIds field's value.
[ "SetSharedAwsAccountIds", "sets", "the", "SharedAwsAccountIds", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L6335-L6338
440
aws/aws-sdk-go
service/appstream/api.go
SetSharedImagePermissionsList
func (s *DescribeImagePermissionsOutput) SetSharedImagePermissionsList(v []*SharedImagePermissions) *DescribeImagePermissionsOutput { s.SharedImagePermissionsList = v return s }
go
func (s *DescribeImagePermissionsOutput) SetSharedImagePermissionsList(v []*SharedImagePermissions) *DescribeImagePermissionsOutput { s.SharedImagePermissionsList = v return s }
[ "func", "(", "s", "*", "DescribeImagePermissionsOutput", ")", "SetSharedImagePermissionsList", "(", "v", "[", "]", "*", "SharedImagePermissions", ")", "*", "DescribeImagePermissionsOutput", "{", "s", ".", "SharedImagePermissionsList", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSharedImagePermissionsList sets the SharedImagePermissionsList field's value.
[ "SetSharedImagePermissionsList", "sets", "the", "SharedImagePermissionsList", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L6377-L6380
441
aws/aws-sdk-go
service/appstream/api.go
SetArns
func (s *DescribeImagesInput) SetArns(v []*string) *DescribeImagesInput { s.Arns = v return s }
go
func (s *DescribeImagesInput) SetArns(v []*string) *DescribeImagesInput { s.Arns = v return s }
[ "func", "(", "s", "*", "DescribeImagesInput", ")", "SetArns", "(", "v", "[", "]", "*", "string", ")", "*", "DescribeImagesInput", "{", "s", ".", "Arns", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetArns sets the Arns field's value.
[ "SetArns", "sets", "the", "Arns", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L6426-L6429
442
aws/aws-sdk-go
service/appstream/api.go
SetSessions
func (s *DescribeSessionsOutput) SetSessions(v []*Session) *DescribeSessionsOutput { s.Sessions = v return s }
go
func (s *DescribeSessionsOutput) SetSessions(v []*Session) *DescribeSessionsOutput { s.Sessions = v return s }
[ "func", "(", "s", "*", "DescribeSessionsOutput", ")", "SetSessions", "(", "v", "[", "]", "*", "Session", ")", "*", "DescribeSessionsOutput", "{", "s", ".", "Sessions", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSessions sets the Sessions field's value.
[ "SetSessions", "sets", "the", "Sessions", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L6620-L6623
443
aws/aws-sdk-go
service/appstream/api.go
SetComputeCapacityStatus
func (s *Fleet) SetComputeCapacityStatus(v *ComputeCapacityStatus) *Fleet { s.ComputeCapacityStatus = v return s }
go
func (s *Fleet) SetComputeCapacityStatus(v *ComputeCapacityStatus) *Fleet { s.ComputeCapacityStatus = v return s }
[ "func", "(", "s", "*", "Fleet", ")", "SetComputeCapacityStatus", "(", "v", "*", "ComputeCapacityStatus", ")", "*", "Fleet", "{", "s", ".", "ComputeCapacityStatus", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetComputeCapacityStatus sets the ComputeCapacityStatus field's value.
[ "SetComputeCapacityStatus", "sets", "the", "ComputeCapacityStatus", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L7361-L7364
444
aws/aws-sdk-go
service/appstream/api.go
SetFleetErrors
func (s *Fleet) SetFleetErrors(v []*FleetError) *Fleet { s.FleetErrors = v return s }
go
func (s *Fleet) SetFleetErrors(v []*FleetError) *Fleet { s.FleetErrors = v return s }
[ "func", "(", "s", "*", "Fleet", ")", "SetFleetErrors", "(", "v", "[", "]", "*", "FleetError", ")", "*", "Fleet", "{", "s", ".", "FleetErrors", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetFleetErrors sets the FleetErrors field's value.
[ "SetFleetErrors", "sets", "the", "FleetErrors", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L7403-L7406
445
aws/aws-sdk-go
service/appstream/api.go
SetBaseImageArn
func (s *Image) SetBaseImageArn(v string) *Image { s.BaseImageArn = &v return s }
go
func (s *Image) SetBaseImageArn(v string) *Image { s.BaseImageArn = &v return s }
[ "func", "(", "s", "*", "Image", ")", "SetBaseImageArn", "(", "v", "string", ")", "*", "Image", "{", "s", ".", "BaseImageArn", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetBaseImageArn sets the BaseImageArn field's value.
[ "SetBaseImageArn", "sets", "the", "BaseImageArn", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L7574-L7577
446
aws/aws-sdk-go
service/appstream/api.go
SetImageBuilderSupported
func (s *Image) SetImageBuilderSupported(v bool) *Image { s.ImageBuilderSupported = &v return s }
go
func (s *Image) SetImageBuilderSupported(v bool) *Image { s.ImageBuilderSupported = &v return s }
[ "func", "(", "s", "*", "Image", ")", "SetImageBuilderSupported", "(", "v", "bool", ")", "*", "Image", "{", "s", ".", "ImageBuilderSupported", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetImageBuilderSupported sets the ImageBuilderSupported field's value.
[ "SetImageBuilderSupported", "sets", "the", "ImageBuilderSupported", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L7598-L7601
447
aws/aws-sdk-go
service/appstream/api.go
SetPublicBaseImageReleasedDate
func (s *Image) SetPublicBaseImageReleasedDate(v time.Time) *Image { s.PublicBaseImageReleasedDate = &v return s }
go
func (s *Image) SetPublicBaseImageReleasedDate(v time.Time) *Image { s.PublicBaseImageReleasedDate = &v return s }
[ "func", "(", "s", "*", "Image", ")", "SetPublicBaseImageReleasedDate", "(", "v", "time", ".", "Time", ")", "*", "Image", "{", "s", ".", "PublicBaseImageReleasedDate", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetPublicBaseImageReleasedDate sets the PublicBaseImageReleasedDate field's value.
[ "SetPublicBaseImageReleasedDate", "sets", "the", "PublicBaseImageReleasedDate", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L7622-L7625
448
aws/aws-sdk-go
service/appstream/api.go
SetImageBuilderErrors
func (s *ImageBuilder) SetImageBuilderErrors(v []*ResourceError) *ImageBuilder { s.ImageBuilderErrors = v return s }
go
func (s *ImageBuilder) SetImageBuilderErrors(v []*ResourceError) *ImageBuilder { s.ImageBuilderErrors = v return s }
[ "func", "(", "s", "*", "ImageBuilder", ")", "SetImageBuilderErrors", "(", "v", "[", "]", "*", "ResourceError", ")", "*", "ImageBuilder", "{", "s", ".", "ImageBuilderErrors", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetImageBuilderErrors sets the ImageBuilderErrors field's value.
[ "SetImageBuilderErrors", "sets", "the", "ImageBuilderErrors", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L7758-L7761
449
aws/aws-sdk-go
service/appstream/api.go
SetAllowFleet
func (s *ImagePermissions) SetAllowFleet(v bool) *ImagePermissions { s.AllowFleet = &v return s }
go
func (s *ImagePermissions) SetAllowFleet(v bool) *ImagePermissions { s.AllowFleet = &v return s }
[ "func", "(", "s", "*", "ImagePermissions", ")", "SetAllowFleet", "(", "v", "bool", ")", "*", "ImagePermissions", "{", "s", ".", "AllowFleet", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetAllowFleet sets the AllowFleet field's value.
[ "SetAllowFleet", "sets", "the", "AllowFleet", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L7854-L7857
450
aws/aws-sdk-go
service/appstream/api.go
SetAllowImageBuilder
func (s *ImagePermissions) SetAllowImageBuilder(v bool) *ImagePermissions { s.AllowImageBuilder = &v return s }
go
func (s *ImagePermissions) SetAllowImageBuilder(v bool) *ImagePermissions { s.AllowImageBuilder = &v return s }
[ "func", "(", "s", "*", "ImagePermissions", ")", "SetAllowImageBuilder", "(", "v", "bool", ")", "*", "ImagePermissions", "{", "s", ".", "AllowImageBuilder", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetAllowImageBuilder sets the AllowImageBuilder field's value.
[ "SetAllowImageBuilder", "sets", "the", "AllowImageBuilder", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L7860-L7863
451
aws/aws-sdk-go
service/appstream/api.go
SetEniPrivateIpAddress
func (s *NetworkAccessConfiguration) SetEniPrivateIpAddress(v string) *NetworkAccessConfiguration { s.EniPrivateIpAddress = &v return s }
go
func (s *NetworkAccessConfiguration) SetEniPrivateIpAddress(v string) *NetworkAccessConfiguration { s.EniPrivateIpAddress = &v return s }
[ "func", "(", "s", "*", "NetworkAccessConfiguration", ")", "SetEniPrivateIpAddress", "(", "v", "string", ")", "*", "NetworkAccessConfiguration", "{", "s", ".", "EniPrivateIpAddress", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetEniPrivateIpAddress sets the EniPrivateIpAddress field's value.
[ "SetEniPrivateIpAddress", "sets", "the", "EniPrivateIpAddress", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L8164-L8167
452
aws/aws-sdk-go
service/appstream/api.go
SetErrorTimestamp
func (s *ResourceError) SetErrorTimestamp(v time.Time) *ResourceError { s.ErrorTimestamp = &v return s }
go
func (s *ResourceError) SetErrorTimestamp(v time.Time) *ResourceError { s.ErrorTimestamp = &v return s }
[ "func", "(", "s", "*", "ResourceError", ")", "SetErrorTimestamp", "(", "v", "time", ".", "Time", ")", "*", "ResourceError", "{", "s", ".", "ErrorTimestamp", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetErrorTimestamp sets the ErrorTimestamp field's value.
[ "SetErrorTimestamp", "sets", "the", "ErrorTimestamp", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L8206-L8209
453
aws/aws-sdk-go
service/appstream/api.go
SetAccountPassword
func (s *ServiceAccountCredentials) SetAccountPassword(v string) *ServiceAccountCredentials { s.AccountPassword = &v return s }
go
func (s *ServiceAccountCredentials) SetAccountPassword(v string) *ServiceAccountCredentials { s.AccountPassword = &v return s }
[ "func", "(", "s", "*", "ServiceAccountCredentials", ")", "SetAccountPassword", "(", "v", "string", ")", "*", "ServiceAccountCredentials", "{", "s", ".", "AccountPassword", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetAccountPassword sets the AccountPassword field's value.
[ "SetAccountPassword", "sets", "the", "AccountPassword", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L8268-L8271
454
aws/aws-sdk-go
service/appstream/api.go
SetMaxExpirationTime
func (s *Session) SetMaxExpirationTime(v time.Time) *Session { s.MaxExpirationTime = &v return s }
go
func (s *Session) SetMaxExpirationTime(v time.Time) *Session { s.MaxExpirationTime = &v return s }
[ "func", "(", "s", "*", "Session", ")", "SetMaxExpirationTime", "(", "v", "time", ".", "Time", ")", "*", "Session", "{", "s", ".", "MaxExpirationTime", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetMaxExpirationTime sets the MaxExpirationTime field's value.
[ "SetMaxExpirationTime", "sets", "the", "MaxExpirationTime", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L8361-L8364
455
aws/aws-sdk-go
service/appstream/api.go
SetNetworkAccessConfiguration
func (s *Session) SetNetworkAccessConfiguration(v *NetworkAccessConfiguration) *Session { s.NetworkAccessConfiguration = v return s }
go
func (s *Session) SetNetworkAccessConfiguration(v *NetworkAccessConfiguration) *Session { s.NetworkAccessConfiguration = v return s }
[ "func", "(", "s", "*", "Session", ")", "SetNetworkAccessConfiguration", "(", "v", "*", "NetworkAccessConfiguration", ")", "*", "Session", "{", "s", ".", "NetworkAccessConfiguration", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetNetworkAccessConfiguration sets the NetworkAccessConfiguration field's value.
[ "SetNetworkAccessConfiguration", "sets", "the", "NetworkAccessConfiguration", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L8367-L8370
456
aws/aws-sdk-go
service/appstream/api.go
SetStackErrors
func (s *Stack) SetStackErrors(v []*StackError) *Stack { s.StackErrors = v return s }
go
func (s *Stack) SetStackErrors(v []*StackError) *Stack { s.StackErrors = v return s }
[ "func", "(", "s", "*", "Stack", ")", "SetStackErrors", "(", "v", "[", "]", "*", "StackError", ")", "*", "Stack", "{", "s", ".", "StackErrors", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetStackErrors sets the StackErrors field's value.
[ "SetStackErrors", "sets", "the", "StackErrors", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L8535-L8538
457
aws/aws-sdk-go
service/appstream/api.go
SetConnectorType
func (s *StorageConnector) SetConnectorType(v string) *StorageConnector { s.ConnectorType = &v return s }
go
func (s *StorageConnector) SetConnectorType(v string) *StorageConnector { s.ConnectorType = &v return s }
[ "func", "(", "s", "*", "StorageConnector", ")", "SetConnectorType", "(", "v", "string", ")", "*", "StorageConnector", "{", "s", ".", "ConnectorType", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetConnectorType sets the ConnectorType field's value.
[ "SetConnectorType", "sets", "the", "ConnectorType", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L8879-L8882
458
aws/aws-sdk-go
service/appstream/api.go
SetDeleteVpcConfig
func (s *UpdateFleetInput) SetDeleteVpcConfig(v bool) *UpdateFleetInput { s.DeleteVpcConfig = &v return s }
go
func (s *UpdateFleetInput) SetDeleteVpcConfig(v bool) *UpdateFleetInput { s.DeleteVpcConfig = &v return s }
[ "func", "(", "s", "*", "UpdateFleetInput", ")", "SetDeleteVpcConfig", "(", "v", "bool", ")", "*", "UpdateFleetInput", "{", "s", ".", "DeleteVpcConfig", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDeleteVpcConfig sets the DeleteVpcConfig field's value.
[ "SetDeleteVpcConfig", "sets", "the", "DeleteVpcConfig", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L9263-L9266
459
aws/aws-sdk-go
service/appstream/api.go
SetDeleteStorageConnectors
func (s *UpdateStackInput) SetDeleteStorageConnectors(v bool) *UpdateStackInput { s.DeleteStorageConnectors = &v return s }
go
func (s *UpdateStackInput) SetDeleteStorageConnectors(v bool) *UpdateStackInput { s.DeleteStorageConnectors = &v return s }
[ "func", "(", "s", "*", "UpdateStackInput", ")", "SetDeleteStorageConnectors", "(", "v", "bool", ")", "*", "UpdateStackInput", "{", "s", ".", "DeleteStorageConnectors", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDeleteStorageConnectors sets the DeleteStorageConnectors field's value.
[ "SetDeleteStorageConnectors", "sets", "the", "DeleteStorageConnectors", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L9547-L9550
460
aws/aws-sdk-go
service/appstream/api.go
SetSendEmailNotification
func (s *UserStackAssociation) SetSendEmailNotification(v bool) *UserStackAssociation { s.SendEmailNotification = &v return s }
go
func (s *UserStackAssociation) SetSendEmailNotification(v bool) *UserStackAssociation { s.SendEmailNotification = &v return s }
[ "func", "(", "s", "*", "UserStackAssociation", ")", "SetSendEmailNotification", "(", "v", "bool", ")", "*", "UserStackAssociation", "{", "s", ".", "SendEmailNotification", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetSendEmailNotification sets the SendEmailNotification field's value.
[ "SetSendEmailNotification", "sets", "the", "SendEmailNotification", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L9836-L9839
461
aws/aws-sdk-go
service/appstream/api.go
SetUserStackAssociation
func (s *UserStackAssociationError) SetUserStackAssociation(v *UserStackAssociation) *UserStackAssociationError { s.UserStackAssociation = v return s }
go
func (s *UserStackAssociationError) SetUserStackAssociation(v *UserStackAssociation) *UserStackAssociationError { s.UserStackAssociation = v return s }
[ "func", "(", "s", "*", "UserStackAssociationError", ")", "SetUserStackAssociation", "(", "v", "*", "UserStackAssociation", ")", "*", "UserStackAssociationError", "{", "s", ".", "UserStackAssociation", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetUserStackAssociation sets the UserStackAssociation field's value.
[ "SetUserStackAssociation", "sets", "the", "UserStackAssociation", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appstream/api.go#L9893-L9896
462
aws/aws-sdk-go
service/resourcegroups/api.go
SetGroupIdentifiers
func (s *ListGroupsOutput) SetGroupIdentifiers(v []*GroupIdentifier) *ListGroupsOutput { s.GroupIdentifiers = v return s }
go
func (s *ListGroupsOutput) SetGroupIdentifiers(v []*GroupIdentifier) *ListGroupsOutput { s.GroupIdentifiers = v return s }
[ "func", "(", "s", "*", "ListGroupsOutput", ")", "SetGroupIdentifiers", "(", "v", "[", "]", "*", "GroupIdentifier", ")", "*", "ListGroupsOutput", "{", "s", ".", "GroupIdentifiers", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetGroupIdentifiers sets the GroupIdentifiers field's value.
[ "SetGroupIdentifiers", "sets", "the", "GroupIdentifiers", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/resourcegroups/api.go#L2132-L2135
463
aws/aws-sdk-go
private/protocol/eventstream/encode.go
NewEncoder
func NewEncoder(w io.Writer) *Encoder { return &Encoder{ w: w, headersBuf: bytes.NewBuffer(nil), } }
go
func NewEncoder(w io.Writer) *Encoder { return &Encoder{ w: w, headersBuf: bytes.NewBuffer(nil), } }
[ "func", "NewEncoder", "(", "w", "io", ".", "Writer", ")", "*", "Encoder", "{", "return", "&", "Encoder", "{", "w", ":", "w", ",", "headersBuf", ":", "bytes", ".", "NewBuffer", "(", "nil", ")", ",", "}", "\n", "}" ]
// NewEncoder initializes and returns an Encoder to encode Event Stream // messages to an io.Writer.
[ "NewEncoder", "initializes", "and", "returns", "an", "Encoder", "to", "encode", "Event", "Stream", "messages", "to", "an", "io", ".", "Writer", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/eventstream/encode.go#L20-L25
464
aws/aws-sdk-go
private/protocol/eventstream/encode.go
Encode
func (e *Encoder) Encode(msg Message) error { e.headersBuf.Reset() err := encodeHeaders(e.headersBuf, msg.Headers) if err != nil { return err } crc := crc32.New(crc32IEEETable) hashWriter := io.MultiWriter(e.w, crc) headersLen := uint32(e.headersBuf.Len()) payloadLen := uint32(len(msg.Payload)) if err := encodePrelude(hashWriter, crc, headersLen, payloadLen); err != nil { return err } if headersLen > 0 { if _, err := io.Copy(hashWriter, e.headersBuf); err != nil { return err } } if payloadLen > 0 { if _, err := hashWriter.Write(msg.Payload); err != nil { return err } } msgCRC := crc.Sum32() return binary.Write(e.w, binary.BigEndian, msgCRC) }
go
func (e *Encoder) Encode(msg Message) error { e.headersBuf.Reset() err := encodeHeaders(e.headersBuf, msg.Headers) if err != nil { return err } crc := crc32.New(crc32IEEETable) hashWriter := io.MultiWriter(e.w, crc) headersLen := uint32(e.headersBuf.Len()) payloadLen := uint32(len(msg.Payload)) if err := encodePrelude(hashWriter, crc, headersLen, payloadLen); err != nil { return err } if headersLen > 0 { if _, err := io.Copy(hashWriter, e.headersBuf); err != nil { return err } } if payloadLen > 0 { if _, err := hashWriter.Write(msg.Payload); err != nil { return err } } msgCRC := crc.Sum32() return binary.Write(e.w, binary.BigEndian, msgCRC) }
[ "func", "(", "e", "*", "Encoder", ")", "Encode", "(", "msg", "Message", ")", "error", "{", "e", ".", "headersBuf", ".", "Reset", "(", ")", "\n\n", "err", ":=", "encodeHeaders", "(", "e", ".", "headersBuf", ",", "msg", ".", "Headers", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n\n", "crc", ":=", "crc32", ".", "New", "(", "crc32IEEETable", ")", "\n", "hashWriter", ":=", "io", ".", "MultiWriter", "(", "e", ".", "w", ",", "crc", ")", "\n\n", "headersLen", ":=", "uint32", "(", "e", ".", "headersBuf", ".", "Len", "(", ")", ")", "\n", "payloadLen", ":=", "uint32", "(", "len", "(", "msg", ".", "Payload", ")", ")", "\n\n", "if", "err", ":=", "encodePrelude", "(", "hashWriter", ",", "crc", ",", "headersLen", ",", "payloadLen", ")", ";", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n\n", "if", "headersLen", ">", "0", "{", "if", "_", ",", "err", ":=", "io", ".", "Copy", "(", "hashWriter", ",", "e", ".", "headersBuf", ")", ";", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n", "}", "\n\n", "if", "payloadLen", ">", "0", "{", "if", "_", ",", "err", ":=", "hashWriter", ".", "Write", "(", "msg", ".", "Payload", ")", ";", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n", "}", "\n\n", "msgCRC", ":=", "crc", ".", "Sum32", "(", ")", "\n", "return", "binary", ".", "Write", "(", "e", ".", "w", ",", "binary", ".", "BigEndian", ",", "msgCRC", ")", "\n", "}" ]
// Encode encodes a single EventStream message to the io.Writer the Encoder // was created with. An error is returned if writing the message fails.
[ "Encode", "encodes", "a", "single", "EventStream", "message", "to", "the", "io", ".", "Writer", "the", "Encoder", "was", "created", "with", ".", "An", "error", "is", "returned", "if", "writing", "the", "message", "fails", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/eventstream/encode.go#L29-L61
465
aws/aws-sdk-go
service/s3/s3manager/batch.go
NewBatchError
func NewBatchError(code, message string, err []Error) awserr.Error { return &BatchError{ Errors: err, code: code, message: message, } }
go
func NewBatchError(code, message string, err []Error) awserr.Error { return &BatchError{ Errors: err, code: code, message: message, } }
[ "func", "NewBatchError", "(", "code", ",", "message", "string", ",", "err", "[", "]", "Error", ")", "awserr", ".", "Error", "{", "return", "&", "BatchError", "{", "Errors", ":", "err", ",", "code", ":", "code", ",", "message", ":", "message", ",", "}", "\n", "}" ]
// NewBatchError will return a BatchError that satisfies the awserr.Error interface.
[ "NewBatchError", "will", "return", "a", "BatchError", "that", "satisfies", "the", "awserr", ".", "Error", "interface", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/batch.go#L75-L81
466
aws/aws-sdk-go
service/s3/s3manager/batch.go
NewDeleteListIterator
func NewDeleteListIterator(svc s3iface.S3API, input *s3.ListObjectsInput, opts ...func(*DeleteListIterator)) BatchDeleteIterator { iter := &DeleteListIterator{ Bucket: input.Bucket, Paginator: request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *s3.ListObjectsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := svc.ListObjectsRequest(inCpy) return req, nil }, }, } for _, opt := range opts { opt(iter) } return iter }
go
func NewDeleteListIterator(svc s3iface.S3API, input *s3.ListObjectsInput, opts ...func(*DeleteListIterator)) BatchDeleteIterator { iter := &DeleteListIterator{ Bucket: input.Bucket, Paginator: request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *s3.ListObjectsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := svc.ListObjectsRequest(inCpy) return req, nil }, }, } for _, opt := range opts { opt(iter) } return iter }
[ "func", "NewDeleteListIterator", "(", "svc", "s3iface", ".", "S3API", ",", "input", "*", "s3", ".", "ListObjectsInput", ",", "opts", "...", "func", "(", "*", "DeleteListIterator", ")", ")", "BatchDeleteIterator", "{", "iter", ":=", "&", "DeleteListIterator", "{", "Bucket", ":", "input", ".", "Bucket", ",", "Paginator", ":", "request", ".", "Pagination", "{", "NewRequest", ":", "func", "(", ")", "(", "*", "request", ".", "Request", ",", "error", ")", "{", "var", "inCpy", "*", "s3", ".", "ListObjectsInput", "\n", "if", "input", "!=", "nil", "{", "tmp", ":=", "*", "input", "\n", "inCpy", "=", "&", "tmp", "\n", "}", "\n", "req", ",", "_", ":=", "svc", ".", "ListObjectsRequest", "(", "inCpy", ")", "\n", "return", "req", ",", "nil", "\n", "}", ",", "}", ",", "}", "\n\n", "for", "_", ",", "opt", ":=", "range", "opts", "{", "opt", "(", "iter", ")", "\n", "}", "\n", "return", "iter", "\n", "}" ]
// NewDeleteListIterator will return a new DeleteListIterator.
[ "NewDeleteListIterator", "will", "return", "a", "new", "DeleteListIterator", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/batch.go#L145-L165
467
aws/aws-sdk-go
service/s3/s3manager/batch.go
DeleteObject
func (iter *DeleteObjectsIterator) DeleteObject() BatchDeleteObject { object := iter.Objects[iter.index] return object }
go
func (iter *DeleteObjectsIterator) DeleteObject() BatchDeleteObject { object := iter.Objects[iter.index] return object }
[ "func", "(", "iter", "*", "DeleteObjectsIterator", ")", "DeleteObject", "(", ")", "BatchDeleteObject", "{", "object", ":=", "iter", ".", "Objects", "[", "iter", ".", "index", "]", "\n", "return", "object", "\n", "}" ]
// DeleteObject will return the BatchDeleteObject at the current batched index.
[ "DeleteObject", "will", "return", "the", "BatchDeleteObject", "at", "the", "current", "batched", "index", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/batch.go#L294-L297
468
aws/aws-sdk-go
service/s3/s3manager/batch.go
Delete
func (d *BatchDelete) Delete(ctx aws.Context, iter BatchDeleteIterator) error { var errs []Error objects := []BatchDeleteObject{} var input *s3.DeleteObjectsInput for iter.Next() { o := iter.DeleteObject() if input == nil { input = initDeleteObjectsInput(o.Object) } parity := hasParity(input, o) if parity { input.Delete.Objects = append(input.Delete.Objects, &s3.ObjectIdentifier{ Key: o.Object.Key, VersionId: o.Object.VersionId, }) objects = append(objects, o) } if len(input.Delete.Objects) == d.BatchSize || !parity { if err := deleteBatch(ctx, d, input, objects); err != nil { errs = append(errs, err...) } objects = objects[:0] input = nil if !parity { objects = append(objects, o) input = initDeleteObjectsInput(o.Object) input.Delete.Objects = append(input.Delete.Objects, &s3.ObjectIdentifier{ Key: o.Object.Key, VersionId: o.Object.VersionId, }) } } } // iter.Next() could return false (above) plus populate iter.Err() if iter.Err() != nil { errs = append(errs, newError(iter.Err(), nil, nil)) } if input != nil && len(input.Delete.Objects) > 0 { if err := deleteBatch(ctx, d, input, objects); err != nil { errs = append(errs, err...) } } if len(errs) > 0 { return NewBatchError("BatchedDeleteIncomplete", "some objects have failed to be deleted.", errs) } return nil }
go
func (d *BatchDelete) Delete(ctx aws.Context, iter BatchDeleteIterator) error { var errs []Error objects := []BatchDeleteObject{} var input *s3.DeleteObjectsInput for iter.Next() { o := iter.DeleteObject() if input == nil { input = initDeleteObjectsInput(o.Object) } parity := hasParity(input, o) if parity { input.Delete.Objects = append(input.Delete.Objects, &s3.ObjectIdentifier{ Key: o.Object.Key, VersionId: o.Object.VersionId, }) objects = append(objects, o) } if len(input.Delete.Objects) == d.BatchSize || !parity { if err := deleteBatch(ctx, d, input, objects); err != nil { errs = append(errs, err...) } objects = objects[:0] input = nil if !parity { objects = append(objects, o) input = initDeleteObjectsInput(o.Object) input.Delete.Objects = append(input.Delete.Objects, &s3.ObjectIdentifier{ Key: o.Object.Key, VersionId: o.Object.VersionId, }) } } } // iter.Next() could return false (above) plus populate iter.Err() if iter.Err() != nil { errs = append(errs, newError(iter.Err(), nil, nil)) } if input != nil && len(input.Delete.Objects) > 0 { if err := deleteBatch(ctx, d, input, objects); err != nil { errs = append(errs, err...) } } if len(errs) > 0 { return NewBatchError("BatchedDeleteIncomplete", "some objects have failed to be deleted.", errs) } return nil }
[ "func", "(", "d", "*", "BatchDelete", ")", "Delete", "(", "ctx", "aws", ".", "Context", ",", "iter", "BatchDeleteIterator", ")", "error", "{", "var", "errs", "[", "]", "Error", "\n", "objects", ":=", "[", "]", "BatchDeleteObject", "{", "}", "\n", "var", "input", "*", "s3", ".", "DeleteObjectsInput", "\n\n", "for", "iter", ".", "Next", "(", ")", "{", "o", ":=", "iter", ".", "DeleteObject", "(", ")", "\n\n", "if", "input", "==", "nil", "{", "input", "=", "initDeleteObjectsInput", "(", "o", ".", "Object", ")", "\n", "}", "\n\n", "parity", ":=", "hasParity", "(", "input", ",", "o", ")", "\n", "if", "parity", "{", "input", ".", "Delete", ".", "Objects", "=", "append", "(", "input", ".", "Delete", ".", "Objects", ",", "&", "s3", ".", "ObjectIdentifier", "{", "Key", ":", "o", ".", "Object", ".", "Key", ",", "VersionId", ":", "o", ".", "Object", ".", "VersionId", ",", "}", ")", "\n", "objects", "=", "append", "(", "objects", ",", "o", ")", "\n", "}", "\n\n", "if", "len", "(", "input", ".", "Delete", ".", "Objects", ")", "==", "d", ".", "BatchSize", "||", "!", "parity", "{", "if", "err", ":=", "deleteBatch", "(", "ctx", ",", "d", ",", "input", ",", "objects", ")", ";", "err", "!=", "nil", "{", "errs", "=", "append", "(", "errs", ",", "err", "...", ")", "\n", "}", "\n\n", "objects", "=", "objects", "[", ":", "0", "]", "\n", "input", "=", "nil", "\n\n", "if", "!", "parity", "{", "objects", "=", "append", "(", "objects", ",", "o", ")", "\n", "input", "=", "initDeleteObjectsInput", "(", "o", ".", "Object", ")", "\n", "input", ".", "Delete", ".", "Objects", "=", "append", "(", "input", ".", "Delete", ".", "Objects", ",", "&", "s3", ".", "ObjectIdentifier", "{", "Key", ":", "o", ".", "Object", ".", "Key", ",", "VersionId", ":", "o", ".", "Object", ".", "VersionId", ",", "}", ")", "\n", "}", "\n", "}", "\n", "}", "\n\n", "// iter.Next() could return false (above) plus populate iter.Err()", "if", "iter", ".", "Err", "(", ")", "!=", "nil", "{", "errs", "=", "append", "(", "errs", ",", "newError", "(", "iter", ".", "Err", "(", ")", ",", "nil", ",", "nil", ")", ")", "\n", "}", "\n\n", "if", "input", "!=", "nil", "&&", "len", "(", "input", ".", "Delete", ".", "Objects", ")", ">", "0", "{", "if", "err", ":=", "deleteBatch", "(", "ctx", ",", "d", ",", "input", ",", "objects", ")", ";", "err", "!=", "nil", "{", "errs", "=", "append", "(", "errs", ",", "err", "...", ")", "\n", "}", "\n", "}", "\n\n", "if", "len", "(", "errs", ")", ">", "0", "{", "return", "NewBatchError", "(", "\"", "\"", ",", "\"", "\"", ",", "errs", ")", "\n", "}", "\n", "return", "nil", "\n", "}" ]
// Delete will use the iterator to queue up objects that need to be deleted. // Once the batch size is met, this will call the deleteBatch function.
[ "Delete", "will", "use", "the", "iterator", "to", "queue", "up", "objects", "that", "need", "to", "be", "deleted", ".", "Once", "the", "batch", "size", "is", "met", "this", "will", "call", "the", "deleteBatch", "function", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/batch.go#L301-L356
469
aws/aws-sdk-go
service/s3/s3manager/batch.go
deleteBatch
func deleteBatch(ctx aws.Context, d *BatchDelete, input *s3.DeleteObjectsInput, objects []BatchDeleteObject) []Error { errs := []Error{} if result, err := d.Client.DeleteObjectsWithContext(ctx, input); err != nil { for i := 0; i < len(input.Delete.Objects); i++ { errs = append(errs, newError(err, input.Bucket, input.Delete.Objects[i].Key)) } } else if len(result.Errors) > 0 { for i := 0; i < len(result.Errors); i++ { code := ErrDeleteBatchFailCode msg := errDefaultDeleteBatchMessage if result.Errors[i].Message != nil { msg = *result.Errors[i].Message } if result.Errors[i].Code != nil { code = *result.Errors[i].Code } errs = append(errs, newError(awserr.New(code, msg, err), input.Bucket, result.Errors[i].Key)) } } for _, object := range objects { if object.After == nil { continue } if err := object.After(); err != nil { errs = append(errs, newError(err, object.Object.Bucket, object.Object.Key)) } } return errs }
go
func deleteBatch(ctx aws.Context, d *BatchDelete, input *s3.DeleteObjectsInput, objects []BatchDeleteObject) []Error { errs := []Error{} if result, err := d.Client.DeleteObjectsWithContext(ctx, input); err != nil { for i := 0; i < len(input.Delete.Objects); i++ { errs = append(errs, newError(err, input.Bucket, input.Delete.Objects[i].Key)) } } else if len(result.Errors) > 0 { for i := 0; i < len(result.Errors); i++ { code := ErrDeleteBatchFailCode msg := errDefaultDeleteBatchMessage if result.Errors[i].Message != nil { msg = *result.Errors[i].Message } if result.Errors[i].Code != nil { code = *result.Errors[i].Code } errs = append(errs, newError(awserr.New(code, msg, err), input.Bucket, result.Errors[i].Key)) } } for _, object := range objects { if object.After == nil { continue } if err := object.After(); err != nil { errs = append(errs, newError(err, object.Object.Bucket, object.Object.Key)) } } return errs }
[ "func", "deleteBatch", "(", "ctx", "aws", ".", "Context", ",", "d", "*", "BatchDelete", ",", "input", "*", "s3", ".", "DeleteObjectsInput", ",", "objects", "[", "]", "BatchDeleteObject", ")", "[", "]", "Error", "{", "errs", ":=", "[", "]", "Error", "{", "}", "\n\n", "if", "result", ",", "err", ":=", "d", ".", "Client", ".", "DeleteObjectsWithContext", "(", "ctx", ",", "input", ")", ";", "err", "!=", "nil", "{", "for", "i", ":=", "0", ";", "i", "<", "len", "(", "input", ".", "Delete", ".", "Objects", ")", ";", "i", "++", "{", "errs", "=", "append", "(", "errs", ",", "newError", "(", "err", ",", "input", ".", "Bucket", ",", "input", ".", "Delete", ".", "Objects", "[", "i", "]", ".", "Key", ")", ")", "\n", "}", "\n", "}", "else", "if", "len", "(", "result", ".", "Errors", ")", ">", "0", "{", "for", "i", ":=", "0", ";", "i", "<", "len", "(", "result", ".", "Errors", ")", ";", "i", "++", "{", "code", ":=", "ErrDeleteBatchFailCode", "\n", "msg", ":=", "errDefaultDeleteBatchMessage", "\n", "if", "result", ".", "Errors", "[", "i", "]", ".", "Message", "!=", "nil", "{", "msg", "=", "*", "result", ".", "Errors", "[", "i", "]", ".", "Message", "\n", "}", "\n", "if", "result", ".", "Errors", "[", "i", "]", ".", "Code", "!=", "nil", "{", "code", "=", "*", "result", ".", "Errors", "[", "i", "]", ".", "Code", "\n", "}", "\n\n", "errs", "=", "append", "(", "errs", ",", "newError", "(", "awserr", ".", "New", "(", "code", ",", "msg", ",", "err", ")", ",", "input", ".", "Bucket", ",", "result", ".", "Errors", "[", "i", "]", ".", "Key", ")", ")", "\n", "}", "\n", "}", "\n", "for", "_", ",", "object", ":=", "range", "objects", "{", "if", "object", ".", "After", "==", "nil", "{", "continue", "\n", "}", "\n", "if", "err", ":=", "object", ".", "After", "(", ")", ";", "err", "!=", "nil", "{", "errs", "=", "append", "(", "errs", ",", "newError", "(", "err", ",", "object", ".", "Object", ".", "Bucket", ",", "object", ".", "Object", ".", "Key", ")", ")", "\n", "}", "\n", "}", "\n\n", "return", "errs", "\n", "}" ]
// deleteBatch will delete a batch of items in the objects parameters.
[ "deleteBatch", "will", "delete", "a", "batch", "of", "items", "in", "the", "objects", "parameters", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/batch.go#L375-L406
470
aws/aws-sdk-go
service/s3/s3manager/batch.go
DownloadObject
func (batcher *DownloadObjectsIterator) DownloadObject() BatchDownloadObject { object := batcher.Objects[batcher.index] return object }
go
func (batcher *DownloadObjectsIterator) DownloadObject() BatchDownloadObject { object := batcher.Objects[batcher.index] return object }
[ "func", "(", "batcher", "*", "DownloadObjectsIterator", ")", "DownloadObject", "(", ")", "BatchDownloadObject", "{", "object", ":=", "batcher", ".", "Objects", "[", "batcher", ".", "index", "]", "\n", "return", "object", "\n", "}" ]
// DownloadObject will return the BatchDownloadObject at the current batched index.
[ "DownloadObject", "will", "return", "the", "BatchDownloadObject", "at", "the", "current", "batched", "index", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/batch.go#L473-L476
471
aws/aws-sdk-go
service/s3/s3manager/batch.go
UploadObject
func (batcher *UploadObjectsIterator) UploadObject() BatchUploadObject { object := batcher.Objects[batcher.index] return object }
go
func (batcher *UploadObjectsIterator) UploadObject() BatchUploadObject { object := batcher.Objects[batcher.index] return object }
[ "func", "(", "batcher", "*", "UploadObjectsIterator", ")", "UploadObject", "(", ")", "BatchUploadObject", "{", "object", ":=", "batcher", ".", "Objects", "[", "batcher", ".", "index", "]", "\n", "return", "object", "\n", "}" ]
// UploadObject will return the BatchUploadObject at the current batched index.
[ "UploadObject", "will", "return", "the", "BatchUploadObject", "at", "the", "current", "batched", "index", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/batch.go#L518-L521
472
aws/aws-sdk-go
service/efs/api.go
SetMountTargets
func (s *DescribeMountTargetsOutput) SetMountTargets(v []*MountTargetDescription) *DescribeMountTargetsOutput { s.MountTargets = v return s }
go
func (s *DescribeMountTargetsOutput) SetMountTargets(v []*MountTargetDescription) *DescribeMountTargetsOutput { s.MountTargets = v return s }
[ "func", "(", "s", "*", "DescribeMountTargetsOutput", ")", "SetMountTargets", "(", "v", "[", "]", "*", "MountTargetDescription", ")", "*", "DescribeMountTargetsOutput", "{", "s", ".", "MountTargets", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetMountTargets sets the MountTargets field's value.
[ "SetMountTargets", "sets", "the", "MountTargets", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/efs/api.go#L2444-L2447
473
aws/aws-sdk-go
service/efs/api.go
SetValueInIA
func (s *FileSystemSize) SetValueInIA(v int64) *FileSystemSize { s.ValueInIA = &v return s }
go
func (s *FileSystemSize) SetValueInIA(v int64) *FileSystemSize { s.ValueInIA = &v return s }
[ "func", "(", "s", "*", "FileSystemSize", ")", "SetValueInIA", "(", "v", "int64", ")", "*", "FileSystemSize", "{", "s", ".", "ValueInIA", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetValueInIA sets the ValueInIA field's value.
[ "SetValueInIA", "sets", "the", "ValueInIA", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/efs/api.go#L2798-L2801
474
aws/aws-sdk-go
service/efs/api.go
SetValueInStandard
func (s *FileSystemSize) SetValueInStandard(v int64) *FileSystemSize { s.ValueInStandard = &v return s }
go
func (s *FileSystemSize) SetValueInStandard(v int64) *FileSystemSize { s.ValueInStandard = &v return s }
[ "func", "(", "s", "*", "FileSystemSize", ")", "SetValueInStandard", "(", "v", "int64", ")", "*", "FileSystemSize", "{", "s", ".", "ValueInStandard", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetValueInStandard sets the ValueInStandard field's value.
[ "SetValueInStandard", "sets", "the", "ValueInStandard", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/efs/api.go#L2804-L2807
475
aws/aws-sdk-go
service/efs/api.go
SetTransitionToIA
func (s *LifecyclePolicy) SetTransitionToIA(v string) *LifecyclePolicy { s.TransitionToIA = &v return s }
go
func (s *LifecyclePolicy) SetTransitionToIA(v string) *LifecyclePolicy { s.TransitionToIA = &v return s }
[ "func", "(", "s", "*", "LifecyclePolicy", ")", "SetTransitionToIA", "(", "v", "string", ")", "*", "LifecyclePolicy", "{", "s", ".", "TransitionToIA", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetTransitionToIA sets the TransitionToIA field's value.
[ "SetTransitionToIA", "sets", "the", "TransitionToIA", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/efs/api.go#L2835-L2838
476
aws/aws-sdk-go
service/kinesisvideomedia/api.go
SetStartSelector
func (s *GetMediaInput) SetStartSelector(v *StartSelector) *GetMediaInput { s.StartSelector = v return s }
go
func (s *GetMediaInput) SetStartSelector(v *StartSelector) *GetMediaInput { s.StartSelector = v return s }
[ "func", "(", "s", "*", "GetMediaInput", ")", "SetStartSelector", "(", "v", "*", "StartSelector", ")", "*", "GetMediaInput", "{", "s", ".", "StartSelector", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetStartSelector sets the StartSelector field's value.
[ "SetStartSelector", "sets", "the", "StartSelector", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesisvideomedia/api.go#L185-L188
477
aws/aws-sdk-go
service/kinesisvideomedia/api.go
SetAfterFragmentNumber
func (s *StartSelector) SetAfterFragmentNumber(v string) *StartSelector { s.AfterFragmentNumber = &v return s }
go
func (s *StartSelector) SetAfterFragmentNumber(v string) *StartSelector { s.AfterFragmentNumber = &v return s }
[ "func", "(", "s", "*", "StartSelector", ")", "SetAfterFragmentNumber", "(", "v", "string", ")", "*", "StartSelector", "{", "s", ".", "AfterFragmentNumber", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetAfterFragmentNumber sets the AfterFragmentNumber field's value.
[ "SetAfterFragmentNumber", "sets", "the", "AfterFragmentNumber", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesisvideomedia/api.go#L363-L366
478
aws/aws-sdk-go
service/kinesisvideomedia/api.go
SetStartSelectorType
func (s *StartSelector) SetStartSelectorType(v string) *StartSelector { s.StartSelectorType = &v return s }
go
func (s *StartSelector) SetStartSelectorType(v string) *StartSelector { s.StartSelectorType = &v return s }
[ "func", "(", "s", "*", "StartSelector", ")", "SetStartSelectorType", "(", "v", "string", ")", "*", "StartSelector", "{", "s", ".", "StartSelectorType", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetStartSelectorType sets the StartSelectorType field's value.
[ "SetStartSelectorType", "sets", "the", "StartSelectorType", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesisvideomedia/api.go#L375-L378
479
aws/aws-sdk-go
private/protocol/host.go
ValidateEndpointHost
func ValidateEndpointHost(opName, host string) error { paramErrs := request.ErrInvalidParams{Context: opName} labels := strings.Split(host, ".") for i, label := range labels { if i == len(labels)-1 && len(label) == 0 { // Allow trailing dot for FQDN hosts. continue } if !ValidHostLabel(label) { paramErrs.Add(request.NewErrParamFormat( "endpoint host label", "[a-zA-Z0-9-]{1,63}", label)) } } if len(host) > 255 { paramErrs.Add(request.NewErrParamMaxLen( "endpoint host", 255, host, )) } if paramErrs.Len() > 0 { return paramErrs } return nil }
go
func ValidateEndpointHost(opName, host string) error { paramErrs := request.ErrInvalidParams{Context: opName} labels := strings.Split(host, ".") for i, label := range labels { if i == len(labels)-1 && len(label) == 0 { // Allow trailing dot for FQDN hosts. continue } if !ValidHostLabel(label) { paramErrs.Add(request.NewErrParamFormat( "endpoint host label", "[a-zA-Z0-9-]{1,63}", label)) } } if len(host) > 255 { paramErrs.Add(request.NewErrParamMaxLen( "endpoint host", 255, host, )) } if paramErrs.Len() > 0 { return paramErrs } return nil }
[ "func", "ValidateEndpointHost", "(", "opName", ",", "host", "string", ")", "error", "{", "paramErrs", ":=", "request", ".", "ErrInvalidParams", "{", "Context", ":", "opName", "}", "\n", "labels", ":=", "strings", ".", "Split", "(", "host", ",", "\"", "\"", ")", "\n\n", "for", "i", ",", "label", ":=", "range", "labels", "{", "if", "i", "==", "len", "(", "labels", ")", "-", "1", "&&", "len", "(", "label", ")", "==", "0", "{", "// Allow trailing dot for FQDN hosts.", "continue", "\n", "}", "\n\n", "if", "!", "ValidHostLabel", "(", "label", ")", "{", "paramErrs", ".", "Add", "(", "request", ".", "NewErrParamFormat", "(", "\"", "\"", ",", "\"", "\"", ",", "label", ")", ")", "\n", "}", "\n", "}", "\n\n", "if", "len", "(", "host", ")", ">", "255", "{", "paramErrs", ".", "Add", "(", "request", ".", "NewErrParamMaxLen", "(", "\"", "\"", ",", "255", ",", "host", ",", ")", ")", "\n", "}", "\n\n", "if", "paramErrs", ".", "Len", "(", ")", ">", "0", "{", "return", "paramErrs", "\n", "}", "\n", "return", "nil", "\n", "}" ]
// ValidateEndpointHost validates that the host string passed in is a valid RFC // 3986 host. Returns error if the host is not valid.
[ "ValidateEndpointHost", "validates", "that", "the", "host", "string", "passed", "in", "is", "a", "valid", "RFC", "3986", "host", ".", "Returns", "error", "if", "the", "host", "is", "not", "valid", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/host.go#L23-L49
480
aws/aws-sdk-go
private/protocol/host.go
ValidHostLabel
func ValidHostLabel(label string) bool { if l := len(label); l == 0 || l > 63 { return false } for _, r := range label { switch { case r >= '0' && r <= '9': case r >= 'A' && r <= 'Z': case r >= 'a' && r <= 'z': case r == '-': default: return false } } return true }
go
func ValidHostLabel(label string) bool { if l := len(label); l == 0 || l > 63 { return false } for _, r := range label { switch { case r >= '0' && r <= '9': case r >= 'A' && r <= 'Z': case r >= 'a' && r <= 'z': case r == '-': default: return false } } return true }
[ "func", "ValidHostLabel", "(", "label", "string", ")", "bool", "{", "if", "l", ":=", "len", "(", "label", ")", ";", "l", "==", "0", "||", "l", ">", "63", "{", "return", "false", "\n", "}", "\n", "for", "_", ",", "r", ":=", "range", "label", "{", "switch", "{", "case", "r", ">=", "'0'", "&&", "r", "<=", "'9'", ":", "case", "r", ">=", "'A'", "&&", "r", "<=", "'Z'", ":", "case", "r", ">=", "'a'", "&&", "r", "<=", "'z'", ":", "case", "r", "==", "'-'", ":", "default", ":", "return", "false", "\n", "}", "\n", "}", "\n\n", "return", "true", "\n", "}" ]
// ValidHostLabel returns if the label is a valid RFC 3986 host label.
[ "ValidHostLabel", "returns", "if", "the", "label", "is", "a", "valid", "RFC", "3986", "host", "label", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/host.go#L52-L68
481
aws/aws-sdk-go
service/support/api.go
SetExpiryTime
func (s *AddAttachmentsToSetOutput) SetExpiryTime(v string) *AddAttachmentsToSetOutput { s.ExpiryTime = &v return s }
go
func (s *AddAttachmentsToSetOutput) SetExpiryTime(v string) *AddAttachmentsToSetOutput { s.ExpiryTime = &v return s }
[ "func", "(", "s", "*", "AddAttachmentsToSetOutput", ")", "SetExpiryTime", "(", "v", "string", ")", "*", "AddAttachmentsToSetOutput", "{", "s", ".", "ExpiryTime", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetExpiryTime sets the ExpiryTime field's value.
[ "SetExpiryTime", "sets", "the", "ExpiryTime", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/support/api.go#L1507-L1510
482
aws/aws-sdk-go
service/support/api.go
SetRecentCommunications
func (s *CaseDetails) SetRecentCommunications(v *RecentCaseCommunications) *CaseDetails { s.RecentCommunications = v return s }
go
func (s *CaseDetails) SetRecentCommunications(v *RecentCaseCommunications) *CaseDetails { s.RecentCommunications = v return s }
[ "func", "(", "s", "*", "CaseDetails", ")", "SetRecentCommunications", "(", "v", "*", "RecentCaseCommunications", ")", "*", "CaseDetails", "{", "s", ".", "RecentCommunications", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetRecentCommunications sets the RecentCommunications field's value.
[ "SetRecentCommunications", "sets", "the", "RecentCommunications", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/support/api.go#L1801-L1804
483
aws/aws-sdk-go
service/support/api.go
SetAttachmentSet
func (s *Communication) SetAttachmentSet(v []*AttachmentDetails) *Communication { s.AttachmentSet = v return s }
go
func (s *Communication) SetAttachmentSet(v []*AttachmentDetails) *Communication { s.AttachmentSet = v return s }
[ "func", "(", "s", "*", "Communication", ")", "SetAttachmentSet", "(", "v", "[", "]", "*", "AttachmentDetails", ")", "*", "Communication", "{", "s", ".", "AttachmentSet", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetAttachmentSet sets the AttachmentSet field's value.
[ "SetAttachmentSet", "sets", "the", "AttachmentSet", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/support/api.go#L1911-L1914
484
aws/aws-sdk-go
service/support/api.go
SetIssueType
func (s *CreateCaseInput) SetIssueType(v string) *CreateCaseInput { s.IssueType = &v return s }
go
func (s *CreateCaseInput) SetIssueType(v string) *CreateCaseInput { s.IssueType = &v return s }
[ "func", "(", "s", "*", "CreateCaseInput", ")", "SetIssueType", "(", "v", "string", ")", "*", "CreateCaseInput", "{", "s", ".", "IssueType", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetIssueType sets the IssueType field's value.
[ "SetIssueType", "sets", "the", "IssueType", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/support/api.go#L2038-L2041
485
aws/aws-sdk-go
service/support/api.go
SetAttachment
func (s *DescribeAttachmentOutput) SetAttachment(v *Attachment) *DescribeAttachmentOutput { s.Attachment = v return s }
go
func (s *DescribeAttachmentOutput) SetAttachment(v *Attachment) *DescribeAttachmentOutput { s.Attachment = v return s }
[ "func", "(", "s", "*", "DescribeAttachmentOutput", ")", "SetAttachment", "(", "v", "*", "Attachment", ")", "*", "DescribeAttachmentOutput", "{", "s", ".", "Attachment", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetAttachment sets the Attachment field's value.
[ "SetAttachment", "sets", "the", "Attachment", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/support/api.go#L2152-L2155
486
aws/aws-sdk-go
service/support/api.go
SetCaseIdList
func (s *DescribeCasesInput) SetCaseIdList(v []*string) *DescribeCasesInput { s.CaseIdList = v return s }
go
func (s *DescribeCasesInput) SetCaseIdList(v []*string) *DescribeCasesInput { s.CaseIdList = v return s }
[ "func", "(", "s", "*", "DescribeCasesInput", ")", "SetCaseIdList", "(", "v", "[", "]", "*", "string", ")", "*", "DescribeCasesInput", "{", "s", ".", "CaseIdList", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetCaseIdList sets the CaseIdList field's value.
[ "SetCaseIdList", "sets", "the", "CaseIdList", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/support/api.go#L2231-L2234
487
aws/aws-sdk-go
service/support/api.go
SetIncludeCommunications
func (s *DescribeCasesInput) SetIncludeCommunications(v bool) *DescribeCasesInput { s.IncludeCommunications = &v return s }
go
func (s *DescribeCasesInput) SetIncludeCommunications(v bool) *DescribeCasesInput { s.IncludeCommunications = &v return s }
[ "func", "(", "s", "*", "DescribeCasesInput", ")", "SetIncludeCommunications", "(", "v", "bool", ")", "*", "DescribeCasesInput", "{", "s", ".", "IncludeCommunications", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetIncludeCommunications sets the IncludeCommunications field's value.
[ "SetIncludeCommunications", "sets", "the", "IncludeCommunications", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/support/api.go#L2243-L2246
488
aws/aws-sdk-go
service/support/api.go
SetIncludeResolvedCases
func (s *DescribeCasesInput) SetIncludeResolvedCases(v bool) *DescribeCasesInput { s.IncludeResolvedCases = &v return s }
go
func (s *DescribeCasesInput) SetIncludeResolvedCases(v bool) *DescribeCasesInput { s.IncludeResolvedCases = &v return s }
[ "func", "(", "s", "*", "DescribeCasesInput", ")", "SetIncludeResolvedCases", "(", "v", "bool", ")", "*", "DescribeCasesInput", "{", "s", ".", "IncludeResolvedCases", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetIncludeResolvedCases sets the IncludeResolvedCases field's value.
[ "SetIncludeResolvedCases", "sets", "the", "IncludeResolvedCases", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/support/api.go#L2249-L2252
489
aws/aws-sdk-go
service/support/api.go
SetCases
func (s *DescribeCasesOutput) SetCases(v []*CaseDetails) *DescribeCasesOutput { s.Cases = v return s }
go
func (s *DescribeCasesOutput) SetCases(v []*CaseDetails) *DescribeCasesOutput { s.Cases = v return s }
[ "func", "(", "s", "*", "DescribeCasesOutput", ")", "SetCases", "(", "v", "[", "]", "*", "CaseDetails", ")", "*", "DescribeCasesOutput", "{", "s", ".", "Cases", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetCases sets the Cases field's value.
[ "SetCases", "sets", "the", "Cases", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/support/api.go#L2295-L2298
490
aws/aws-sdk-go
service/support/api.go
SetServiceCodeList
func (s *DescribeServicesInput) SetServiceCodeList(v []*string) *DescribeServicesInput { s.ServiceCodeList = v return s }
go
func (s *DescribeServicesInput) SetServiceCodeList(v []*string) *DescribeServicesInput { s.ServiceCodeList = v return s }
[ "func", "(", "s", "*", "DescribeServicesInput", ")", "SetServiceCodeList", "(", "v", "[", "]", "*", "string", ")", "*", "DescribeServicesInput", "{", "s", ".", "ServiceCodeList", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetServiceCodeList sets the ServiceCodeList field's value.
[ "SetServiceCodeList", "sets", "the", "ServiceCodeList", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/support/api.go#L2448-L2451
491
aws/aws-sdk-go
service/support/api.go
SetSeverityLevels
func (s *DescribeSeverityLevelsOutput) SetSeverityLevels(v []*SeverityLevel) *DescribeSeverityLevelsOutput { s.SeverityLevels = v return s }
go
func (s *DescribeSeverityLevelsOutput) SetSeverityLevels(v []*SeverityLevel) *DescribeSeverityLevelsOutput { s.SeverityLevels = v return s }
[ "func", "(", "s", "*", "DescribeSeverityLevelsOutput", ")", "SetSeverityLevels", "(", "v", "[", "]", "*", "SeverityLevel", ")", "*", "DescribeSeverityLevelsOutput", "{", "s", ".", "SeverityLevels", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSeverityLevels sets the SeverityLevels field's value.
[ "SetSeverityLevels", "sets", "the", "SeverityLevels", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/support/api.go#L2522-L2525
492
aws/aws-sdk-go
service/support/api.go
SetStatuses
func (s *DescribeTrustedAdvisorCheckRefreshStatusesOutput) SetStatuses(v []*TrustedAdvisorCheckRefreshStatus) *DescribeTrustedAdvisorCheckRefreshStatusesOutput { s.Statuses = v return s }
go
func (s *DescribeTrustedAdvisorCheckRefreshStatusesOutput) SetStatuses(v []*TrustedAdvisorCheckRefreshStatus) *DescribeTrustedAdvisorCheckRefreshStatusesOutput { s.Statuses = v return s }
[ "func", "(", "s", "*", "DescribeTrustedAdvisorCheckRefreshStatusesOutput", ")", "SetStatuses", "(", "v", "[", "]", "*", "TrustedAdvisorCheckRefreshStatus", ")", "*", "DescribeTrustedAdvisorCheckRefreshStatusesOutput", "{", "s", ".", "Statuses", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetStatuses sets the Statuses field's value.
[ "SetStatuses", "sets", "the", "Statuses", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/support/api.go#L2589-L2592
493
aws/aws-sdk-go
service/support/api.go
SetChecks
func (s *DescribeTrustedAdvisorChecksOutput) SetChecks(v []*TrustedAdvisorCheckDescription) *DescribeTrustedAdvisorChecksOutput { s.Checks = v return s }
go
func (s *DescribeTrustedAdvisorChecksOutput) SetChecks(v []*TrustedAdvisorCheckDescription) *DescribeTrustedAdvisorChecksOutput { s.Checks = v return s }
[ "func", "(", "s", "*", "DescribeTrustedAdvisorChecksOutput", ")", "SetChecks", "(", "v", "[", "]", "*", "TrustedAdvisorCheckDescription", ")", "*", "DescribeTrustedAdvisorChecksOutput", "{", "s", ".", "Checks", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetChecks sets the Checks field's value.
[ "SetChecks", "sets", "the", "Checks", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/support/api.go#L2795-L2798
494
aws/aws-sdk-go
service/support/api.go
SetFinalCaseStatus
func (s *ResolveCaseOutput) SetFinalCaseStatus(v string) *ResolveCaseOutput { s.FinalCaseStatus = &v return s }
go
func (s *ResolveCaseOutput) SetFinalCaseStatus(v string) *ResolveCaseOutput { s.FinalCaseStatus = &v return s }
[ "func", "(", "s", "*", "ResolveCaseOutput", ")", "SetFinalCaseStatus", "(", "v", "string", ")", "*", "ResolveCaseOutput", "{", "s", ".", "FinalCaseStatus", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetFinalCaseStatus sets the FinalCaseStatus field's value.
[ "SetFinalCaseStatus", "sets", "the", "FinalCaseStatus", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/support/api.go#L2946-L2949
495
aws/aws-sdk-go
service/support/api.go
SetInitialCaseStatus
func (s *ResolveCaseOutput) SetInitialCaseStatus(v string) *ResolveCaseOutput { s.InitialCaseStatus = &v return s }
go
func (s *ResolveCaseOutput) SetInitialCaseStatus(v string) *ResolveCaseOutput { s.InitialCaseStatus = &v return s }
[ "func", "(", "s", "*", "ResolveCaseOutput", ")", "SetInitialCaseStatus", "(", "v", "string", ")", "*", "ResolveCaseOutput", "{", "s", ".", "InitialCaseStatus", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetInitialCaseStatus sets the InitialCaseStatus field's value.
[ "SetInitialCaseStatus", "sets", "the", "InitialCaseStatus", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/support/api.go#L2952-L2955
496
aws/aws-sdk-go
service/support/api.go
SetCategories
func (s *Service) SetCategories(v []*Category) *Service { s.Categories = v return s }
go
func (s *Service) SetCategories(v []*Category) *Service { s.Categories = v return s }
[ "func", "(", "s", "*", "Service", ")", "SetCategories", "(", "v", "[", "]", "*", "Category", ")", "*", "Service", "{", "s", ".", "Categories", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetCategories sets the Categories field's value.
[ "SetCategories", "sets", "the", "Categories", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/support/api.go#L2986-L2989
497
aws/aws-sdk-go
service/support/api.go
SetCostOptimizing
func (s *TrustedAdvisorCategorySpecificSummary) SetCostOptimizing(v *TrustedAdvisorCostOptimizingSummary) *TrustedAdvisorCategorySpecificSummary { s.CostOptimizing = v return s }
go
func (s *TrustedAdvisorCategorySpecificSummary) SetCostOptimizing(v *TrustedAdvisorCostOptimizingSummary) *TrustedAdvisorCategorySpecificSummary { s.CostOptimizing = v return s }
[ "func", "(", "s", "*", "TrustedAdvisorCategorySpecificSummary", ")", "SetCostOptimizing", "(", "v", "*", "TrustedAdvisorCostOptimizingSummary", ")", "*", "TrustedAdvisorCategorySpecificSummary", "{", "s", ".", "CostOptimizing", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetCostOptimizing sets the CostOptimizing field's value.
[ "SetCostOptimizing", "sets", "the", "CostOptimizing", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/support/api.go#L3059-L3062
498
aws/aws-sdk-go
service/support/api.go
SetMillisUntilNextRefreshable
func (s *TrustedAdvisorCheckRefreshStatus) SetMillisUntilNextRefreshable(v int64) *TrustedAdvisorCheckRefreshStatus { s.MillisUntilNextRefreshable = &v return s }
go
func (s *TrustedAdvisorCheckRefreshStatus) SetMillisUntilNextRefreshable(v int64) *TrustedAdvisorCheckRefreshStatus { s.MillisUntilNextRefreshable = &v return s }
[ "func", "(", "s", "*", "TrustedAdvisorCheckRefreshStatus", ")", "SetMillisUntilNextRefreshable", "(", "v", "int64", ")", "*", "TrustedAdvisorCheckRefreshStatus", "{", "s", ".", "MillisUntilNextRefreshable", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetMillisUntilNextRefreshable sets the MillisUntilNextRefreshable field's value.
[ "SetMillisUntilNextRefreshable", "sets", "the", "MillisUntilNextRefreshable", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/support/api.go#L3178-L3181
499
aws/aws-sdk-go
service/support/api.go
SetFlaggedResources
func (s *TrustedAdvisorCheckResult) SetFlaggedResources(v []*TrustedAdvisorResourceDetail) *TrustedAdvisorCheckResult { s.FlaggedResources = v return s }
go
func (s *TrustedAdvisorCheckResult) SetFlaggedResources(v []*TrustedAdvisorResourceDetail) *TrustedAdvisorCheckResult { s.FlaggedResources = v return s }
[ "func", "(", "s", "*", "TrustedAdvisorCheckResult", ")", "SetFlaggedResources", "(", "v", "[", "]", "*", "TrustedAdvisorResourceDetail", ")", "*", "TrustedAdvisorCheckResult", "{", "s", ".", "FlaggedResources", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetFlaggedResources sets the FlaggedResources field's value.
[ "SetFlaggedResources", "sets", "the", "FlaggedResources", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/support/api.go#L3250-L3253