id
int32
0
167k
repo
stringlengths
5
54
path
stringlengths
4
155
func_name
stringlengths
1
118
original_string
stringlengths
52
85.5k
language
stringclasses
1 value
code
stringlengths
52
85.5k
code_tokens
sequencelengths
21
1.41k
docstring
stringlengths
6
2.61k
docstring_tokens
sequencelengths
3
215
sha
stringlengths
40
40
url
stringlengths
85
252
1,400
aws/aws-sdk-go
service/iot/api.go
SetDetailsMap
func (s *JobExecutionStatusDetails) SetDetailsMap(v map[string]*string) *JobExecutionStatusDetails { s.DetailsMap = v return s }
go
func (s *JobExecutionStatusDetails) SetDetailsMap(v map[string]*string) *JobExecutionStatusDetails { s.DetailsMap = v return s }
[ "func", "(", "s", "*", "JobExecutionStatusDetails", ")", "SetDetailsMap", "(", "v", "map", "[", "string", "]", "*", "string", ")", "*", "JobExecutionStatusDetails", "{", "s", ".", "DetailsMap", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetDetailsMap sets the DetailsMap field's value.
[ "SetDetailsMap", "sets", "the", "DetailsMap", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L26064-L26067
1,401
aws/aws-sdk-go
service/iot/api.go
SetExponentialRate
func (s *JobExecutionsRolloutConfig) SetExponentialRate(v *ExponentialRolloutRate) *JobExecutionsRolloutConfig { s.ExponentialRate = v return s }
go
func (s *JobExecutionsRolloutConfig) SetExponentialRate(v *ExponentialRolloutRate) *JobExecutionsRolloutConfig { s.ExponentialRate = v return s }
[ "func", "(", "s", "*", "JobExecutionsRolloutConfig", ")", "SetExponentialRate", "(", "v", "*", "ExponentialRolloutRate", ")", "*", "JobExecutionsRolloutConfig", "{", "s", ".", "ExponentialRate", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetExponentialRate sets the ExponentialRate field's value.
[ "SetExponentialRate", "sets", "the", "ExponentialRate", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L26239-L26242
1,402
aws/aws-sdk-go
service/iot/api.go
SetNumberOfCanceledThings
func (s *JobProcessDetails) SetNumberOfCanceledThings(v int64) *JobProcessDetails { s.NumberOfCanceledThings = &v return s }
go
func (s *JobProcessDetails) SetNumberOfCanceledThings(v int64) *JobProcessDetails { s.NumberOfCanceledThings = &v return s }
[ "func", "(", "s", "*", "JobProcessDetails", ")", "SetNumberOfCanceledThings", "(", "v", "int64", ")", "*", "JobProcessDetails", "{", "s", ".", "NumberOfCanceledThings", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetNumberOfCanceledThings sets the NumberOfCanceledThings field's value.
[ "SetNumberOfCanceledThings", "sets", "the", "NumberOfCanceledThings", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L26297-L26300
1,403
aws/aws-sdk-go
service/iot/api.go
SetNumberOfFailedThings
func (s *JobProcessDetails) SetNumberOfFailedThings(v int64) *JobProcessDetails { s.NumberOfFailedThings = &v return s }
go
func (s *JobProcessDetails) SetNumberOfFailedThings(v int64) *JobProcessDetails { s.NumberOfFailedThings = &v return s }
[ "func", "(", "s", "*", "JobProcessDetails", ")", "SetNumberOfFailedThings", "(", "v", "int64", ")", "*", "JobProcessDetails", "{", "s", ".", "NumberOfFailedThings", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetNumberOfFailedThings sets the NumberOfFailedThings field's value.
[ "SetNumberOfFailedThings", "sets", "the", "NumberOfFailedThings", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L26303-L26306
1,404
aws/aws-sdk-go
service/iot/api.go
SetNumberOfInProgressThings
func (s *JobProcessDetails) SetNumberOfInProgressThings(v int64) *JobProcessDetails { s.NumberOfInProgressThings = &v return s }
go
func (s *JobProcessDetails) SetNumberOfInProgressThings(v int64) *JobProcessDetails { s.NumberOfInProgressThings = &v return s }
[ "func", "(", "s", "*", "JobProcessDetails", ")", "SetNumberOfInProgressThings", "(", "v", "int64", ")", "*", "JobProcessDetails", "{", "s", ".", "NumberOfInProgressThings", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetNumberOfInProgressThings sets the NumberOfInProgressThings field's value.
[ "SetNumberOfInProgressThings", "sets", "the", "NumberOfInProgressThings", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L26309-L26312
1,405
aws/aws-sdk-go
service/iot/api.go
SetNumberOfQueuedThings
func (s *JobProcessDetails) SetNumberOfQueuedThings(v int64) *JobProcessDetails { s.NumberOfQueuedThings = &v return s }
go
func (s *JobProcessDetails) SetNumberOfQueuedThings(v int64) *JobProcessDetails { s.NumberOfQueuedThings = &v return s }
[ "func", "(", "s", "*", "JobProcessDetails", ")", "SetNumberOfQueuedThings", "(", "v", "int64", ")", "*", "JobProcessDetails", "{", "s", ".", "NumberOfQueuedThings", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetNumberOfQueuedThings sets the NumberOfQueuedThings field's value.
[ "SetNumberOfQueuedThings", "sets", "the", "NumberOfQueuedThings", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L26315-L26318
1,406
aws/aws-sdk-go
service/iot/api.go
SetNumberOfRejectedThings
func (s *JobProcessDetails) SetNumberOfRejectedThings(v int64) *JobProcessDetails { s.NumberOfRejectedThings = &v return s }
go
func (s *JobProcessDetails) SetNumberOfRejectedThings(v int64) *JobProcessDetails { s.NumberOfRejectedThings = &v return s }
[ "func", "(", "s", "*", "JobProcessDetails", ")", "SetNumberOfRejectedThings", "(", "v", "int64", ")", "*", "JobProcessDetails", "{", "s", ".", "NumberOfRejectedThings", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetNumberOfRejectedThings sets the NumberOfRejectedThings field's value.
[ "SetNumberOfRejectedThings", "sets", "the", "NumberOfRejectedThings", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L26321-L26324
1,407
aws/aws-sdk-go
service/iot/api.go
SetNumberOfRemovedThings
func (s *JobProcessDetails) SetNumberOfRemovedThings(v int64) *JobProcessDetails { s.NumberOfRemovedThings = &v return s }
go
func (s *JobProcessDetails) SetNumberOfRemovedThings(v int64) *JobProcessDetails { s.NumberOfRemovedThings = &v return s }
[ "func", "(", "s", "*", "JobProcessDetails", ")", "SetNumberOfRemovedThings", "(", "v", "int64", ")", "*", "JobProcessDetails", "{", "s", ".", "NumberOfRemovedThings", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetNumberOfRemovedThings sets the NumberOfRemovedThings field's value.
[ "SetNumberOfRemovedThings", "sets", "the", "NumberOfRemovedThings", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L26327-L26330
1,408
aws/aws-sdk-go
service/iot/api.go
SetNumberOfTimedOutThings
func (s *JobProcessDetails) SetNumberOfTimedOutThings(v int64) *JobProcessDetails { s.NumberOfTimedOutThings = &v return s }
go
func (s *JobProcessDetails) SetNumberOfTimedOutThings(v int64) *JobProcessDetails { s.NumberOfTimedOutThings = &v return s }
[ "func", "(", "s", "*", "JobProcessDetails", ")", "SetNumberOfTimedOutThings", "(", "v", "int64", ")", "*", "JobProcessDetails", "{", "s", ".", "NumberOfTimedOutThings", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetNumberOfTimedOutThings sets the NumberOfTimedOutThings field's value.
[ "SetNumberOfTimedOutThings", "sets", "the", "NumberOfTimedOutThings", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L26339-L26342
1,409
aws/aws-sdk-go
service/iot/api.go
SetProcessingTargets
func (s *JobProcessDetails) SetProcessingTargets(v []*string) *JobProcessDetails { s.ProcessingTargets = v return s }
go
func (s *JobProcessDetails) SetProcessingTargets(v []*string) *JobProcessDetails { s.ProcessingTargets = v return s }
[ "func", "(", "s", "*", "JobProcessDetails", ")", "SetProcessingTargets", "(", "v", "[", "]", "*", "string", ")", "*", "JobProcessDetails", "{", "s", ".", "ProcessingTargets", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetProcessingTargets sets the ProcessingTargets field's value.
[ "SetProcessingTargets", "sets", "the", "ProcessingTargets", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L26345-L26348
1,410
aws/aws-sdk-go
service/iot/api.go
SetActiveViolations
func (s *ListActiveViolationsOutput) SetActiveViolations(v []*ActiveViolation) *ListActiveViolationsOutput { s.ActiveViolations = v return s }
go
func (s *ListActiveViolationsOutput) SetActiveViolations(v []*ActiveViolation) *ListActiveViolationsOutput { s.ActiveViolations = v return s }
[ "func", "(", "s", "*", "ListActiveViolationsOutput", ")", "SetActiveViolations", "(", "v", "[", "]", "*", "ActiveViolation", ")", "*", "ListActiveViolationsOutput", "{", "s", ".", "ActiveViolations", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetActiveViolations sets the ActiveViolations field's value.
[ "SetActiveViolations", "sets", "the", "ActiveViolations", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L26668-L26671
1,411
aws/aws-sdk-go
service/iot/api.go
SetAuthorizers
func (s *ListAuthorizersOutput) SetAuthorizers(v []*AuthorizerSummary) *ListAuthorizersOutput { s.Authorizers = v return s }
go
func (s *ListAuthorizersOutput) SetAuthorizers(v []*AuthorizerSummary) *ListAuthorizersOutput { s.Authorizers = v return s }
[ "func", "(", "s", "*", "ListAuthorizersOutput", ")", "SetAuthorizers", "(", "v", "[", "]", "*", "AuthorizerSummary", ")", "*", "ListAuthorizersOutput", "{", "s", ".", "Authorizers", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetAuthorizers sets the Authorizers field's value.
[ "SetAuthorizers", "sets", "the", "Authorizers", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L27129-L27132
1,412
aws/aws-sdk-go
service/iot/api.go
SetBillingGroups
func (s *ListBillingGroupsOutput) SetBillingGroups(v []*GroupNameAndArn) *ListBillingGroupsOutput { s.BillingGroups = v return s }
go
func (s *ListBillingGroupsOutput) SetBillingGroups(v []*GroupNameAndArn) *ListBillingGroupsOutput { s.BillingGroups = v return s }
[ "func", "(", "s", "*", "ListBillingGroupsOutput", ")", "SetBillingGroups", "(", "v", "[", "]", "*", "GroupNameAndArn", ")", "*", "ListBillingGroupsOutput", "{", "s", ".", "BillingGroups", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetBillingGroups sets the BillingGroups field's value.
[ "SetBillingGroups", "sets", "the", "BillingGroups", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L27219-L27222
1,413
aws/aws-sdk-go
service/iot/api.go
SetIndexNames
func (s *ListIndicesOutput) SetIndexNames(v []*string) *ListIndicesOutput { s.IndexNames = v return s }
go
func (s *ListIndicesOutput) SetIndexNames(v []*string) *ListIndicesOutput { s.IndexNames = v return s }
[ "func", "(", "s", "*", "ListIndicesOutput", ")", "SetIndexNames", "(", "v", "[", "]", "*", "string", ")", "*", "ListIndicesOutput", "{", "s", ".", "IndexNames", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetIndexNames sets the IndexNames field's value.
[ "SetIndexNames", "sets", "the", "IndexNames", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L27584-L27587
1,414
aws/aws-sdk-go
service/iot/api.go
SetOtaUpdates
func (s *ListOTAUpdatesOutput) SetOtaUpdates(v []*OTAUpdateSummary) *ListOTAUpdatesOutput { s.OtaUpdates = v return s }
go
func (s *ListOTAUpdatesOutput) SetOtaUpdates(v []*OTAUpdateSummary) *ListOTAUpdatesOutput { s.OtaUpdates = v return s }
[ "func", "(", "s", "*", "ListOTAUpdatesOutput", ")", "SetOtaUpdates", "(", "v", "[", "]", "*", "OTAUpdateSummary", ")", "*", "ListOTAUpdatesOutput", "{", "s", ".", "OtaUpdates", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetOtaUpdates sets the OtaUpdates field's value.
[ "SetOtaUpdates", "sets", "the", "OtaUpdates", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L28011-L28014
1,415
aws/aws-sdk-go
service/iot/api.go
SetOutgoingCertificates
func (s *ListOutgoingCertificatesOutput) SetOutgoingCertificates(v []*OutgoingCertificate) *ListOutgoingCertificatesOutput { s.OutgoingCertificates = v return s }
go
func (s *ListOutgoingCertificatesOutput) SetOutgoingCertificates(v []*OutgoingCertificate) *ListOutgoingCertificatesOutput { s.OutgoingCertificates = v return s }
[ "func", "(", "s", "*", "ListOutgoingCertificatesOutput", ")", "SetOutgoingCertificates", "(", "v", "[", "]", "*", "OutgoingCertificate", ")", "*", "ListOutgoingCertificatesOutput", "{", "s", ".", "OutgoingCertificates", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetOutgoingCertificates sets the OutgoingCertificates field's value.
[ "SetOutgoingCertificates", "sets", "the", "OutgoingCertificates", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L28100-L28103
1,416
aws/aws-sdk-go
service/iot/api.go
SetPolicyVersions
func (s *ListPolicyVersionsOutput) SetPolicyVersions(v []*PolicyVersion) *ListPolicyVersionsOutput { s.PolicyVersions = v return s }
go
func (s *ListPolicyVersionsOutput) SetPolicyVersions(v []*PolicyVersion) *ListPolicyVersionsOutput { s.PolicyVersions = v return s }
[ "func", "(", "s", "*", "ListPolicyVersionsOutput", ")", "SetPolicyVersions", "(", "v", "[", "]", "*", "PolicyVersion", ")", "*", "ListPolicyVersionsOutput", "{", "s", ".", "PolicyVersions", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetPolicyVersions sets the PolicyVersions field's value.
[ "SetPolicyVersions", "sets", "the", "PolicyVersions", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L28363-L28366
1,417
aws/aws-sdk-go
service/iot/api.go
SetRoleAliases
func (s *ListRoleAliasesOutput) SetRoleAliases(v []*string) *ListRoleAliasesOutput { s.RoleAliases = v return s }
go
func (s *ListRoleAliasesOutput) SetRoleAliases(v []*string) *ListRoleAliasesOutput { s.RoleAliases = v return s }
[ "func", "(", "s", "*", "ListRoleAliasesOutput", ")", "SetRoleAliases", "(", "v", "[", "]", "*", "string", ")", "*", "ListRoleAliasesOutput", "{", "s", ".", "RoleAliases", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetRoleAliases sets the RoleAliases field's value.
[ "SetRoleAliases", "sets", "the", "RoleAliases", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L28647-L28650
1,418
aws/aws-sdk-go
service/iot/api.go
SetScheduledAudits
func (s *ListScheduledAuditsOutput) SetScheduledAudits(v []*ScheduledAuditMetadata) *ListScheduledAuditsOutput { s.ScheduledAudits = v return s }
go
func (s *ListScheduledAuditsOutput) SetScheduledAudits(v []*ScheduledAuditMetadata) *ListScheduledAuditsOutput { s.ScheduledAudits = v return s }
[ "func", "(", "s", "*", "ListScheduledAuditsOutput", ")", "SetScheduledAudits", "(", "v", "[", "]", "*", "ScheduledAuditMetadata", ")", "*", "ListScheduledAuditsOutput", "{", "s", ".", "ScheduledAudits", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetScheduledAudits sets the ScheduledAudits field's value.
[ "SetScheduledAudits", "sets", "the", "ScheduledAudits", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L28725-L28728
1,419
aws/aws-sdk-go
service/iot/api.go
SetSecurityProfileTargetMappings
func (s *ListSecurityProfilesForTargetOutput) SetSecurityProfileTargetMappings(v []*SecurityProfileTargetMapping) *ListSecurityProfilesForTargetOutput { s.SecurityProfileTargetMappings = v return s }
go
func (s *ListSecurityProfilesForTargetOutput) SetSecurityProfileTargetMappings(v []*SecurityProfileTargetMapping) *ListSecurityProfilesForTargetOutput { s.SecurityProfileTargetMappings = v return s }
[ "func", "(", "s", "*", "ListSecurityProfilesForTargetOutput", ")", "SetSecurityProfileTargetMappings", "(", "v", "[", "]", "*", "SecurityProfileTargetMapping", ")", "*", "ListSecurityProfilesForTargetOutput", "{", "s", ".", "SecurityProfileTargetMappings", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSecurityProfileTargetMappings sets the SecurityProfileTargetMappings field's value.
[ "SetSecurityProfileTargetMappings", "sets", "the", "SecurityProfileTargetMappings", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L28827-L28830
1,420
aws/aws-sdk-go
service/iot/api.go
SetSecurityProfileIdentifiers
func (s *ListSecurityProfilesOutput) SetSecurityProfileIdentifiers(v []*SecurityProfileIdentifier) *ListSecurityProfilesOutput { s.SecurityProfileIdentifiers = v return s }
go
func (s *ListSecurityProfilesOutput) SetSecurityProfileIdentifiers(v []*SecurityProfileIdentifier) *ListSecurityProfilesOutput { s.SecurityProfileIdentifiers = v return s }
[ "func", "(", "s", "*", "ListSecurityProfilesOutput", ")", "SetSecurityProfileIdentifiers", "(", "v", "[", "]", "*", "SecurityProfileIdentifier", ")", "*", "ListSecurityProfilesOutput", "{", "s", ".", "SecurityProfileIdentifiers", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSecurityProfileIdentifiers sets the SecurityProfileIdentifiers field's value.
[ "SetSecurityProfileIdentifiers", "sets", "the", "SecurityProfileIdentifiers", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L28905-L28908
1,421
aws/aws-sdk-go
service/iot/api.go
SetSecurityProfileTargets
func (s *ListTargetsForSecurityProfileOutput) SetSecurityProfileTargets(v []*SecurityProfileTarget) *ListTargetsForSecurityProfileOutput { s.SecurityProfileTargets = v return s }
go
func (s *ListTargetsForSecurityProfileOutput) SetSecurityProfileTargets(v []*SecurityProfileTarget) *ListTargetsForSecurityProfileOutput { s.SecurityProfileTargets = v return s }
[ "func", "(", "s", "*", "ListTargetsForSecurityProfileOutput", ")", "SetSecurityProfileTargets", "(", "v", "[", "]", "*", "SecurityProfileTarget", ")", "*", "ListTargetsForSecurityProfileOutput", "{", "s", ".", "SecurityProfileTargets", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSecurityProfileTargets sets the SecurityProfileTargets field's value.
[ "SetSecurityProfileTargets", "sets", "the", "SecurityProfileTargets", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L29260-L29263
1,422
aws/aws-sdk-go
service/iot/api.go
SetParentGroup
func (s *ListThingGroupsInput) SetParentGroup(v string) *ListThingGroupsInput { s.ParentGroup = &v return s }
go
func (s *ListThingGroupsInput) SetParentGroup(v string) *ListThingGroupsInput { s.ParentGroup = &v return s }
[ "func", "(", "s", "*", "ListThingGroupsInput", ")", "SetParentGroup", "(", "v", "string", ")", "*", "ListThingGroupsInput", "{", "s", ".", "ParentGroup", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetParentGroup sets the ParentGroup field's value.
[ "SetParentGroup", "sets", "the", "ParentGroup", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L29427-L29430
1,423
aws/aws-sdk-go
service/iot/api.go
SetResourceLinks
func (s *ListThingRegistrationTaskReportsOutput) SetResourceLinks(v []*string) *ListThingRegistrationTaskReportsOutput { s.ResourceLinks = v return s }
go
func (s *ListThingRegistrationTaskReportsOutput) SetResourceLinks(v []*string) *ListThingRegistrationTaskReportsOutput { s.ResourceLinks = v return s }
[ "func", "(", "s", "*", "ListThingRegistrationTaskReportsOutput", ")", "SetResourceLinks", "(", "v", "[", "]", "*", "string", ")", "*", "ListThingRegistrationTaskReportsOutput", "{", "s", ".", "ResourceLinks", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetResourceLinks sets the ResourceLinks field's value.
[ "SetResourceLinks", "sets", "the", "ResourceLinks", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L29650-L29653
1,424
aws/aws-sdk-go
service/iot/api.go
SetThingTypes
func (s *ListThingTypesOutput) SetThingTypes(v []*ThingTypeDefinition) *ListThingTypesOutput { s.ThingTypes = v return s }
go
func (s *ListThingTypesOutput) SetThingTypes(v []*ThingTypeDefinition) *ListThingTypesOutput { s.ThingTypes = v return s }
[ "func", "(", "s", "*", "ListThingTypesOutput", ")", "SetThingTypes", "(", "v", "[", "]", "*", "ThingTypeDefinition", ")", "*", "ListThingTypesOutput", "{", "s", ".", "ThingTypes", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetThingTypes sets the ThingTypes field's value.
[ "SetThingTypes", "sets", "the", "ThingTypes", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L29829-L29832
1,425
aws/aws-sdk-go
service/iot/api.go
SetLogTargetConfigurations
func (s *ListV2LoggingLevelsOutput) SetLogTargetConfigurations(v []*LogTargetConfiguration) *ListV2LoggingLevelsOutput { s.LogTargetConfigurations = v return s }
go
func (s *ListV2LoggingLevelsOutput) SetLogTargetConfigurations(v []*LogTargetConfiguration) *ListV2LoggingLevelsOutput { s.LogTargetConfigurations = v return s }
[ "func", "(", "s", "*", "ListV2LoggingLevelsOutput", ")", "SetLogTargetConfigurations", "(", "v", "[", "]", "*", "LogTargetConfiguration", ")", "*", "ListV2LoggingLevelsOutput", "{", "s", ".", "LogTargetConfigurations", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetLogTargetConfigurations sets the LogTargetConfigurations field's value.
[ "SetLogTargetConfigurations", "sets", "the", "LogTargetConfigurations", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L30317-L30320
1,426
aws/aws-sdk-go
service/iot/api.go
SetViolationEvents
func (s *ListViolationEventsOutput) SetViolationEvents(v []*ViolationEvent) *ListViolationEventsOutput { s.ViolationEvents = v return s }
go
func (s *ListViolationEventsOutput) SetViolationEvents(v []*ViolationEvent) *ListViolationEventsOutput { s.ViolationEvents = v return s }
[ "func", "(", "s", "*", "ListViolationEventsOutput", ")", "SetViolationEvents", "(", "v", "[", "]", "*", "ViolationEvent", ")", "*", "ListViolationEventsOutput", "{", "s", ".", "ViolationEvents", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetViolationEvents sets the ViolationEvents field's value.
[ "SetViolationEvents", "sets", "the", "ViolationEvents", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L30456-L30459
1,427
aws/aws-sdk-go
service/iot/api.go
SetCidrs
func (s *MetricValue) SetCidrs(v []*string) *MetricValue { s.Cidrs = v return s }
go
func (s *MetricValue) SetCidrs(v []*string) *MetricValue { s.Cidrs = v return s }
[ "func", "(", "s", "*", "MetricValue", ")", "SetCidrs", "(", "v", "[", "]", "*", "string", ")", "*", "MetricValue", "{", "s", ".", "Cidrs", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetCidrs sets the Cidrs field's value.
[ "SetCidrs", "sets", "the", "Cidrs", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L30618-L30621
1,428
aws/aws-sdk-go
service/iot/api.go
SetCodeSigning
func (s *OTAUpdateFile) SetCodeSigning(v *CodeSigning) *OTAUpdateFile { s.CodeSigning = v return s }
go
func (s *OTAUpdateFile) SetCodeSigning(v *CodeSigning) *OTAUpdateFile { s.CodeSigning = v return s }
[ "func", "(", "s", "*", "OTAUpdateFile", ")", "SetCodeSigning", "(", "v", "*", "CodeSigning", ")", "*", "OTAUpdateFile", "{", "s", ".", "CodeSigning", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetCodeSigning sets the CodeSigning field's value.
[ "SetCodeSigning", "sets", "the", "CodeSigning", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L30734-L30737
1,429
aws/aws-sdk-go
service/iot/api.go
SetFileLocation
func (s *OTAUpdateFile) SetFileLocation(v *FileLocation) *OTAUpdateFile { s.FileLocation = v return s }
go
func (s *OTAUpdateFile) SetFileLocation(v *FileLocation) *OTAUpdateFile { s.FileLocation = v return s }
[ "func", "(", "s", "*", "OTAUpdateFile", ")", "SetFileLocation", "(", "v", "*", "FileLocation", ")", "*", "OTAUpdateFile", "{", "s", ".", "FileLocation", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetFileLocation sets the FileLocation field's value.
[ "SetFileLocation", "sets", "the", "FileLocation", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L30740-L30743
1,430
aws/aws-sdk-go
service/iot/api.go
SetFileVersion
func (s *OTAUpdateFile) SetFileVersion(v string) *OTAUpdateFile { s.FileVersion = &v return s }
go
func (s *OTAUpdateFile) SetFileVersion(v string) *OTAUpdateFile { s.FileVersion = &v return s }
[ "func", "(", "s", "*", "OTAUpdateFile", ")", "SetFileVersion", "(", "v", "string", ")", "*", "OTAUpdateFile", "{", "s", ".", "FileVersion", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetFileVersion sets the FileVersion field's value.
[ "SetFileVersion", "sets", "the", "FileVersion", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L30752-L30755
1,431
aws/aws-sdk-go
service/iot/api.go
SetErrorInfo
func (s *OTAUpdateInfo) SetErrorInfo(v *ErrorInfo) *OTAUpdateInfo { s.ErrorInfo = v return s }
go
func (s *OTAUpdateInfo) SetErrorInfo(v *ErrorInfo) *OTAUpdateInfo { s.ErrorInfo = v return s }
[ "func", "(", "s", "*", "OTAUpdateInfo", ")", "SetErrorInfo", "(", "v", "*", "ErrorInfo", ")", "*", "OTAUpdateInfo", "{", "s", ".", "ErrorInfo", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetErrorInfo sets the ErrorInfo field's value.
[ "SetErrorInfo", "sets", "the", "ErrorInfo", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L30856-L30859
1,432
aws/aws-sdk-go
service/iot/api.go
SetOtaUpdateFiles
func (s *OTAUpdateInfo) SetOtaUpdateFiles(v []*OTAUpdateFile) *OTAUpdateInfo { s.OtaUpdateFiles = v return s }
go
func (s *OTAUpdateInfo) SetOtaUpdateFiles(v []*OTAUpdateFile) *OTAUpdateInfo { s.OtaUpdateFiles = v return s }
[ "func", "(", "s", "*", "OTAUpdateInfo", ")", "SetOtaUpdateFiles", "(", "v", "[", "]", "*", "OTAUpdateFile", ")", "*", "OTAUpdateInfo", "{", "s", ".", "OtaUpdateFiles", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetOtaUpdateFiles sets the OtaUpdateFiles field's value.
[ "SetOtaUpdateFiles", "sets", "the", "OtaUpdateFiles", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L30874-L30877
1,433
aws/aws-sdk-go
service/iot/api.go
SetTransferredTo
func (s *OutgoingCertificate) SetTransferredTo(v string) *OutgoingCertificate { s.TransferredTo = &v return s }
go
func (s *OutgoingCertificate) SetTransferredTo(v string) *OutgoingCertificate { s.TransferredTo = &v return s }
[ "func", "(", "s", "*", "OutgoingCertificate", ")", "SetTransferredTo", "(", "v", "string", ")", "*", "OutgoingCertificate", "{", "s", ".", "TransferredTo", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetTransferredTo sets the TransferredTo field's value.
[ "SetTransferredTo", "sets", "the", "TransferredTo", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L31009-L31012
1,434
aws/aws-sdk-go
service/iot/api.go
SetExpiresInSec
func (s *PresignedUrlConfig) SetExpiresInSec(v int64) *PresignedUrlConfig { s.ExpiresInSec = &v return s }
go
func (s *PresignedUrlConfig) SetExpiresInSec(v int64) *PresignedUrlConfig { s.ExpiresInSec = &v return s }
[ "func", "(", "s", "*", "PresignedUrlConfig", ")", "SetExpiresInSec", "(", "v", "int64", ")", "*", "PresignedUrlConfig", "{", "s", ".", "ExpiresInSec", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetExpiresInSec sets the ExpiresInSec field's value.
[ "SetExpiresInSec", "sets", "the", "ExpiresInSec", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L31177-L31180
1,435
aws/aws-sdk-go
service/iot/api.go
SetNumberOfNotifiedThings
func (s *RateIncreaseCriteria) SetNumberOfNotifiedThings(v int64) *RateIncreaseCriteria { s.NumberOfNotifiedThings = &v return s }
go
func (s *RateIncreaseCriteria) SetNumberOfNotifiedThings(v int64) *RateIncreaseCriteria { s.NumberOfNotifiedThings = &v return s }
[ "func", "(", "s", "*", "RateIncreaseCriteria", ")", "SetNumberOfNotifiedThings", "(", "v", "int64", ")", "*", "RateIncreaseCriteria", "{", "s", ".", "NumberOfNotifiedThings", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetNumberOfNotifiedThings sets the NumberOfNotifiedThings field's value.
[ "SetNumberOfNotifiedThings", "sets", "the", "NumberOfNotifiedThings", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L31269-L31272
1,436
aws/aws-sdk-go
service/iot/api.go
SetAllowAutoRegistration
func (s *RegisterCACertificateInput) SetAllowAutoRegistration(v bool) *RegisterCACertificateInput { s.AllowAutoRegistration = &v return s }
go
func (s *RegisterCACertificateInput) SetAllowAutoRegistration(v bool) *RegisterCACertificateInput { s.AllowAutoRegistration = &v return s }
[ "func", "(", "s", "*", "RegisterCACertificateInput", ")", "SetAllowAutoRegistration", "(", "v", "bool", ")", "*", "RegisterCACertificateInput", "{", "s", ".", "AllowAutoRegistration", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetAllowAutoRegistration sets the AllowAutoRegistration field's value.
[ "SetAllowAutoRegistration", "sets", "the", "AllowAutoRegistration", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L31342-L31345
1,437
aws/aws-sdk-go
service/iot/api.go
SetCaCertificate
func (s *RegisterCACertificateInput) SetCaCertificate(v string) *RegisterCACertificateInput { s.CaCertificate = &v return s }
go
func (s *RegisterCACertificateInput) SetCaCertificate(v string) *RegisterCACertificateInput { s.CaCertificate = &v return s }
[ "func", "(", "s", "*", "RegisterCACertificateInput", ")", "SetCaCertificate", "(", "v", "string", ")", "*", "RegisterCACertificateInput", "{", "s", ".", "CaCertificate", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetCaCertificate sets the CaCertificate field's value.
[ "SetCaCertificate", "sets", "the", "CaCertificate", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L31348-L31351
1,438
aws/aws-sdk-go
service/iot/api.go
SetVerificationCertificate
func (s *RegisterCACertificateInput) SetVerificationCertificate(v string) *RegisterCACertificateInput { s.VerificationCertificate = &v return s }
go
func (s *RegisterCACertificateInput) SetVerificationCertificate(v string) *RegisterCACertificateInput { s.VerificationCertificate = &v return s }
[ "func", "(", "s", "*", "RegisterCACertificateInput", ")", "SetVerificationCertificate", "(", "v", "string", ")", "*", "RegisterCACertificateInput", "{", "s", ".", "VerificationCertificate", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetVerificationCertificate sets the VerificationCertificate field's value.
[ "SetVerificationCertificate", "sets", "the", "VerificationCertificate", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L31366-L31369
1,439
aws/aws-sdk-go
service/iot/api.go
SetCaCertificatePem
func (s *RegisterCertificateInput) SetCaCertificatePem(v string) *RegisterCertificateInput { s.CaCertificatePem = &v return s }
go
func (s *RegisterCertificateInput) SetCaCertificatePem(v string) *RegisterCertificateInput { s.CaCertificatePem = &v return s }
[ "func", "(", "s", "*", "RegisterCertificateInput", ")", "SetCaCertificatePem", "(", "v", "string", ")", "*", "RegisterCertificateInput", "{", "s", ".", "CaCertificatePem", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetCaCertificatePem sets the CaCertificatePem field's value.
[ "SetCaCertificatePem", "sets", "the", "CaCertificatePem", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L31455-L31458
1,440
aws/aws-sdk-go
service/iot/api.go
SetDeviceCertificateId
func (s *ResourceIdentifier) SetDeviceCertificateId(v string) *ResourceIdentifier { s.DeviceCertificateId = &v return s }
go
func (s *ResourceIdentifier) SetDeviceCertificateId(v string) *ResourceIdentifier { s.DeviceCertificateId = &v return s }
[ "func", "(", "s", "*", "ResourceIdentifier", ")", "SetDeviceCertificateId", "(", "v", "string", ")", "*", "ResourceIdentifier", "{", "s", ".", "DeviceCertificateId", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDeviceCertificateId sets the DeviceCertificateId field's value.
[ "SetDeviceCertificateId", "sets", "the", "DeviceCertificateId", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L32116-L32119
1,441
aws/aws-sdk-go
service/iot/api.go
SetPolicyVersionIdentifier
func (s *ResourceIdentifier) SetPolicyVersionIdentifier(v *PolicyVersionIdentifier) *ResourceIdentifier { s.PolicyVersionIdentifier = v return s }
go
func (s *ResourceIdentifier) SetPolicyVersionIdentifier(v *PolicyVersionIdentifier) *ResourceIdentifier { s.PolicyVersionIdentifier = v return s }
[ "func", "(", "s", "*", "ResourceIdentifier", ")", "SetPolicyVersionIdentifier", "(", "v", "*", "PolicyVersionIdentifier", ")", "*", "ResourceIdentifier", "{", "s", ".", "PolicyVersionIdentifier", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetPolicyVersionIdentifier sets the PolicyVersionIdentifier field's value.
[ "SetPolicyVersionIdentifier", "sets", "the", "PolicyVersionIdentifier", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L32122-L32125
1,442
aws/aws-sdk-go
service/iot/api.go
SetCannedAcl
func (s *S3Action) SetCannedAcl(v string) *S3Action { s.CannedAcl = &v return s }
go
func (s *S3Action) SetCannedAcl(v string) *S3Action { s.CannedAcl = &v return s }
[ "func", "(", "s", "*", "S3Action", ")", "SetCannedAcl", "(", "v", "string", ")", "*", "S3Action", "{", "s", ".", "CannedAcl", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetCannedAcl sets the CannedAcl field's value.
[ "SetCannedAcl", "sets", "the", "CannedAcl", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L32265-L32268
1,443
aws/aws-sdk-go
service/iot/api.go
SetSecurityProfileIdentifier
func (s *SecurityProfileTargetMapping) SetSecurityProfileIdentifier(v *SecurityProfileIdentifier) *SecurityProfileTargetMapping { s.SecurityProfileIdentifier = v return s }
go
func (s *SecurityProfileTargetMapping) SetSecurityProfileIdentifier(v *SecurityProfileIdentifier) *SecurityProfileTargetMapping { s.SecurityProfileIdentifier = v return s }
[ "func", "(", "s", "*", "SecurityProfileTargetMapping", ")", "SetSecurityProfileIdentifier", "(", "v", "*", "SecurityProfileIdentifier", ")", "*", "SecurityProfileTargetMapping", "{", "s", ".", "SecurityProfileIdentifier", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSecurityProfileIdentifier sets the SecurityProfileIdentifier field's value.
[ "SetSecurityProfileIdentifier", "sets", "the", "SecurityProfileIdentifier", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L32719-L32722
1,444
aws/aws-sdk-go
service/iot/api.go
SetLoggingOptionsPayload
func (s *SetLoggingOptionsInput) SetLoggingOptionsPayload(v *LoggingOptionsPayload) *SetLoggingOptionsInput { s.LoggingOptionsPayload = v return s }
go
func (s *SetLoggingOptionsInput) SetLoggingOptionsPayload(v *LoggingOptionsPayload) *SetLoggingOptionsInput { s.LoggingOptionsPayload = v return s }
[ "func", "(", "s", "*", "SetLoggingOptionsInput", ")", "SetLoggingOptionsPayload", "(", "v", "*", "LoggingOptionsPayload", ")", "*", "SetLoggingOptionsInput", "{", "s", ".", "LoggingOptionsPayload", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetLoggingOptionsPayload sets the LoggingOptionsPayload field's value.
[ "SetLoggingOptionsPayload", "sets", "the", "LoggingOptionsPayload", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L32915-L32918
1,445
aws/aws-sdk-go
service/iot/api.go
SetCertificatePathOnDevice
func (s *SigningProfileParameter) SetCertificatePathOnDevice(v string) *SigningProfileParameter { s.CertificatePathOnDevice = &v return s }
go
func (s *SigningProfileParameter) SetCertificatePathOnDevice(v string) *SigningProfileParameter { s.CertificatePathOnDevice = &v return s }
[ "func", "(", "s", "*", "SigningProfileParameter", ")", "SetCertificatePathOnDevice", "(", "v", "string", ")", "*", "SigningProfileParameter", "{", "s", ".", "CertificatePathOnDevice", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetCertificatePathOnDevice sets the CertificatePathOnDevice field's value.
[ "SetCertificatePathOnDevice", "sets", "the", "CertificatePathOnDevice", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L33091-L33094
1,446
aws/aws-sdk-go
service/iot/api.go
SetUseBase64
func (s *SqsAction) SetUseBase64(v bool) *SqsAction { s.UseBase64 = &v return s }
go
func (s *SqsAction) SetUseBase64(v bool) *SqsAction { s.UseBase64 = &v return s }
[ "func", "(", "s", "*", "SqsAction", ")", "SetUseBase64", "(", "v", "bool", ")", "*", "SqsAction", "{", "s", ".", "UseBase64", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetUseBase64 sets the UseBase64 field's value.
[ "SetUseBase64", "sets", "the", "UseBase64", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L33226-L33229
1,447
aws/aws-sdk-go
service/iot/api.go
SetSigningProfileName
func (s *StartSigningJobParameter) SetSigningProfileName(v string) *StartSigningJobParameter { s.SigningProfileName = &v return s }
go
func (s *StartSigningJobParameter) SetSigningProfileName(v string) *StartSigningJobParameter { s.SigningProfileName = &v return s }
[ "func", "(", "s", "*", "StartSigningJobParameter", ")", "SetSigningProfileName", "(", "v", "string", ")", "*", "StartSigningJobParameter", "{", "s", ".", "SigningProfileName", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetSigningProfileName sets the SigningProfileName field's value.
[ "SetSigningProfileName", "sets", "the", "SigningProfileName", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L33341-L33344
1,448
aws/aws-sdk-go
service/iot/api.go
SetSigningProfileParameter
func (s *StartSigningJobParameter) SetSigningProfileParameter(v *SigningProfileParameter) *StartSigningJobParameter { s.SigningProfileParameter = v return s }
go
func (s *StartSigningJobParameter) SetSigningProfileParameter(v *SigningProfileParameter) *StartSigningJobParameter { s.SigningProfileParameter = v return s }
[ "func", "(", "s", "*", "StartSigningJobParameter", ")", "SetSigningProfileParameter", "(", "v", "*", "SigningProfileParameter", ")", "*", "StartSigningJobParameter", "{", "s", ".", "SigningProfileParameter", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSigningProfileParameter sets the SigningProfileParameter field's value.
[ "SetSigningProfileParameter", "sets", "the", "SigningProfileParameter", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L33347-L33350
1,449
aws/aws-sdk-go
service/iot/api.go
SetExecutionNamePrefix
func (s *StepFunctionsAction) SetExecutionNamePrefix(v string) *StepFunctionsAction { s.ExecutionNamePrefix = &v return s }
go
func (s *StepFunctionsAction) SetExecutionNamePrefix(v string) *StepFunctionsAction { s.ExecutionNamePrefix = &v return s }
[ "func", "(", "s", "*", "StepFunctionsAction", ")", "SetExecutionNamePrefix", "(", "v", "string", ")", "*", "StepFunctionsAction", "{", "s", ".", "ExecutionNamePrefix", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetExecutionNamePrefix sets the ExecutionNamePrefix field's value.
[ "SetExecutionNamePrefix", "sets", "the", "ExecutionNamePrefix", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L33571-L33574
1,450
aws/aws-sdk-go
service/iot/api.go
SetStateMachineName
func (s *StepFunctionsAction) SetStateMachineName(v string) *StepFunctionsAction { s.StateMachineName = &v return s }
go
func (s *StepFunctionsAction) SetStateMachineName(v string) *StepFunctionsAction { s.StateMachineName = &v return s }
[ "func", "(", "s", "*", "StepFunctionsAction", ")", "SetStateMachineName", "(", "v", "string", ")", "*", "StepFunctionsAction", "{", "s", ".", "StateMachineName", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetStateMachineName sets the StateMachineName field's value.
[ "SetStateMachineName", "sets", "the", "StateMachineName", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L33583-L33586
1,451
aws/aws-sdk-go
service/iot/api.go
SetCanceledChecks
func (s *TaskStatistics) SetCanceledChecks(v int64) *TaskStatistics { s.CanceledChecks = &v return s }
go
func (s *TaskStatistics) SetCanceledChecks(v int64) *TaskStatistics { s.CanceledChecks = &v return s }
[ "func", "(", "s", "*", "TaskStatistics", ")", "SetCanceledChecks", "(", "v", "int64", ")", "*", "TaskStatistics", "{", "s", ".", "CanceledChecks", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetCanceledChecks sets the CanceledChecks field's value.
[ "SetCanceledChecks", "sets", "the", "CanceledChecks", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34011-L34014
1,452
aws/aws-sdk-go
service/iot/api.go
SetCompliantChecks
func (s *TaskStatistics) SetCompliantChecks(v int64) *TaskStatistics { s.CompliantChecks = &v return s }
go
func (s *TaskStatistics) SetCompliantChecks(v int64) *TaskStatistics { s.CompliantChecks = &v return s }
[ "func", "(", "s", "*", "TaskStatistics", ")", "SetCompliantChecks", "(", "v", "int64", ")", "*", "TaskStatistics", "{", "s", ".", "CompliantChecks", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetCompliantChecks sets the CompliantChecks field's value.
[ "SetCompliantChecks", "sets", "the", "CompliantChecks", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34017-L34020
1,453
aws/aws-sdk-go
service/iot/api.go
SetFailedChecks
func (s *TaskStatistics) SetFailedChecks(v int64) *TaskStatistics { s.FailedChecks = &v return s }
go
func (s *TaskStatistics) SetFailedChecks(v int64) *TaskStatistics { s.FailedChecks = &v return s }
[ "func", "(", "s", "*", "TaskStatistics", ")", "SetFailedChecks", "(", "v", "int64", ")", "*", "TaskStatistics", "{", "s", ".", "FailedChecks", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetFailedChecks sets the FailedChecks field's value.
[ "SetFailedChecks", "sets", "the", "FailedChecks", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34023-L34026
1,454
aws/aws-sdk-go
service/iot/api.go
SetInProgressChecks
func (s *TaskStatistics) SetInProgressChecks(v int64) *TaskStatistics { s.InProgressChecks = &v return s }
go
func (s *TaskStatistics) SetInProgressChecks(v int64) *TaskStatistics { s.InProgressChecks = &v return s }
[ "func", "(", "s", "*", "TaskStatistics", ")", "SetInProgressChecks", "(", "v", "int64", ")", "*", "TaskStatistics", "{", "s", ".", "InProgressChecks", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetInProgressChecks sets the InProgressChecks field's value.
[ "SetInProgressChecks", "sets", "the", "InProgressChecks", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34029-L34032
1,455
aws/aws-sdk-go
service/iot/api.go
SetNonCompliantChecks
func (s *TaskStatistics) SetNonCompliantChecks(v int64) *TaskStatistics { s.NonCompliantChecks = &v return s }
go
func (s *TaskStatistics) SetNonCompliantChecks(v int64) *TaskStatistics { s.NonCompliantChecks = &v return s }
[ "func", "(", "s", "*", "TaskStatistics", ")", "SetNonCompliantChecks", "(", "v", "int64", ")", "*", "TaskStatistics", "{", "s", ".", "NonCompliantChecks", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetNonCompliantChecks sets the NonCompliantChecks field's value.
[ "SetNonCompliantChecks", "sets", "the", "NonCompliantChecks", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34035-L34038
1,456
aws/aws-sdk-go
service/iot/api.go
SetTotalChecks
func (s *TaskStatistics) SetTotalChecks(v int64) *TaskStatistics { s.TotalChecks = &v return s }
go
func (s *TaskStatistics) SetTotalChecks(v int64) *TaskStatistics { s.TotalChecks = &v return s }
[ "func", "(", "s", "*", "TaskStatistics", ")", "SetTotalChecks", "(", "v", "int64", ")", "*", "TaskStatistics", "{", "s", ".", "TotalChecks", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetTotalChecks sets the TotalChecks field's value.
[ "SetTotalChecks", "sets", "the", "TotalChecks", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34041-L34044
1,457
aws/aws-sdk-go
service/iot/api.go
SetWaitingForDataCollectionChecks
func (s *TaskStatistics) SetWaitingForDataCollectionChecks(v int64) *TaskStatistics { s.WaitingForDataCollectionChecks = &v return s }
go
func (s *TaskStatistics) SetWaitingForDataCollectionChecks(v int64) *TaskStatistics { s.WaitingForDataCollectionChecks = &v return s }
[ "func", "(", "s", "*", "TaskStatistics", ")", "SetWaitingForDataCollectionChecks", "(", "v", "int64", ")", "*", "TaskStatistics", "{", "s", ".", "WaitingForDataCollectionChecks", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetWaitingForDataCollectionChecks sets the WaitingForDataCollectionChecks field's value.
[ "SetWaitingForDataCollectionChecks", "sets", "the", "WaitingForDataCollectionChecks", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34047-L34050
1,458
aws/aws-sdk-go
service/iot/api.go
SetAuthInfos
func (s *TestAuthorizationInput) SetAuthInfos(v []*AuthInfo) *TestAuthorizationInput { s.AuthInfos = v return s }
go
func (s *TestAuthorizationInput) SetAuthInfos(v []*AuthInfo) *TestAuthorizationInput { s.AuthInfos = v return s }
[ "func", "(", "s", "*", "TestAuthorizationInput", ")", "SetAuthInfos", "(", "v", "[", "]", "*", "AuthInfo", ")", "*", "TestAuthorizationInput", "{", "s", ".", "AuthInfos", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetAuthInfos sets the AuthInfos field's value.
[ "SetAuthInfos", "sets", "the", "AuthInfos", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34106-L34109
1,459
aws/aws-sdk-go
service/iot/api.go
SetPolicyNamesToAdd
func (s *TestAuthorizationInput) SetPolicyNamesToAdd(v []*string) *TestAuthorizationInput { s.PolicyNamesToAdd = v return s }
go
func (s *TestAuthorizationInput) SetPolicyNamesToAdd(v []*string) *TestAuthorizationInput { s.PolicyNamesToAdd = v return s }
[ "func", "(", "s", "*", "TestAuthorizationInput", ")", "SetPolicyNamesToAdd", "(", "v", "[", "]", "*", "string", ")", "*", "TestAuthorizationInput", "{", "s", ".", "PolicyNamesToAdd", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetPolicyNamesToAdd sets the PolicyNamesToAdd field's value.
[ "SetPolicyNamesToAdd", "sets", "the", "PolicyNamesToAdd", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34124-L34127
1,460
aws/aws-sdk-go
service/iot/api.go
SetPolicyNamesToSkip
func (s *TestAuthorizationInput) SetPolicyNamesToSkip(v []*string) *TestAuthorizationInput { s.PolicyNamesToSkip = v return s }
go
func (s *TestAuthorizationInput) SetPolicyNamesToSkip(v []*string) *TestAuthorizationInput { s.PolicyNamesToSkip = v return s }
[ "func", "(", "s", "*", "TestAuthorizationInput", ")", "SetPolicyNamesToSkip", "(", "v", "[", "]", "*", "string", ")", "*", "TestAuthorizationInput", "{", "s", ".", "PolicyNamesToSkip", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetPolicyNamesToSkip sets the PolicyNamesToSkip field's value.
[ "SetPolicyNamesToSkip", "sets", "the", "PolicyNamesToSkip", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34130-L34133
1,461
aws/aws-sdk-go
service/iot/api.go
SetAuthResults
func (s *TestAuthorizationOutput) SetAuthResults(v []*AuthResult) *TestAuthorizationOutput { s.AuthResults = v return s }
go
func (s *TestAuthorizationOutput) SetAuthResults(v []*AuthResult) *TestAuthorizationOutput { s.AuthResults = v return s }
[ "func", "(", "s", "*", "TestAuthorizationOutput", ")", "SetAuthResults", "(", "v", "[", "]", "*", "AuthResult", ")", "*", "TestAuthorizationOutput", "{", "s", ".", "AuthResults", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetAuthResults sets the AuthResults field's value.
[ "SetAuthResults", "sets", "the", "AuthResults", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34159-L34162
1,462
aws/aws-sdk-go
service/iot/api.go
SetTokenSignature
func (s *TestInvokeAuthorizerInput) SetTokenSignature(v string) *TestInvokeAuthorizerInput { s.TokenSignature = &v return s }
go
func (s *TestInvokeAuthorizerInput) SetTokenSignature(v string) *TestInvokeAuthorizerInput { s.TokenSignature = &v return s }
[ "func", "(", "s", "*", "TestInvokeAuthorizerInput", ")", "SetTokenSignature", "(", "v", "string", ")", "*", "TestInvokeAuthorizerInput", "{", "s", ".", "TokenSignature", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetTokenSignature sets the TokenSignature field's value.
[ "SetTokenSignature", "sets", "the", "TokenSignature", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34235-L34238
1,463
aws/aws-sdk-go
service/iot/api.go
SetDisconnectAfterInSeconds
func (s *TestInvokeAuthorizerOutput) SetDisconnectAfterInSeconds(v int64) *TestInvokeAuthorizerOutput { s.DisconnectAfterInSeconds = &v return s }
go
func (s *TestInvokeAuthorizerOutput) SetDisconnectAfterInSeconds(v int64) *TestInvokeAuthorizerOutput { s.DisconnectAfterInSeconds = &v return s }
[ "func", "(", "s", "*", "TestInvokeAuthorizerOutput", ")", "SetDisconnectAfterInSeconds", "(", "v", "int64", ")", "*", "TestInvokeAuthorizerOutput", "{", "s", ".", "DisconnectAfterInSeconds", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDisconnectAfterInSeconds sets the DisconnectAfterInSeconds field's value.
[ "SetDisconnectAfterInSeconds", "sets", "the", "DisconnectAfterInSeconds", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34270-L34273
1,464
aws/aws-sdk-go
service/iot/api.go
SetIsAuthenticated
func (s *TestInvokeAuthorizerOutput) SetIsAuthenticated(v bool) *TestInvokeAuthorizerOutput { s.IsAuthenticated = &v return s }
go
func (s *TestInvokeAuthorizerOutput) SetIsAuthenticated(v bool) *TestInvokeAuthorizerOutput { s.IsAuthenticated = &v return s }
[ "func", "(", "s", "*", "TestInvokeAuthorizerOutput", ")", "SetIsAuthenticated", "(", "v", "bool", ")", "*", "TestInvokeAuthorizerOutput", "{", "s", ".", "IsAuthenticated", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetIsAuthenticated sets the IsAuthenticated field's value.
[ "SetIsAuthenticated", "sets", "the", "IsAuthenticated", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34276-L34279
1,465
aws/aws-sdk-go
service/iot/api.go
SetPolicyDocuments
func (s *TestInvokeAuthorizerOutput) SetPolicyDocuments(v []*string) *TestInvokeAuthorizerOutput { s.PolicyDocuments = v return s }
go
func (s *TestInvokeAuthorizerOutput) SetPolicyDocuments(v []*string) *TestInvokeAuthorizerOutput { s.PolicyDocuments = v return s }
[ "func", "(", "s", "*", "TestInvokeAuthorizerOutput", ")", "SetPolicyDocuments", "(", "v", "[", "]", "*", "string", ")", "*", "TestInvokeAuthorizerOutput", "{", "s", ".", "PolicyDocuments", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetPolicyDocuments sets the PolicyDocuments field's value.
[ "SetPolicyDocuments", "sets", "the", "PolicyDocuments", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34282-L34285
1,466
aws/aws-sdk-go
service/iot/api.go
SetRefreshAfterInSeconds
func (s *TestInvokeAuthorizerOutput) SetRefreshAfterInSeconds(v int64) *TestInvokeAuthorizerOutput { s.RefreshAfterInSeconds = &v return s }
go
func (s *TestInvokeAuthorizerOutput) SetRefreshAfterInSeconds(v int64) *TestInvokeAuthorizerOutput { s.RefreshAfterInSeconds = &v return s }
[ "func", "(", "s", "*", "TestInvokeAuthorizerOutput", ")", "SetRefreshAfterInSeconds", "(", "v", "int64", ")", "*", "TestInvokeAuthorizerOutput", "{", "s", ".", "RefreshAfterInSeconds", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetRefreshAfterInSeconds sets the RefreshAfterInSeconds field's value.
[ "SetRefreshAfterInSeconds", "sets", "the", "RefreshAfterInSeconds", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34294-L34297
1,467
aws/aws-sdk-go
service/iot/api.go
SetConnected
func (s *ThingConnectivity) SetConnected(v bool) *ThingConnectivity { s.Connected = &v return s }
go
func (s *ThingConnectivity) SetConnected(v bool) *ThingConnectivity { s.Connected = &v return s }
[ "func", "(", "s", "*", "ThingConnectivity", ")", "SetConnected", "(", "v", "bool", ")", "*", "ThingConnectivity", "{", "s", ".", "Connected", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetConnected sets the Connected field's value.
[ "SetConnected", "sets", "the", "Connected", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34385-L34388
1,468
aws/aws-sdk-go
service/iot/api.go
SetShadow
func (s *ThingDocument) SetShadow(v string) *ThingDocument { s.Shadow = &v return s }
go
func (s *ThingDocument) SetShadow(v string) *ThingDocument { s.Shadow = &v return s }
[ "func", "(", "s", "*", "ThingDocument", ")", "SetShadow", "(", "v", "string", ")", "*", "ThingDocument", "{", "s", ".", "Shadow", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetShadow sets the Shadow field's value.
[ "SetShadow", "sets", "the", "Shadow", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34445-L34448
1,469
aws/aws-sdk-go
service/iot/api.go
SetThingGroupNames
func (s *ThingDocument) SetThingGroupNames(v []*string) *ThingDocument { s.ThingGroupNames = v return s }
go
func (s *ThingDocument) SetThingGroupNames(v []*string) *ThingDocument { s.ThingGroupNames = v return s }
[ "func", "(", "s", "*", "ThingDocument", ")", "SetThingGroupNames", "(", "v", "[", "]", "*", "string", ")", "*", "ThingDocument", "{", "s", ".", "ThingGroupNames", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetThingGroupNames sets the ThingGroupNames field's value.
[ "SetThingGroupNames", "sets", "the", "ThingGroupNames", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34451-L34454
1,470
aws/aws-sdk-go
service/iot/api.go
SetParentGroupNames
func (s *ThingGroupDocument) SetParentGroupNames(v []*string) *ThingGroupDocument { s.ParentGroupNames = v return s }
go
func (s *ThingGroupDocument) SetParentGroupNames(v []*string) *ThingGroupDocument { s.ParentGroupNames = v return s }
[ "func", "(", "s", "*", "ThingGroupDocument", ")", "SetParentGroupNames", "(", "v", "[", "]", "*", "string", ")", "*", "ThingGroupDocument", "{", "s", ".", "ParentGroupNames", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetParentGroupNames sets the ParentGroupNames field's value.
[ "SetParentGroupNames", "sets", "the", "ParentGroupNames", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34511-L34514
1,471
aws/aws-sdk-go
service/iot/api.go
SetThingGroupIndexingMode
func (s *ThingGroupIndexingConfiguration) SetThingGroupIndexingMode(v string) *ThingGroupIndexingConfiguration { s.ThingGroupIndexingMode = &v return s }
go
func (s *ThingGroupIndexingConfiguration) SetThingGroupIndexingMode(v string) *ThingGroupIndexingConfiguration { s.ThingGroupIndexingMode = &v return s }
[ "func", "(", "s", "*", "ThingGroupIndexingConfiguration", ")", "SetThingGroupIndexingMode", "(", "v", "string", ")", "*", "ThingGroupIndexingConfiguration", "{", "s", ".", "ThingGroupIndexingMode", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetThingGroupIndexingMode sets the ThingGroupIndexingMode field's value.
[ "SetThingGroupIndexingMode", "sets", "the", "ThingGroupIndexingMode", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34568-L34571
1,472
aws/aws-sdk-go
service/iot/api.go
SetRootToParentThingGroups
func (s *ThingGroupMetadata) SetRootToParentThingGroups(v []*GroupNameAndArn) *ThingGroupMetadata { s.RootToParentThingGroups = v return s }
go
func (s *ThingGroupMetadata) SetRootToParentThingGroups(v []*GroupNameAndArn) *ThingGroupMetadata { s.RootToParentThingGroups = v return s }
[ "func", "(", "s", "*", "ThingGroupMetadata", ")", "SetRootToParentThingGroups", "(", "v", "[", "]", "*", "GroupNameAndArn", ")", "*", "ThingGroupMetadata", "{", "s", ".", "RootToParentThingGroups", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetRootToParentThingGroups sets the RootToParentThingGroups field's value.
[ "SetRootToParentThingGroups", "sets", "the", "RootToParentThingGroups", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34610-L34613
1,473
aws/aws-sdk-go
service/iot/api.go
SetThingConnectivityIndexingMode
func (s *ThingIndexingConfiguration) SetThingConnectivityIndexingMode(v string) *ThingIndexingConfiguration { s.ThingConnectivityIndexingMode = &v return s }
go
func (s *ThingIndexingConfiguration) SetThingConnectivityIndexingMode(v string) *ThingIndexingConfiguration { s.ThingConnectivityIndexingMode = &v return s }
[ "func", "(", "s", "*", "ThingIndexingConfiguration", ")", "SetThingConnectivityIndexingMode", "(", "v", "string", ")", "*", "ThingIndexingConfiguration", "{", "s", ".", "ThingConnectivityIndexingMode", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetThingConnectivityIndexingMode sets the ThingConnectivityIndexingMode field's value.
[ "SetThingConnectivityIndexingMode", "sets", "the", "ThingConnectivityIndexingMode", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34698-L34701
1,474
aws/aws-sdk-go
service/iot/api.go
SetThingIndexingMode
func (s *ThingIndexingConfiguration) SetThingIndexingMode(v string) *ThingIndexingConfiguration { s.ThingIndexingMode = &v return s }
go
func (s *ThingIndexingConfiguration) SetThingIndexingMode(v string) *ThingIndexingConfiguration { s.ThingIndexingMode = &v return s }
[ "func", "(", "s", "*", "ThingIndexingConfiguration", ")", "SetThingIndexingMode", "(", "v", "string", ")", "*", "ThingIndexingConfiguration", "{", "s", ".", "ThingIndexingMode", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetThingIndexingMode sets the ThingIndexingMode field's value.
[ "SetThingIndexingMode", "sets", "the", "ThingIndexingMode", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34704-L34707
1,475
aws/aws-sdk-go
service/iot/api.go
SetDeprecated
func (s *ThingTypeMetadata) SetDeprecated(v bool) *ThingTypeMetadata { s.Deprecated = &v return s }
go
func (s *ThingTypeMetadata) SetDeprecated(v bool) *ThingTypeMetadata { s.Deprecated = &v return s }
[ "func", "(", "s", "*", "ThingTypeMetadata", ")", "SetDeprecated", "(", "v", "bool", ")", "*", "ThingTypeMetadata", "{", "s", ".", "Deprecated", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDeprecated sets the Deprecated field's value.
[ "SetDeprecated", "sets", "the", "Deprecated", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34796-L34799
1,476
aws/aws-sdk-go
service/iot/api.go
SetSearchableAttributes
func (s *ThingTypeProperties) SetSearchableAttributes(v []*string) *ThingTypeProperties { s.SearchableAttributes = v return s }
go
func (s *ThingTypeProperties) SetSearchableAttributes(v []*string) *ThingTypeProperties { s.SearchableAttributes = v return s }
[ "func", "(", "s", "*", "ThingTypeProperties", ")", "SetSearchableAttributes", "(", "v", "[", "]", "*", "string", ")", "*", "ThingTypeProperties", "{", "s", ".", "SearchableAttributes", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSearchableAttributes sets the SearchableAttributes field's value.
[ "SetSearchableAttributes", "sets", "the", "SearchableAttributes", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34830-L34833
1,477
aws/aws-sdk-go
service/iot/api.go
SetThingTypeDescription
func (s *ThingTypeProperties) SetThingTypeDescription(v string) *ThingTypeProperties { s.ThingTypeDescription = &v return s }
go
func (s *ThingTypeProperties) SetThingTypeDescription(v string) *ThingTypeProperties { s.ThingTypeDescription = &v return s }
[ "func", "(", "s", "*", "ThingTypeProperties", ")", "SetThingTypeDescription", "(", "v", "string", ")", "*", "ThingTypeProperties", "{", "s", ".", "ThingTypeDescription", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetThingTypeDescription sets the ThingTypeDescription field's value.
[ "SetThingTypeDescription", "sets", "the", "ThingTypeDescription", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34836-L34839
1,478
aws/aws-sdk-go
service/iot/api.go
SetInProgressTimeoutInMinutes
func (s *TimeoutConfig) SetInProgressTimeoutInMinutes(v int64) *TimeoutConfig { s.InProgressTimeoutInMinutes = &v return s }
go
func (s *TimeoutConfig) SetInProgressTimeoutInMinutes(v int64) *TimeoutConfig { s.InProgressTimeoutInMinutes = &v return s }
[ "func", "(", "s", "*", "TimeoutConfig", ")", "SetInProgressTimeoutInMinutes", "(", "v", "int64", ")", "*", "TimeoutConfig", "{", "s", ".", "InProgressTimeoutInMinutes", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetInProgressTimeoutInMinutes sets the InProgressTimeoutInMinutes field's value.
[ "SetInProgressTimeoutInMinutes", "sets", "the", "InProgressTimeoutInMinutes", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L34868-L34871
1,479
aws/aws-sdk-go
service/iot/api.go
SetTopicPattern
func (s *TopicRuleListItem) SetTopicPattern(v string) *TopicRuleListItem { s.TopicPattern = &v return s }
go
func (s *TopicRuleListItem) SetTopicPattern(v string) *TopicRuleListItem { s.TopicPattern = &v return s }
[ "func", "(", "s", "*", "TopicRuleListItem", ")", "SetTopicPattern", "(", "v", "string", ")", "*", "TopicRuleListItem", "{", "s", ".", "TopicPattern", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetTopicPattern sets the TopicPattern field's value.
[ "SetTopicPattern", "sets", "the", "TopicPattern", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L35016-L35019
1,480
aws/aws-sdk-go
service/iot/api.go
SetTargetAwsAccount
func (s *TransferCertificateInput) SetTargetAwsAccount(v string) *TransferCertificateInput { s.TargetAwsAccount = &v return s }
go
func (s *TransferCertificateInput) SetTargetAwsAccount(v string) *TransferCertificateInput { s.TargetAwsAccount = &v return s }
[ "func", "(", "s", "*", "TransferCertificateInput", ")", "SetTargetAwsAccount", "(", "v", "string", ")", "*", "TransferCertificateInput", "{", "s", ".", "TargetAwsAccount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetTargetAwsAccount sets the TargetAwsAccount field's value.
[ "SetTargetAwsAccount", "sets", "the", "TargetAwsAccount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L35185-L35188
1,481
aws/aws-sdk-go
service/iot/api.go
SetTransferredCertificateArn
func (s *TransferCertificateOutput) SetTransferredCertificateArn(v string) *TransferCertificateOutput { s.TransferredCertificateArn = &v return s }
go
func (s *TransferCertificateOutput) SetTransferredCertificateArn(v string) *TransferCertificateOutput { s.TransferredCertificateArn = &v return s }
[ "func", "(", "s", "*", "TransferCertificateOutput", ")", "SetTransferredCertificateArn", "(", "v", "string", ")", "*", "TransferCertificateOutput", "{", "s", ".", "TransferredCertificateArn", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetTransferredCertificateArn sets the TransferredCertificateArn field's value.
[ "SetTransferredCertificateArn", "sets", "the", "TransferredCertificateArn", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L35215-L35218
1,482
aws/aws-sdk-go
service/iot/api.go
SetAcceptDate
func (s *TransferData) SetAcceptDate(v time.Time) *TransferData { s.AcceptDate = &v return s }
go
func (s *TransferData) SetAcceptDate(v time.Time) *TransferData { s.AcceptDate = &v return s }
[ "func", "(", "s", "*", "TransferData", ")", "SetAcceptDate", "(", "v", "time", ".", "Time", ")", "*", "TransferData", "{", "s", ".", "AcceptDate", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetAcceptDate sets the AcceptDate field's value.
[ "SetAcceptDate", "sets", "the", "AcceptDate", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L35251-L35254
1,483
aws/aws-sdk-go
service/iot/api.go
SetRejectDate
func (s *TransferData) SetRejectDate(v time.Time) *TransferData { s.RejectDate = &v return s }
go
func (s *TransferData) SetRejectDate(v time.Time) *TransferData { s.RejectDate = &v return s }
[ "func", "(", "s", "*", "TransferData", ")", "SetRejectDate", "(", "v", "time", ".", "Time", ")", "*", "TransferData", "{", "s", ".", "RejectDate", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetRejectDate sets the RejectDate field's value.
[ "SetRejectDate", "sets", "the", "RejectDate", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L35257-L35260
1,484
aws/aws-sdk-go
service/iot/api.go
SetNewAutoRegistrationStatus
func (s *UpdateCACertificateInput) SetNewAutoRegistrationStatus(v string) *UpdateCACertificateInput { s.NewAutoRegistrationStatus = &v return s }
go
func (s *UpdateCACertificateInput) SetNewAutoRegistrationStatus(v string) *UpdateCACertificateInput { s.NewAutoRegistrationStatus = &v return s }
[ "func", "(", "s", "*", "UpdateCACertificateInput", ")", "SetNewAutoRegistrationStatus", "(", "v", "string", ")", "*", "UpdateCACertificateInput", "{", "s", ".", "NewAutoRegistrationStatus", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetNewAutoRegistrationStatus sets the NewAutoRegistrationStatus field's value.
[ "SetNewAutoRegistrationStatus", "sets", "the", "NewAutoRegistrationStatus", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L35704-L35707
1,485
aws/aws-sdk-go
service/iot/api.go
SetRemoveAutoRegistration
func (s *UpdateCACertificateInput) SetRemoveAutoRegistration(v bool) *UpdateCACertificateInput { s.RemoveAutoRegistration = &v return s }
go
func (s *UpdateCACertificateInput) SetRemoveAutoRegistration(v bool) *UpdateCACertificateInput { s.RemoveAutoRegistration = &v return s }
[ "func", "(", "s", "*", "UpdateCACertificateInput", ")", "SetRemoveAutoRegistration", "(", "v", "bool", ")", "*", "UpdateCACertificateInput", "{", "s", ".", "RemoveAutoRegistration", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetRemoveAutoRegistration sets the RemoveAutoRegistration field's value.
[ "SetRemoveAutoRegistration", "sets", "the", "RemoveAutoRegistration", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L35722-L35725
1,486
aws/aws-sdk-go
service/iot/api.go
SetDeleteAdditionalMetricsToRetain
func (s *UpdateSecurityProfileInput) SetDeleteAdditionalMetricsToRetain(v bool) *UpdateSecurityProfileInput { s.DeleteAdditionalMetricsToRetain = &v return s }
go
func (s *UpdateSecurityProfileInput) SetDeleteAdditionalMetricsToRetain(v bool) *UpdateSecurityProfileInput { s.DeleteAdditionalMetricsToRetain = &v return s }
[ "func", "(", "s", "*", "UpdateSecurityProfileInput", ")", "SetDeleteAdditionalMetricsToRetain", "(", "v", "bool", ")", "*", "UpdateSecurityProfileInput", "{", "s", ".", "DeleteAdditionalMetricsToRetain", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDeleteAdditionalMetricsToRetain sets the DeleteAdditionalMetricsToRetain field's value.
[ "SetDeleteAdditionalMetricsToRetain", "sets", "the", "DeleteAdditionalMetricsToRetain", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L36479-L36482
1,487
aws/aws-sdk-go
service/iot/api.go
SetDeleteAlertTargets
func (s *UpdateSecurityProfileInput) SetDeleteAlertTargets(v bool) *UpdateSecurityProfileInput { s.DeleteAlertTargets = &v return s }
go
func (s *UpdateSecurityProfileInput) SetDeleteAlertTargets(v bool) *UpdateSecurityProfileInput { s.DeleteAlertTargets = &v return s }
[ "func", "(", "s", "*", "UpdateSecurityProfileInput", ")", "SetDeleteAlertTargets", "(", "v", "bool", ")", "*", "UpdateSecurityProfileInput", "{", "s", ".", "DeleteAlertTargets", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDeleteAlertTargets sets the DeleteAlertTargets field's value.
[ "SetDeleteAlertTargets", "sets", "the", "DeleteAlertTargets", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L36485-L36488
1,488
aws/aws-sdk-go
service/iot/api.go
SetDeleteBehaviors
func (s *UpdateSecurityProfileInput) SetDeleteBehaviors(v bool) *UpdateSecurityProfileInput { s.DeleteBehaviors = &v return s }
go
func (s *UpdateSecurityProfileInput) SetDeleteBehaviors(v bool) *UpdateSecurityProfileInput { s.DeleteBehaviors = &v return s }
[ "func", "(", "s", "*", "UpdateSecurityProfileInput", ")", "SetDeleteBehaviors", "(", "v", "bool", ")", "*", "UpdateSecurityProfileInput", "{", "s", ".", "DeleteBehaviors", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDeleteBehaviors sets the DeleteBehaviors field's value.
[ "SetDeleteBehaviors", "sets", "the", "DeleteBehaviors", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L36491-L36494
1,489
aws/aws-sdk-go
service/iot/api.go
SetThingGroupsToAdd
func (s *UpdateThingGroupsForThingInput) SetThingGroupsToAdd(v []*string) *UpdateThingGroupsForThingInput { s.ThingGroupsToAdd = v return s }
go
func (s *UpdateThingGroupsForThingInput) SetThingGroupsToAdd(v []*string) *UpdateThingGroupsForThingInput { s.ThingGroupsToAdd = v return s }
[ "func", "(", "s", "*", "UpdateThingGroupsForThingInput", ")", "SetThingGroupsToAdd", "(", "v", "[", "]", "*", "string", ")", "*", "UpdateThingGroupsForThingInput", "{", "s", ".", "ThingGroupsToAdd", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetThingGroupsToAdd sets the ThingGroupsToAdd field's value.
[ "SetThingGroupsToAdd", "sets", "the", "ThingGroupsToAdd", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L36884-L36887
1,490
aws/aws-sdk-go
service/iot/api.go
SetThingGroupsToRemove
func (s *UpdateThingGroupsForThingInput) SetThingGroupsToRemove(v []*string) *UpdateThingGroupsForThingInput { s.ThingGroupsToRemove = v return s }
go
func (s *UpdateThingGroupsForThingInput) SetThingGroupsToRemove(v []*string) *UpdateThingGroupsForThingInput { s.ThingGroupsToRemove = v return s }
[ "func", "(", "s", "*", "UpdateThingGroupsForThingInput", ")", "SetThingGroupsToRemove", "(", "v", "[", "]", "*", "string", ")", "*", "UpdateThingGroupsForThingInput", "{", "s", ".", "ThingGroupsToRemove", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetThingGroupsToRemove sets the ThingGroupsToRemove field's value.
[ "SetThingGroupsToRemove", "sets", "the", "ThingGroupsToRemove", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L36890-L36893
1,491
aws/aws-sdk-go
service/iot/api.go
SetRemoveThingType
func (s *UpdateThingInput) SetRemoveThingType(v bool) *UpdateThingInput { s.RemoveThingType = &v return s }
go
func (s *UpdateThingInput) SetRemoveThingType(v bool) *UpdateThingInput { s.RemoveThingType = &v return s }
[ "func", "(", "s", "*", "UpdateThingInput", ")", "SetRemoveThingType", "(", "v", "bool", ")", "*", "UpdateThingInput", "{", "s", ".", "RemoveThingType", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetRemoveThingType sets the RemoveThingType field's value.
[ "SetRemoveThingType", "sets", "the", "RemoveThingType", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L36986-L36989
1,492
aws/aws-sdk-go
service/iot/api.go
SetViolationEventTime
func (s *ViolationEvent) SetViolationEventTime(v time.Time) *ViolationEvent { s.ViolationEventTime = &v return s }
go
func (s *ViolationEvent) SetViolationEventTime(v time.Time) *ViolationEvent { s.ViolationEventTime = &v return s }
[ "func", "(", "s", "*", "ViolationEvent", ")", "SetViolationEventTime", "(", "v", "time", ".", "Time", ")", "*", "ViolationEvent", "{", "s", ".", "ViolationEventTime", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetViolationEventTime sets the ViolationEventTime field's value.
[ "SetViolationEventTime", "sets", "the", "ViolationEventTime", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L37184-L37187
1,493
aws/aws-sdk-go
service/iot/api.go
SetViolationEventType
func (s *ViolationEvent) SetViolationEventType(v string) *ViolationEvent { s.ViolationEventType = &v return s }
go
func (s *ViolationEvent) SetViolationEventType(v string) *ViolationEvent { s.ViolationEventType = &v return s }
[ "func", "(", "s", "*", "ViolationEvent", ")", "SetViolationEventType", "(", "v", "string", ")", "*", "ViolationEvent", "{", "s", ".", "ViolationEventType", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetViolationEventType sets the ViolationEventType field's value.
[ "SetViolationEventType", "sets", "the", "ViolationEventType", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iot/api.go#L37190-L37193
1,494
aws/aws-sdk-go
example/service/s3/presignURL/client/client.go
loadConfig
func loadConfig() (method Method, serverURL, key, filename string) { var getKey, putKey string flag.StringVar(&getKey, "get", "", "Downloads the object from S3 by the `key`. Writes the object to a file the filename is provided, otherwise writes to stdout.") flag.StringVar(&putKey, "put", "", "Uploads data to S3 at the `key` provided. Uploads the file if filename is provided, otherwise reads from stdin.") flag.StringVar(&serverURL, "s", "http://127.0.0.1:8080", "Required `URL` the client will request presigned S3 operation from.") flag.StringVar(&filename, "f", "", "The `filename` of the file to upload and get from S3.") flag.Parse() var errs Errors if len(serverURL) == 0 { errs = append(errs, fmt.Errorf("server URL required")) } if !((len(getKey) != 0) != (len(putKey) != 0)) { errs = append(errs, fmt.Errorf("either `get` or `put` can be provided, and one of the two is required.")) } if len(getKey) > 0 { method = GetMethod key = getKey } else { method = PutMethod key = putKey } if len(errs) > 0 { fmt.Fprintf(os.Stderr, "Failed to load configuration:%v\n", errs) flag.PrintDefaults() os.Exit(1) } return method, filename, key, serverURL }
go
func loadConfig() (method Method, serverURL, key, filename string) { var getKey, putKey string flag.StringVar(&getKey, "get", "", "Downloads the object from S3 by the `key`. Writes the object to a file the filename is provided, otherwise writes to stdout.") flag.StringVar(&putKey, "put", "", "Uploads data to S3 at the `key` provided. Uploads the file if filename is provided, otherwise reads from stdin.") flag.StringVar(&serverURL, "s", "http://127.0.0.1:8080", "Required `URL` the client will request presigned S3 operation from.") flag.StringVar(&filename, "f", "", "The `filename` of the file to upload and get from S3.") flag.Parse() var errs Errors if len(serverURL) == 0 { errs = append(errs, fmt.Errorf("server URL required")) } if !((len(getKey) != 0) != (len(putKey) != 0)) { errs = append(errs, fmt.Errorf("either `get` or `put` can be provided, and one of the two is required.")) } if len(getKey) > 0 { method = GetMethod key = getKey } else { method = PutMethod key = putKey } if len(errs) > 0 { fmt.Fprintf(os.Stderr, "Failed to load configuration:%v\n", errs) flag.PrintDefaults() os.Exit(1) } return method, filename, key, serverURL }
[ "func", "loadConfig", "(", ")", "(", "method", "Method", ",", "serverURL", ",", "key", ",", "filename", "string", ")", "{", "var", "getKey", ",", "putKey", "string", "\n", "flag", ".", "StringVar", "(", "&", "getKey", ",", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", ")", "\n", "flag", ".", "StringVar", "(", "&", "putKey", ",", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", ")", "\n", "flag", ".", "StringVar", "(", "&", "serverURL", ",", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", ")", "\n", "flag", ".", "StringVar", "(", "&", "filename", ",", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", ")", "\n", "flag", ".", "Parse", "(", ")", "\n\n", "var", "errs", "Errors", "\n\n", "if", "len", "(", "serverURL", ")", "==", "0", "{", "errs", "=", "append", "(", "errs", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ")", ")", "\n", "}", "\n\n", "if", "!", "(", "(", "len", "(", "getKey", ")", "!=", "0", ")", "!=", "(", "len", "(", "putKey", ")", "!=", "0", ")", ")", "{", "errs", "=", "append", "(", "errs", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ")", ")", "\n", "}", "\n\n", "if", "len", "(", "getKey", ")", ">", "0", "{", "method", "=", "GetMethod", "\n", "key", "=", "getKey", "\n", "}", "else", "{", "method", "=", "PutMethod", "\n", "key", "=", "putKey", "\n", "}", "\n\n", "if", "len", "(", "errs", ")", ">", "0", "{", "fmt", ".", "Fprintf", "(", "os", ".", "Stderr", ",", "\"", "\\n", "\"", ",", "errs", ")", "\n", "flag", ".", "PrintDefaults", "(", ")", "\n", "os", ".", "Exit", "(", "1", ")", "\n", "}", "\n\n", "return", "method", ",", "filename", ",", "key", ",", "serverURL", "\n", "}" ]
// loadConfig configures the client based on the command line arguments used.
[ "loadConfig", "configures", "the", "client", "based", "on", "the", "command", "line", "arguments", "used", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/example/service/s3/presignURL/client/client.go#L54-L89
1,495
aws/aws-sdk-go
example/service/s3/presignURL/client/client.go
downloadFile
func downloadFile(serverURL, key, filename string) error { var w *os.File if len(filename) > 0 { f, err := os.Create(filename) if err != nil { return fmt.Errorf("failed to create download file %s, %v", filename, err) } w = f } else { w = os.Stdout } defer w.Close() // Get the presigned URL from the remote service. req, err := getPresignedRequest(serverURL, "GET", key, 0) if err != nil { return fmt.Errorf("failed to get get presigned request, %v", err) } // Gets the file contents with the URL provided by the service. resp, err := http.DefaultClient.Do(req) if err != nil { return fmt.Errorf("failed to do GET request, %v", err) } defer resp.Body.Close() if resp.StatusCode != http.StatusOK { return fmt.Errorf("failed to get S3 object, %d:%s", resp.StatusCode, resp.Status) } if _, err = io.Copy(w, resp.Body); err != nil { return fmt.Errorf("failed to write S3 object, %v", err) } return nil }
go
func downloadFile(serverURL, key, filename string) error { var w *os.File if len(filename) > 0 { f, err := os.Create(filename) if err != nil { return fmt.Errorf("failed to create download file %s, %v", filename, err) } w = f } else { w = os.Stdout } defer w.Close() // Get the presigned URL from the remote service. req, err := getPresignedRequest(serverURL, "GET", key, 0) if err != nil { return fmt.Errorf("failed to get get presigned request, %v", err) } // Gets the file contents with the URL provided by the service. resp, err := http.DefaultClient.Do(req) if err != nil { return fmt.Errorf("failed to do GET request, %v", err) } defer resp.Body.Close() if resp.StatusCode != http.StatusOK { return fmt.Errorf("failed to get S3 object, %d:%s", resp.StatusCode, resp.Status) } if _, err = io.Copy(w, resp.Body); err != nil { return fmt.Errorf("failed to write S3 object, %v", err) } return nil }
[ "func", "downloadFile", "(", "serverURL", ",", "key", ",", "filename", "string", ")", "error", "{", "var", "w", "*", "os", ".", "File", "\n", "if", "len", "(", "filename", ")", ">", "0", "{", "f", ",", "err", ":=", "os", ".", "Create", "(", "filename", ")", "\n", "if", "err", "!=", "nil", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "filename", ",", "err", ")", "\n", "}", "\n", "w", "=", "f", "\n", "}", "else", "{", "w", "=", "os", ".", "Stdout", "\n", "}", "\n", "defer", "w", ".", "Close", "(", ")", "\n\n", "// Get the presigned URL from the remote service.", "req", ",", "err", ":=", "getPresignedRequest", "(", "serverURL", ",", "\"", "\"", ",", "key", ",", "0", ")", "\n", "if", "err", "!=", "nil", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "err", ")", "\n", "}", "\n\n", "// Gets the file contents with the URL provided by the service.", "resp", ",", "err", ":=", "http", ".", "DefaultClient", ".", "Do", "(", "req", ")", "\n", "if", "err", "!=", "nil", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "err", ")", "\n", "}", "\n", "defer", "resp", ".", "Body", ".", "Close", "(", ")", "\n\n", "if", "resp", ".", "StatusCode", "!=", "http", ".", "StatusOK", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "resp", ".", "StatusCode", ",", "resp", ".", "Status", ")", "\n", "}", "\n\n", "if", "_", ",", "err", "=", "io", ".", "Copy", "(", "w", ",", "resp", ".", "Body", ")", ";", "err", "!=", "nil", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "err", ")", "\n", "}", "\n\n", "return", "nil", "\n", "}" ]
// downloadFile will request a URL from the server that the client can download // the content pointed to by "key". The content will be written to the file // pointed to by filename, creating the file if it doesn't exist. If filename // is not set the content will be written to stdout.
[ "downloadFile", "will", "request", "a", "URL", "from", "the", "server", "that", "the", "client", "can", "download", "the", "content", "pointed", "to", "by", "key", ".", "The", "content", "will", "be", "written", "to", "the", "file", "pointed", "to", "by", "filename", "creating", "the", "file", "if", "it", "doesn", "t", "exist", ".", "If", "filename", "is", "not", "set", "the", "content", "will", "be", "written", "to", "stdout", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/example/service/s3/presignURL/client/client.go#L95-L131
1,496
aws/aws-sdk-go
example/service/s3/presignURL/client/client.go
uploadFile
func uploadFile(serverURL, key, filename string) error { var r io.ReadCloser var size int64 if len(filename) > 0 { f, err := os.Open(filename) if err != nil { return fmt.Errorf("failed to open upload file %s, %v", filename, err) } // Get the size of the file so that the constraint of Content-Length // can be included with the presigned URL. This can be used by the // server or client to ensure the content uploaded is of a certain size. // // These constraints can further be expanded to include things like // Content-Type. Additionally constraints such as X-Amz-Content-Sha256 // header set restricting the content of the file to only the content // the client initially made the request with. This prevents the object // from being overwritten or used to upload other unintended content. stat, err := f.Stat() if err != nil { return fmt.Errorf("failed to stat file, %s, %v", filename, err) } size = stat.Size() r = f } else { buf := &bytes.Buffer{} io.Copy(buf, os.Stdin) size = int64(buf.Len()) r = ioutil.NopCloser(buf) } defer r.Close() // Get the Presigned URL from the remote service. Pass in the file's // size if it is known so that the presigned URL returned will be required // to be used with the size of content requested. req, err := getPresignedRequest(serverURL, "PUT", key, size) if err != nil { return fmt.Errorf("failed to get get presigned request, %v", err) } req.Body = r // Upload the file contents to S3. resp, err := http.DefaultClient.Do(req) if err != nil { return fmt.Errorf("failed to do GET request, %v", err) } defer resp.Body.Close() if resp.StatusCode != http.StatusOK { return fmt.Errorf("failed to put S3 object, %d:%s", resp.StatusCode, resp.Status) } return nil }
go
func uploadFile(serverURL, key, filename string) error { var r io.ReadCloser var size int64 if len(filename) > 0 { f, err := os.Open(filename) if err != nil { return fmt.Errorf("failed to open upload file %s, %v", filename, err) } // Get the size of the file so that the constraint of Content-Length // can be included with the presigned URL. This can be used by the // server or client to ensure the content uploaded is of a certain size. // // These constraints can further be expanded to include things like // Content-Type. Additionally constraints such as X-Amz-Content-Sha256 // header set restricting the content of the file to only the content // the client initially made the request with. This prevents the object // from being overwritten or used to upload other unintended content. stat, err := f.Stat() if err != nil { return fmt.Errorf("failed to stat file, %s, %v", filename, err) } size = stat.Size() r = f } else { buf := &bytes.Buffer{} io.Copy(buf, os.Stdin) size = int64(buf.Len()) r = ioutil.NopCloser(buf) } defer r.Close() // Get the Presigned URL from the remote service. Pass in the file's // size if it is known so that the presigned URL returned will be required // to be used with the size of content requested. req, err := getPresignedRequest(serverURL, "PUT", key, size) if err != nil { return fmt.Errorf("failed to get get presigned request, %v", err) } req.Body = r // Upload the file contents to S3. resp, err := http.DefaultClient.Do(req) if err != nil { return fmt.Errorf("failed to do GET request, %v", err) } defer resp.Body.Close() if resp.StatusCode != http.StatusOK { return fmt.Errorf("failed to put S3 object, %d:%s", resp.StatusCode, resp.Status) } return nil }
[ "func", "uploadFile", "(", "serverURL", ",", "key", ",", "filename", "string", ")", "error", "{", "var", "r", "io", ".", "ReadCloser", "\n", "var", "size", "int64", "\n", "if", "len", "(", "filename", ")", ">", "0", "{", "f", ",", "err", ":=", "os", ".", "Open", "(", "filename", ")", "\n", "if", "err", "!=", "nil", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "filename", ",", "err", ")", "\n", "}", "\n\n", "// Get the size of the file so that the constraint of Content-Length", "// can be included with the presigned URL. This can be used by the", "// server or client to ensure the content uploaded is of a certain size.", "//", "// These constraints can further be expanded to include things like", "// Content-Type. Additionally constraints such as X-Amz-Content-Sha256", "// header set restricting the content of the file to only the content", "// the client initially made the request with. This prevents the object", "// from being overwritten or used to upload other unintended content.", "stat", ",", "err", ":=", "f", ".", "Stat", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "filename", ",", "err", ")", "\n", "}", "\n\n", "size", "=", "stat", ".", "Size", "(", ")", "\n", "r", "=", "f", "\n", "}", "else", "{", "buf", ":=", "&", "bytes", ".", "Buffer", "{", "}", "\n", "io", ".", "Copy", "(", "buf", ",", "os", ".", "Stdin", ")", "\n", "size", "=", "int64", "(", "buf", ".", "Len", "(", ")", ")", "\n\n", "r", "=", "ioutil", ".", "NopCloser", "(", "buf", ")", "\n", "}", "\n", "defer", "r", ".", "Close", "(", ")", "\n\n", "// Get the Presigned URL from the remote service. Pass in the file's", "// size if it is known so that the presigned URL returned will be required", "// to be used with the size of content requested.", "req", ",", "err", ":=", "getPresignedRequest", "(", "serverURL", ",", "\"", "\"", ",", "key", ",", "size", ")", "\n", "if", "err", "!=", "nil", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "err", ")", "\n", "}", "\n", "req", ".", "Body", "=", "r", "\n\n", "// Upload the file contents to S3.", "resp", ",", "err", ":=", "http", ".", "DefaultClient", ".", "Do", "(", "req", ")", "\n", "if", "err", "!=", "nil", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "err", ")", "\n", "}", "\n\n", "defer", "resp", ".", "Body", ".", "Close", "(", ")", "\n\n", "if", "resp", ".", "StatusCode", "!=", "http", ".", "StatusOK", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "resp", ".", "StatusCode", ",", "resp", ".", "Status", ")", "\n", "}", "\n\n", "return", "nil", "\n", "}" ]
// uploadFile will request a URL from the service that the client can use to // upload content to. The content will be read from the file pointed to by filename. // If filename is not set the content will be read from stdin.
[ "uploadFile", "will", "request", "a", "URL", "from", "the", "service", "that", "the", "client", "can", "use", "to", "upload", "content", "to", ".", "The", "content", "will", "be", "read", "from", "the", "file", "pointed", "to", "by", "filename", ".", "If", "filename", "is", "not", "set", "the", "content", "will", "be", "read", "from", "stdin", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/example/service/s3/presignURL/client/client.go#L136-L193
1,497
aws/aws-sdk-go
example/service/s3/presignURL/client/client.go
getPresignedRequest
func getPresignedRequest(serverURL, method, key string, contentLen int64) (*http.Request, error) { u := fmt.Sprintf("%s/presign/%s?method=%s&contentLength=%d", serverURL, key, method, contentLen, ) resp, err := http.Get(u) if err != nil { return nil, fmt.Errorf("failed to make request for presigned URL, %v", err) } defer resp.Body.Close() if resp.StatusCode != http.StatusOK { return nil, fmt.Errorf("failed to get valid presign response, %s", resp.Status) } p := PresignResp{} if err := json.NewDecoder(resp.Body).Decode(&p); err != nil { return nil, fmt.Errorf("failed to decode response body, %v", err) } req, err := http.NewRequest(p.Method, p.URL, nil) if err != nil { return nil, fmt.Errorf("failed to build presigned request, %v", err) } for k, vs := range p.Header { for _, v := range vs { req.Header.Add(k, v) } } // Need to ensure that the content length member is set of the HTTP Request // or the request will not be transmitted correctly with a content length // value across the wire. if contLen := req.Header.Get("Content-Length"); len(contLen) > 0 { req.ContentLength, _ = strconv.ParseInt(contLen, 10, 64) } return req, nil }
go
func getPresignedRequest(serverURL, method, key string, contentLen int64) (*http.Request, error) { u := fmt.Sprintf("%s/presign/%s?method=%s&contentLength=%d", serverURL, key, method, contentLen, ) resp, err := http.Get(u) if err != nil { return nil, fmt.Errorf("failed to make request for presigned URL, %v", err) } defer resp.Body.Close() if resp.StatusCode != http.StatusOK { return nil, fmt.Errorf("failed to get valid presign response, %s", resp.Status) } p := PresignResp{} if err := json.NewDecoder(resp.Body).Decode(&p); err != nil { return nil, fmt.Errorf("failed to decode response body, %v", err) } req, err := http.NewRequest(p.Method, p.URL, nil) if err != nil { return nil, fmt.Errorf("failed to build presigned request, %v", err) } for k, vs := range p.Header { for _, v := range vs { req.Header.Add(k, v) } } // Need to ensure that the content length member is set of the HTTP Request // or the request will not be transmitted correctly with a content length // value across the wire. if contLen := req.Header.Get("Content-Length"); len(contLen) > 0 { req.ContentLength, _ = strconv.ParseInt(contLen, 10, 64) } return req, nil }
[ "func", "getPresignedRequest", "(", "serverURL", ",", "method", ",", "key", "string", ",", "contentLen", "int64", ")", "(", "*", "http", ".", "Request", ",", "error", ")", "{", "u", ":=", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "serverURL", ",", "key", ",", "method", ",", "contentLen", ",", ")", "\n\n", "resp", ",", "err", ":=", "http", ".", "Get", "(", "u", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "err", ")", "\n", "}", "\n", "defer", "resp", ".", "Body", ".", "Close", "(", ")", "\n\n", "if", "resp", ".", "StatusCode", "!=", "http", ".", "StatusOK", "{", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "resp", ".", "Status", ")", "\n", "}", "\n\n", "p", ":=", "PresignResp", "{", "}", "\n", "if", "err", ":=", "json", ".", "NewDecoder", "(", "resp", ".", "Body", ")", ".", "Decode", "(", "&", "p", ")", ";", "err", "!=", "nil", "{", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "err", ")", "\n", "}", "\n\n", "req", ",", "err", ":=", "http", ".", "NewRequest", "(", "p", ".", "Method", ",", "p", ".", "URL", ",", "nil", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "err", ")", "\n", "}", "\n\n", "for", "k", ",", "vs", ":=", "range", "p", ".", "Header", "{", "for", "_", ",", "v", ":=", "range", "vs", "{", "req", ".", "Header", ".", "Add", "(", "k", ",", "v", ")", "\n", "}", "\n", "}", "\n", "// Need to ensure that the content length member is set of the HTTP Request", "// or the request will not be transmitted correctly with a content length", "// value across the wire.", "if", "contLen", ":=", "req", ".", "Header", ".", "Get", "(", "\"", "\"", ")", ";", "len", "(", "contLen", ")", ">", "0", "{", "req", ".", "ContentLength", ",", "_", "=", "strconv", ".", "ParseInt", "(", "contLen", ",", "10", ",", "64", ")", "\n", "}", "\n\n", "return", "req", ",", "nil", "\n", "}" ]
// getPresignRequest will request a URL from the service for the content specified // by the key and method. Returns a constructed Request that can be used to // upload or download content with based on the method used. // // If the PUT method is used the request's Body will need to be set on the returned // request value.
[ "getPresignRequest", "will", "request", "a", "URL", "from", "the", "service", "for", "the", "content", "specified", "by", "the", "key", "and", "method", ".", "Returns", "a", "constructed", "Request", "that", "can", "be", "used", "to", "upload", "or", "download", "content", "with", "based", "on", "the", "method", "used", ".", "If", "the", "PUT", "method", "is", "used", "the", "request", "s", "Body", "will", "need", "to", "be", "set", "on", "the", "returned", "request", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/example/service/s3/presignURL/client/client.go#L201-L239
1,498
aws/aws-sdk-go
service/opsworkscm/waiters.go
WaitUntilNodeAssociated
func (c *OpsWorksCM) WaitUntilNodeAssociated(input *DescribeNodeAssociationStatusInput) error { return c.WaitUntilNodeAssociatedWithContext(aws.BackgroundContext(), input) }
go
func (c *OpsWorksCM) WaitUntilNodeAssociated(input *DescribeNodeAssociationStatusInput) error { return c.WaitUntilNodeAssociatedWithContext(aws.BackgroundContext(), input) }
[ "func", "(", "c", "*", "OpsWorksCM", ")", "WaitUntilNodeAssociated", "(", "input", "*", "DescribeNodeAssociationStatusInput", ")", "error", "{", "return", "c", ".", "WaitUntilNodeAssociatedWithContext", "(", "aws", ".", "BackgroundContext", "(", ")", ",", "input", ")", "\n", "}" ]
// WaitUntilNodeAssociated uses the OpsWorksCM API operation // DescribeNodeAssociationStatus to wait for a condition to be met before returning. // If the condition is not met within the max attempt window, an error will // be returned.
[ "WaitUntilNodeAssociated", "uses", "the", "OpsWorksCM", "API", "operation", "DescribeNodeAssociationStatus", "to", "wait", "for", "a", "condition", "to", "be", "met", "before", "returning", ".", "If", "the", "condition", "is", "not", "met", "within", "the", "max", "attempt", "window", "an", "error", "will", "be", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/opsworkscm/waiters.go#L16-L18
1,499
aws/aws-sdk-go
service/xray/api.go
SetConnectionRefusedCount
func (s *BackendConnectionErrors) SetConnectionRefusedCount(v int64) *BackendConnectionErrors { s.ConnectionRefusedCount = &v return s }
go
func (s *BackendConnectionErrors) SetConnectionRefusedCount(v int64) *BackendConnectionErrors { s.ConnectionRefusedCount = &v return s }
[ "func", "(", "s", "*", "BackendConnectionErrors", ")", "SetConnectionRefusedCount", "(", "v", "int64", ")", "*", "BackendConnectionErrors", "{", "s", ".", "ConnectionRefusedCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetConnectionRefusedCount sets the ConnectionRefusedCount field's value.
[ "SetConnectionRefusedCount", "sets", "the", "ConnectionRefusedCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/xray/api.go#L2318-L2321