repo
stringlengths 5
54
| path
stringlengths 4
155
| func_name
stringlengths 1
118
| original_string
stringlengths 52
85.5k
| language
stringclasses 1
value | code
stringlengths 52
85.5k
| code_tokens
sequence | docstring
stringlengths 6
2.61k
| docstring_tokens
sequence | sha
stringlengths 40
40
| url
stringlengths 85
252
| partition
stringclasses 1
value |
---|---|---|---|---|---|---|---|---|---|---|---|
aws/aws-sdk-go | service/glue/api.go | SetS3Encryption | func (s *EncryptionConfiguration) SetS3Encryption(v []*S3Encryption) *EncryptionConfiguration {
s.S3Encryption = v
return s
} | go | func (s *EncryptionConfiguration) SetS3Encryption(v []*S3Encryption) *EncryptionConfiguration {
s.S3Encryption = v
return s
} | [
"func",
"(",
"s",
"*",
"EncryptionConfiguration",
")",
"SetS3Encryption",
"(",
"v",
"[",
"]",
"*",
"S3Encryption",
")",
"*",
"EncryptionConfiguration",
"{",
"s",
".",
"S3Encryption",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetS3Encryption sets the S3Encryption field's value. | [
"SetS3Encryption",
"sets",
"the",
"S3Encryption",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L15762-L15765 | train |
aws/aws-sdk-go | service/glue/api.go | SetMaxConcurrentRuns | func (s *ExecutionProperty) SetMaxConcurrentRuns(v int64) *ExecutionProperty {
s.MaxConcurrentRuns = &v
return s
} | go | func (s *ExecutionProperty) SetMaxConcurrentRuns(v int64) *ExecutionProperty {
s.MaxConcurrentRuns = &v
return s
} | [
"func",
"(",
"s",
"*",
"ExecutionProperty",
")",
"SetMaxConcurrentRuns",
"(",
"v",
"int64",
")",
"*",
"ExecutionProperty",
"{",
"s",
".",
"MaxConcurrentRuns",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMaxConcurrentRuns sets the MaxConcurrentRuns field's value. | [
"SetMaxConcurrentRuns",
"sets",
"the",
"MaxConcurrentRuns",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L15821-L15824 | train |
aws/aws-sdk-go | service/glue/api.go | SetClassifier | func (s *GetClassifierOutput) SetClassifier(v *Classifier) *GetClassifierOutput {
s.Classifier = v
return s
} | go | func (s *GetClassifierOutput) SetClassifier(v *Classifier) *GetClassifierOutput {
s.Classifier = v
return s
} | [
"func",
"(",
"s",
"*",
"GetClassifierOutput",
")",
"SetClassifier",
"(",
"v",
"*",
"Classifier",
")",
"*",
"GetClassifierOutput",
"{",
"s",
".",
"Classifier",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetClassifier sets the Classifier field's value. | [
"SetClassifier",
"sets",
"the",
"Classifier",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L15945-L15948 | train |
aws/aws-sdk-go | service/glue/api.go | SetConnectionList | func (s *GetConnectionsOutput) SetConnectionList(v []*Connection) *GetConnectionsOutput {
s.ConnectionList = v
return s
} | go | func (s *GetConnectionsOutput) SetConnectionList(v []*Connection) *GetConnectionsOutput {
s.ConnectionList = v
return s
} | [
"func",
"(",
"s",
"*",
"GetConnectionsOutput",
")",
"SetConnectionList",
"(",
"v",
"[",
"]",
"*",
"Connection",
")",
"*",
"GetConnectionsOutput",
"{",
"s",
".",
"ConnectionList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetConnectionList sets the ConnectionList field's value. | [
"SetConnectionList",
"sets",
"the",
"ConnectionList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L16255-L16258 | train |
aws/aws-sdk-go | service/glue/api.go | SetCrawlerNameList | func (s *GetCrawlerMetricsInput) SetCrawlerNameList(v []*string) *GetCrawlerMetricsInput {
s.CrawlerNameList = v
return s
} | go | func (s *GetCrawlerMetricsInput) SetCrawlerNameList(v []*string) *GetCrawlerMetricsInput {
s.CrawlerNameList = v
return s
} | [
"func",
"(",
"s",
"*",
"GetCrawlerMetricsInput",
")",
"SetCrawlerNameList",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"GetCrawlerMetricsInput",
"{",
"s",
".",
"CrawlerNameList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCrawlerNameList sets the CrawlerNameList field's value. | [
"SetCrawlerNameList",
"sets",
"the",
"CrawlerNameList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L16344-L16347 | train |
aws/aws-sdk-go | service/glue/api.go | SetCrawlerMetricsList | func (s *GetCrawlerMetricsOutput) SetCrawlerMetricsList(v []*CrawlerMetrics) *GetCrawlerMetricsOutput {
s.CrawlerMetricsList = v
return s
} | go | func (s *GetCrawlerMetricsOutput) SetCrawlerMetricsList(v []*CrawlerMetrics) *GetCrawlerMetricsOutput {
s.CrawlerMetricsList = v
return s
} | [
"func",
"(",
"s",
"*",
"GetCrawlerMetricsOutput",
")",
"SetCrawlerMetricsList",
"(",
"v",
"[",
"]",
"*",
"CrawlerMetrics",
")",
"*",
"GetCrawlerMetricsOutput",
"{",
"s",
".",
"CrawlerMetricsList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCrawlerMetricsList sets the CrawlerMetricsList field's value. | [
"SetCrawlerMetricsList",
"sets",
"the",
"CrawlerMetricsList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L16383-L16386 | train |
aws/aws-sdk-go | service/glue/api.go | SetCrawler | func (s *GetCrawlerOutput) SetCrawler(v *Crawler) *GetCrawlerOutput {
s.Crawler = v
return s
} | go | func (s *GetCrawlerOutput) SetCrawler(v *Crawler) *GetCrawlerOutput {
s.Crawler = v
return s
} | [
"func",
"(",
"s",
"*",
"GetCrawlerOutput",
")",
"SetCrawler",
"(",
"v",
"*",
"Crawler",
")",
"*",
"GetCrawlerOutput",
"{",
"s",
".",
"Crawler",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCrawler sets the Crawler field's value. | [
"SetCrawler",
"sets",
"the",
"Crawler",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L16412-L16415 | train |
aws/aws-sdk-go | service/glue/api.go | SetDatabaseList | func (s *GetDatabasesOutput) SetDatabaseList(v []*Database) *GetDatabasesOutput {
s.DatabaseList = v
return s
} | go | func (s *GetDatabasesOutput) SetDatabaseList(v []*Database) *GetDatabasesOutput {
s.DatabaseList = v
return s
} | [
"func",
"(",
"s",
"*",
"GetDatabasesOutput",
")",
"SetDatabaseList",
"(",
"v",
"[",
"]",
"*",
"Database",
")",
"*",
"GetDatabasesOutput",
"{",
"s",
".",
"DatabaseList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDatabaseList sets the DatabaseList field's value. | [
"SetDatabaseList",
"sets",
"the",
"DatabaseList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L16715-L16718 | train |
aws/aws-sdk-go | service/glue/api.go | SetDevEndpoint | func (s *GetDevEndpointOutput) SetDevEndpoint(v *DevEndpoint) *GetDevEndpointOutput {
s.DevEndpoint = v
return s
} | go | func (s *GetDevEndpointOutput) SetDevEndpoint(v *DevEndpoint) *GetDevEndpointOutput {
s.DevEndpoint = v
return s
} | [
"func",
"(",
"s",
"*",
"GetDevEndpointOutput",
")",
"SetDevEndpoint",
"(",
"v",
"*",
"DevEndpoint",
")",
"*",
"GetDevEndpointOutput",
"{",
"s",
".",
"DevEndpoint",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDevEndpoint sets the DevEndpoint field's value. | [
"SetDevEndpoint",
"sets",
"the",
"DevEndpoint",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L16837-L16840 | train |
aws/aws-sdk-go | service/glue/api.go | SetPredecessorsIncluded | func (s *GetJobRunInput) SetPredecessorsIncluded(v bool) *GetJobRunInput {
s.PredecessorsIncluded = &v
return s
} | go | func (s *GetJobRunInput) SetPredecessorsIncluded(v bool) *GetJobRunInput {
s.PredecessorsIncluded = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetJobRunInput",
")",
"SetPredecessorsIncluded",
"(",
"v",
"bool",
")",
"*",
"GetJobRunInput",
"{",
"s",
".",
"PredecessorsIncluded",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPredecessorsIncluded sets the PredecessorsIncluded field's value. | [
"SetPredecessorsIncluded",
"sets",
"the",
"PredecessorsIncluded",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L17039-L17042 | train |
aws/aws-sdk-go | service/glue/api.go | SetJobRun | func (s *GetJobRunOutput) SetJobRun(v *JobRun) *GetJobRunOutput {
s.JobRun = v
return s
} | go | func (s *GetJobRunOutput) SetJobRun(v *JobRun) *GetJobRunOutput {
s.JobRun = v
return s
} | [
"func",
"(",
"s",
"*",
"GetJobRunOutput",
")",
"SetJobRun",
"(",
"v",
"*",
"JobRun",
")",
"*",
"GetJobRunOutput",
"{",
"s",
".",
"JobRun",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetJobRun sets the JobRun field's value. | [
"SetJobRun",
"sets",
"the",
"JobRun",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L17068-L17071 | train |
aws/aws-sdk-go | service/glue/api.go | SetJobRuns | func (s *GetJobRunsOutput) SetJobRuns(v []*JobRun) *GetJobRunsOutput {
s.JobRuns = v
return s
} | go | func (s *GetJobRunsOutput) SetJobRuns(v []*JobRun) *GetJobRunsOutput {
s.JobRuns = v
return s
} | [
"func",
"(",
"s",
"*",
"GetJobRunsOutput",
")",
"SetJobRuns",
"(",
"v",
"[",
"]",
"*",
"JobRun",
")",
"*",
"GetJobRunsOutput",
"{",
"s",
".",
"JobRuns",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetJobRuns sets the JobRuns field's value. | [
"SetJobRuns",
"sets",
"the",
"JobRuns",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L17156-L17159 | train |
aws/aws-sdk-go | service/glue/api.go | SetTableVersion | func (s *GetTableVersionOutput) SetTableVersion(v *TableVersion) *GetTableVersionOutput {
s.TableVersion = v
return s
} | go | func (s *GetTableVersionOutput) SetTableVersion(v *TableVersion) *GetTableVersionOutput {
s.TableVersion = v
return s
} | [
"func",
"(",
"s",
"*",
"GetTableVersionOutput",
")",
"SetTableVersion",
"(",
"v",
"*",
"TableVersion",
")",
"*",
"GetTableVersionOutput",
"{",
"s",
".",
"TableVersion",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTableVersion sets the TableVersion field's value. | [
"SetTableVersion",
"sets",
"the",
"TableVersion",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L18206-L18209 | train |
aws/aws-sdk-go | service/glue/api.go | SetTableVersions | func (s *GetTableVersionsOutput) SetTableVersions(v []*TableVersion) *GetTableVersionsOutput {
s.TableVersions = v
return s
} | go | func (s *GetTableVersionsOutput) SetTableVersions(v []*TableVersion) *GetTableVersionsOutput {
s.TableVersions = v
return s
} | [
"func",
"(",
"s",
"*",
"GetTableVersionsOutput",
")",
"SetTableVersions",
"(",
"v",
"[",
"]",
"*",
"TableVersion",
")",
"*",
"GetTableVersionsOutput",
"{",
"s",
".",
"TableVersions",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTableVersions sets the TableVersions field's value. | [
"SetTableVersions",
"sets",
"the",
"TableVersions",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L18332-L18335 | train |
aws/aws-sdk-go | service/glue/api.go | SetTableList | func (s *GetTablesOutput) SetTableList(v []*Table) *GetTablesOutput {
s.TableList = v
return s
} | go | func (s *GetTablesOutput) SetTableList(v []*Table) *GetTablesOutput {
s.TableList = v
return s
} | [
"func",
"(",
"s",
"*",
"GetTablesOutput",
")",
"SetTableList",
"(",
"v",
"[",
"]",
"*",
"Table",
")",
"*",
"GetTablesOutput",
"{",
"s",
".",
"TableList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTableList sets the TableList field's value. | [
"SetTableList",
"sets",
"the",
"TableList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L18450-L18453 | train |
aws/aws-sdk-go | service/glue/api.go | SetUserDefinedFunction | func (s *GetUserDefinedFunctionOutput) SetUserDefinedFunction(v *UserDefinedFunction) *GetUserDefinedFunctionOutput {
s.UserDefinedFunction = v
return s
} | go | func (s *GetUserDefinedFunctionOutput) SetUserDefinedFunction(v *UserDefinedFunction) *GetUserDefinedFunctionOutput {
s.UserDefinedFunction = v
return s
} | [
"func",
"(",
"s",
"*",
"GetUserDefinedFunctionOutput",
")",
"SetUserDefinedFunction",
"(",
"v",
"*",
"UserDefinedFunction",
")",
"*",
"GetUserDefinedFunctionOutput",
"{",
"s",
".",
"UserDefinedFunction",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetUserDefinedFunction sets the UserDefinedFunction field's value. | [
"SetUserDefinedFunction",
"sets",
"the",
"UserDefinedFunction",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L18763-L18766 | train |
aws/aws-sdk-go | service/glue/api.go | SetUserDefinedFunctions | func (s *GetUserDefinedFunctionsOutput) SetUserDefinedFunctions(v []*UserDefinedFunction) *GetUserDefinedFunctionsOutput {
s.UserDefinedFunctions = v
return s
} | go | func (s *GetUserDefinedFunctionsOutput) SetUserDefinedFunctions(v []*UserDefinedFunction) *GetUserDefinedFunctionsOutput {
s.UserDefinedFunctions = v
return s
} | [
"func",
"(",
"s",
"*",
"GetUserDefinedFunctionsOutput",
")",
"SetUserDefinedFunctions",
"(",
"v",
"[",
"]",
"*",
"UserDefinedFunction",
")",
"*",
"GetUserDefinedFunctionsOutput",
"{",
"s",
".",
"UserDefinedFunctions",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetUserDefinedFunctions sets the UserDefinedFunctions field's value. | [
"SetUserDefinedFunctions",
"sets",
"the",
"UserDefinedFunctions",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L18889-L18892 | train |
aws/aws-sdk-go | service/glue/api.go | SetJobBookmark | func (s *JobBookmarkEntry) SetJobBookmark(v string) *JobBookmarkEntry {
s.JobBookmark = &v
return s
} | go | func (s *JobBookmarkEntry) SetJobBookmark(v string) *JobBookmarkEntry {
s.JobBookmark = &v
return s
} | [
"func",
"(",
"s",
"*",
"JobBookmarkEntry",
")",
"SetJobBookmark",
"(",
"v",
"string",
")",
"*",
"JobBookmarkEntry",
"{",
"s",
".",
"JobBookmark",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetJobBookmark sets the JobBookmark field's value. | [
"SetJobBookmark",
"sets",
"the",
"JobBookmark",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L19340-L19343 | train |
aws/aws-sdk-go | service/glue/api.go | SetJobBookmarksEncryptionMode | func (s *JobBookmarksEncryption) SetJobBookmarksEncryptionMode(v string) *JobBookmarksEncryption {
s.JobBookmarksEncryptionMode = &v
return s
} | go | func (s *JobBookmarksEncryption) SetJobBookmarksEncryptionMode(v string) *JobBookmarksEncryption {
s.JobBookmarksEncryptionMode = &v
return s
} | [
"func",
"(",
"s",
"*",
"JobBookmarksEncryption",
")",
"SetJobBookmarksEncryptionMode",
"(",
"v",
"string",
")",
"*",
"JobBookmarksEncryption",
"{",
"s",
".",
"JobBookmarksEncryptionMode",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetJobBookmarksEncryptionMode sets the JobBookmarksEncryptionMode field's value. | [
"SetJobBookmarksEncryptionMode",
"sets",
"the",
"JobBookmarksEncryptionMode",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L19385-L19388 | train |
aws/aws-sdk-go | service/glue/api.go | SetScriptLocation | func (s *JobCommand) SetScriptLocation(v string) *JobCommand {
s.ScriptLocation = &v
return s
} | go | func (s *JobCommand) SetScriptLocation(v string) *JobCommand {
s.ScriptLocation = &v
return s
} | [
"func",
"(",
"s",
"*",
"JobCommand",
")",
"SetScriptLocation",
"(",
"v",
"string",
")",
"*",
"JobCommand",
"{",
"s",
".",
"ScriptLocation",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetScriptLocation sets the ScriptLocation field's value. | [
"SetScriptLocation",
"sets",
"the",
"ScriptLocation",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L19425-L19428 | train |
aws/aws-sdk-go | service/glue/api.go | SetCompletedOn | func (s *JobRun) SetCompletedOn(v time.Time) *JobRun {
s.CompletedOn = &v
return s
} | go | func (s *JobRun) SetCompletedOn(v time.Time) *JobRun {
s.CompletedOn = &v
return s
} | [
"func",
"(",
"s",
"*",
"JobRun",
")",
"SetCompletedOn",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"JobRun",
"{",
"s",
".",
"CompletedOn",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCompletedOn sets the CompletedOn field's value. | [
"SetCompletedOn",
"sets",
"the",
"CompletedOn",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L19585-L19588 | train |
aws/aws-sdk-go | service/glue/api.go | SetJobRunState | func (s *JobRun) SetJobRunState(v string) *JobRun {
s.JobRunState = &v
return s
} | go | func (s *JobRun) SetJobRunState(v string) *JobRun {
s.JobRunState = &v
return s
} | [
"func",
"(",
"s",
"*",
"JobRun",
")",
"SetJobRunState",
"(",
"v",
"string",
")",
"*",
"JobRun",
"{",
"s",
".",
"JobRunState",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetJobRunState sets the JobRunState field's value. | [
"SetJobRunState",
"sets",
"the",
"JobRunState",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L19615-L19618 | train |
aws/aws-sdk-go | service/glue/api.go | SetPredecessorRuns | func (s *JobRun) SetPredecessorRuns(v []*Predecessor) *JobRun {
s.PredecessorRuns = v
return s
} | go | func (s *JobRun) SetPredecessorRuns(v []*Predecessor) *JobRun {
s.PredecessorRuns = v
return s
} | [
"func",
"(",
"s",
"*",
"JobRun",
")",
"SetPredecessorRuns",
"(",
"v",
"[",
"]",
"*",
"Predecessor",
")",
"*",
"JobRun",
"{",
"s",
".",
"PredecessorRuns",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPredecessorRuns sets the PredecessorRuns field's value. | [
"SetPredecessorRuns",
"sets",
"the",
"PredecessorRuns",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L19651-L19654 | train |
aws/aws-sdk-go | service/glue/api.go | SetPreviousRunId | func (s *JobRun) SetPreviousRunId(v string) *JobRun {
s.PreviousRunId = &v
return s
} | go | func (s *JobRun) SetPreviousRunId(v string) *JobRun {
s.PreviousRunId = &v
return s
} | [
"func",
"(",
"s",
"*",
"JobRun",
")",
"SetPreviousRunId",
"(",
"v",
"string",
")",
"*",
"JobRun",
"{",
"s",
".",
"PreviousRunId",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPreviousRunId sets the PreviousRunId field's value. | [
"SetPreviousRunId",
"sets",
"the",
"PreviousRunId",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L19657-L19660 | train |
aws/aws-sdk-go | service/glue/api.go | SetStartedOn | func (s *JobRun) SetStartedOn(v time.Time) *JobRun {
s.StartedOn = &v
return s
} | go | func (s *JobRun) SetStartedOn(v time.Time) *JobRun {
s.StartedOn = &v
return s
} | [
"func",
"(",
"s",
"*",
"JobRun",
")",
"SetStartedOn",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"JobRun",
"{",
"s",
".",
"StartedOn",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetStartedOn sets the StartedOn field's value. | [
"SetStartedOn",
"sets",
"the",
"StartedOn",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L19669-L19672 | train |
aws/aws-sdk-go | service/glue/api.go | SetLogGroup | func (s *LastCrawlInfo) SetLogGroup(v string) *LastCrawlInfo {
s.LogGroup = &v
return s
} | go | func (s *LastCrawlInfo) SetLogGroup(v string) *LastCrawlInfo {
s.LogGroup = &v
return s
} | [
"func",
"(",
"s",
"*",
"LastCrawlInfo",
")",
"SetLogGroup",
"(",
"v",
"string",
")",
"*",
"LastCrawlInfo",
"{",
"s",
".",
"LogGroup",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetLogGroup sets the LogGroup field's value. | [
"SetLogGroup",
"sets",
"the",
"LogGroup",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L20021-L20024 | train |
aws/aws-sdk-go | service/glue/api.go | SetLogStream | func (s *LastCrawlInfo) SetLogStream(v string) *LastCrawlInfo {
s.LogStream = &v
return s
} | go | func (s *LastCrawlInfo) SetLogStream(v string) *LastCrawlInfo {
s.LogStream = &v
return s
} | [
"func",
"(",
"s",
"*",
"LastCrawlInfo",
")",
"SetLogStream",
"(",
"v",
"string",
")",
"*",
"LastCrawlInfo",
"{",
"s",
".",
"LogStream",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetLogStream sets the LogStream field's value. | [
"SetLogStream",
"sets",
"the",
"LogStream",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L20027-L20030 | train |
aws/aws-sdk-go | service/glue/api.go | SetMessagePrefix | func (s *LastCrawlInfo) SetMessagePrefix(v string) *LastCrawlInfo {
s.MessagePrefix = &v
return s
} | go | func (s *LastCrawlInfo) SetMessagePrefix(v string) *LastCrawlInfo {
s.MessagePrefix = &v
return s
} | [
"func",
"(",
"s",
"*",
"LastCrawlInfo",
")",
"SetMessagePrefix",
"(",
"v",
"string",
")",
"*",
"LastCrawlInfo",
"{",
"s",
".",
"MessagePrefix",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMessagePrefix sets the MessagePrefix field's value. | [
"SetMessagePrefix",
"sets",
"the",
"MessagePrefix",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L20033-L20036 | train |
aws/aws-sdk-go | service/glue/api.go | SetJdbc | func (s *Location) SetJdbc(v []*CodeGenNodeArg) *Location {
s.Jdbc = v
return s
} | go | func (s *Location) SetJdbc(v []*CodeGenNodeArg) *Location {
s.Jdbc = v
return s
} | [
"func",
"(",
"s",
"*",
"Location",
")",
"SetJdbc",
"(",
"v",
"[",
"]",
"*",
"CodeGenNodeArg",
")",
"*",
"Location",
"{",
"s",
".",
"Jdbc",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetJdbc sets the Jdbc field's value. | [
"SetJdbc",
"sets",
"the",
"Jdbc",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L20486-L20489 | train |
aws/aws-sdk-go | service/glue/api.go | SetSourceTable | func (s *MappingEntry) SetSourceTable(v string) *MappingEntry {
s.SourceTable = &v
return s
} | go | func (s *MappingEntry) SetSourceTable(v string) *MappingEntry {
s.SourceTable = &v
return s
} | [
"func",
"(",
"s",
"*",
"MappingEntry",
")",
"SetSourceTable",
"(",
"v",
"string",
")",
"*",
"MappingEntry",
"{",
"s",
".",
"SourceTable",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSourceTable sets the SourceTable field's value. | [
"SetSourceTable",
"sets",
"the",
"SourceTable",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L20537-L20540 | train |
aws/aws-sdk-go | service/glue/api.go | SetTargetPath | func (s *MappingEntry) SetTargetPath(v string) *MappingEntry {
s.TargetPath = &v
return s
} | go | func (s *MappingEntry) SetTargetPath(v string) *MappingEntry {
s.TargetPath = &v
return s
} | [
"func",
"(",
"s",
"*",
"MappingEntry",
")",
"SetTargetPath",
"(",
"v",
"string",
")",
"*",
"MappingEntry",
"{",
"s",
".",
"TargetPath",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTargetPath sets the TargetPath field's value. | [
"SetTargetPath",
"sets",
"the",
"TargetPath",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L20549-L20552 | train |
aws/aws-sdk-go | service/glue/api.go | SetTargetTable | func (s *MappingEntry) SetTargetTable(v string) *MappingEntry {
s.TargetTable = &v
return s
} | go | func (s *MappingEntry) SetTargetTable(v string) *MappingEntry {
s.TargetTable = &v
return s
} | [
"func",
"(",
"s",
"*",
"MappingEntry",
")",
"SetTargetTable",
"(",
"v",
"string",
")",
"*",
"MappingEntry",
"{",
"s",
".",
"TargetTable",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTargetTable sets the TargetTable field's value. | [
"SetTargetTable",
"sets",
"the",
"TargetTable",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L20555-L20558 | train |
aws/aws-sdk-go | service/glue/api.go | SetNotifyDelayAfter | func (s *NotificationProperty) SetNotifyDelayAfter(v int64) *NotificationProperty {
s.NotifyDelayAfter = &v
return s
} | go | func (s *NotificationProperty) SetNotifyDelayAfter(v int64) *NotificationProperty {
s.NotifyDelayAfter = &v
return s
} | [
"func",
"(",
"s",
"*",
"NotificationProperty",
")",
"SetNotifyDelayAfter",
"(",
"v",
"int64",
")",
"*",
"NotificationProperty",
"{",
"s",
".",
"NotifyDelayAfter",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetNotifyDelayAfter sets the NotifyDelayAfter field's value. | [
"SetNotifyDelayAfter",
"sets",
"the",
"NotifyDelayAfter",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L20599-L20602 | train |
aws/aws-sdk-go | service/glue/api.go | SetSecurityGroupIdList | func (s *PhysicalConnectionRequirements) SetSecurityGroupIdList(v []*string) *PhysicalConnectionRequirements {
s.SecurityGroupIdList = v
return s
} | go | func (s *PhysicalConnectionRequirements) SetSecurityGroupIdList(v []*string) *PhysicalConnectionRequirements {
s.SecurityGroupIdList = v
return s
} | [
"func",
"(",
"s",
"*",
"PhysicalConnectionRequirements",
")",
"SetSecurityGroupIdList",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"PhysicalConnectionRequirements",
"{",
"s",
".",
"SecurityGroupIdList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSecurityGroupIdList sets the SecurityGroupIdList field's value. | [
"SetSecurityGroupIdList",
"sets",
"the",
"SecurityGroupIdList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L20945-L20948 | train |
aws/aws-sdk-go | service/glue/api.go | SetLogical | func (s *Predicate) SetLogical(v string) *Predicate {
s.Logical = &v
return s
} | go | func (s *Predicate) SetLogical(v string) *Predicate {
s.Logical = &v
return s
} | [
"func",
"(",
"s",
"*",
"Predicate",
")",
"SetLogical",
"(",
"v",
"string",
")",
"*",
"Predicate",
"{",
"s",
".",
"Logical",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetLogical sets the Logical field's value. | [
"SetLogical",
"sets",
"the",
"Logical",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L21039-L21042 | train |
aws/aws-sdk-go | service/glue/api.go | SetPolicyExistsCondition | func (s *PutResourcePolicyInput) SetPolicyExistsCondition(v string) *PutResourcePolicyInput {
s.PolicyExistsCondition = &v
return s
} | go | func (s *PutResourcePolicyInput) SetPolicyExistsCondition(v string) *PutResourcePolicyInput {
s.PolicyExistsCondition = &v
return s
} | [
"func",
"(",
"s",
"*",
"PutResourcePolicyInput",
")",
"SetPolicyExistsCondition",
"(",
"v",
"string",
")",
"*",
"PutResourcePolicyInput",
"{",
"s",
".",
"PolicyExistsCondition",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPolicyExistsCondition sets the PolicyExistsCondition field's value. | [
"SetPolicyExistsCondition",
"sets",
"the",
"PolicyExistsCondition",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L21163-L21166 | train |
aws/aws-sdk-go | service/glue/api.go | SetJobBookmarkEntry | func (s *ResetJobBookmarkOutput) SetJobBookmarkEntry(v *JobBookmarkEntry) *ResetJobBookmarkOutput {
s.JobBookmarkEntry = v
return s
} | go | func (s *ResetJobBookmarkOutput) SetJobBookmarkEntry(v *JobBookmarkEntry) *ResetJobBookmarkOutput {
s.JobBookmarkEntry = v
return s
} | [
"func",
"(",
"s",
"*",
"ResetJobBookmarkOutput",
")",
"SetJobBookmarkEntry",
"(",
"v",
"*",
"JobBookmarkEntry",
")",
"*",
"ResetJobBookmarkOutput",
"{",
"s",
".",
"JobBookmarkEntry",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetJobBookmarkEntry sets the JobBookmarkEntry field's value. | [
"SetJobBookmarkEntry",
"sets",
"the",
"JobBookmarkEntry",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L21260-L21263 | train |
aws/aws-sdk-go | service/glue/api.go | SetS3EncryptionMode | func (s *S3Encryption) SetS3EncryptionMode(v string) *S3Encryption {
s.S3EncryptionMode = &v
return s
} | go | func (s *S3Encryption) SetS3EncryptionMode(v string) *S3Encryption {
s.S3EncryptionMode = &v
return s
} | [
"func",
"(",
"s",
"*",
"S3Encryption",
")",
"SetS3EncryptionMode",
"(",
"v",
"string",
")",
"*",
"S3Encryption",
"{",
"s",
".",
"S3EncryptionMode",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetS3EncryptionMode sets the S3EncryptionMode field's value. | [
"SetS3EncryptionMode",
"sets",
"the",
"S3EncryptionMode",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L21339-L21342 | train |
aws/aws-sdk-go | service/glue/api.go | SetDeleteBehavior | func (s *SchemaChangePolicy) SetDeleteBehavior(v string) *SchemaChangePolicy {
s.DeleteBehavior = &v
return s
} | go | func (s *SchemaChangePolicy) SetDeleteBehavior(v string) *SchemaChangePolicy {
s.DeleteBehavior = &v
return s
} | [
"func",
"(",
"s",
"*",
"SchemaChangePolicy",
")",
"SetDeleteBehavior",
"(",
"v",
"string",
")",
"*",
"SchemaChangePolicy",
"{",
"s",
".",
"DeleteBehavior",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDeleteBehavior sets the DeleteBehavior field's value. | [
"SetDeleteBehavior",
"sets",
"the",
"DeleteBehavior",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L21436-L21439 | train |
aws/aws-sdk-go | service/glue/api.go | SetUpdateBehavior | func (s *SchemaChangePolicy) SetUpdateBehavior(v string) *SchemaChangePolicy {
s.UpdateBehavior = &v
return s
} | go | func (s *SchemaChangePolicy) SetUpdateBehavior(v string) *SchemaChangePolicy {
s.UpdateBehavior = &v
return s
} | [
"func",
"(",
"s",
"*",
"SchemaChangePolicy",
")",
"SetUpdateBehavior",
"(",
"v",
"string",
")",
"*",
"SchemaChangePolicy",
"{",
"s",
".",
"UpdateBehavior",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetUpdateBehavior sets the UpdateBehavior field's value. | [
"SetUpdateBehavior",
"sets",
"the",
"UpdateBehavior",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L21442-L21445 | train |
aws/aws-sdk-go | service/glue/api.go | SetSegmentNumber | func (s *Segment) SetSegmentNumber(v int64) *Segment {
s.SegmentNumber = &v
return s
} | go | func (s *Segment) SetSegmentNumber(v int64) *Segment {
s.SegmentNumber = &v
return s
} | [
"func",
"(",
"s",
"*",
"Segment",
")",
"SetSegmentNumber",
"(",
"v",
"int64",
")",
"*",
"Segment",
"{",
"s",
".",
"SegmentNumber",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSegmentNumber sets the SegmentNumber field's value. | [
"SetSegmentNumber",
"sets",
"the",
"SegmentNumber",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L21537-L21540 | train |
aws/aws-sdk-go | service/glue/api.go | SetSerializationLibrary | func (s *SerDeInfo) SetSerializationLibrary(v string) *SerDeInfo {
s.SerializationLibrary = &v
return s
} | go | func (s *SerDeInfo) SetSerializationLibrary(v string) *SerDeInfo {
s.SerializationLibrary = &v
return s
} | [
"func",
"(",
"s",
"*",
"SerDeInfo",
")",
"SetSerializationLibrary",
"(",
"v",
"string",
")",
"*",
"SerDeInfo",
"{",
"s",
".",
"SerializationLibrary",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSerializationLibrary sets the SerializationLibrary field's value. | [
"SetSerializationLibrary",
"sets",
"the",
"SerializationLibrary",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L21602-L21605 | train |
aws/aws-sdk-go | service/glue/api.go | SetSkewedColumnNames | func (s *SkewedInfo) SetSkewedColumnNames(v []*string) *SkewedInfo {
s.SkewedColumnNames = v
return s
} | go | func (s *SkewedInfo) SetSkewedColumnNames(v []*string) *SkewedInfo {
s.SkewedColumnNames = v
return s
} | [
"func",
"(",
"s",
"*",
"SkewedInfo",
")",
"SetSkewedColumnNames",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"SkewedInfo",
"{",
"s",
".",
"SkewedColumnNames",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSkewedColumnNames sets the SkewedColumnNames field's value. | [
"SetSkewedColumnNames",
"sets",
"the",
"SkewedColumnNames",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L21633-L21636 | train |
aws/aws-sdk-go | service/glue/api.go | SetSkewedColumnValueLocationMaps | func (s *SkewedInfo) SetSkewedColumnValueLocationMaps(v map[string]*string) *SkewedInfo {
s.SkewedColumnValueLocationMaps = v
return s
} | go | func (s *SkewedInfo) SetSkewedColumnValueLocationMaps(v map[string]*string) *SkewedInfo {
s.SkewedColumnValueLocationMaps = v
return s
} | [
"func",
"(",
"s",
"*",
"SkewedInfo",
")",
"SetSkewedColumnValueLocationMaps",
"(",
"v",
"map",
"[",
"string",
"]",
"*",
"string",
")",
"*",
"SkewedInfo",
"{",
"s",
".",
"SkewedColumnValueLocationMaps",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSkewedColumnValueLocationMaps sets the SkewedColumnValueLocationMaps field's value. | [
"SetSkewedColumnValueLocationMaps",
"sets",
"the",
"SkewedColumnValueLocationMaps",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L21639-L21642 | train |
aws/aws-sdk-go | service/glue/api.go | SetSkewedColumnValues | func (s *SkewedInfo) SetSkewedColumnValues(v []*string) *SkewedInfo {
s.SkewedColumnValues = v
return s
} | go | func (s *SkewedInfo) SetSkewedColumnValues(v []*string) *SkewedInfo {
s.SkewedColumnValues = v
return s
} | [
"func",
"(",
"s",
"*",
"SkewedInfo",
")",
"SetSkewedColumnValues",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"SkewedInfo",
"{",
"s",
".",
"SkewedColumnValues",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSkewedColumnValues sets the SkewedColumnValues field's value. | [
"SetSkewedColumnValues",
"sets",
"the",
"SkewedColumnValues",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L21645-L21648 | train |
aws/aws-sdk-go | service/glue/api.go | SetBucketColumns | func (s *StorageDescriptor) SetBucketColumns(v []*string) *StorageDescriptor {
s.BucketColumns = v
return s
} | go | func (s *StorageDescriptor) SetBucketColumns(v []*string) *StorageDescriptor {
s.BucketColumns = v
return s
} | [
"func",
"(",
"s",
"*",
"StorageDescriptor",
")",
"SetBucketColumns",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"StorageDescriptor",
"{",
"s",
".",
"BucketColumns",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetBucketColumns sets the BucketColumns field's value. | [
"SetBucketColumns",
"sets",
"the",
"BucketColumns",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L22303-L22306 | train |
aws/aws-sdk-go | service/glue/api.go | SetColumns | func (s *StorageDescriptor) SetColumns(v []*Column) *StorageDescriptor {
s.Columns = v
return s
} | go | func (s *StorageDescriptor) SetColumns(v []*Column) *StorageDescriptor {
s.Columns = v
return s
} | [
"func",
"(",
"s",
"*",
"StorageDescriptor",
")",
"SetColumns",
"(",
"v",
"[",
"]",
"*",
"Column",
")",
"*",
"StorageDescriptor",
"{",
"s",
".",
"Columns",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetColumns sets the Columns field's value. | [
"SetColumns",
"sets",
"the",
"Columns",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L22309-L22312 | train |
aws/aws-sdk-go | service/glue/api.go | SetCompressed | func (s *StorageDescriptor) SetCompressed(v bool) *StorageDescriptor {
s.Compressed = &v
return s
} | go | func (s *StorageDescriptor) SetCompressed(v bool) *StorageDescriptor {
s.Compressed = &v
return s
} | [
"func",
"(",
"s",
"*",
"StorageDescriptor",
")",
"SetCompressed",
"(",
"v",
"bool",
")",
"*",
"StorageDescriptor",
"{",
"s",
".",
"Compressed",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCompressed sets the Compressed field's value. | [
"SetCompressed",
"sets",
"the",
"Compressed",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L22315-L22318 | train |
aws/aws-sdk-go | service/glue/api.go | SetNumberOfBuckets | func (s *StorageDescriptor) SetNumberOfBuckets(v int64) *StorageDescriptor {
s.NumberOfBuckets = &v
return s
} | go | func (s *StorageDescriptor) SetNumberOfBuckets(v int64) *StorageDescriptor {
s.NumberOfBuckets = &v
return s
} | [
"func",
"(",
"s",
"*",
"StorageDescriptor",
")",
"SetNumberOfBuckets",
"(",
"v",
"int64",
")",
"*",
"StorageDescriptor",
"{",
"s",
".",
"NumberOfBuckets",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetNumberOfBuckets sets the NumberOfBuckets field's value. | [
"SetNumberOfBuckets",
"sets",
"the",
"NumberOfBuckets",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L22333-L22336 | train |
aws/aws-sdk-go | service/glue/api.go | SetSerdeInfo | func (s *StorageDescriptor) SetSerdeInfo(v *SerDeInfo) *StorageDescriptor {
s.SerdeInfo = v
return s
} | go | func (s *StorageDescriptor) SetSerdeInfo(v *SerDeInfo) *StorageDescriptor {
s.SerdeInfo = v
return s
} | [
"func",
"(",
"s",
"*",
"StorageDescriptor",
")",
"SetSerdeInfo",
"(",
"v",
"*",
"SerDeInfo",
")",
"*",
"StorageDescriptor",
"{",
"s",
".",
"SerdeInfo",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSerdeInfo sets the SerdeInfo field's value. | [
"SetSerdeInfo",
"sets",
"the",
"SerdeInfo",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L22351-L22354 | train |
aws/aws-sdk-go | service/glue/api.go | SetSkewedInfo | func (s *StorageDescriptor) SetSkewedInfo(v *SkewedInfo) *StorageDescriptor {
s.SkewedInfo = v
return s
} | go | func (s *StorageDescriptor) SetSkewedInfo(v *SkewedInfo) *StorageDescriptor {
s.SkewedInfo = v
return s
} | [
"func",
"(",
"s",
"*",
"StorageDescriptor",
")",
"SetSkewedInfo",
"(",
"v",
"*",
"SkewedInfo",
")",
"*",
"StorageDescriptor",
"{",
"s",
".",
"SkewedInfo",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSkewedInfo sets the SkewedInfo field's value. | [
"SetSkewedInfo",
"sets",
"the",
"SkewedInfo",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L22357-L22360 | train |
aws/aws-sdk-go | service/glue/api.go | SetSortColumns | func (s *StorageDescriptor) SetSortColumns(v []*Order) *StorageDescriptor {
s.SortColumns = v
return s
} | go | func (s *StorageDescriptor) SetSortColumns(v []*Order) *StorageDescriptor {
s.SortColumns = v
return s
} | [
"func",
"(",
"s",
"*",
"StorageDescriptor",
")",
"SetSortColumns",
"(",
"v",
"[",
"]",
"*",
"Order",
")",
"*",
"StorageDescriptor",
"{",
"s",
".",
"SortColumns",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSortColumns sets the SortColumns field's value. | [
"SetSortColumns",
"sets",
"the",
"SortColumns",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L22363-L22366 | train |
aws/aws-sdk-go | service/glue/api.go | SetStoredAsSubDirectories | func (s *StorageDescriptor) SetStoredAsSubDirectories(v bool) *StorageDescriptor {
s.StoredAsSubDirectories = &v
return s
} | go | func (s *StorageDescriptor) SetStoredAsSubDirectories(v bool) *StorageDescriptor {
s.StoredAsSubDirectories = &v
return s
} | [
"func",
"(",
"s",
"*",
"StorageDescriptor",
")",
"SetStoredAsSubDirectories",
"(",
"v",
"bool",
")",
"*",
"StorageDescriptor",
"{",
"s",
".",
"StoredAsSubDirectories",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetStoredAsSubDirectories sets the StoredAsSubDirectories field's value. | [
"SetStoredAsSubDirectories",
"sets",
"the",
"StoredAsSubDirectories",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L22369-L22372 | train |
aws/aws-sdk-go | service/glue/api.go | SetAddArguments | func (s *UpdateDevEndpointInput) SetAddArguments(v map[string]*string) *UpdateDevEndpointInput {
s.AddArguments = v
return s
} | go | func (s *UpdateDevEndpointInput) SetAddArguments(v map[string]*string) *UpdateDevEndpointInput {
s.AddArguments = v
return s
} | [
"func",
"(",
"s",
"*",
"UpdateDevEndpointInput",
")",
"SetAddArguments",
"(",
"v",
"map",
"[",
"string",
"]",
"*",
"string",
")",
"*",
"UpdateDevEndpointInput",
"{",
"s",
".",
"AddArguments",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAddArguments sets the AddArguments field's value. | [
"SetAddArguments",
"sets",
"the",
"AddArguments",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L23792-L23795 | train |
aws/aws-sdk-go | service/glue/api.go | SetAddPublicKeys | func (s *UpdateDevEndpointInput) SetAddPublicKeys(v []*string) *UpdateDevEndpointInput {
s.AddPublicKeys = v
return s
} | go | func (s *UpdateDevEndpointInput) SetAddPublicKeys(v []*string) *UpdateDevEndpointInput {
s.AddPublicKeys = v
return s
} | [
"func",
"(",
"s",
"*",
"UpdateDevEndpointInput",
")",
"SetAddPublicKeys",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"UpdateDevEndpointInput",
"{",
"s",
".",
"AddPublicKeys",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAddPublicKeys sets the AddPublicKeys field's value. | [
"SetAddPublicKeys",
"sets",
"the",
"AddPublicKeys",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L23798-L23801 | train |
aws/aws-sdk-go | service/glue/api.go | SetCustomLibraries | func (s *UpdateDevEndpointInput) SetCustomLibraries(v *DevEndpointCustomLibraries) *UpdateDevEndpointInput {
s.CustomLibraries = v
return s
} | go | func (s *UpdateDevEndpointInput) SetCustomLibraries(v *DevEndpointCustomLibraries) *UpdateDevEndpointInput {
s.CustomLibraries = v
return s
} | [
"func",
"(",
"s",
"*",
"UpdateDevEndpointInput",
")",
"SetCustomLibraries",
"(",
"v",
"*",
"DevEndpointCustomLibraries",
")",
"*",
"UpdateDevEndpointInput",
"{",
"s",
".",
"CustomLibraries",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCustomLibraries sets the CustomLibraries field's value. | [
"SetCustomLibraries",
"sets",
"the",
"CustomLibraries",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L23804-L23807 | train |
aws/aws-sdk-go | service/glue/api.go | SetDeleteArguments | func (s *UpdateDevEndpointInput) SetDeleteArguments(v []*string) *UpdateDevEndpointInput {
s.DeleteArguments = v
return s
} | go | func (s *UpdateDevEndpointInput) SetDeleteArguments(v []*string) *UpdateDevEndpointInput {
s.DeleteArguments = v
return s
} | [
"func",
"(",
"s",
"*",
"UpdateDevEndpointInput",
")",
"SetDeleteArguments",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"UpdateDevEndpointInput",
"{",
"s",
".",
"DeleteArguments",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDeleteArguments sets the DeleteArguments field's value. | [
"SetDeleteArguments",
"sets",
"the",
"DeleteArguments",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L23810-L23813 | train |
aws/aws-sdk-go | service/glue/api.go | SetDeletePublicKeys | func (s *UpdateDevEndpointInput) SetDeletePublicKeys(v []*string) *UpdateDevEndpointInput {
s.DeletePublicKeys = v
return s
} | go | func (s *UpdateDevEndpointInput) SetDeletePublicKeys(v []*string) *UpdateDevEndpointInput {
s.DeletePublicKeys = v
return s
} | [
"func",
"(",
"s",
"*",
"UpdateDevEndpointInput",
")",
"SetDeletePublicKeys",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"UpdateDevEndpointInput",
"{",
"s",
".",
"DeletePublicKeys",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDeletePublicKeys sets the DeletePublicKeys field's value. | [
"SetDeletePublicKeys",
"sets",
"the",
"DeletePublicKeys",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L23816-L23819 | train |
aws/aws-sdk-go | service/glue/api.go | SetUpdateEtlLibraries | func (s *UpdateDevEndpointInput) SetUpdateEtlLibraries(v bool) *UpdateDevEndpointInput {
s.UpdateEtlLibraries = &v
return s
} | go | func (s *UpdateDevEndpointInput) SetUpdateEtlLibraries(v bool) *UpdateDevEndpointInput {
s.UpdateEtlLibraries = &v
return s
} | [
"func",
"(",
"s",
"*",
"UpdateDevEndpointInput",
")",
"SetUpdateEtlLibraries",
"(",
"v",
"bool",
")",
"*",
"UpdateDevEndpointInput",
"{",
"s",
".",
"UpdateEtlLibraries",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetUpdateEtlLibraries sets the UpdateEtlLibraries field's value. | [
"SetUpdateEtlLibraries",
"sets",
"the",
"UpdateEtlLibraries",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L23834-L23837 | train |
aws/aws-sdk-go | service/glue/api.go | SetJobUpdate | func (s *UpdateJobInput) SetJobUpdate(v *JobUpdate) *UpdateJobInput {
s.JobUpdate = v
return s
} | go | func (s *UpdateJobInput) SetJobUpdate(v *JobUpdate) *UpdateJobInput {
s.JobUpdate = v
return s
} | [
"func",
"(",
"s",
"*",
"UpdateJobInput",
")",
"SetJobUpdate",
"(",
"v",
"*",
"JobUpdate",
")",
"*",
"UpdateJobInput",
"{",
"s",
".",
"JobUpdate",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetJobUpdate sets the JobUpdate field's value. | [
"SetJobUpdate",
"sets",
"the",
"JobUpdate",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L23981-L23984 | train |
aws/aws-sdk-go | service/glue/api.go | SetPartitionValueList | func (s *UpdatePartitionInput) SetPartitionValueList(v []*string) *UpdatePartitionInput {
s.PartitionValueList = v
return s
} | go | func (s *UpdatePartitionInput) SetPartitionValueList(v []*string) *UpdatePartitionInput {
s.PartitionValueList = v
return s
} | [
"func",
"(",
"s",
"*",
"UpdatePartitionInput",
")",
"SetPartitionValueList",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"UpdatePartitionInput",
"{",
"s",
".",
"PartitionValueList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPartitionValueList sets the PartitionValueList field's value. | [
"SetPartitionValueList",
"sets",
"the",
"PartitionValueList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L24155-L24158 | train |
aws/aws-sdk-go | service/glue/api.go | SetSkipArchive | func (s *UpdateTableInput) SetSkipArchive(v bool) *UpdateTableInput {
s.SkipArchive = &v
return s
} | go | func (s *UpdateTableInput) SetSkipArchive(v bool) *UpdateTableInput {
s.SkipArchive = &v
return s
} | [
"func",
"(",
"s",
"*",
"UpdateTableInput",
")",
"SetSkipArchive",
"(",
"v",
"bool",
")",
"*",
"UpdateTableInput",
"{",
"s",
".",
"SkipArchive",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSkipArchive sets the SkipArchive field's value. | [
"SetSkipArchive",
"sets",
"the",
"SkipArchive",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L24254-L24257 | train |
aws/aws-sdk-go | service/glue/api.go | SetTriggerUpdate | func (s *UpdateTriggerInput) SetTriggerUpdate(v *TriggerUpdate) *UpdateTriggerInput {
s.TriggerUpdate = v
return s
} | go | func (s *UpdateTriggerInput) SetTriggerUpdate(v *TriggerUpdate) *UpdateTriggerInput {
s.TriggerUpdate = v
return s
} | [
"func",
"(",
"s",
"*",
"UpdateTriggerInput",
")",
"SetTriggerUpdate",
"(",
"v",
"*",
"TriggerUpdate",
")",
"*",
"UpdateTriggerInput",
"{",
"s",
".",
"TriggerUpdate",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTriggerUpdate sets the TriggerUpdate field's value. | [
"SetTriggerUpdate",
"sets",
"the",
"TriggerUpdate",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L24334-L24337 | train |
aws/aws-sdk-go | private/protocol/jsonvalue.go | EncodeJSONValue | func EncodeJSONValue(v aws.JSONValue, escape EscapeMode) (string, error) {
b, err := json.Marshal(v)
if err != nil {
return "", err
}
switch escape {
case NoEscape:
return string(b), nil
case Base64Escape:
return base64.StdEncoding.EncodeToString(b), nil
case QuotedEscape:
return strconv.Quote(string(b)), nil
}
panic(fmt.Sprintf("EncodeJSONValue called with unknown EscapeMode, %v", escape))
} | go | func EncodeJSONValue(v aws.JSONValue, escape EscapeMode) (string, error) {
b, err := json.Marshal(v)
if err != nil {
return "", err
}
switch escape {
case NoEscape:
return string(b), nil
case Base64Escape:
return base64.StdEncoding.EncodeToString(b), nil
case QuotedEscape:
return strconv.Quote(string(b)), nil
}
panic(fmt.Sprintf("EncodeJSONValue called with unknown EscapeMode, %v", escape))
} | [
"func",
"EncodeJSONValue",
"(",
"v",
"aws",
".",
"JSONValue",
",",
"escape",
"EscapeMode",
")",
"(",
"string",
",",
"error",
")",
"{",
"b",
",",
"err",
":=",
"json",
".",
"Marshal",
"(",
"v",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"\"",
"\"",
",",
"err",
"\n",
"}",
"\n\n",
"switch",
"escape",
"{",
"case",
"NoEscape",
":",
"return",
"string",
"(",
"b",
")",
",",
"nil",
"\n",
"case",
"Base64Escape",
":",
"return",
"base64",
".",
"StdEncoding",
".",
"EncodeToString",
"(",
"b",
")",
",",
"nil",
"\n",
"case",
"QuotedEscape",
":",
"return",
"strconv",
".",
"Quote",
"(",
"string",
"(",
"b",
")",
")",
",",
"nil",
"\n",
"}",
"\n\n",
"panic",
"(",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"escape",
")",
")",
"\n",
"}"
] | // EncodeJSONValue marshals the value into a JSON string, and optionally base64
// encodes the string before returning it.
//
// Will panic if the escape mode is unknown. | [
"EncodeJSONValue",
"marshals",
"the",
"value",
"into",
"a",
"JSON",
"string",
"and",
"optionally",
"base64",
"encodes",
"the",
"string",
"before",
"returning",
"it",
".",
"Will",
"panic",
"if",
"the",
"escape",
"mode",
"is",
"unknown",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/jsonvalue.go#L26-L42 | train |
aws/aws-sdk-go | private/protocol/jsonvalue.go | DecodeJSONValue | func DecodeJSONValue(v string, escape EscapeMode) (aws.JSONValue, error) {
var b []byte
var err error
switch escape {
case NoEscape:
b = []byte(v)
case Base64Escape:
b, err = base64.StdEncoding.DecodeString(v)
case QuotedEscape:
var u string
u, err = strconv.Unquote(v)
b = []byte(u)
default:
panic(fmt.Sprintf("DecodeJSONValue called with unknown EscapeMode, %v", escape))
}
if err != nil {
return nil, err
}
m := aws.JSONValue{}
err = json.Unmarshal(b, &m)
if err != nil {
return nil, err
}
return m, nil
} | go | func DecodeJSONValue(v string, escape EscapeMode) (aws.JSONValue, error) {
var b []byte
var err error
switch escape {
case NoEscape:
b = []byte(v)
case Base64Escape:
b, err = base64.StdEncoding.DecodeString(v)
case QuotedEscape:
var u string
u, err = strconv.Unquote(v)
b = []byte(u)
default:
panic(fmt.Sprintf("DecodeJSONValue called with unknown EscapeMode, %v", escape))
}
if err != nil {
return nil, err
}
m := aws.JSONValue{}
err = json.Unmarshal(b, &m)
if err != nil {
return nil, err
}
return m, nil
} | [
"func",
"DecodeJSONValue",
"(",
"v",
"string",
",",
"escape",
"EscapeMode",
")",
"(",
"aws",
".",
"JSONValue",
",",
"error",
")",
"{",
"var",
"b",
"[",
"]",
"byte",
"\n",
"var",
"err",
"error",
"\n\n",
"switch",
"escape",
"{",
"case",
"NoEscape",
":",
"b",
"=",
"[",
"]",
"byte",
"(",
"v",
")",
"\n",
"case",
"Base64Escape",
":",
"b",
",",
"err",
"=",
"base64",
".",
"StdEncoding",
".",
"DecodeString",
"(",
"v",
")",
"\n",
"case",
"QuotedEscape",
":",
"var",
"u",
"string",
"\n",
"u",
",",
"err",
"=",
"strconv",
".",
"Unquote",
"(",
"v",
")",
"\n",
"b",
"=",
"[",
"]",
"byte",
"(",
"u",
")",
"\n",
"default",
":",
"panic",
"(",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"escape",
")",
")",
"\n",
"}",
"\n\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"nil",
",",
"err",
"\n",
"}",
"\n\n",
"m",
":=",
"aws",
".",
"JSONValue",
"{",
"}",
"\n",
"err",
"=",
"json",
".",
"Unmarshal",
"(",
"b",
",",
"&",
"m",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"nil",
",",
"err",
"\n",
"}",
"\n\n",
"return",
"m",
",",
"nil",
"\n",
"}"
] | // DecodeJSONValue will attempt to decode the string input as a JSONValue.
// Optionally decoding base64 the value first before JSON unmarshaling.
//
// Will panic if the escape mode is unknown. | [
"DecodeJSONValue",
"will",
"attempt",
"to",
"decode",
"the",
"string",
"input",
"as",
"a",
"JSONValue",
".",
"Optionally",
"decoding",
"base64",
"the",
"value",
"first",
"before",
"JSON",
"unmarshaling",
".",
"Will",
"panic",
"if",
"the",
"escape",
"mode",
"is",
"unknown",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/jsonvalue.go#L48-L76 | train |
aws/aws-sdk-go | private/protocol/query/queryutil/queryutil.go | Parse | func Parse(body url.Values, i interface{}, isEC2 bool) error {
q := queryParser{isEC2: isEC2}
return q.parseValue(body, reflect.ValueOf(i), "", "")
} | go | func Parse(body url.Values, i interface{}, isEC2 bool) error {
q := queryParser{isEC2: isEC2}
return q.parseValue(body, reflect.ValueOf(i), "", "")
} | [
"func",
"Parse",
"(",
"body",
"url",
".",
"Values",
",",
"i",
"interface",
"{",
"}",
",",
"isEC2",
"bool",
")",
"error",
"{",
"q",
":=",
"queryParser",
"{",
"isEC2",
":",
"isEC2",
"}",
"\n",
"return",
"q",
".",
"parseValue",
"(",
"body",
",",
"reflect",
".",
"ValueOf",
"(",
"i",
")",
",",
"\"",
"\"",
",",
"\"",
"\"",
")",
"\n",
"}"
] | // Parse parses an object i and fills a url.Values object. The isEC2 flag
// indicates if this is the EC2 Query sub-protocol. | [
"Parse",
"parses",
"an",
"object",
"i",
"and",
"fills",
"a",
"url",
".",
"Values",
"object",
".",
"The",
"isEC2",
"flag",
"indicates",
"if",
"this",
"is",
"the",
"EC2",
"Query",
"sub",
"-",
"protocol",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/query/queryutil/queryutil.go#L18-L21 | train |
aws/aws-sdk-go | private/model/api/load.go | LoadAPIs | func LoadAPIs(modelPaths []string, baseImport string) (APIs, error) {
apis := APIs{}
for _, modelPath := range modelPaths {
a, err := loadAPI(modelPath, baseImport)
if err != nil {
return nil, fmt.Errorf("failed to load API, %v, %v", modelPath, err)
}
importPath := a.ImportPath()
if _, ok := apis[importPath]; ok {
return nil, fmt.Errorf(
"package names must be unique attempted to load %v twice. Second model file: %v",
importPath, modelPath)
}
apis[importPath] = a
}
return apis, nil
} | go | func LoadAPIs(modelPaths []string, baseImport string) (APIs, error) {
apis := APIs{}
for _, modelPath := range modelPaths {
a, err := loadAPI(modelPath, baseImport)
if err != nil {
return nil, fmt.Errorf("failed to load API, %v, %v", modelPath, err)
}
importPath := a.ImportPath()
if _, ok := apis[importPath]; ok {
return nil, fmt.Errorf(
"package names must be unique attempted to load %v twice. Second model file: %v",
importPath, modelPath)
}
apis[importPath] = a
}
return apis, nil
} | [
"func",
"LoadAPIs",
"(",
"modelPaths",
"[",
"]",
"string",
",",
"baseImport",
"string",
")",
"(",
"APIs",
",",
"error",
")",
"{",
"apis",
":=",
"APIs",
"{",
"}",
"\n",
"for",
"_",
",",
"modelPath",
":=",
"range",
"modelPaths",
"{",
"a",
",",
"err",
":=",
"loadAPI",
"(",
"modelPath",
",",
"baseImport",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"modelPath",
",",
"err",
")",
"\n",
"}",
"\n",
"importPath",
":=",
"a",
".",
"ImportPath",
"(",
")",
"\n",
"if",
"_",
",",
"ok",
":=",
"apis",
"[",
"importPath",
"]",
";",
"ok",
"{",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"importPath",
",",
"modelPath",
")",
"\n",
"}",
"\n",
"apis",
"[",
"importPath",
"]",
"=",
"a",
"\n",
"}",
"\n\n",
"return",
"apis",
",",
"nil",
"\n",
"}"
] | // LoadAPIs loads the API model files from disk returning the map of API
// package. Returns error if multiple API model resolve to the same package
// name. | [
"LoadAPIs",
"loads",
"the",
"API",
"model",
"files",
"from",
"disk",
"returning",
"the",
"map",
"of",
"API",
"package",
".",
"Returns",
"error",
"if",
"multiple",
"API",
"model",
"resolve",
"to",
"the",
"same",
"package",
"name",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/load.go#L20-L37 | train |
aws/aws-sdk-go | private/model/api/load.go | Attach | func (a *API) Attach(filename string) {
a.path = filepath.Dir(filename)
f, err := os.Open(filename)
defer f.Close()
if err != nil {
panic(err)
}
if err := json.NewDecoder(f).Decode(a); err != nil {
panic(fmt.Errorf("failed to decode %s, err: %v", filename, err))
}
} | go | func (a *API) Attach(filename string) {
a.path = filepath.Dir(filename)
f, err := os.Open(filename)
defer f.Close()
if err != nil {
panic(err)
}
if err := json.NewDecoder(f).Decode(a); err != nil {
panic(fmt.Errorf("failed to decode %s, err: %v", filename, err))
}
} | [
"func",
"(",
"a",
"*",
"API",
")",
"Attach",
"(",
"filename",
"string",
")",
"{",
"a",
".",
"path",
"=",
"filepath",
".",
"Dir",
"(",
"filename",
")",
"\n",
"f",
",",
"err",
":=",
"os",
".",
"Open",
"(",
"filename",
")",
"\n",
"defer",
"f",
".",
"Close",
"(",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"panic",
"(",
"err",
")",
"\n",
"}",
"\n",
"if",
"err",
":=",
"json",
".",
"NewDecoder",
"(",
"f",
")",
".",
"Decode",
"(",
"a",
")",
";",
"err",
"!=",
"nil",
"{",
"panic",
"(",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"filename",
",",
"err",
")",
")",
"\n",
"}",
"\n",
"}"
] | // Attach opens a file by name, and unmarshal its JSON data.
// Will proceed to setup the API if not already done so. | [
"Attach",
"opens",
"a",
"file",
"by",
"name",
"and",
"unmarshal",
"its",
"JSON",
"data",
".",
"Will",
"proceed",
"to",
"setup",
"the",
"API",
"if",
"not",
"already",
"done",
"so",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/load.go#L142-L152 | train |
aws/aws-sdk-go | private/model/api/load.go | AttachString | func (a *API) AttachString(str string) {
json.Unmarshal([]byte(str), a)
if !a.initialized {
a.Setup()
}
} | go | func (a *API) AttachString(str string) {
json.Unmarshal([]byte(str), a)
if !a.initialized {
a.Setup()
}
} | [
"func",
"(",
"a",
"*",
"API",
")",
"AttachString",
"(",
"str",
"string",
")",
"{",
"json",
".",
"Unmarshal",
"(",
"[",
"]",
"byte",
"(",
"str",
")",
",",
"a",
")",
"\n\n",
"if",
"!",
"a",
".",
"initialized",
"{",
"a",
".",
"Setup",
"(",
")",
"\n",
"}",
"\n",
"}"
] | // AttachString will unmarshal a raw JSON string, and setup the
// API if not already done so. | [
"AttachString",
"will",
"unmarshal",
"a",
"raw",
"JSON",
"string",
"and",
"setup",
"the",
"API",
"if",
"not",
"already",
"done",
"so",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/load.go#L156-L162 | train |
aws/aws-sdk-go | private/model/api/load.go | Setup | func (a *API) Setup() {
a.setServiceAliaseName()
a.setMetadataEndpointsKey()
a.writeShapeNames()
a.resolveReferences()
if !a.NoRemoveUnusedShapes {
a.removeUnusedShapes()
}
a.fixStutterNames()
a.renameExportable()
a.applyShapeNameAliases()
a.createInputOutputShapes()
a.renameAPIPayloadShapes()
a.renameCollidingFields()
a.updateTopLevelShapeReferences()
a.setupEventStreams()
a.findEndpointDiscoveryOp()
a.customizationPasses()
if !a.NoRemoveUnusedShapes {
a.removeUnusedShapes()
}
if !a.NoValidataShapeMethods {
a.addShapeValidations()
}
a.initialized = true
} | go | func (a *API) Setup() {
a.setServiceAliaseName()
a.setMetadataEndpointsKey()
a.writeShapeNames()
a.resolveReferences()
if !a.NoRemoveUnusedShapes {
a.removeUnusedShapes()
}
a.fixStutterNames()
a.renameExportable()
a.applyShapeNameAliases()
a.createInputOutputShapes()
a.renameAPIPayloadShapes()
a.renameCollidingFields()
a.updateTopLevelShapeReferences()
a.setupEventStreams()
a.findEndpointDiscoveryOp()
a.customizationPasses()
if !a.NoRemoveUnusedShapes {
a.removeUnusedShapes()
}
if !a.NoValidataShapeMethods {
a.addShapeValidations()
}
a.initialized = true
} | [
"func",
"(",
"a",
"*",
"API",
")",
"Setup",
"(",
")",
"{",
"a",
".",
"setServiceAliaseName",
"(",
")",
"\n",
"a",
".",
"setMetadataEndpointsKey",
"(",
")",
"\n",
"a",
".",
"writeShapeNames",
"(",
")",
"\n",
"a",
".",
"resolveReferences",
"(",
")",
"\n\n",
"if",
"!",
"a",
".",
"NoRemoveUnusedShapes",
"{",
"a",
".",
"removeUnusedShapes",
"(",
")",
"\n",
"}",
"\n\n",
"a",
".",
"fixStutterNames",
"(",
")",
"\n",
"a",
".",
"renameExportable",
"(",
")",
"\n",
"a",
".",
"applyShapeNameAliases",
"(",
")",
"\n",
"a",
".",
"createInputOutputShapes",
"(",
")",
"\n",
"a",
".",
"renameAPIPayloadShapes",
"(",
")",
"\n",
"a",
".",
"renameCollidingFields",
"(",
")",
"\n",
"a",
".",
"updateTopLevelShapeReferences",
"(",
")",
"\n",
"a",
".",
"setupEventStreams",
"(",
")",
"\n",
"a",
".",
"findEndpointDiscoveryOp",
"(",
")",
"\n",
"a",
".",
"customizationPasses",
"(",
")",
"\n\n",
"if",
"!",
"a",
".",
"NoRemoveUnusedShapes",
"{",
"a",
".",
"removeUnusedShapes",
"(",
")",
"\n",
"}",
"\n\n",
"if",
"!",
"a",
".",
"NoValidataShapeMethods",
"{",
"a",
".",
"addShapeValidations",
"(",
")",
"\n",
"}",
"\n\n",
"a",
".",
"initialized",
"=",
"true",
"\n",
"}"
] | // Setup initializes the API. | [
"Setup",
"initializes",
"the",
"API",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/load.go#L165-L195 | train |
aws/aws-sdk-go | private/protocol/jsonrpc/jsonrpc.go | Build | func Build(req *request.Request) {
var buf []byte
var err error
if req.ParamsFilled() {
buf, err = jsonutil.BuildJSON(req.Params)
if err != nil {
req.Error = awserr.New("SerializationError", "failed encoding JSON RPC request", err)
return
}
} else {
buf = emptyJSON
}
if req.ClientInfo.TargetPrefix != "" || string(buf) != "{}" {
req.SetBufferBody(buf)
}
if req.ClientInfo.TargetPrefix != "" {
target := req.ClientInfo.TargetPrefix + "." + req.Operation.Name
req.HTTPRequest.Header.Add("X-Amz-Target", target)
}
// Only set the content type if one is not already specified and an
// JSONVersion is specified.
if ct, v := req.HTTPRequest.Header.Get("Content-Type"), req.ClientInfo.JSONVersion; len(ct) == 0 && len(v) != 0 {
jsonVersion := req.ClientInfo.JSONVersion
req.HTTPRequest.Header.Set("Content-Type", "application/x-amz-json-"+jsonVersion)
}
} | go | func Build(req *request.Request) {
var buf []byte
var err error
if req.ParamsFilled() {
buf, err = jsonutil.BuildJSON(req.Params)
if err != nil {
req.Error = awserr.New("SerializationError", "failed encoding JSON RPC request", err)
return
}
} else {
buf = emptyJSON
}
if req.ClientInfo.TargetPrefix != "" || string(buf) != "{}" {
req.SetBufferBody(buf)
}
if req.ClientInfo.TargetPrefix != "" {
target := req.ClientInfo.TargetPrefix + "." + req.Operation.Name
req.HTTPRequest.Header.Add("X-Amz-Target", target)
}
// Only set the content type if one is not already specified and an
// JSONVersion is specified.
if ct, v := req.HTTPRequest.Header.Get("Content-Type"), req.ClientInfo.JSONVersion; len(ct) == 0 && len(v) != 0 {
jsonVersion := req.ClientInfo.JSONVersion
req.HTTPRequest.Header.Set("Content-Type", "application/x-amz-json-"+jsonVersion)
}
} | [
"func",
"Build",
"(",
"req",
"*",
"request",
".",
"Request",
")",
"{",
"var",
"buf",
"[",
"]",
"byte",
"\n",
"var",
"err",
"error",
"\n",
"if",
"req",
".",
"ParamsFilled",
"(",
")",
"{",
"buf",
",",
"err",
"=",
"jsonutil",
".",
"BuildJSON",
"(",
"req",
".",
"Params",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"req",
".",
"Error",
"=",
"awserr",
".",
"New",
"(",
"\"",
"\"",
",",
"\"",
"\"",
",",
"err",
")",
"\n",
"return",
"\n",
"}",
"\n",
"}",
"else",
"{",
"buf",
"=",
"emptyJSON",
"\n",
"}",
"\n\n",
"if",
"req",
".",
"ClientInfo",
".",
"TargetPrefix",
"!=",
"\"",
"\"",
"||",
"string",
"(",
"buf",
")",
"!=",
"\"",
"\"",
"{",
"req",
".",
"SetBufferBody",
"(",
"buf",
")",
"\n",
"}",
"\n\n",
"if",
"req",
".",
"ClientInfo",
".",
"TargetPrefix",
"!=",
"\"",
"\"",
"{",
"target",
":=",
"req",
".",
"ClientInfo",
".",
"TargetPrefix",
"+",
"\"",
"\"",
"+",
"req",
".",
"Operation",
".",
"Name",
"\n",
"req",
".",
"HTTPRequest",
".",
"Header",
".",
"Add",
"(",
"\"",
"\"",
",",
"target",
")",
"\n",
"}",
"\n\n",
"// Only set the content type if one is not already specified and an",
"// JSONVersion is specified.",
"if",
"ct",
",",
"v",
":=",
"req",
".",
"HTTPRequest",
".",
"Header",
".",
"Get",
"(",
"\"",
"\"",
")",
",",
"req",
".",
"ClientInfo",
".",
"JSONVersion",
";",
"len",
"(",
"ct",
")",
"==",
"0",
"&&",
"len",
"(",
"v",
")",
"!=",
"0",
"{",
"jsonVersion",
":=",
"req",
".",
"ClientInfo",
".",
"JSONVersion",
"\n",
"req",
".",
"HTTPRequest",
".",
"Header",
".",
"Set",
"(",
"\"",
"\"",
",",
"\"",
"\"",
"+",
"jsonVersion",
")",
"\n",
"}",
"\n",
"}"
] | // Build builds a JSON payload for a JSON RPC request. | [
"Build",
"builds",
"a",
"JSON",
"payload",
"for",
"a",
"JSON",
"RPC",
"request",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/jsonrpc/jsonrpc.go#L34-L62 | train |
aws/aws-sdk-go | private/protocol/jsonrpc/jsonrpc.go | Unmarshal | func Unmarshal(req *request.Request) {
defer req.HTTPResponse.Body.Close()
if req.DataFilled() {
err := jsonutil.UnmarshalJSON(req.Data, req.HTTPResponse.Body)
if err != nil {
req.Error = awserr.NewRequestFailure(
awserr.New("SerializationError", "failed decoding JSON RPC response", err),
req.HTTPResponse.StatusCode,
req.RequestID,
)
}
}
return
} | go | func Unmarshal(req *request.Request) {
defer req.HTTPResponse.Body.Close()
if req.DataFilled() {
err := jsonutil.UnmarshalJSON(req.Data, req.HTTPResponse.Body)
if err != nil {
req.Error = awserr.NewRequestFailure(
awserr.New("SerializationError", "failed decoding JSON RPC response", err),
req.HTTPResponse.StatusCode,
req.RequestID,
)
}
}
return
} | [
"func",
"Unmarshal",
"(",
"req",
"*",
"request",
".",
"Request",
")",
"{",
"defer",
"req",
".",
"HTTPResponse",
".",
"Body",
".",
"Close",
"(",
")",
"\n",
"if",
"req",
".",
"DataFilled",
"(",
")",
"{",
"err",
":=",
"jsonutil",
".",
"UnmarshalJSON",
"(",
"req",
".",
"Data",
",",
"req",
".",
"HTTPResponse",
".",
"Body",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"req",
".",
"Error",
"=",
"awserr",
".",
"NewRequestFailure",
"(",
"awserr",
".",
"New",
"(",
"\"",
"\"",
",",
"\"",
"\"",
",",
"err",
")",
",",
"req",
".",
"HTTPResponse",
".",
"StatusCode",
",",
"req",
".",
"RequestID",
",",
")",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"\n",
"}"
] | // Unmarshal unmarshals a response for a JSON RPC service. | [
"Unmarshal",
"unmarshals",
"a",
"response",
"for",
"a",
"JSON",
"RPC",
"service",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/jsonrpc/jsonrpc.go#L65-L78 | train |
aws/aws-sdk-go | private/protocol/jsonrpc/jsonrpc.go | UnmarshalError | func UnmarshalError(req *request.Request) {
defer req.HTTPResponse.Body.Close()
var jsonErr jsonErrorResponse
err := json.NewDecoder(req.HTTPResponse.Body).Decode(&jsonErr)
if err == io.EOF {
req.Error = awserr.NewRequestFailure(
awserr.New("SerializationError", req.HTTPResponse.Status, nil),
req.HTTPResponse.StatusCode,
req.RequestID,
)
return
} else if err != nil {
req.Error = awserr.NewRequestFailure(
awserr.New("SerializationError", "failed decoding JSON RPC error response", err),
req.HTTPResponse.StatusCode,
req.RequestID,
)
return
}
codes := strings.SplitN(jsonErr.Code, "#", 2)
req.Error = awserr.NewRequestFailure(
awserr.New(codes[len(codes)-1], jsonErr.Message, nil),
req.HTTPResponse.StatusCode,
req.RequestID,
)
} | go | func UnmarshalError(req *request.Request) {
defer req.HTTPResponse.Body.Close()
var jsonErr jsonErrorResponse
err := json.NewDecoder(req.HTTPResponse.Body).Decode(&jsonErr)
if err == io.EOF {
req.Error = awserr.NewRequestFailure(
awserr.New("SerializationError", req.HTTPResponse.Status, nil),
req.HTTPResponse.StatusCode,
req.RequestID,
)
return
} else if err != nil {
req.Error = awserr.NewRequestFailure(
awserr.New("SerializationError", "failed decoding JSON RPC error response", err),
req.HTTPResponse.StatusCode,
req.RequestID,
)
return
}
codes := strings.SplitN(jsonErr.Code, "#", 2)
req.Error = awserr.NewRequestFailure(
awserr.New(codes[len(codes)-1], jsonErr.Message, nil),
req.HTTPResponse.StatusCode,
req.RequestID,
)
} | [
"func",
"UnmarshalError",
"(",
"req",
"*",
"request",
".",
"Request",
")",
"{",
"defer",
"req",
".",
"HTTPResponse",
".",
"Body",
".",
"Close",
"(",
")",
"\n\n",
"var",
"jsonErr",
"jsonErrorResponse",
"\n",
"err",
":=",
"json",
".",
"NewDecoder",
"(",
"req",
".",
"HTTPResponse",
".",
"Body",
")",
".",
"Decode",
"(",
"&",
"jsonErr",
")",
"\n",
"if",
"err",
"==",
"io",
".",
"EOF",
"{",
"req",
".",
"Error",
"=",
"awserr",
".",
"NewRequestFailure",
"(",
"awserr",
".",
"New",
"(",
"\"",
"\"",
",",
"req",
".",
"HTTPResponse",
".",
"Status",
",",
"nil",
")",
",",
"req",
".",
"HTTPResponse",
".",
"StatusCode",
",",
"req",
".",
"RequestID",
",",
")",
"\n",
"return",
"\n",
"}",
"else",
"if",
"err",
"!=",
"nil",
"{",
"req",
".",
"Error",
"=",
"awserr",
".",
"NewRequestFailure",
"(",
"awserr",
".",
"New",
"(",
"\"",
"\"",
",",
"\"",
"\"",
",",
"err",
")",
",",
"req",
".",
"HTTPResponse",
".",
"StatusCode",
",",
"req",
".",
"RequestID",
",",
")",
"\n",
"return",
"\n",
"}",
"\n\n",
"codes",
":=",
"strings",
".",
"SplitN",
"(",
"jsonErr",
".",
"Code",
",",
"\"",
"\"",
",",
"2",
")",
"\n",
"req",
".",
"Error",
"=",
"awserr",
".",
"NewRequestFailure",
"(",
"awserr",
".",
"New",
"(",
"codes",
"[",
"len",
"(",
"codes",
")",
"-",
"1",
"]",
",",
"jsonErr",
".",
"Message",
",",
"nil",
")",
",",
"req",
".",
"HTTPResponse",
".",
"StatusCode",
",",
"req",
".",
"RequestID",
",",
")",
"\n",
"}"
] | // UnmarshalError unmarshals an error response for a JSON RPC service. | [
"UnmarshalError",
"unmarshals",
"an",
"error",
"response",
"for",
"a",
"JSON",
"RPC",
"service",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/jsonrpc/jsonrpc.go#L86-L113 | train |
aws/aws-sdk-go | service/apigatewayv2/api.go | SetApiGatewayDomainName | func (s *DomainNameConfiguration) SetApiGatewayDomainName(v string) *DomainNameConfiguration {
s.ApiGatewayDomainName = &v
return s
} | go | func (s *DomainNameConfiguration) SetApiGatewayDomainName(v string) *DomainNameConfiguration {
s.ApiGatewayDomainName = &v
return s
} | [
"func",
"(",
"s",
"*",
"DomainNameConfiguration",
")",
"SetApiGatewayDomainName",
"(",
"v",
"string",
")",
"*",
"DomainNameConfiguration",
"{",
"s",
".",
"ApiGatewayDomainName",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetApiGatewayDomainName sets the ApiGatewayDomainName field's value. | [
"SetApiGatewayDomainName",
"sets",
"the",
"ApiGatewayDomainName",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigatewayv2/api.go#L8326-L8329 | train |
aws/aws-sdk-go | service/apigatewayv2/api.go | SetDetailedMetricsEnabled | func (s *RouteSettings) SetDetailedMetricsEnabled(v bool) *RouteSettings {
s.DetailedMetricsEnabled = &v
return s
} | go | func (s *RouteSettings) SetDetailedMetricsEnabled(v bool) *RouteSettings {
s.DetailedMetricsEnabled = &v
return s
} | [
"func",
"(",
"s",
"*",
"RouteSettings",
")",
"SetDetailedMetricsEnabled",
"(",
"v",
"bool",
")",
"*",
"RouteSettings",
"{",
"s",
".",
"DetailedMetricsEnabled",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDetailedMetricsEnabled sets the DetailedMetricsEnabled field's value. | [
"SetDetailedMetricsEnabled",
"sets",
"the",
"DetailedMetricsEnabled",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigatewayv2/api.go#L11585-L11588 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetGatewayRegion | func (s *ActivateGatewayInput) SetGatewayRegion(v string) *ActivateGatewayInput {
s.GatewayRegion = &v
return s
} | go | func (s *ActivateGatewayInput) SetGatewayRegion(v string) *ActivateGatewayInput {
s.GatewayRegion = &v
return s
} | [
"func",
"(",
"s",
"*",
"ActivateGatewayInput",
")",
"SetGatewayRegion",
"(",
"v",
"string",
")",
"*",
"ActivateGatewayInput",
"{",
"s",
".",
"GatewayRegion",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetGatewayRegion sets the GatewayRegion field's value. | [
"SetGatewayRegion",
"sets",
"the",
"GatewayRegion",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L7145-L7148 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetMediumChangerType | func (s *ActivateGatewayInput) SetMediumChangerType(v string) *ActivateGatewayInput {
s.MediumChangerType = &v
return s
} | go | func (s *ActivateGatewayInput) SetMediumChangerType(v string) *ActivateGatewayInput {
s.MediumChangerType = &v
return s
} | [
"func",
"(",
"s",
"*",
"ActivateGatewayInput",
")",
"SetMediumChangerType",
"(",
"v",
"string",
")",
"*",
"ActivateGatewayInput",
"{",
"s",
".",
"MediumChangerType",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMediumChangerType sets the MediumChangerType field's value. | [
"SetMediumChangerType",
"sets",
"the",
"MediumChangerType",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L7163-L7166 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetTapeDriveType | func (s *ActivateGatewayInput) SetTapeDriveType(v string) *ActivateGatewayInput {
s.TapeDriveType = &v
return s
} | go | func (s *ActivateGatewayInput) SetTapeDriveType(v string) *ActivateGatewayInput {
s.TapeDriveType = &v
return s
} | [
"func",
"(",
"s",
"*",
"ActivateGatewayInput",
")",
"SetTapeDriveType",
"(",
"v",
"string",
")",
"*",
"ActivateGatewayInput",
"{",
"s",
".",
"TapeDriveType",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTapeDriveType sets the TapeDriveType field's value. | [
"SetTapeDriveType",
"sets",
"the",
"TapeDriveType",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L7175-L7178 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetSourceVolumeARN | func (s *CreateCachediSCSIVolumeInput) SetSourceVolumeARN(v string) *CreateCachediSCSIVolumeInput {
s.SourceVolumeARN = &v
return s
} | go | func (s *CreateCachediSCSIVolumeInput) SetSourceVolumeARN(v string) *CreateCachediSCSIVolumeInput {
s.SourceVolumeARN = &v
return s
} | [
"func",
"(",
"s",
"*",
"CreateCachediSCSIVolumeInput",
")",
"SetSourceVolumeARN",
"(",
"v",
"string",
")",
"*",
"CreateCachediSCSIVolumeInput",
"{",
"s",
".",
"SourceVolumeARN",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSourceVolumeARN sets the SourceVolumeARN field's value. | [
"SetSourceVolumeARN",
"sets",
"the",
"SourceVolumeARN",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L8254-L8257 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetPreserveExistingData | func (s *CreateStorediSCSIVolumeInput) SetPreserveExistingData(v bool) *CreateStorediSCSIVolumeInput {
s.PreserveExistingData = &v
return s
} | go | func (s *CreateStorediSCSIVolumeInput) SetPreserveExistingData(v bool) *CreateStorediSCSIVolumeInput {
s.PreserveExistingData = &v
return s
} | [
"func",
"(",
"s",
"*",
"CreateStorediSCSIVolumeInput",
")",
"SetPreserveExistingData",
"(",
"v",
"bool",
")",
"*",
"CreateStorediSCSIVolumeInput",
"{",
"s",
".",
"PreserveExistingData",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPreserveExistingData sets the PreserveExistingData field's value. | [
"SetPreserveExistingData",
"sets",
"the",
"PreserveExistingData",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L9232-L9235 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetNumTapesToCreate | func (s *CreateTapesInput) SetNumTapesToCreate(v int64) *CreateTapesInput {
s.NumTapesToCreate = &v
return s
} | go | func (s *CreateTapesInput) SetNumTapesToCreate(v int64) *CreateTapesInput {
s.NumTapesToCreate = &v
return s
} | [
"func",
"(",
"s",
"*",
"CreateTapesInput",
")",
"SetNumTapesToCreate",
"(",
"v",
"int64",
")",
"*",
"CreateTapesInput",
"{",
"s",
".",
"NumTapesToCreate",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetNumTapesToCreate sets the NumTapesToCreate field's value. | [
"SetNumTapesToCreate",
"sets",
"the",
"NumTapesToCreate",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L9624-L9627 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetTapeBarcodePrefix | func (s *CreateTapesInput) SetTapeBarcodePrefix(v string) *CreateTapesInput {
s.TapeBarcodePrefix = &v
return s
} | go | func (s *CreateTapesInput) SetTapeBarcodePrefix(v string) *CreateTapesInput {
s.TapeBarcodePrefix = &v
return s
} | [
"func",
"(",
"s",
"*",
"CreateTapesInput",
")",
"SetTapeBarcodePrefix",
"(",
"v",
"string",
")",
"*",
"CreateTapesInput",
"{",
"s",
".",
"TapeBarcodePrefix",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTapeBarcodePrefix sets the TapeBarcodePrefix field's value. | [
"SetTapeBarcodePrefix",
"sets",
"the",
"TapeBarcodePrefix",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L9642-L9645 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetBandwidthType | func (s *DeleteBandwidthRateLimitInput) SetBandwidthType(v string) *DeleteBandwidthRateLimitInput {
s.BandwidthType = &v
return s
} | go | func (s *DeleteBandwidthRateLimitInput) SetBandwidthType(v string) *DeleteBandwidthRateLimitInput {
s.BandwidthType = &v
return s
} | [
"func",
"(",
"s",
"*",
"DeleteBandwidthRateLimitInput",
")",
"SetBandwidthType",
"(",
"v",
"string",
")",
"*",
"DeleteBandwidthRateLimitInput",
"{",
"s",
".",
"BandwidthType",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetBandwidthType sets the BandwidthType field's value. | [
"SetBandwidthType",
"sets",
"the",
"BandwidthType",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L9732-L9735 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetCacheAllocatedInBytes | func (s *DescribeCacheOutput) SetCacheAllocatedInBytes(v int64) *DescribeCacheOutput {
s.CacheAllocatedInBytes = &v
return s
} | go | func (s *DescribeCacheOutput) SetCacheAllocatedInBytes(v int64) *DescribeCacheOutput {
s.CacheAllocatedInBytes = &v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeCacheOutput",
")",
"SetCacheAllocatedInBytes",
"(",
"v",
"int64",
")",
"*",
"DescribeCacheOutput",
"{",
"s",
".",
"CacheAllocatedInBytes",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCacheAllocatedInBytes sets the CacheAllocatedInBytes field's value. | [
"SetCacheAllocatedInBytes",
"sets",
"the",
"CacheAllocatedInBytes",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L10472-L10475 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetCacheDirtyPercentage | func (s *DescribeCacheOutput) SetCacheDirtyPercentage(v float64) *DescribeCacheOutput {
s.CacheDirtyPercentage = &v
return s
} | go | func (s *DescribeCacheOutput) SetCacheDirtyPercentage(v float64) *DescribeCacheOutput {
s.CacheDirtyPercentage = &v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeCacheOutput",
")",
"SetCacheDirtyPercentage",
"(",
"v",
"float64",
")",
"*",
"DescribeCacheOutput",
"{",
"s",
".",
"CacheDirtyPercentage",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCacheDirtyPercentage sets the CacheDirtyPercentage field's value. | [
"SetCacheDirtyPercentage",
"sets",
"the",
"CacheDirtyPercentage",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L10478-L10481 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetCacheHitPercentage | func (s *DescribeCacheOutput) SetCacheHitPercentage(v float64) *DescribeCacheOutput {
s.CacheHitPercentage = &v
return s
} | go | func (s *DescribeCacheOutput) SetCacheHitPercentage(v float64) *DescribeCacheOutput {
s.CacheHitPercentage = &v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeCacheOutput",
")",
"SetCacheHitPercentage",
"(",
"v",
"float64",
")",
"*",
"DescribeCacheOutput",
"{",
"s",
".",
"CacheHitPercentage",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCacheHitPercentage sets the CacheHitPercentage field's value. | [
"SetCacheHitPercentage",
"sets",
"the",
"CacheHitPercentage",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L10484-L10487 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetCacheMissPercentage | func (s *DescribeCacheOutput) SetCacheMissPercentage(v float64) *DescribeCacheOutput {
s.CacheMissPercentage = &v
return s
} | go | func (s *DescribeCacheOutput) SetCacheMissPercentage(v float64) *DescribeCacheOutput {
s.CacheMissPercentage = &v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeCacheOutput",
")",
"SetCacheMissPercentage",
"(",
"v",
"float64",
")",
"*",
"DescribeCacheOutput",
"{",
"s",
".",
"CacheMissPercentage",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCacheMissPercentage sets the CacheMissPercentage field's value. | [
"SetCacheMissPercentage",
"sets",
"the",
"CacheMissPercentage",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L10490-L10493 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetCacheUsedPercentage | func (s *DescribeCacheOutput) SetCacheUsedPercentage(v float64) *DescribeCacheOutput {
s.CacheUsedPercentage = &v
return s
} | go | func (s *DescribeCacheOutput) SetCacheUsedPercentage(v float64) *DescribeCacheOutput {
s.CacheUsedPercentage = &v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeCacheOutput",
")",
"SetCacheUsedPercentage",
"(",
"v",
"float64",
")",
"*",
"DescribeCacheOutput",
"{",
"s",
".",
"CacheUsedPercentage",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCacheUsedPercentage sets the CacheUsedPercentage field's value. | [
"SetCacheUsedPercentage",
"sets",
"the",
"CacheUsedPercentage",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L10496-L10499 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetCachediSCSIVolumes | func (s *DescribeCachediSCSIVolumesOutput) SetCachediSCSIVolumes(v []*CachediSCSIVolume) *DescribeCachediSCSIVolumesOutput {
s.CachediSCSIVolumes = v
return s
} | go | func (s *DescribeCachediSCSIVolumesOutput) SetCachediSCSIVolumes(v []*CachediSCSIVolume) *DescribeCachediSCSIVolumesOutput {
s.CachediSCSIVolumes = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeCachediSCSIVolumesOutput",
")",
"SetCachediSCSIVolumes",
"(",
"v",
"[",
"]",
"*",
"CachediSCSIVolume",
")",
"*",
"DescribeCachediSCSIVolumesOutput",
"{",
"s",
".",
"CachediSCSIVolumes",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCachediSCSIVolumes sets the CachediSCSIVolumes field's value. | [
"SetCachediSCSIVolumes",
"sets",
"the",
"CachediSCSIVolumes",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L10573-L10576 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetChapCredentials | func (s *DescribeChapCredentialsOutput) SetChapCredentials(v []*ChapInfo) *DescribeChapCredentialsOutput {
s.ChapCredentials = v
return s
} | go | func (s *DescribeChapCredentialsOutput) SetChapCredentials(v []*ChapInfo) *DescribeChapCredentialsOutput {
s.ChapCredentials = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeChapCredentialsOutput",
")",
"SetChapCredentials",
"(",
"v",
"[",
"]",
"*",
"ChapInfo",
")",
"*",
"DescribeChapCredentialsOutput",
"{",
"s",
".",
"ChapCredentials",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetChapCredentials sets the ChapCredentials field's value. | [
"SetChapCredentials",
"sets",
"the",
"ChapCredentials",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L10655-L10658 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetGatewayNetworkInterfaces | func (s *DescribeGatewayInformationOutput) SetGatewayNetworkInterfaces(v []*NetworkInterface) *DescribeGatewayInformationOutput {
s.GatewayNetworkInterfaces = v
return s
} | go | func (s *DescribeGatewayInformationOutput) SetGatewayNetworkInterfaces(v []*NetworkInterface) *DescribeGatewayInformationOutput {
s.GatewayNetworkInterfaces = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeGatewayInformationOutput",
")",
"SetGatewayNetworkInterfaces",
"(",
"v",
"[",
"]",
"*",
"NetworkInterface",
")",
"*",
"DescribeGatewayInformationOutput",
"{",
"s",
".",
"GatewayNetworkInterfaces",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetGatewayNetworkInterfaces sets the GatewayNetworkInterfaces field's value. | [
"SetGatewayNetworkInterfaces",
"sets",
"the",
"GatewayNetworkInterfaces",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L10795-L10798 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetGatewayState | func (s *DescribeGatewayInformationOutput) SetGatewayState(v string) *DescribeGatewayInformationOutput {
s.GatewayState = &v
return s
} | go | func (s *DescribeGatewayInformationOutput) SetGatewayState(v string) *DescribeGatewayInformationOutput {
s.GatewayState = &v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeGatewayInformationOutput",
")",
"SetGatewayState",
"(",
"v",
"string",
")",
"*",
"DescribeGatewayInformationOutput",
"{",
"s",
".",
"GatewayState",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetGatewayState sets the GatewayState field's value. | [
"SetGatewayState",
"sets",
"the",
"GatewayState",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L10801-L10804 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetLastSoftwareUpdate | func (s *DescribeGatewayInformationOutput) SetLastSoftwareUpdate(v string) *DescribeGatewayInformationOutput {
s.LastSoftwareUpdate = &v
return s
} | go | func (s *DescribeGatewayInformationOutput) SetLastSoftwareUpdate(v string) *DescribeGatewayInformationOutput {
s.LastSoftwareUpdate = &v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeGatewayInformationOutput",
")",
"SetLastSoftwareUpdate",
"(",
"v",
"string",
")",
"*",
"DescribeGatewayInformationOutput",
"{",
"s",
".",
"LastSoftwareUpdate",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetLastSoftwareUpdate sets the LastSoftwareUpdate field's value. | [
"SetLastSoftwareUpdate",
"sets",
"the",
"LastSoftwareUpdate",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L10819-L10822 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetNextUpdateAvailabilityDate | func (s *DescribeGatewayInformationOutput) SetNextUpdateAvailabilityDate(v string) *DescribeGatewayInformationOutput {
s.NextUpdateAvailabilityDate = &v
return s
} | go | func (s *DescribeGatewayInformationOutput) SetNextUpdateAvailabilityDate(v string) *DescribeGatewayInformationOutput {
s.NextUpdateAvailabilityDate = &v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeGatewayInformationOutput",
")",
"SetNextUpdateAvailabilityDate",
"(",
"v",
"string",
")",
"*",
"DescribeGatewayInformationOutput",
"{",
"s",
".",
"NextUpdateAvailabilityDate",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetNextUpdateAvailabilityDate sets the NextUpdateAvailabilityDate field's value. | [
"SetNextUpdateAvailabilityDate",
"sets",
"the",
"NextUpdateAvailabilityDate",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L10825-L10828 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetNFSFileShareInfoList | func (s *DescribeNFSFileSharesOutput) SetNFSFileShareInfoList(v []*NFSFileShareInfo) *DescribeNFSFileSharesOutput {
s.NFSFileShareInfoList = v
return s
} | go | func (s *DescribeNFSFileSharesOutput) SetNFSFileShareInfoList(v []*NFSFileShareInfo) *DescribeNFSFileSharesOutput {
s.NFSFileShareInfoList = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeNFSFileSharesOutput",
")",
"SetNFSFileShareInfoList",
"(",
"v",
"[",
"]",
"*",
"NFSFileShareInfo",
")",
"*",
"DescribeNFSFileSharesOutput",
"{",
"s",
".",
"NFSFileShareInfoList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetNFSFileShareInfoList sets the NFSFileShareInfoList field's value. | [
"SetNFSFileShareInfoList",
"sets",
"the",
"NFSFileShareInfoList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L11032-L11035 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetSMBFileShareInfoList | func (s *DescribeSMBFileSharesOutput) SetSMBFileShareInfoList(v []*SMBFileShareInfo) *DescribeSMBFileSharesOutput {
s.SMBFileShareInfoList = v
return s
} | go | func (s *DescribeSMBFileSharesOutput) SetSMBFileShareInfoList(v []*SMBFileShareInfo) *DescribeSMBFileSharesOutput {
s.SMBFileShareInfoList = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeSMBFileSharesOutput",
")",
"SetSMBFileShareInfoList",
"(",
"v",
"[",
"]",
"*",
"SMBFileShareInfo",
")",
"*",
"DescribeSMBFileSharesOutput",
"{",
"s",
".",
"SMBFileShareInfoList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSMBFileShareInfoList sets the SMBFileShareInfoList field's value. | [
"SetSMBFileShareInfoList",
"sets",
"the",
"SMBFileShareInfoList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L11099-L11102 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetSMBGuestPasswordSet | func (s *DescribeSMBSettingsOutput) SetSMBGuestPasswordSet(v bool) *DescribeSMBSettingsOutput {
s.SMBGuestPasswordSet = &v
return s
} | go | func (s *DescribeSMBSettingsOutput) SetSMBGuestPasswordSet(v bool) *DescribeSMBSettingsOutput {
s.SMBGuestPasswordSet = &v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeSMBSettingsOutput",
")",
"SetSMBGuestPasswordSet",
"(",
"v",
"bool",
")",
"*",
"DescribeSMBSettingsOutput",
"{",
"s",
".",
"SMBGuestPasswordSet",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSMBGuestPasswordSet sets the SMBGuestPasswordSet field's value. | [
"SetSMBGuestPasswordSet",
"sets",
"the",
"SMBGuestPasswordSet",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L11184-L11187 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetStorediSCSIVolumes | func (s *DescribeStorediSCSIVolumesOutput) SetStorediSCSIVolumes(v []*StorediSCSIVolume) *DescribeStorediSCSIVolumesOutput {
s.StorediSCSIVolumes = v
return s
} | go | func (s *DescribeStorediSCSIVolumesOutput) SetStorediSCSIVolumes(v []*StorediSCSIVolume) *DescribeStorediSCSIVolumesOutput {
s.StorediSCSIVolumes = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeStorediSCSIVolumesOutput",
")",
"SetStorediSCSIVolumes",
"(",
"v",
"[",
"]",
"*",
"StorediSCSIVolume",
")",
"*",
"DescribeStorediSCSIVolumesOutput",
"{",
"s",
".",
"StorediSCSIVolumes",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetStorediSCSIVolumes sets the StorediSCSIVolumes field's value. | [
"SetStorediSCSIVolumes",
"sets",
"the",
"StorediSCSIVolumes",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L11399-L11402 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetTapeArchives | func (s *DescribeTapeArchivesOutput) SetTapeArchives(v []*TapeArchive) *DescribeTapeArchivesOutput {
s.TapeArchives = v
return s
} | go | func (s *DescribeTapeArchivesOutput) SetTapeArchives(v []*TapeArchive) *DescribeTapeArchivesOutput {
s.TapeArchives = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeTapeArchivesOutput",
")",
"SetTapeArchives",
"(",
"v",
"[",
"]",
"*",
"TapeArchive",
")",
"*",
"DescribeTapeArchivesOutput",
"{",
"s",
".",
"TapeArchives",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTapeArchives sets the TapeArchives field's value. | [
"SetTapeArchives",
"sets",
"the",
"TapeArchives",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L11500-L11503 | train |
aws/aws-sdk-go | service/storagegateway/api.go | SetTapeRecoveryPointInfos | func (s *DescribeTapeRecoveryPointsOutput) SetTapeRecoveryPointInfos(v []*TapeRecoveryPointInfo) *DescribeTapeRecoveryPointsOutput {
s.TapeRecoveryPointInfos = v
return s
} | go | func (s *DescribeTapeRecoveryPointsOutput) SetTapeRecoveryPointInfos(v []*TapeRecoveryPointInfo) *DescribeTapeRecoveryPointsOutput {
s.TapeRecoveryPointInfos = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeTapeRecoveryPointsOutput",
")",
"SetTapeRecoveryPointInfos",
"(",
"v",
"[",
"]",
"*",
"TapeRecoveryPointInfo",
")",
"*",
"DescribeTapeRecoveryPointsOutput",
"{",
"s",
".",
"TapeRecoveryPointInfos",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTapeRecoveryPointInfos sets the TapeRecoveryPointInfos field's value. | [
"SetTapeRecoveryPointInfos",
"sets",
"the",
"TapeRecoveryPointInfos",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/storagegateway/api.go#L11617-L11620 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.