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/athena/api.go | SetDataScannedInBytes | func (s *QueryExecutionStatistics) SetDataScannedInBytes(v int64) *QueryExecutionStatistics {
s.DataScannedInBytes = &v
return s
} | go | func (s *QueryExecutionStatistics) SetDataScannedInBytes(v int64) *QueryExecutionStatistics {
s.DataScannedInBytes = &v
return s
} | [
"func",
"(",
"s",
"*",
"QueryExecutionStatistics",
")",
"SetDataScannedInBytes",
"(",
"v",
"int64",
")",
"*",
"QueryExecutionStatistics",
"{",
"s",
".",
"DataScannedInBytes",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDataScannedInBytes sets the DataScannedInBytes field's value. | [
"SetDataScannedInBytes",
"sets",
"the",
"DataScannedInBytes",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/athena/api.go#L3466-L3469 | train |
aws/aws-sdk-go | service/athena/api.go | SetEngineExecutionTimeInMillis | func (s *QueryExecutionStatistics) SetEngineExecutionTimeInMillis(v int64) *QueryExecutionStatistics {
s.EngineExecutionTimeInMillis = &v
return s
} | go | func (s *QueryExecutionStatistics) SetEngineExecutionTimeInMillis(v int64) *QueryExecutionStatistics {
s.EngineExecutionTimeInMillis = &v
return s
} | [
"func",
"(",
"s",
"*",
"QueryExecutionStatistics",
")",
"SetEngineExecutionTimeInMillis",
"(",
"v",
"int64",
")",
"*",
"QueryExecutionStatistics",
"{",
"s",
".",
"EngineExecutionTimeInMillis",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetEngineExecutionTimeInMillis sets the EngineExecutionTimeInMillis field's value. | [
"SetEngineExecutionTimeInMillis",
"sets",
"the",
"EngineExecutionTimeInMillis",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/athena/api.go#L3472-L3475 | train |
aws/aws-sdk-go | service/athena/api.go | SetCompletionDateTime | func (s *QueryExecutionStatus) SetCompletionDateTime(v time.Time) *QueryExecutionStatus {
s.CompletionDateTime = &v
return s
} | go | func (s *QueryExecutionStatus) SetCompletionDateTime(v time.Time) *QueryExecutionStatus {
s.CompletionDateTime = &v
return s
} | [
"func",
"(",
"s",
"*",
"QueryExecutionStatus",
")",
"SetCompletionDateTime",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"QueryExecutionStatus",
"{",
"s",
".",
"CompletionDateTime",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCompletionDateTime sets the CompletionDateTime field's value. | [
"SetCompletionDateTime",
"sets",
"the",
"CompletionDateTime",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/athena/api.go#L3511-L3514 | train |
aws/aws-sdk-go | service/athena/api.go | SetSubmissionDateTime | func (s *QueryExecutionStatus) SetSubmissionDateTime(v time.Time) *QueryExecutionStatus {
s.SubmissionDateTime = &v
return s
} | go | func (s *QueryExecutionStatus) SetSubmissionDateTime(v time.Time) *QueryExecutionStatus {
s.SubmissionDateTime = &v
return s
} | [
"func",
"(",
"s",
"*",
"QueryExecutionStatus",
")",
"SetSubmissionDateTime",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"QueryExecutionStatus",
"{",
"s",
".",
"SubmissionDateTime",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSubmissionDateTime sets the SubmissionDateTime field's value. | [
"SetSubmissionDateTime",
"sets",
"the",
"SubmissionDateTime",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/athena/api.go#L3529-L3532 | train |
aws/aws-sdk-go | service/athena/api.go | SetRemoveEncryptionConfiguration | func (s *ResultConfigurationUpdates) SetRemoveEncryptionConfiguration(v bool) *ResultConfigurationUpdates {
s.RemoveEncryptionConfiguration = &v
return s
} | go | func (s *ResultConfigurationUpdates) SetRemoveEncryptionConfiguration(v bool) *ResultConfigurationUpdates {
s.RemoveEncryptionConfiguration = &v
return s
} | [
"func",
"(",
"s",
"*",
"ResultConfigurationUpdates",
")",
"SetRemoveEncryptionConfiguration",
"(",
"v",
"bool",
")",
"*",
"ResultConfigurationUpdates",
"{",
"s",
".",
"RemoveEncryptionConfiguration",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetRemoveEncryptionConfiguration sets the RemoveEncryptionConfiguration field's value. | [
"SetRemoveEncryptionConfiguration",
"sets",
"the",
"RemoveEncryptionConfiguration",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/athena/api.go#L3672-L3675 | train |
aws/aws-sdk-go | service/athena/api.go | SetRemoveOutputLocation | func (s *ResultConfigurationUpdates) SetRemoveOutputLocation(v bool) *ResultConfigurationUpdates {
s.RemoveOutputLocation = &v
return s
} | go | func (s *ResultConfigurationUpdates) SetRemoveOutputLocation(v bool) *ResultConfigurationUpdates {
s.RemoveOutputLocation = &v
return s
} | [
"func",
"(",
"s",
"*",
"ResultConfigurationUpdates",
")",
"SetRemoveOutputLocation",
"(",
"v",
"bool",
")",
"*",
"ResultConfigurationUpdates",
"{",
"s",
".",
"RemoveOutputLocation",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetRemoveOutputLocation sets the RemoveOutputLocation field's value. | [
"SetRemoveOutputLocation",
"sets",
"the",
"RemoveOutputLocation",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/athena/api.go#L3678-L3681 | train |
aws/aws-sdk-go | service/athena/api.go | SetRows | func (s *ResultSet) SetRows(v []*Row) *ResultSet {
s.Rows = v
return s
} | go | func (s *ResultSet) SetRows(v []*Row) *ResultSet {
s.Rows = v
return s
} | [
"func",
"(",
"s",
"*",
"ResultSet",
")",
"SetRows",
"(",
"v",
"[",
"]",
"*",
"Row",
")",
"*",
"ResultSet",
"{",
"s",
".",
"Rows",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetRows sets the Rows field's value. | [
"SetRows",
"sets",
"the",
"Rows",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/athena/api.go#L3713-L3716 | train |
aws/aws-sdk-go | service/athena/api.go | SetColumnInfo | func (s *ResultSetMetadata) SetColumnInfo(v []*ColumnInfo) *ResultSetMetadata {
s.ColumnInfo = v
return s
} | go | func (s *ResultSetMetadata) SetColumnInfo(v []*ColumnInfo) *ResultSetMetadata {
s.ColumnInfo = v
return s
} | [
"func",
"(",
"s",
"*",
"ResultSetMetadata",
")",
"SetColumnInfo",
"(",
"v",
"[",
"]",
"*",
"ColumnInfo",
")",
"*",
"ResultSetMetadata",
"{",
"s",
".",
"ColumnInfo",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetColumnInfo sets the ColumnInfo field's value. | [
"SetColumnInfo",
"sets",
"the",
"ColumnInfo",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/athena/api.go#L3738-L3741 | train |
aws/aws-sdk-go | service/athena/api.go | SetConfigurationUpdates | func (s *UpdateWorkGroupInput) SetConfigurationUpdates(v *WorkGroupConfigurationUpdates) *UpdateWorkGroupInput {
s.ConfigurationUpdates = v
return s
} | go | func (s *UpdateWorkGroupInput) SetConfigurationUpdates(v *WorkGroupConfigurationUpdates) *UpdateWorkGroupInput {
s.ConfigurationUpdates = v
return s
} | [
"func",
"(",
"s",
"*",
"UpdateWorkGroupInput",
")",
"SetConfigurationUpdates",
"(",
"v",
"*",
"WorkGroupConfigurationUpdates",
")",
"*",
"UpdateWorkGroupInput",
"{",
"s",
".",
"ConfigurationUpdates",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetConfigurationUpdates sets the ConfigurationUpdates field's value. | [
"SetConfigurationUpdates",
"sets",
"the",
"ConfigurationUpdates",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/athena/api.go#L4273-L4276 | train |
aws/aws-sdk-go | service/athena/api.go | SetRemoveBytesScannedCutoffPerQuery | func (s *WorkGroupConfigurationUpdates) SetRemoveBytesScannedCutoffPerQuery(v bool) *WorkGroupConfigurationUpdates {
s.RemoveBytesScannedCutoffPerQuery = &v
return s
} | go | func (s *WorkGroupConfigurationUpdates) SetRemoveBytesScannedCutoffPerQuery(v bool) *WorkGroupConfigurationUpdates {
s.RemoveBytesScannedCutoffPerQuery = &v
return s
} | [
"func",
"(",
"s",
"*",
"WorkGroupConfigurationUpdates",
")",
"SetRemoveBytesScannedCutoffPerQuery",
"(",
"v",
"bool",
")",
"*",
"WorkGroupConfigurationUpdates",
"{",
"s",
".",
"RemoveBytesScannedCutoffPerQuery",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetRemoveBytesScannedCutoffPerQuery sets the RemoveBytesScannedCutoffPerQuery field's value. | [
"SetRemoveBytesScannedCutoffPerQuery",
"sets",
"the",
"RemoveBytesScannedCutoffPerQuery",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/athena/api.go#L4543-L4546 | train |
aws/aws-sdk-go | service/athena/api.go | SetResultConfigurationUpdates | func (s *WorkGroupConfigurationUpdates) SetResultConfigurationUpdates(v *ResultConfigurationUpdates) *WorkGroupConfigurationUpdates {
s.ResultConfigurationUpdates = v
return s
} | go | func (s *WorkGroupConfigurationUpdates) SetResultConfigurationUpdates(v *ResultConfigurationUpdates) *WorkGroupConfigurationUpdates {
s.ResultConfigurationUpdates = v
return s
} | [
"func",
"(",
"s",
"*",
"WorkGroupConfigurationUpdates",
")",
"SetResultConfigurationUpdates",
"(",
"v",
"*",
"ResultConfigurationUpdates",
")",
"*",
"WorkGroupConfigurationUpdates",
"{",
"s",
".",
"ResultConfigurationUpdates",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetResultConfigurationUpdates sets the ResultConfigurationUpdates field's value. | [
"SetResultConfigurationUpdates",
"sets",
"the",
"ResultConfigurationUpdates",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/athena/api.go#L4549-L4552 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetHistoryData | func (s *AlarmHistoryItem) SetHistoryData(v string) *AlarmHistoryItem {
s.HistoryData = &v
return s
} | go | func (s *AlarmHistoryItem) SetHistoryData(v string) *AlarmHistoryItem {
s.HistoryData = &v
return s
} | [
"func",
"(",
"s",
"*",
"AlarmHistoryItem",
")",
"SetHistoryData",
"(",
"v",
"string",
")",
"*",
"AlarmHistoryItem",
"{",
"s",
".",
"HistoryData",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetHistoryData sets the HistoryData field's value. | [
"SetHistoryData",
"sets",
"the",
"HistoryData",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L2214-L2217 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetHistorySummary | func (s *AlarmHistoryItem) SetHistorySummary(v string) *AlarmHistoryItem {
s.HistorySummary = &v
return s
} | go | func (s *AlarmHistoryItem) SetHistorySummary(v string) *AlarmHistoryItem {
s.HistorySummary = &v
return s
} | [
"func",
"(",
"s",
"*",
"AlarmHistoryItem",
")",
"SetHistorySummary",
"(",
"v",
"string",
")",
"*",
"AlarmHistoryItem",
"{",
"s",
".",
"HistorySummary",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetHistorySummary sets the HistorySummary field's value. | [
"SetHistorySummary",
"sets",
"the",
"HistorySummary",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L2226-L2229 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetDataPath | func (s *DashboardValidationMessage) SetDataPath(v string) *DashboardValidationMessage {
s.DataPath = &v
return s
} | go | func (s *DashboardValidationMessage) SetDataPath(v string) *DashboardValidationMessage {
s.DataPath = &v
return s
} | [
"func",
"(",
"s",
"*",
"DashboardValidationMessage",
")",
"SetDataPath",
"(",
"v",
"string",
")",
"*",
"DashboardValidationMessage",
"{",
"s",
".",
"DataPath",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDataPath sets the DataPath field's value. | [
"SetDataPath",
"sets",
"the",
"DataPath",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L2312-L2315 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetDashboardNames | func (s *DeleteDashboardsInput) SetDashboardNames(v []*string) *DeleteDashboardsInput {
s.DashboardNames = v
return s
} | go | func (s *DeleteDashboardsInput) SetDashboardNames(v []*string) *DeleteDashboardsInput {
s.DashboardNames = v
return s
} | [
"func",
"(",
"s",
"*",
"DeleteDashboardsInput",
")",
"SetDashboardNames",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"DeleteDashboardsInput",
"{",
"s",
".",
"DashboardNames",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDashboardNames sets the DashboardNames field's value. | [
"SetDashboardNames",
"sets",
"the",
"DashboardNames",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L2496-L2499 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetAlarmHistoryItems | func (s *DescribeAlarmHistoryOutput) SetAlarmHistoryItems(v []*AlarmHistoryItem) *DescribeAlarmHistoryOutput {
s.AlarmHistoryItems = v
return s
} | go | func (s *DescribeAlarmHistoryOutput) SetAlarmHistoryItems(v []*AlarmHistoryItem) *DescribeAlarmHistoryOutput {
s.AlarmHistoryItems = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeAlarmHistoryOutput",
")",
"SetAlarmHistoryItems",
"(",
"v",
"[",
"]",
"*",
"AlarmHistoryItem",
")",
"*",
"DescribeAlarmHistoryOutput",
"{",
"s",
".",
"AlarmHistoryItems",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAlarmHistoryItems sets the AlarmHistoryItems field's value. | [
"SetAlarmHistoryItems",
"sets",
"the",
"AlarmHistoryItems",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L2621-L2624 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetActionPrefix | func (s *DescribeAlarmsInput) SetActionPrefix(v string) *DescribeAlarmsInput {
s.ActionPrefix = &v
return s
} | go | func (s *DescribeAlarmsInput) SetActionPrefix(v string) *DescribeAlarmsInput {
s.ActionPrefix = &v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeAlarmsInput",
")",
"SetActionPrefix",
"(",
"v",
"string",
")",
"*",
"DescribeAlarmsInput",
"{",
"s",
".",
"ActionPrefix",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetActionPrefix sets the ActionPrefix field's value. | [
"SetActionPrefix",
"sets",
"the",
"ActionPrefix",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L2828-L2831 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetAlarmNamePrefix | func (s *DescribeAlarmsInput) SetAlarmNamePrefix(v string) *DescribeAlarmsInput {
s.AlarmNamePrefix = &v
return s
} | go | func (s *DescribeAlarmsInput) SetAlarmNamePrefix(v string) *DescribeAlarmsInput {
s.AlarmNamePrefix = &v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeAlarmsInput",
")",
"SetAlarmNamePrefix",
"(",
"v",
"string",
")",
"*",
"DescribeAlarmsInput",
"{",
"s",
".",
"AlarmNamePrefix",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAlarmNamePrefix sets the AlarmNamePrefix field's value. | [
"SetAlarmNamePrefix",
"sets",
"the",
"AlarmNamePrefix",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L2834-L2837 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetMaxDatapoints | func (s *GetMetricDataInput) SetMaxDatapoints(v int64) *GetMetricDataInput {
s.MaxDatapoints = &v
return s
} | go | func (s *GetMetricDataInput) SetMaxDatapoints(v int64) *GetMetricDataInput {
s.MaxDatapoints = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetMetricDataInput",
")",
"SetMaxDatapoints",
"(",
"v",
"int64",
")",
"*",
"GetMetricDataInput",
"{",
"s",
".",
"MaxDatapoints",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMaxDatapoints sets the MaxDatapoints field's value. | [
"SetMaxDatapoints",
"sets",
"the",
"MaxDatapoints",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L3287-L3290 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetMetricDataQueries | func (s *GetMetricDataInput) SetMetricDataQueries(v []*MetricDataQuery) *GetMetricDataInput {
s.MetricDataQueries = v
return s
} | go | func (s *GetMetricDataInput) SetMetricDataQueries(v []*MetricDataQuery) *GetMetricDataInput {
s.MetricDataQueries = v
return s
} | [
"func",
"(",
"s",
"*",
"GetMetricDataInput",
")",
"SetMetricDataQueries",
"(",
"v",
"[",
"]",
"*",
"MetricDataQuery",
")",
"*",
"GetMetricDataInput",
"{",
"s",
".",
"MetricDataQueries",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMetricDataQueries sets the MetricDataQueries field's value. | [
"SetMetricDataQueries",
"sets",
"the",
"MetricDataQueries",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L3293-L3296 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetScanBy | func (s *GetMetricDataInput) SetScanBy(v string) *GetMetricDataInput {
s.ScanBy = &v
return s
} | go | func (s *GetMetricDataInput) SetScanBy(v string) *GetMetricDataInput {
s.ScanBy = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetMetricDataInput",
")",
"SetScanBy",
"(",
"v",
"string",
")",
"*",
"GetMetricDataInput",
"{",
"s",
".",
"ScanBy",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetScanBy sets the ScanBy field's value. | [
"SetScanBy",
"sets",
"the",
"ScanBy",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L3305-L3308 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetMetricDataResults | func (s *GetMetricDataOutput) SetMetricDataResults(v []*MetricDataResult) *GetMetricDataOutput {
s.MetricDataResults = v
return s
} | go | func (s *GetMetricDataOutput) SetMetricDataResults(v []*MetricDataResult) *GetMetricDataOutput {
s.MetricDataResults = v
return s
} | [
"func",
"(",
"s",
"*",
"GetMetricDataOutput",
")",
"SetMetricDataResults",
"(",
"v",
"[",
"]",
"*",
"MetricDataResult",
")",
"*",
"GetMetricDataOutput",
"{",
"s",
".",
"MetricDataResults",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMetricDataResults sets the MetricDataResults field's value. | [
"SetMetricDataResults",
"sets",
"the",
"MetricDataResults",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L3354-L3357 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetMetricWidget | func (s *GetMetricWidgetImageInput) SetMetricWidget(v string) *GetMetricWidgetImageInput {
s.MetricWidget = &v
return s
} | go | func (s *GetMetricWidgetImageInput) SetMetricWidget(v string) *GetMetricWidgetImageInput {
s.MetricWidget = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetMetricWidgetImageInput",
")",
"SetMetricWidget",
"(",
"v",
"string",
")",
"*",
"GetMetricWidgetImageInput",
"{",
"s",
".",
"MetricWidget",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMetricWidget sets the MetricWidget field's value. | [
"SetMetricWidget",
"sets",
"the",
"MetricWidget",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L3684-L3687 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetMetricWidgetImage | func (s *GetMetricWidgetImageOutput) SetMetricWidgetImage(v []byte) *GetMetricWidgetImageOutput {
s.MetricWidgetImage = v
return s
} | go | func (s *GetMetricWidgetImageOutput) SetMetricWidgetImage(v []byte) *GetMetricWidgetImageOutput {
s.MetricWidgetImage = v
return s
} | [
"func",
"(",
"s",
"*",
"GetMetricWidgetImageOutput",
")",
"SetMetricWidgetImage",
"(",
"v",
"[",
"]",
"byte",
")",
"*",
"GetMetricWidgetImageOutput",
"{",
"s",
".",
"MetricWidgetImage",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMetricWidgetImage sets the MetricWidgetImage field's value. | [
"SetMetricWidgetImage",
"sets",
"the",
"MetricWidgetImage",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L3715-L3718 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetDashboardNamePrefix | func (s *ListDashboardsInput) SetDashboardNamePrefix(v string) *ListDashboardsInput {
s.DashboardNamePrefix = &v
return s
} | go | func (s *ListDashboardsInput) SetDashboardNamePrefix(v string) *ListDashboardsInput {
s.DashboardNamePrefix = &v
return s
} | [
"func",
"(",
"s",
"*",
"ListDashboardsInput",
")",
"SetDashboardNamePrefix",
"(",
"v",
"string",
")",
"*",
"ListDashboardsInput",
"{",
"s",
".",
"DashboardNamePrefix",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDashboardNamePrefix sets the DashboardNamePrefix field's value. | [
"SetDashboardNamePrefix",
"sets",
"the",
"DashboardNamePrefix",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L3744-L3747 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetDashboardEntries | func (s *ListDashboardsOutput) SetDashboardEntries(v []*DashboardEntry) *ListDashboardsOutput {
s.DashboardEntries = v
return s
} | go | func (s *ListDashboardsOutput) SetDashboardEntries(v []*DashboardEntry) *ListDashboardsOutput {
s.DashboardEntries = v
return s
} | [
"func",
"(",
"s",
"*",
"ListDashboardsOutput",
")",
"SetDashboardEntries",
"(",
"v",
"[",
"]",
"*",
"DashboardEntry",
")",
"*",
"ListDashboardsOutput",
"{",
"s",
".",
"DashboardEntries",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDashboardEntries sets the DashboardEntries field's value. | [
"SetDashboardEntries",
"sets",
"the",
"DashboardEntries",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L3776-L3779 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetAlarmArn | func (s *MetricAlarm) SetAlarmArn(v string) *MetricAlarm {
s.AlarmArn = &v
return s
} | go | func (s *MetricAlarm) SetAlarmArn(v string) *MetricAlarm {
s.AlarmArn = &v
return s
} | [
"func",
"(",
"s",
"*",
"MetricAlarm",
")",
"SetAlarmArn",
"(",
"v",
"string",
")",
"*",
"MetricAlarm",
"{",
"s",
".",
"AlarmArn",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAlarmArn sets the AlarmArn field's value. | [
"SetAlarmArn",
"sets",
"the",
"AlarmArn",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L4180-L4183 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetAlarmConfigurationUpdatedTimestamp | func (s *MetricAlarm) SetAlarmConfigurationUpdatedTimestamp(v time.Time) *MetricAlarm {
s.AlarmConfigurationUpdatedTimestamp = &v
return s
} | go | func (s *MetricAlarm) SetAlarmConfigurationUpdatedTimestamp(v time.Time) *MetricAlarm {
s.AlarmConfigurationUpdatedTimestamp = &v
return s
} | [
"func",
"(",
"s",
"*",
"MetricAlarm",
")",
"SetAlarmConfigurationUpdatedTimestamp",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"MetricAlarm",
"{",
"s",
".",
"AlarmConfigurationUpdatedTimestamp",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAlarmConfigurationUpdatedTimestamp sets the AlarmConfigurationUpdatedTimestamp field's value. | [
"SetAlarmConfigurationUpdatedTimestamp",
"sets",
"the",
"AlarmConfigurationUpdatedTimestamp",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L4186-L4189 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetStateUpdatedTimestamp | func (s *MetricAlarm) SetStateUpdatedTimestamp(v time.Time) *MetricAlarm {
s.StateUpdatedTimestamp = &v
return s
} | go | func (s *MetricAlarm) SetStateUpdatedTimestamp(v time.Time) *MetricAlarm {
s.StateUpdatedTimestamp = &v
return s
} | [
"func",
"(",
"s",
"*",
"MetricAlarm",
")",
"SetStateUpdatedTimestamp",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"MetricAlarm",
"{",
"s",
".",
"StateUpdatedTimestamp",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetStateUpdatedTimestamp sets the StateUpdatedTimestamp field's value. | [
"SetStateUpdatedTimestamp",
"sets",
"the",
"StateUpdatedTimestamp",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L4288-L4291 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetMetricStat | func (s *MetricDataQuery) SetMetricStat(v *MetricStat) *MetricDataQuery {
s.MetricStat = v
return s
} | go | func (s *MetricDataQuery) SetMetricStat(v *MetricStat) *MetricDataQuery {
s.MetricStat = v
return s
} | [
"func",
"(",
"s",
"*",
"MetricDataQuery",
")",
"SetMetricStat",
"(",
"v",
"*",
"MetricStat",
")",
"*",
"MetricDataQuery",
"{",
"s",
".",
"MetricStat",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMetricStat sets the MetricStat field's value. | [
"SetMetricStat",
"sets",
"the",
"MetricStat",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L4450-L4453 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetReturnData | func (s *MetricDataQuery) SetReturnData(v bool) *MetricDataQuery {
s.ReturnData = &v
return s
} | go | func (s *MetricDataQuery) SetReturnData(v bool) *MetricDataQuery {
s.ReturnData = &v
return s
} | [
"func",
"(",
"s",
"*",
"MetricDataQuery",
")",
"SetReturnData",
"(",
"v",
"bool",
")",
"*",
"MetricDataQuery",
"{",
"s",
".",
"ReturnData",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetReturnData sets the ReturnData field's value. | [
"SetReturnData",
"sets",
"the",
"ReturnData",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L4456-L4459 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetTimestamps | func (s *MetricDataResult) SetTimestamps(v []*time.Time) *MetricDataResult {
s.Timestamps = v
return s
} | go | func (s *MetricDataResult) SetTimestamps(v []*time.Time) *MetricDataResult {
s.Timestamps = v
return s
} | [
"func",
"(",
"s",
"*",
"MetricDataResult",
")",
"SetTimestamps",
"(",
"v",
"[",
"]",
"*",
"time",
".",
"Time",
")",
"*",
"MetricDataResult",
"{",
"s",
".",
"Timestamps",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTimestamps sets the Timestamps field's value. | [
"SetTimestamps",
"sets",
"the",
"Timestamps",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L4530-L4533 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetCounts | func (s *MetricDatum) SetCounts(v []*float64) *MetricDatum {
s.Counts = v
return s
} | go | func (s *MetricDatum) SetCounts(v []*float64) *MetricDatum {
s.Counts = v
return s
} | [
"func",
"(",
"s",
"*",
"MetricDatum",
")",
"SetCounts",
"(",
"v",
"[",
"]",
"*",
"float64",
")",
"*",
"MetricDatum",
"{",
"s",
".",
"Counts",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCounts sets the Counts field's value. | [
"SetCounts",
"sets",
"the",
"Counts",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L4652-L4655 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetStatisticValues | func (s *MetricDatum) SetStatisticValues(v *StatisticSet) *MetricDatum {
s.StatisticValues = v
return s
} | go | func (s *MetricDatum) SetStatisticValues(v *StatisticSet) *MetricDatum {
s.StatisticValues = v
return s
} | [
"func",
"(",
"s",
"*",
"MetricDatum",
")",
"SetStatisticValues",
"(",
"v",
"*",
"StatisticSet",
")",
"*",
"MetricDatum",
"{",
"s",
".",
"StatisticValues",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetStatisticValues sets the StatisticValues field's value. | [
"SetStatisticValues",
"sets",
"the",
"StatisticValues",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L4670-L4673 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetStorageResolution | func (s *MetricDatum) SetStorageResolution(v int64) *MetricDatum {
s.StorageResolution = &v
return s
} | go | func (s *MetricDatum) SetStorageResolution(v int64) *MetricDatum {
s.StorageResolution = &v
return s
} | [
"func",
"(",
"s",
"*",
"MetricDatum",
")",
"SetStorageResolution",
"(",
"v",
"int64",
")",
"*",
"MetricDatum",
"{",
"s",
".",
"StorageResolution",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetStorageResolution sets the StorageResolution field's value. | [
"SetStorageResolution",
"sets",
"the",
"StorageResolution",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L4676-L4679 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetStat | func (s *MetricStat) SetStat(v string) *MetricStat {
s.Stat = &v
return s
} | go | func (s *MetricStat) SetStat(v string) *MetricStat {
s.Stat = &v
return s
} | [
"func",
"(",
"s",
"*",
"MetricStat",
")",
"SetStat",
"(",
"v",
"string",
")",
"*",
"MetricStat",
"{",
"s",
".",
"Stat",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetStat sets the Stat field's value. | [
"SetStat",
"sets",
"the",
"Stat",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L4780-L4783 | train |
aws/aws-sdk-go | service/cloudwatch/api.go | SetDashboardValidationMessages | func (s *PutDashboardOutput) SetDashboardValidationMessages(v []*DashboardValidationMessage) *PutDashboardOutput {
s.DashboardValidationMessages = v
return s
} | go | func (s *PutDashboardOutput) SetDashboardValidationMessages(v []*DashboardValidationMessage) *PutDashboardOutput {
s.DashboardValidationMessages = v
return s
} | [
"func",
"(",
"s",
"*",
"PutDashboardOutput",
")",
"SetDashboardValidationMessages",
"(",
"v",
"[",
"]",
"*",
"DashboardValidationMessage",
")",
"*",
"PutDashboardOutput",
"{",
"s",
".",
"DashboardValidationMessages",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDashboardValidationMessages sets the DashboardValidationMessages field's value. | [
"SetDashboardValidationMessages",
"sets",
"the",
"DashboardValidationMessages",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudwatch/api.go#L4876-L4879 | train |
aws/aws-sdk-go | service/mturk/api.go | SetOverrideRejection | func (s *ApproveAssignmentInput) SetOverrideRejection(v bool) *ApproveAssignmentInput {
s.OverrideRejection = &v
return s
} | go | func (s *ApproveAssignmentInput) SetOverrideRejection(v bool) *ApproveAssignmentInput {
s.OverrideRejection = &v
return s
} | [
"func",
"(",
"s",
"*",
"ApproveAssignmentInput",
")",
"SetOverrideRejection",
"(",
"v",
"bool",
")",
"*",
"ApproveAssignmentInput",
"{",
"s",
".",
"OverrideRejection",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetOverrideRejection sets the OverrideRejection field's value. | [
"SetOverrideRejection",
"sets",
"the",
"OverrideRejection",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L4205-L4208 | train |
aws/aws-sdk-go | service/mturk/api.go | SetAcceptTime | func (s *Assignment) SetAcceptTime(v time.Time) *Assignment {
s.AcceptTime = &v
return s
} | go | func (s *Assignment) SetAcceptTime(v time.Time) *Assignment {
s.AcceptTime = &v
return s
} | [
"func",
"(",
"s",
"*",
"Assignment",
")",
"SetAcceptTime",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"Assignment",
"{",
"s",
".",
"AcceptTime",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAcceptTime sets the AcceptTime field's value. | [
"SetAcceptTime",
"sets",
"the",
"AcceptTime",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L4302-L4305 | train |
aws/aws-sdk-go | service/mturk/api.go | SetApprovalTime | func (s *Assignment) SetApprovalTime(v time.Time) *Assignment {
s.ApprovalTime = &v
return s
} | go | func (s *Assignment) SetApprovalTime(v time.Time) *Assignment {
s.ApprovalTime = &v
return s
} | [
"func",
"(",
"s",
"*",
"Assignment",
")",
"SetApprovalTime",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"Assignment",
"{",
"s",
".",
"ApprovalTime",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetApprovalTime sets the ApprovalTime field's value. | [
"SetApprovalTime",
"sets",
"the",
"ApprovalTime",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L4314-L4317 | train |
aws/aws-sdk-go | service/mturk/api.go | SetAutoApprovalTime | func (s *Assignment) SetAutoApprovalTime(v time.Time) *Assignment {
s.AutoApprovalTime = &v
return s
} | go | func (s *Assignment) SetAutoApprovalTime(v time.Time) *Assignment {
s.AutoApprovalTime = &v
return s
} | [
"func",
"(",
"s",
"*",
"Assignment",
")",
"SetAutoApprovalTime",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"Assignment",
"{",
"s",
".",
"AutoApprovalTime",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAutoApprovalTime sets the AutoApprovalTime field's value. | [
"SetAutoApprovalTime",
"sets",
"the",
"AutoApprovalTime",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L4332-L4335 | train |
aws/aws-sdk-go | service/mturk/api.go | SetDeadline | func (s *Assignment) SetDeadline(v time.Time) *Assignment {
s.Deadline = &v
return s
} | go | func (s *Assignment) SetDeadline(v time.Time) *Assignment {
s.Deadline = &v
return s
} | [
"func",
"(",
"s",
"*",
"Assignment",
")",
"SetDeadline",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"Assignment",
"{",
"s",
".",
"Deadline",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDeadline sets the Deadline field's value. | [
"SetDeadline",
"sets",
"the",
"Deadline",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L4338-L4341 | train |
aws/aws-sdk-go | service/mturk/api.go | SetRejectionTime | func (s *Assignment) SetRejectionTime(v time.Time) *Assignment {
s.RejectionTime = &v
return s
} | go | func (s *Assignment) SetRejectionTime(v time.Time) *Assignment {
s.RejectionTime = &v
return s
} | [
"func",
"(",
"s",
"*",
"Assignment",
")",
"SetRejectionTime",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"Assignment",
"{",
"s",
".",
"RejectionTime",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetRejectionTime sets the RejectionTime field's value. | [
"SetRejectionTime",
"sets",
"the",
"RejectionTime",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L4350-L4353 | train |
aws/aws-sdk-go | service/mturk/api.go | SetSendNotification | func (s *AssociateQualificationWithWorkerInput) SetSendNotification(v bool) *AssociateQualificationWithWorkerInput {
s.SendNotification = &v
return s
} | go | func (s *AssociateQualificationWithWorkerInput) SetSendNotification(v bool) *AssociateQualificationWithWorkerInput {
s.SendNotification = &v
return s
} | [
"func",
"(",
"s",
"*",
"AssociateQualificationWithWorkerInput",
")",
"SetSendNotification",
"(",
"v",
"bool",
")",
"*",
"AssociateQualificationWithWorkerInput",
"{",
"s",
".",
"SendNotification",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSendNotification sets the SendNotification field's value. | [
"SetSendNotification",
"sets",
"the",
"SendNotification",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L4441-L4444 | train |
aws/aws-sdk-go | service/mturk/api.go | SetNumberOfAdditionalAssignments | func (s *CreateAdditionalAssignmentsForHITInput) SetNumberOfAdditionalAssignments(v int64) *CreateAdditionalAssignmentsForHITInput {
s.NumberOfAdditionalAssignments = &v
return s
} | go | func (s *CreateAdditionalAssignmentsForHITInput) SetNumberOfAdditionalAssignments(v int64) *CreateAdditionalAssignmentsForHITInput {
s.NumberOfAdditionalAssignments = &v
return s
} | [
"func",
"(",
"s",
"*",
"CreateAdditionalAssignmentsForHITInput",
")",
"SetNumberOfAdditionalAssignments",
"(",
"v",
"int64",
")",
"*",
"CreateAdditionalAssignmentsForHITInput",
"{",
"s",
".",
"NumberOfAdditionalAssignments",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetNumberOfAdditionalAssignments sets the NumberOfAdditionalAssignments field's value. | [
"SetNumberOfAdditionalAssignments",
"sets",
"the",
"NumberOfAdditionalAssignments",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L4587-L4590 | train |
aws/aws-sdk-go | service/mturk/api.go | SetAvailableBalance | func (s *GetAccountBalanceOutput) SetAvailableBalance(v string) *GetAccountBalanceOutput {
s.AvailableBalance = &v
return s
} | go | func (s *GetAccountBalanceOutput) SetAvailableBalance(v string) *GetAccountBalanceOutput {
s.AvailableBalance = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetAccountBalanceOutput",
")",
"SetAvailableBalance",
"(",
"v",
"string",
")",
"*",
"GetAccountBalanceOutput",
"{",
"s",
".",
"AvailableBalance",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAvailableBalance sets the AvailableBalance field's value. | [
"SetAvailableBalance",
"sets",
"the",
"AvailableBalance",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L5841-L5844 | train |
aws/aws-sdk-go | service/mturk/api.go | SetOnHoldBalance | func (s *GetAccountBalanceOutput) SetOnHoldBalance(v string) *GetAccountBalanceOutput {
s.OnHoldBalance = &v
return s
} | go | func (s *GetAccountBalanceOutput) SetOnHoldBalance(v string) *GetAccountBalanceOutput {
s.OnHoldBalance = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetAccountBalanceOutput",
")",
"SetOnHoldBalance",
"(",
"v",
"string",
")",
"*",
"GetAccountBalanceOutput",
"{",
"s",
".",
"OnHoldBalance",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetOnHoldBalance sets the OnHoldBalance field's value. | [
"SetOnHoldBalance",
"sets",
"the",
"OnHoldBalance",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L5847-L5850 | train |
aws/aws-sdk-go | service/mturk/api.go | SetAssignment | func (s *GetAssignmentOutput) SetAssignment(v *Assignment) *GetAssignmentOutput {
s.Assignment = v
return s
} | go | func (s *GetAssignmentOutput) SetAssignment(v *Assignment) *GetAssignmentOutput {
s.Assignment = v
return s
} | [
"func",
"(",
"s",
"*",
"GetAssignmentOutput",
")",
"SetAssignment",
"(",
"v",
"*",
"Assignment",
")",
"*",
"GetAssignmentOutput",
"{",
"s",
".",
"Assignment",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAssignment sets the Assignment field's value. | [
"SetAssignment",
"sets",
"the",
"Assignment",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L5914-L5917 | train |
aws/aws-sdk-go | service/mturk/api.go | SetQuestionIdentifier | func (s *GetFileUploadURLInput) SetQuestionIdentifier(v string) *GetFileUploadURLInput {
s.QuestionIdentifier = &v
return s
} | go | func (s *GetFileUploadURLInput) SetQuestionIdentifier(v string) *GetFileUploadURLInput {
s.QuestionIdentifier = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetFileUploadURLInput",
")",
"SetQuestionIdentifier",
"(",
"v",
"string",
")",
"*",
"GetFileUploadURLInput",
"{",
"s",
".",
"QuestionIdentifier",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetQuestionIdentifier sets the QuestionIdentifier field's value. | [
"SetQuestionIdentifier",
"sets",
"the",
"QuestionIdentifier",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L5976-L5979 | train |
aws/aws-sdk-go | service/mturk/api.go | SetFileUploadURL | func (s *GetFileUploadURLOutput) SetFileUploadURL(v string) *GetFileUploadURLOutput {
s.FileUploadURL = &v
return s
} | go | func (s *GetFileUploadURLOutput) SetFileUploadURL(v string) *GetFileUploadURLOutput {
s.FileUploadURL = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetFileUploadURLOutput",
")",
"SetFileUploadURL",
"(",
"v",
"string",
")",
"*",
"GetFileUploadURLOutput",
"{",
"s",
".",
"FileUploadURL",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetFileUploadURL sets the FileUploadURL field's value. | [
"SetFileUploadURL",
"sets",
"the",
"FileUploadURL",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L5999-L6002 | train |
aws/aws-sdk-go | service/mturk/api.go | SetQualification | func (s *GetQualificationScoreOutput) SetQualification(v *Qualification) *GetQualificationScoreOutput {
s.Qualification = v
return s
} | go | func (s *GetQualificationScoreOutput) SetQualification(v *Qualification) *GetQualificationScoreOutput {
s.Qualification = v
return s
} | [
"func",
"(",
"s",
"*",
"GetQualificationScoreOutput",
")",
"SetQualification",
"(",
"v",
"*",
"Qualification",
")",
"*",
"GetQualificationScoreOutput",
"{",
"s",
".",
"Qualification",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetQualification sets the Qualification field's value. | [
"SetQualification",
"sets",
"the",
"Qualification",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L6145-L6148 | train |
aws/aws-sdk-go | service/mturk/api.go | SetHITGroupId | func (s *HIT) SetHITGroupId(v string) *HIT {
s.HITGroupId = &v
return s
} | go | func (s *HIT) SetHITGroupId(v string) *HIT {
s.HITGroupId = &v
return s
} | [
"func",
"(",
"s",
"*",
"HIT",
")",
"SetHITGroupId",
"(",
"v",
"string",
")",
"*",
"HIT",
"{",
"s",
".",
"HITGroupId",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetHITGroupId sets the HITGroupId field's value. | [
"SetHITGroupId",
"sets",
"the",
"HITGroupId",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L6342-L6345 | train |
aws/aws-sdk-go | service/mturk/api.go | SetHITReviewStatus | func (s *HIT) SetHITReviewStatus(v string) *HIT {
s.HITReviewStatus = &v
return s
} | go | func (s *HIT) SetHITReviewStatus(v string) *HIT {
s.HITReviewStatus = &v
return s
} | [
"func",
"(",
"s",
"*",
"HIT",
")",
"SetHITReviewStatus",
"(",
"v",
"string",
")",
"*",
"HIT",
"{",
"s",
".",
"HITReviewStatus",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetHITReviewStatus sets the HITReviewStatus field's value. | [
"SetHITReviewStatus",
"sets",
"the",
"HITReviewStatus",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L6360-L6363 | train |
aws/aws-sdk-go | service/mturk/api.go | SetHITStatus | func (s *HIT) SetHITStatus(v string) *HIT {
s.HITStatus = &v
return s
} | go | func (s *HIT) SetHITStatus(v string) *HIT {
s.HITStatus = &v
return s
} | [
"func",
"(",
"s",
"*",
"HIT",
")",
"SetHITStatus",
"(",
"v",
"string",
")",
"*",
"HIT",
"{",
"s",
".",
"HITStatus",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetHITStatus sets the HITStatus field's value. | [
"SetHITStatus",
"sets",
"the",
"HITStatus",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L6366-L6369 | train |
aws/aws-sdk-go | service/mturk/api.go | SetNumberOfAssignmentsAvailable | func (s *HIT) SetNumberOfAssignmentsAvailable(v int64) *HIT {
s.NumberOfAssignmentsAvailable = &v
return s
} | go | func (s *HIT) SetNumberOfAssignmentsAvailable(v int64) *HIT {
s.NumberOfAssignmentsAvailable = &v
return s
} | [
"func",
"(",
"s",
"*",
"HIT",
")",
"SetNumberOfAssignmentsAvailable",
"(",
"v",
"int64",
")",
"*",
"HIT",
"{",
"s",
".",
"NumberOfAssignmentsAvailable",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetNumberOfAssignmentsAvailable sets the NumberOfAssignmentsAvailable field's value. | [
"SetNumberOfAssignmentsAvailable",
"sets",
"the",
"NumberOfAssignmentsAvailable",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L6390-L6393 | train |
aws/aws-sdk-go | service/mturk/api.go | SetNumberOfAssignmentsCompleted | func (s *HIT) SetNumberOfAssignmentsCompleted(v int64) *HIT {
s.NumberOfAssignmentsCompleted = &v
return s
} | go | func (s *HIT) SetNumberOfAssignmentsCompleted(v int64) *HIT {
s.NumberOfAssignmentsCompleted = &v
return s
} | [
"func",
"(",
"s",
"*",
"HIT",
")",
"SetNumberOfAssignmentsCompleted",
"(",
"v",
"int64",
")",
"*",
"HIT",
"{",
"s",
".",
"NumberOfAssignmentsCompleted",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetNumberOfAssignmentsCompleted sets the NumberOfAssignmentsCompleted field's value. | [
"SetNumberOfAssignmentsCompleted",
"sets",
"the",
"NumberOfAssignmentsCompleted",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L6396-L6399 | train |
aws/aws-sdk-go | service/mturk/api.go | SetNumberOfAssignmentsPending | func (s *HIT) SetNumberOfAssignmentsPending(v int64) *HIT {
s.NumberOfAssignmentsPending = &v
return s
} | go | func (s *HIT) SetNumberOfAssignmentsPending(v int64) *HIT {
s.NumberOfAssignmentsPending = &v
return s
} | [
"func",
"(",
"s",
"*",
"HIT",
")",
"SetNumberOfAssignmentsPending",
"(",
"v",
"int64",
")",
"*",
"HIT",
"{",
"s",
".",
"NumberOfAssignmentsPending",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetNumberOfAssignmentsPending sets the NumberOfAssignmentsPending field's value. | [
"SetNumberOfAssignmentsPending",
"sets",
"the",
"NumberOfAssignmentsPending",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L6402-L6405 | train |
aws/aws-sdk-go | service/mturk/api.go | SetAssignmentStatuses | func (s *ListAssignmentsForHITInput) SetAssignmentStatuses(v []*string) *ListAssignmentsForHITInput {
s.AssignmentStatuses = v
return s
} | go | func (s *ListAssignmentsForHITInput) SetAssignmentStatuses(v []*string) *ListAssignmentsForHITInput {
s.AssignmentStatuses = v
return s
} | [
"func",
"(",
"s",
"*",
"ListAssignmentsForHITInput",
")",
"SetAssignmentStatuses",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"ListAssignmentsForHITInput",
"{",
"s",
".",
"AssignmentStatuses",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAssignmentStatuses sets the AssignmentStatuses field's value. | [
"SetAssignmentStatuses",
"sets",
"the",
"AssignmentStatuses",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L6542-L6545 | train |
aws/aws-sdk-go | service/mturk/api.go | SetAssignments | func (s *ListAssignmentsForHITOutput) SetAssignments(v []*Assignment) *ListAssignmentsForHITOutput {
s.Assignments = v
return s
} | go | func (s *ListAssignmentsForHITOutput) SetAssignments(v []*Assignment) *ListAssignmentsForHITOutput {
s.Assignments = v
return s
} | [
"func",
"(",
"s",
"*",
"ListAssignmentsForHITOutput",
")",
"SetAssignments",
"(",
"v",
"[",
"]",
"*",
"Assignment",
")",
"*",
"ListAssignmentsForHITOutput",
"{",
"s",
".",
"Assignments",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAssignments sets the Assignments field's value. | [
"SetAssignments",
"sets",
"the",
"Assignments",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L6592-L6595 | train |
aws/aws-sdk-go | service/mturk/api.go | SetBonusPayments | func (s *ListBonusPaymentsOutput) SetBonusPayments(v []*BonusPayment) *ListBonusPaymentsOutput {
s.BonusPayments = v
return s
} | go | func (s *ListBonusPaymentsOutput) SetBonusPayments(v []*BonusPayment) *ListBonusPaymentsOutput {
s.BonusPayments = v
return s
} | [
"func",
"(",
"s",
"*",
"ListBonusPaymentsOutput",
")",
"SetBonusPayments",
"(",
"v",
"[",
"]",
"*",
"BonusPayment",
")",
"*",
"ListBonusPaymentsOutput",
"{",
"s",
".",
"BonusPayments",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetBonusPayments sets the BonusPayments field's value. | [
"SetBonusPayments",
"sets",
"the",
"BonusPayments",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L6712-L6715 | train |
aws/aws-sdk-go | service/mturk/api.go | SetQualificationRequests | func (s *ListQualificationRequestsOutput) SetQualificationRequests(v []*QualificationRequest) *ListQualificationRequestsOutput {
s.QualificationRequests = v
return s
} | go | func (s *ListQualificationRequestsOutput) SetQualificationRequests(v []*QualificationRequest) *ListQualificationRequestsOutput {
s.QualificationRequests = v
return s
} | [
"func",
"(",
"s",
"*",
"ListQualificationRequestsOutput",
")",
"SetQualificationRequests",
"(",
"v",
"[",
"]",
"*",
"QualificationRequest",
")",
"*",
"ListQualificationRequestsOutput",
"{",
"s",
".",
"QualificationRequests",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetQualificationRequests sets the QualificationRequests field's value. | [
"SetQualificationRequests",
"sets",
"the",
"QualificationRequests",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L7032-L7035 | train |
aws/aws-sdk-go | service/mturk/api.go | SetMustBeOwnedByCaller | func (s *ListQualificationTypesInput) SetMustBeOwnedByCaller(v bool) *ListQualificationTypesInput {
s.MustBeOwnedByCaller = &v
return s
} | go | func (s *ListQualificationTypesInput) SetMustBeOwnedByCaller(v bool) *ListQualificationTypesInput {
s.MustBeOwnedByCaller = &v
return s
} | [
"func",
"(",
"s",
"*",
"ListQualificationTypesInput",
")",
"SetMustBeOwnedByCaller",
"(",
"v",
"bool",
")",
"*",
"ListQualificationTypesInput",
"{",
"s",
".",
"MustBeOwnedByCaller",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMustBeOwnedByCaller sets the MustBeOwnedByCaller field's value. | [
"SetMustBeOwnedByCaller",
"sets",
"the",
"MustBeOwnedByCaller",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L7102-L7105 | train |
aws/aws-sdk-go | service/mturk/api.go | SetMustBeRequestable | func (s *ListQualificationTypesInput) SetMustBeRequestable(v bool) *ListQualificationTypesInput {
s.MustBeRequestable = &v
return s
} | go | func (s *ListQualificationTypesInput) SetMustBeRequestable(v bool) *ListQualificationTypesInput {
s.MustBeRequestable = &v
return s
} | [
"func",
"(",
"s",
"*",
"ListQualificationTypesInput",
")",
"SetMustBeRequestable",
"(",
"v",
"bool",
")",
"*",
"ListQualificationTypesInput",
"{",
"s",
".",
"MustBeRequestable",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMustBeRequestable sets the MustBeRequestable field's value. | [
"SetMustBeRequestable",
"sets",
"the",
"MustBeRequestable",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L7108-L7111 | train |
aws/aws-sdk-go | service/mturk/api.go | SetQualificationTypes | func (s *ListQualificationTypesOutput) SetQualificationTypes(v []*QualificationType) *ListQualificationTypesOutput {
s.QualificationTypes = v
return s
} | go | func (s *ListQualificationTypesOutput) SetQualificationTypes(v []*QualificationType) *ListQualificationTypesOutput {
s.QualificationTypes = v
return s
} | [
"func",
"(",
"s",
"*",
"ListQualificationTypesOutput",
")",
"SetQualificationTypes",
"(",
"v",
"[",
"]",
"*",
"QualificationType",
")",
"*",
"ListQualificationTypesOutput",
"{",
"s",
".",
"QualificationTypes",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetQualificationTypes sets the QualificationTypes field's value. | [
"SetQualificationTypes",
"sets",
"the",
"QualificationTypes",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L7164-L7167 | train |
aws/aws-sdk-go | service/mturk/api.go | SetPolicyLevels | func (s *ListReviewPolicyResultsForHITInput) SetPolicyLevels(v []*string) *ListReviewPolicyResultsForHITInput {
s.PolicyLevels = v
return s
} | go | func (s *ListReviewPolicyResultsForHITInput) SetPolicyLevels(v []*string) *ListReviewPolicyResultsForHITInput {
s.PolicyLevels = v
return s
} | [
"func",
"(",
"s",
"*",
"ListReviewPolicyResultsForHITInput",
")",
"SetPolicyLevels",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"ListReviewPolicyResultsForHITInput",
"{",
"s",
".",
"PolicyLevels",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPolicyLevels sets the PolicyLevels field's value. | [
"SetPolicyLevels",
"sets",
"the",
"PolicyLevels",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L7248-L7251 | train |
aws/aws-sdk-go | service/mturk/api.go | SetRetrieveActions | func (s *ListReviewPolicyResultsForHITInput) SetRetrieveActions(v bool) *ListReviewPolicyResultsForHITInput {
s.RetrieveActions = &v
return s
} | go | func (s *ListReviewPolicyResultsForHITInput) SetRetrieveActions(v bool) *ListReviewPolicyResultsForHITInput {
s.RetrieveActions = &v
return s
} | [
"func",
"(",
"s",
"*",
"ListReviewPolicyResultsForHITInput",
")",
"SetRetrieveActions",
"(",
"v",
"bool",
")",
"*",
"ListReviewPolicyResultsForHITInput",
"{",
"s",
".",
"RetrieveActions",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetRetrieveActions sets the RetrieveActions field's value. | [
"SetRetrieveActions",
"sets",
"the",
"RetrieveActions",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L7254-L7257 | train |
aws/aws-sdk-go | service/mturk/api.go | SetRetrieveResults | func (s *ListReviewPolicyResultsForHITInput) SetRetrieveResults(v bool) *ListReviewPolicyResultsForHITInput {
s.RetrieveResults = &v
return s
} | go | func (s *ListReviewPolicyResultsForHITInput) SetRetrieveResults(v bool) *ListReviewPolicyResultsForHITInput {
s.RetrieveResults = &v
return s
} | [
"func",
"(",
"s",
"*",
"ListReviewPolicyResultsForHITInput",
")",
"SetRetrieveResults",
"(",
"v",
"bool",
")",
"*",
"ListReviewPolicyResultsForHITInput",
"{",
"s",
".",
"RetrieveResults",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetRetrieveResults sets the RetrieveResults field's value. | [
"SetRetrieveResults",
"sets",
"the",
"RetrieveResults",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L7260-L7263 | train |
aws/aws-sdk-go | service/mturk/api.go | SetAssignmentReviewReport | func (s *ListReviewPolicyResultsForHITOutput) SetAssignmentReviewReport(v *ReviewReport) *ListReviewPolicyResultsForHITOutput {
s.AssignmentReviewReport = v
return s
} | go | func (s *ListReviewPolicyResultsForHITOutput) SetAssignmentReviewReport(v *ReviewReport) *ListReviewPolicyResultsForHITOutput {
s.AssignmentReviewReport = v
return s
} | [
"func",
"(",
"s",
"*",
"ListReviewPolicyResultsForHITOutput",
")",
"SetAssignmentReviewReport",
"(",
"v",
"*",
"ReviewReport",
")",
"*",
"ListReviewPolicyResultsForHITOutput",
"{",
"s",
".",
"AssignmentReviewReport",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAssignmentReviewReport sets the AssignmentReviewReport field's value. | [
"SetAssignmentReviewReport",
"sets",
"the",
"AssignmentReviewReport",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L7308-L7311 | train |
aws/aws-sdk-go | service/mturk/api.go | SetHITReviewReport | func (s *ListReviewPolicyResultsForHITOutput) SetHITReviewReport(v *ReviewReport) *ListReviewPolicyResultsForHITOutput {
s.HITReviewReport = v
return s
} | go | func (s *ListReviewPolicyResultsForHITOutput) SetHITReviewReport(v *ReviewReport) *ListReviewPolicyResultsForHITOutput {
s.HITReviewReport = v
return s
} | [
"func",
"(",
"s",
"*",
"ListReviewPolicyResultsForHITOutput",
")",
"SetHITReviewReport",
"(",
"v",
"*",
"ReviewReport",
")",
"*",
"ListReviewPolicyResultsForHITOutput",
"{",
"s",
".",
"HITReviewReport",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetHITReviewReport sets the HITReviewReport field's value. | [
"SetHITReviewReport",
"sets",
"the",
"HITReviewReport",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L7326-L7329 | train |
aws/aws-sdk-go | service/mturk/api.go | SetWorkerBlocks | func (s *ListWorkerBlocksOutput) SetWorkerBlocks(v []*WorkerBlock) *ListWorkerBlocksOutput {
s.WorkerBlocks = v
return s
} | go | func (s *ListWorkerBlocksOutput) SetWorkerBlocks(v []*WorkerBlock) *ListWorkerBlocksOutput {
s.WorkerBlocks = v
return s
} | [
"func",
"(",
"s",
"*",
"ListWorkerBlocksOutput",
")",
"SetWorkerBlocks",
"(",
"v",
"[",
"]",
"*",
"WorkerBlock",
")",
"*",
"ListWorkerBlocksOutput",
"{",
"s",
".",
"WorkerBlocks",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetWorkerBlocks sets the WorkerBlocks field's value. | [
"SetWorkerBlocks",
"sets",
"the",
"WorkerBlocks",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L7538-L7541 | train |
aws/aws-sdk-go | service/mturk/api.go | SetQualifications | func (s *ListWorkersWithQualificationTypeOutput) SetQualifications(v []*Qualification) *ListWorkersWithQualificationTypeOutput {
s.Qualifications = v
return s
} | go | func (s *ListWorkersWithQualificationTypeOutput) SetQualifications(v []*Qualification) *ListWorkersWithQualificationTypeOutput {
s.Qualifications = v
return s
} | [
"func",
"(",
"s",
"*",
"ListWorkersWithQualificationTypeOutput",
")",
"SetQualifications",
"(",
"v",
"[",
"]",
"*",
"Qualification",
")",
"*",
"ListWorkersWithQualificationTypeOutput",
"{",
"s",
".",
"Qualifications",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetQualifications sets the Qualifications field's value. | [
"SetQualifications",
"sets",
"the",
"Qualifications",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L7656-L7659 | train |
aws/aws-sdk-go | service/mturk/api.go | SetSubdivision | func (s *Locale) SetSubdivision(v string) *Locale {
s.Subdivision = &v
return s
} | go | func (s *Locale) SetSubdivision(v string) *Locale {
s.Subdivision = &v
return s
} | [
"func",
"(",
"s",
"*",
"Locale",
")",
"SetSubdivision",
"(",
"v",
"string",
")",
"*",
"Locale",
"{",
"s",
".",
"Subdivision",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSubdivision sets the Subdivision field's value. | [
"SetSubdivision",
"sets",
"the",
"Subdivision",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L7712-L7715 | train |
aws/aws-sdk-go | service/mturk/api.go | SetNotifyWorkersFailureCode | func (s *NotifyWorkersFailureStatus) SetNotifyWorkersFailureCode(v string) *NotifyWorkersFailureStatus {
s.NotifyWorkersFailureCode = &v
return s
} | go | func (s *NotifyWorkersFailureStatus) SetNotifyWorkersFailureCode(v string) *NotifyWorkersFailureStatus {
s.NotifyWorkersFailureCode = &v
return s
} | [
"func",
"(",
"s",
"*",
"NotifyWorkersFailureStatus",
")",
"SetNotifyWorkersFailureCode",
"(",
"v",
"string",
")",
"*",
"NotifyWorkersFailureStatus",
"{",
"s",
".",
"NotifyWorkersFailureCode",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetNotifyWorkersFailureCode sets the NotifyWorkersFailureCode field's value. | [
"SetNotifyWorkersFailureCode",
"sets",
"the",
"NotifyWorkersFailureCode",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L7837-L7840 | train |
aws/aws-sdk-go | service/mturk/api.go | SetNotifyWorkersFailureMessage | func (s *NotifyWorkersFailureStatus) SetNotifyWorkersFailureMessage(v string) *NotifyWorkersFailureStatus {
s.NotifyWorkersFailureMessage = &v
return s
} | go | func (s *NotifyWorkersFailureStatus) SetNotifyWorkersFailureMessage(v string) *NotifyWorkersFailureStatus {
s.NotifyWorkersFailureMessage = &v
return s
} | [
"func",
"(",
"s",
"*",
"NotifyWorkersFailureStatus",
")",
"SetNotifyWorkersFailureMessage",
"(",
"v",
"string",
")",
"*",
"NotifyWorkersFailureStatus",
"{",
"s",
".",
"NotifyWorkersFailureMessage",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetNotifyWorkersFailureMessage sets the NotifyWorkersFailureMessage field's value. | [
"SetNotifyWorkersFailureMessage",
"sets",
"the",
"NotifyWorkersFailureMessage",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L7843-L7846 | train |
aws/aws-sdk-go | service/mturk/api.go | SetMessageText | func (s *NotifyWorkersInput) SetMessageText(v string) *NotifyWorkersInput {
s.MessageText = &v
return s
} | go | func (s *NotifyWorkersInput) SetMessageText(v string) *NotifyWorkersInput {
s.MessageText = &v
return s
} | [
"func",
"(",
"s",
"*",
"NotifyWorkersInput",
")",
"SetMessageText",
"(",
"v",
"string",
")",
"*",
"NotifyWorkersInput",
"{",
"s",
".",
"MessageText",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMessageText sets the MessageText field's value. | [
"SetMessageText",
"sets",
"the",
"MessageText",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L7904-L7907 | train |
aws/aws-sdk-go | service/mturk/api.go | SetWorkerIds | func (s *NotifyWorkersInput) SetWorkerIds(v []*string) *NotifyWorkersInput {
s.WorkerIds = v
return s
} | go | func (s *NotifyWorkersInput) SetWorkerIds(v []*string) *NotifyWorkersInput {
s.WorkerIds = v
return s
} | [
"func",
"(",
"s",
"*",
"NotifyWorkersInput",
")",
"SetWorkerIds",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"NotifyWorkersInput",
"{",
"s",
".",
"WorkerIds",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetWorkerIds sets the WorkerIds field's value. | [
"SetWorkerIds",
"sets",
"the",
"WorkerIds",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L7916-L7919 | train |
aws/aws-sdk-go | service/mturk/api.go | SetNotifyWorkersFailureStatuses | func (s *NotifyWorkersOutput) SetNotifyWorkersFailureStatuses(v []*NotifyWorkersFailureStatus) *NotifyWorkersOutput {
s.NotifyWorkersFailureStatuses = v
return s
} | go | func (s *NotifyWorkersOutput) SetNotifyWorkersFailureStatuses(v []*NotifyWorkersFailureStatus) *NotifyWorkersOutput {
s.NotifyWorkersFailureStatuses = v
return s
} | [
"func",
"(",
"s",
"*",
"NotifyWorkersOutput",
")",
"SetNotifyWorkersFailureStatuses",
"(",
"v",
"[",
"]",
"*",
"NotifyWorkersFailureStatus",
")",
"*",
"NotifyWorkersOutput",
"{",
"s",
".",
"NotifyWorkersFailureStatuses",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetNotifyWorkersFailureStatuses sets the NotifyWorkersFailureStatuses field's value. | [
"SetNotifyWorkersFailureStatuses",
"sets",
"the",
"NotifyWorkersFailureStatuses",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L7940-L7943 | train |
aws/aws-sdk-go | service/mturk/api.go | SetMapEntries | func (s *PolicyParameter) SetMapEntries(v []*ParameterMapEntry) *PolicyParameter {
s.MapEntries = v
return s
} | go | func (s *PolicyParameter) SetMapEntries(v []*ParameterMapEntry) *PolicyParameter {
s.MapEntries = v
return s
} | [
"func",
"(",
"s",
"*",
"PolicyParameter",
")",
"SetMapEntries",
"(",
"v",
"[",
"]",
"*",
"ParameterMapEntry",
")",
"*",
"PolicyParameter",
"{",
"s",
".",
"MapEntries",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMapEntries sets the MapEntries field's value. | [
"SetMapEntries",
"sets",
"the",
"MapEntries",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L8013-L8016 | train |
aws/aws-sdk-go | service/mturk/api.go | SetLocaleValue | func (s *Qualification) SetLocaleValue(v *Locale) *Qualification {
s.LocaleValue = v
return s
} | go | func (s *Qualification) SetLocaleValue(v *Locale) *Qualification {
s.LocaleValue = v
return s
} | [
"func",
"(",
"s",
"*",
"Qualification",
")",
"SetLocaleValue",
"(",
"v",
"*",
"Locale",
")",
"*",
"Qualification",
"{",
"s",
".",
"LocaleValue",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetLocaleValue sets the LocaleValue field's value. | [
"SetLocaleValue",
"sets",
"the",
"LocaleValue",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L8075-L8078 | train |
aws/aws-sdk-go | service/mturk/api.go | SetActionsGuarded | func (s *QualificationRequirement) SetActionsGuarded(v string) *QualificationRequirement {
s.ActionsGuarded = &v
return s
} | go | func (s *QualificationRequirement) SetActionsGuarded(v string) *QualificationRequirement {
s.ActionsGuarded = &v
return s
} | [
"func",
"(",
"s",
"*",
"QualificationRequirement",
")",
"SetActionsGuarded",
"(",
"v",
"string",
")",
"*",
"QualificationRequirement",
"{",
"s",
".",
"ActionsGuarded",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetActionsGuarded sets the ActionsGuarded field's value. | [
"SetActionsGuarded",
"sets",
"the",
"ActionsGuarded",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L8291-L8294 | train |
aws/aws-sdk-go | service/mturk/api.go | SetComparator | func (s *QualificationRequirement) SetComparator(v string) *QualificationRequirement {
s.Comparator = &v
return s
} | go | func (s *QualificationRequirement) SetComparator(v string) *QualificationRequirement {
s.Comparator = &v
return s
} | [
"func",
"(",
"s",
"*",
"QualificationRequirement",
")",
"SetComparator",
"(",
"v",
"string",
")",
"*",
"QualificationRequirement",
"{",
"s",
".",
"Comparator",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetComparator sets the Comparator field's value. | [
"SetComparator",
"sets",
"the",
"Comparator",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L8297-L8300 | train |
aws/aws-sdk-go | service/mturk/api.go | SetIntegerValues | func (s *QualificationRequirement) SetIntegerValues(v []*int64) *QualificationRequirement {
s.IntegerValues = v
return s
} | go | func (s *QualificationRequirement) SetIntegerValues(v []*int64) *QualificationRequirement {
s.IntegerValues = v
return s
} | [
"func",
"(",
"s",
"*",
"QualificationRequirement",
")",
"SetIntegerValues",
"(",
"v",
"[",
"]",
"*",
"int64",
")",
"*",
"QualificationRequirement",
"{",
"s",
".",
"IntegerValues",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetIntegerValues sets the IntegerValues field's value. | [
"SetIntegerValues",
"sets",
"the",
"IntegerValues",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L8303-L8306 | train |
aws/aws-sdk-go | service/mturk/api.go | SetLocaleValues | func (s *QualificationRequirement) SetLocaleValues(v []*Locale) *QualificationRequirement {
s.LocaleValues = v
return s
} | go | func (s *QualificationRequirement) SetLocaleValues(v []*Locale) *QualificationRequirement {
s.LocaleValues = v
return s
} | [
"func",
"(",
"s",
"*",
"QualificationRequirement",
")",
"SetLocaleValues",
"(",
"v",
"[",
"]",
"*",
"Locale",
")",
"*",
"QualificationRequirement",
"{",
"s",
".",
"LocaleValues",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetLocaleValues sets the LocaleValues field's value. | [
"SetLocaleValues",
"sets",
"the",
"LocaleValues",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L8309-L8312 | train |
aws/aws-sdk-go | service/mturk/api.go | SetRequiredToPreview | func (s *QualificationRequirement) SetRequiredToPreview(v bool) *QualificationRequirement {
s.RequiredToPreview = &v
return s
} | go | func (s *QualificationRequirement) SetRequiredToPreview(v bool) *QualificationRequirement {
s.RequiredToPreview = &v
return s
} | [
"func",
"(",
"s",
"*",
"QualificationRequirement",
")",
"SetRequiredToPreview",
"(",
"v",
"bool",
")",
"*",
"QualificationRequirement",
"{",
"s",
".",
"RequiredToPreview",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetRequiredToPreview sets the RequiredToPreview field's value. | [
"SetRequiredToPreview",
"sets",
"the",
"RequiredToPreview",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L8321-L8324 | train |
aws/aws-sdk-go | service/mturk/api.go | SetIsRequestable | func (s *QualificationType) SetIsRequestable(v bool) *QualificationType {
s.IsRequestable = &v
return s
} | go | func (s *QualificationType) SetIsRequestable(v bool) *QualificationType {
s.IsRequestable = &v
return s
} | [
"func",
"(",
"s",
"*",
"QualificationType",
")",
"SetIsRequestable",
"(",
"v",
"bool",
")",
"*",
"QualificationType",
"{",
"s",
".",
"IsRequestable",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetIsRequestable sets the IsRequestable field's value. | [
"SetIsRequestable",
"sets",
"the",
"IsRequestable",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L8436-L8439 | train |
aws/aws-sdk-go | service/mturk/api.go | SetReviewActions | func (s *ReviewReport) SetReviewActions(v []*ReviewActionDetail) *ReviewReport {
s.ReviewActions = v
return s
} | go | func (s *ReviewReport) SetReviewActions(v []*ReviewActionDetail) *ReviewReport {
s.ReviewActions = v
return s
} | [
"func",
"(",
"s",
"*",
"ReviewReport",
")",
"SetReviewActions",
"(",
"v",
"[",
"]",
"*",
"ReviewActionDetail",
")",
"*",
"ReviewReport",
"{",
"s",
".",
"ReviewActions",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetReviewActions sets the ReviewActions field's value. | [
"SetReviewActions",
"sets",
"the",
"ReviewActions",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L8779-L8782 | train |
aws/aws-sdk-go | service/mturk/api.go | SetReviewResults | func (s *ReviewReport) SetReviewResults(v []*ReviewResultDetail) *ReviewReport {
s.ReviewResults = v
return s
} | go | func (s *ReviewReport) SetReviewResults(v []*ReviewResultDetail) *ReviewReport {
s.ReviewResults = v
return s
} | [
"func",
"(",
"s",
"*",
"ReviewReport",
")",
"SetReviewResults",
"(",
"v",
"[",
"]",
"*",
"ReviewResultDetail",
")",
"*",
"ReviewReport",
"{",
"s",
".",
"ReviewResults",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetReviewResults sets the ReviewResults field's value. | [
"SetReviewResults",
"sets",
"the",
"ReviewResults",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L8785-L8788 | train |
aws/aws-sdk-go | service/mturk/api.go | SetQuestionId | func (s *ReviewResultDetail) SetQuestionId(v string) *ReviewResultDetail {
s.QuestionId = &v
return s
} | go | func (s *ReviewResultDetail) SetQuestionId(v string) *ReviewResultDetail {
s.QuestionId = &v
return s
} | [
"func",
"(",
"s",
"*",
"ReviewResultDetail",
")",
"SetQuestionId",
"(",
"v",
"string",
")",
"*",
"ReviewResultDetail",
"{",
"s",
".",
"QuestionId",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetQuestionId sets the QuestionId field's value. | [
"SetQuestionId",
"sets",
"the",
"QuestionId",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L8845-L8848 | train |
aws/aws-sdk-go | service/mturk/api.go | SetSubjectId | func (s *ReviewResultDetail) SetSubjectId(v string) *ReviewResultDetail {
s.SubjectId = &v
return s
} | go | func (s *ReviewResultDetail) SetSubjectId(v string) *ReviewResultDetail {
s.SubjectId = &v
return s
} | [
"func",
"(",
"s",
"*",
"ReviewResultDetail",
")",
"SetSubjectId",
"(",
"v",
"string",
")",
"*",
"ReviewResultDetail",
"{",
"s",
".",
"SubjectId",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSubjectId sets the SubjectId field's value. | [
"SetSubjectId",
"sets",
"the",
"SubjectId",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L8851-L8854 | train |
aws/aws-sdk-go | service/mturk/api.go | SetExpireAt | func (s *UpdateExpirationForHITInput) SetExpireAt(v time.Time) *UpdateExpirationForHITInput {
s.ExpireAt = &v
return s
} | go | func (s *UpdateExpirationForHITInput) SetExpireAt(v time.Time) *UpdateExpirationForHITInput {
s.ExpireAt = &v
return s
} | [
"func",
"(",
"s",
"*",
"UpdateExpirationForHITInput",
")",
"SetExpireAt",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"UpdateExpirationForHITInput",
"{",
"s",
".",
"ExpireAt",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetExpireAt sets the ExpireAt field's value. | [
"SetExpireAt",
"sets",
"the",
"ExpireAt",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L9108-L9111 | train |
aws/aws-sdk-go | service/mturk/api.go | SetRevert | func (s *UpdateHITReviewStatusInput) SetRevert(v bool) *UpdateHITReviewStatusInput {
s.Revert = &v
return s
} | go | func (s *UpdateHITReviewStatusInput) SetRevert(v bool) *UpdateHITReviewStatusInput {
s.Revert = &v
return s
} | [
"func",
"(",
"s",
"*",
"UpdateHITReviewStatusInput",
")",
"SetRevert",
"(",
"v",
"bool",
")",
"*",
"UpdateHITReviewStatusInput",
"{",
"s",
".",
"Revert",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetRevert sets the Revert field's value. | [
"SetRevert",
"sets",
"the",
"Revert",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mturk/api.go#L9183-L9186 | train |
aws/aws-sdk-go | service/elb/waiters.go | WaitUntilAnyInstanceInService | func (c *ELB) WaitUntilAnyInstanceInService(input *DescribeInstanceHealthInput) error {
return c.WaitUntilAnyInstanceInServiceWithContext(aws.BackgroundContext(), input)
} | go | func (c *ELB) WaitUntilAnyInstanceInService(input *DescribeInstanceHealthInput) error {
return c.WaitUntilAnyInstanceInServiceWithContext(aws.BackgroundContext(), input)
} | [
"func",
"(",
"c",
"*",
"ELB",
")",
"WaitUntilAnyInstanceInService",
"(",
"input",
"*",
"DescribeInstanceHealthInput",
")",
"error",
"{",
"return",
"c",
".",
"WaitUntilAnyInstanceInServiceWithContext",
"(",
"aws",
".",
"BackgroundContext",
"(",
")",
",",
"input",
")",
"\n",
"}"
] | // WaitUntilAnyInstanceInService uses the Elastic Load Balancing API operation
// DescribeInstanceHealth to wait for a condition to be met before returning.
// If the condition is not met within the max attempt window, an error will
// be returned. | [
"WaitUntilAnyInstanceInService",
"uses",
"the",
"Elastic",
"Load",
"Balancing",
"API",
"operation",
"DescribeInstanceHealth",
"to",
"wait",
"for",
"a",
"condition",
"to",
"be",
"met",
"before",
"returning",
".",
"If",
"the",
"condition",
"is",
"not",
"met",
"within",
"the",
"max",
"attempt",
"window",
"an",
"error",
"will",
"be",
"returned",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/elb/waiters.go#L16-L18 | train |
aws/aws-sdk-go | service/elb/waiters.go | WaitUntilInstanceDeregistered | func (c *ELB) WaitUntilInstanceDeregistered(input *DescribeInstanceHealthInput) error {
return c.WaitUntilInstanceDeregisteredWithContext(aws.BackgroundContext(), input)
} | go | func (c *ELB) WaitUntilInstanceDeregistered(input *DescribeInstanceHealthInput) error {
return c.WaitUntilInstanceDeregisteredWithContext(aws.BackgroundContext(), input)
} | [
"func",
"(",
"c",
"*",
"ELB",
")",
"WaitUntilInstanceDeregistered",
"(",
"input",
"*",
"DescribeInstanceHealthInput",
")",
"error",
"{",
"return",
"c",
".",
"WaitUntilInstanceDeregisteredWithContext",
"(",
"aws",
".",
"BackgroundContext",
"(",
")",
",",
"input",
")",
"\n",
"}"
] | // WaitUntilInstanceDeregistered uses the Elastic Load Balancing API operation
// DescribeInstanceHealth to wait for a condition to be met before returning.
// If the condition is not met within the max attempt window, an error will
// be returned. | [
"WaitUntilInstanceDeregistered",
"uses",
"the",
"Elastic",
"Load",
"Balancing",
"API",
"operation",
"DescribeInstanceHealth",
"to",
"wait",
"for",
"a",
"condition",
"to",
"be",
"met",
"before",
"returning",
".",
"If",
"the",
"condition",
"is",
"not",
"met",
"within",
"the",
"max",
"attempt",
"window",
"an",
"error",
"will",
"be",
"returned",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/elb/waiters.go#L62-L64 | train |
aws/aws-sdk-go | service/elb/waiters.go | WaitUntilInstanceInService | func (c *ELB) WaitUntilInstanceInService(input *DescribeInstanceHealthInput) error {
return c.WaitUntilInstanceInServiceWithContext(aws.BackgroundContext(), input)
} | go | func (c *ELB) WaitUntilInstanceInService(input *DescribeInstanceHealthInput) error {
return c.WaitUntilInstanceInServiceWithContext(aws.BackgroundContext(), input)
} | [
"func",
"(",
"c",
"*",
"ELB",
")",
"WaitUntilInstanceInService",
"(",
"input",
"*",
"DescribeInstanceHealthInput",
")",
"error",
"{",
"return",
"c",
".",
"WaitUntilInstanceInServiceWithContext",
"(",
"aws",
".",
"BackgroundContext",
"(",
")",
",",
"input",
")",
"\n",
"}"
] | // WaitUntilInstanceInService uses the Elastic Load Balancing API operation
// DescribeInstanceHealth to wait for a condition to be met before returning.
// If the condition is not met within the max attempt window, an error will
// be returned. | [
"WaitUntilInstanceInService",
"uses",
"the",
"Elastic",
"Load",
"Balancing",
"API",
"operation",
"DescribeInstanceHealth",
"to",
"wait",
"for",
"a",
"condition",
"to",
"be",
"met",
"before",
"returning",
".",
"If",
"the",
"condition",
"is",
"not",
"met",
"within",
"the",
"max",
"attempt",
"window",
"an",
"error",
"will",
"be",
"returned",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/elb/waiters.go#L113-L115 | train |
prometheus/node_exporter | collector/runit.go | NewRunitCollector | func NewRunitCollector() (Collector, error) {
var (
subsystem = "service"
constLabels = prometheus.Labels{"supervisor": "runit"}
labelNames = []string{"service"}
)
return &runitCollector{
state: typedDesc{prometheus.NewDesc(
prometheus.BuildFQName(namespace, subsystem, "state"),
"State of runit service.",
labelNames, constLabels,
), prometheus.GaugeValue},
stateDesired: typedDesc{prometheus.NewDesc(
prometheus.BuildFQName(namespace, subsystem, "desired_state"),
"Desired state of runit service.",
labelNames, constLabels,
), prometheus.GaugeValue},
stateNormal: typedDesc{prometheus.NewDesc(
prometheus.BuildFQName(namespace, subsystem, "normal_state"),
"Normal state of runit service.",
labelNames, constLabels,
), prometheus.GaugeValue},
stateTimestamp: typedDesc{prometheus.NewDesc(
prometheus.BuildFQName(namespace, subsystem, "state_last_change_timestamp_seconds"),
"Unix timestamp of the last runit service state change.",
labelNames, constLabels,
), prometheus.GaugeValue},
}, nil
} | go | func NewRunitCollector() (Collector, error) {
var (
subsystem = "service"
constLabels = prometheus.Labels{"supervisor": "runit"}
labelNames = []string{"service"}
)
return &runitCollector{
state: typedDesc{prometheus.NewDesc(
prometheus.BuildFQName(namespace, subsystem, "state"),
"State of runit service.",
labelNames, constLabels,
), prometheus.GaugeValue},
stateDesired: typedDesc{prometheus.NewDesc(
prometheus.BuildFQName(namespace, subsystem, "desired_state"),
"Desired state of runit service.",
labelNames, constLabels,
), prometheus.GaugeValue},
stateNormal: typedDesc{prometheus.NewDesc(
prometheus.BuildFQName(namespace, subsystem, "normal_state"),
"Normal state of runit service.",
labelNames, constLabels,
), prometheus.GaugeValue},
stateTimestamp: typedDesc{prometheus.NewDesc(
prometheus.BuildFQName(namespace, subsystem, "state_last_change_timestamp_seconds"),
"Unix timestamp of the last runit service state change.",
labelNames, constLabels,
), prometheus.GaugeValue},
}, nil
} | [
"func",
"NewRunitCollector",
"(",
")",
"(",
"Collector",
",",
"error",
")",
"{",
"var",
"(",
"subsystem",
"=",
"\"",
"\"",
"\n",
"constLabels",
"=",
"prometheus",
".",
"Labels",
"{",
"\"",
"\"",
":",
"\"",
"\"",
"}",
"\n",
"labelNames",
"=",
"[",
"]",
"string",
"{",
"\"",
"\"",
"}",
"\n",
")",
"\n\n",
"return",
"&",
"runitCollector",
"{",
"state",
":",
"typedDesc",
"{",
"prometheus",
".",
"NewDesc",
"(",
"prometheus",
".",
"BuildFQName",
"(",
"namespace",
",",
"subsystem",
",",
"\"",
"\"",
")",
",",
"\"",
"\"",
",",
"labelNames",
",",
"constLabels",
",",
")",
",",
"prometheus",
".",
"GaugeValue",
"}",
",",
"stateDesired",
":",
"typedDesc",
"{",
"prometheus",
".",
"NewDesc",
"(",
"prometheus",
".",
"BuildFQName",
"(",
"namespace",
",",
"subsystem",
",",
"\"",
"\"",
")",
",",
"\"",
"\"",
",",
"labelNames",
",",
"constLabels",
",",
")",
",",
"prometheus",
".",
"GaugeValue",
"}",
",",
"stateNormal",
":",
"typedDesc",
"{",
"prometheus",
".",
"NewDesc",
"(",
"prometheus",
".",
"BuildFQName",
"(",
"namespace",
",",
"subsystem",
",",
"\"",
"\"",
")",
",",
"\"",
"\"",
",",
"labelNames",
",",
"constLabels",
",",
")",
",",
"prometheus",
".",
"GaugeValue",
"}",
",",
"stateTimestamp",
":",
"typedDesc",
"{",
"prometheus",
".",
"NewDesc",
"(",
"prometheus",
".",
"BuildFQName",
"(",
"namespace",
",",
"subsystem",
",",
"\"",
"\"",
")",
",",
"\"",
"\"",
",",
"labelNames",
",",
"constLabels",
",",
")",
",",
"prometheus",
".",
"GaugeValue",
"}",
",",
"}",
",",
"nil",
"\n",
"}"
] | // NewRunitCollector returns a new Collector exposing runit statistics. | [
"NewRunitCollector",
"returns",
"a",
"new",
"Collector",
"exposing",
"runit",
"statistics",
"."
] | c3ce1ea6d8a12f49033a8cd884b7e8d7d36ea6c4 | https://github.com/prometheus/node_exporter/blob/c3ce1ea6d8a12f49033a8cd884b7e8d7d36ea6c4/collector/runit.go#L36-L65 | train |
prometheus/node_exporter | collector/edac_linux.go | NewEdacCollector | func NewEdacCollector() (Collector, error) {
return &edacCollector{
ceCount: prometheus.NewDesc(
prometheus.BuildFQName(namespace, edacSubsystem, "correctable_errors_total"),
"Total correctable memory errors.",
[]string{"controller"}, nil,
),
ueCount: prometheus.NewDesc(
prometheus.BuildFQName(namespace, edacSubsystem, "uncorrectable_errors_total"),
"Total uncorrectable memory errors.",
[]string{"controller"}, nil,
),
csRowCECount: prometheus.NewDesc(
prometheus.BuildFQName(namespace, edacSubsystem, "csrow_correctable_errors_total"),
"Total correctable memory errors for this csrow.",
[]string{"controller", "csrow"}, nil,
),
csRowUECount: prometheus.NewDesc(
prometheus.BuildFQName(namespace, edacSubsystem, "csrow_uncorrectable_errors_total"),
"Total uncorrectable memory errors for this csrow.",
[]string{"controller", "csrow"}, nil,
),
}, nil
} | go | func NewEdacCollector() (Collector, error) {
return &edacCollector{
ceCount: prometheus.NewDesc(
prometheus.BuildFQName(namespace, edacSubsystem, "correctable_errors_total"),
"Total correctable memory errors.",
[]string{"controller"}, nil,
),
ueCount: prometheus.NewDesc(
prometheus.BuildFQName(namespace, edacSubsystem, "uncorrectable_errors_total"),
"Total uncorrectable memory errors.",
[]string{"controller"}, nil,
),
csRowCECount: prometheus.NewDesc(
prometheus.BuildFQName(namespace, edacSubsystem, "csrow_correctable_errors_total"),
"Total correctable memory errors for this csrow.",
[]string{"controller", "csrow"}, nil,
),
csRowUECount: prometheus.NewDesc(
prometheus.BuildFQName(namespace, edacSubsystem, "csrow_uncorrectable_errors_total"),
"Total uncorrectable memory errors for this csrow.",
[]string{"controller", "csrow"}, nil,
),
}, nil
} | [
"func",
"NewEdacCollector",
"(",
")",
"(",
"Collector",
",",
"error",
")",
"{",
"return",
"&",
"edacCollector",
"{",
"ceCount",
":",
"prometheus",
".",
"NewDesc",
"(",
"prometheus",
".",
"BuildFQName",
"(",
"namespace",
",",
"edacSubsystem",
",",
"\"",
"\"",
")",
",",
"\"",
"\"",
",",
"[",
"]",
"string",
"{",
"\"",
"\"",
"}",
",",
"nil",
",",
")",
",",
"ueCount",
":",
"prometheus",
".",
"NewDesc",
"(",
"prometheus",
".",
"BuildFQName",
"(",
"namespace",
",",
"edacSubsystem",
",",
"\"",
"\"",
")",
",",
"\"",
"\"",
",",
"[",
"]",
"string",
"{",
"\"",
"\"",
"}",
",",
"nil",
",",
")",
",",
"csRowCECount",
":",
"prometheus",
".",
"NewDesc",
"(",
"prometheus",
".",
"BuildFQName",
"(",
"namespace",
",",
"edacSubsystem",
",",
"\"",
"\"",
")",
",",
"\"",
"\"",
",",
"[",
"]",
"string",
"{",
"\"",
"\"",
",",
"\"",
"\"",
"}",
",",
"nil",
",",
")",
",",
"csRowUECount",
":",
"prometheus",
".",
"NewDesc",
"(",
"prometheus",
".",
"BuildFQName",
"(",
"namespace",
",",
"edacSubsystem",
",",
"\"",
"\"",
")",
",",
"\"",
"\"",
",",
"[",
"]",
"string",
"{",
"\"",
"\"",
",",
"\"",
"\"",
"}",
",",
"nil",
",",
")",
",",
"}",
",",
"nil",
"\n",
"}"
] | // NewEdacCollector returns a new Collector exposing edac stats. | [
"NewEdacCollector",
"returns",
"a",
"new",
"Collector",
"exposing",
"edac",
"stats",
"."
] | c3ce1ea6d8a12f49033a8cd884b7e8d7d36ea6c4 | https://github.com/prometheus/node_exporter/blob/c3ce1ea6d8a12f49033a8cd884b7e8d7d36ea6c4/collector/edac_linux.go#L47-L70 | train |
prometheus/node_exporter | collector/qdisc_linux.go | NewQdiscStatCollector | func NewQdiscStatCollector() (Collector, error) {
return &qdiscStatCollector{
bytes: typedDesc{prometheus.NewDesc(
prometheus.BuildFQName(namespace, "qdisc", "bytes_total"),
"Number of bytes sent.",
[]string{"device", "kind"}, nil,
), prometheus.CounterValue},
packets: typedDesc{prometheus.NewDesc(
prometheus.BuildFQName(namespace, "qdisc", "packets_total"),
"Number of packets sent.",
[]string{"device", "kind"}, nil,
), prometheus.CounterValue},
drops: typedDesc{prometheus.NewDesc(
prometheus.BuildFQName(namespace, "qdisc", "drops_total"),
"Number of packets dropped.",
[]string{"device", "kind"}, nil,
), prometheus.CounterValue},
requeues: typedDesc{prometheus.NewDesc(
prometheus.BuildFQName(namespace, "qdisc", "requeues_total"),
"Number of packets dequeued, not transmitted, and requeued.",
[]string{"device", "kind"}, nil,
), prometheus.CounterValue},
overlimits: typedDesc{prometheus.NewDesc(
prometheus.BuildFQName(namespace, "qdisc", "overlimits_total"),
"Number of overlimit packets.",
[]string{"device", "kind"}, nil,
), prometheus.CounterValue},
}, nil
} | go | func NewQdiscStatCollector() (Collector, error) {
return &qdiscStatCollector{
bytes: typedDesc{prometheus.NewDesc(
prometheus.BuildFQName(namespace, "qdisc", "bytes_total"),
"Number of bytes sent.",
[]string{"device", "kind"}, nil,
), prometheus.CounterValue},
packets: typedDesc{prometheus.NewDesc(
prometheus.BuildFQName(namespace, "qdisc", "packets_total"),
"Number of packets sent.",
[]string{"device", "kind"}, nil,
), prometheus.CounterValue},
drops: typedDesc{prometheus.NewDesc(
prometheus.BuildFQName(namespace, "qdisc", "drops_total"),
"Number of packets dropped.",
[]string{"device", "kind"}, nil,
), prometheus.CounterValue},
requeues: typedDesc{prometheus.NewDesc(
prometheus.BuildFQName(namespace, "qdisc", "requeues_total"),
"Number of packets dequeued, not transmitted, and requeued.",
[]string{"device", "kind"}, nil,
), prometheus.CounterValue},
overlimits: typedDesc{prometheus.NewDesc(
prometheus.BuildFQName(namespace, "qdisc", "overlimits_total"),
"Number of overlimit packets.",
[]string{"device", "kind"}, nil,
), prometheus.CounterValue},
}, nil
} | [
"func",
"NewQdiscStatCollector",
"(",
")",
"(",
"Collector",
",",
"error",
")",
"{",
"return",
"&",
"qdiscStatCollector",
"{",
"bytes",
":",
"typedDesc",
"{",
"prometheus",
".",
"NewDesc",
"(",
"prometheus",
".",
"BuildFQName",
"(",
"namespace",
",",
"\"",
"\"",
",",
"\"",
"\"",
")",
",",
"\"",
"\"",
",",
"[",
"]",
"string",
"{",
"\"",
"\"",
",",
"\"",
"\"",
"}",
",",
"nil",
",",
")",
",",
"prometheus",
".",
"CounterValue",
"}",
",",
"packets",
":",
"typedDesc",
"{",
"prometheus",
".",
"NewDesc",
"(",
"prometheus",
".",
"BuildFQName",
"(",
"namespace",
",",
"\"",
"\"",
",",
"\"",
"\"",
")",
",",
"\"",
"\"",
",",
"[",
"]",
"string",
"{",
"\"",
"\"",
",",
"\"",
"\"",
"}",
",",
"nil",
",",
")",
",",
"prometheus",
".",
"CounterValue",
"}",
",",
"drops",
":",
"typedDesc",
"{",
"prometheus",
".",
"NewDesc",
"(",
"prometheus",
".",
"BuildFQName",
"(",
"namespace",
",",
"\"",
"\"",
",",
"\"",
"\"",
")",
",",
"\"",
"\"",
",",
"[",
"]",
"string",
"{",
"\"",
"\"",
",",
"\"",
"\"",
"}",
",",
"nil",
",",
")",
",",
"prometheus",
".",
"CounterValue",
"}",
",",
"requeues",
":",
"typedDesc",
"{",
"prometheus",
".",
"NewDesc",
"(",
"prometheus",
".",
"BuildFQName",
"(",
"namespace",
",",
"\"",
"\"",
",",
"\"",
"\"",
")",
",",
"\"",
"\"",
",",
"[",
"]",
"string",
"{",
"\"",
"\"",
",",
"\"",
"\"",
"}",
",",
"nil",
",",
")",
",",
"prometheus",
".",
"CounterValue",
"}",
",",
"overlimits",
":",
"typedDesc",
"{",
"prometheus",
".",
"NewDesc",
"(",
"prometheus",
".",
"BuildFQName",
"(",
"namespace",
",",
"\"",
"\"",
",",
"\"",
"\"",
")",
",",
"\"",
"\"",
",",
"[",
"]",
"string",
"{",
"\"",
"\"",
",",
"\"",
"\"",
"}",
",",
"nil",
",",
")",
",",
"prometheus",
".",
"CounterValue",
"}",
",",
"}",
",",
"nil",
"\n",
"}"
] | // NewQdiscStatCollector returns a new Collector exposing queuing discipline statistics. | [
"NewQdiscStatCollector",
"returns",
"a",
"new",
"Collector",
"exposing",
"queuing",
"discipline",
"statistics",
"."
] | c3ce1ea6d8a12f49033a8cd884b7e8d7d36ea6c4 | https://github.com/prometheus/node_exporter/blob/c3ce1ea6d8a12f49033a8cd884b7e8d7d36ea6c4/collector/qdisc_linux.go#L45-L73 | train |
prometheus/node_exporter | collector/collector.go | NewNodeCollector | func NewNodeCollector(filters ...string) (*NodeCollector, error) {
f := make(map[string]bool)
for _, filter := range filters {
enabled, exist := collectorState[filter]
if !exist {
return nil, fmt.Errorf("missing collector: %s", filter)
}
if !*enabled {
return nil, fmt.Errorf("disabled collector: %s", filter)
}
f[filter] = true
}
collectors := make(map[string]Collector)
for key, enabled := range collectorState {
if *enabled {
collector, err := factories[key]()
if err != nil {
return nil, err
}
if len(f) == 0 || f[key] {
collectors[key] = collector
}
}
}
return &NodeCollector{Collectors: collectors}, nil
} | go | func NewNodeCollector(filters ...string) (*NodeCollector, error) {
f := make(map[string]bool)
for _, filter := range filters {
enabled, exist := collectorState[filter]
if !exist {
return nil, fmt.Errorf("missing collector: %s", filter)
}
if !*enabled {
return nil, fmt.Errorf("disabled collector: %s", filter)
}
f[filter] = true
}
collectors := make(map[string]Collector)
for key, enabled := range collectorState {
if *enabled {
collector, err := factories[key]()
if err != nil {
return nil, err
}
if len(f) == 0 || f[key] {
collectors[key] = collector
}
}
}
return &NodeCollector{Collectors: collectors}, nil
} | [
"func",
"NewNodeCollector",
"(",
"filters",
"...",
"string",
")",
"(",
"*",
"NodeCollector",
",",
"error",
")",
"{",
"f",
":=",
"make",
"(",
"map",
"[",
"string",
"]",
"bool",
")",
"\n",
"for",
"_",
",",
"filter",
":=",
"range",
"filters",
"{",
"enabled",
",",
"exist",
":=",
"collectorState",
"[",
"filter",
"]",
"\n",
"if",
"!",
"exist",
"{",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"filter",
")",
"\n",
"}",
"\n",
"if",
"!",
"*",
"enabled",
"{",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"filter",
")",
"\n",
"}",
"\n",
"f",
"[",
"filter",
"]",
"=",
"true",
"\n",
"}",
"\n",
"collectors",
":=",
"make",
"(",
"map",
"[",
"string",
"]",
"Collector",
")",
"\n",
"for",
"key",
",",
"enabled",
":=",
"range",
"collectorState",
"{",
"if",
"*",
"enabled",
"{",
"collector",
",",
"err",
":=",
"factories",
"[",
"key",
"]",
"(",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"nil",
",",
"err",
"\n",
"}",
"\n",
"if",
"len",
"(",
"f",
")",
"==",
"0",
"||",
"f",
"[",
"key",
"]",
"{",
"collectors",
"[",
"key",
"]",
"=",
"collector",
"\n",
"}",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"&",
"NodeCollector",
"{",
"Collectors",
":",
"collectors",
"}",
",",
"nil",
"\n",
"}"
] | // NewNodeCollector creates a new NodeCollector. | [
"NewNodeCollector",
"creates",
"a",
"new",
"NodeCollector",
"."
] | c3ce1ea6d8a12f49033a8cd884b7e8d7d36ea6c4 | https://github.com/prometheus/node_exporter/blob/c3ce1ea6d8a12f49033a8cd884b7e8d7d36ea6c4/collector/collector.go#L79-L104 | train |
prometheus/node_exporter | collector/processes_linux.go | NewProcessStatCollector | func NewProcessStatCollector() (Collector, error) {
fs, err := procfs.NewFS(*procPath)
if err != nil {
return nil, fmt.Errorf("failed to open procfs: %v", err)
}
subsystem := "processes"
return &processCollector{
fs: fs,
threadAlloc: prometheus.NewDesc(
prometheus.BuildFQName(namespace, subsystem, "threads"),
"Allocated threads in system",
nil, nil,
),
threadLimit: prometheus.NewDesc(
prometheus.BuildFQName(namespace, subsystem, "max_threads"),
"Limit of threads in the system",
nil, nil,
),
procsState: prometheus.NewDesc(
prometheus.BuildFQName(namespace, subsystem, "state"),
"Number of processes in each state.",
[]string{"state"}, nil,
),
pidUsed: prometheus.NewDesc(prometheus.BuildFQName(namespace, subsystem, "pids"),
"Number of PIDs", nil, nil,
),
pidMax: prometheus.NewDesc(prometheus.BuildFQName(namespace, subsystem, "max_processes"),
"Number of max PIDs limit", nil, nil,
),
}, nil
} | go | func NewProcessStatCollector() (Collector, error) {
fs, err := procfs.NewFS(*procPath)
if err != nil {
return nil, fmt.Errorf("failed to open procfs: %v", err)
}
subsystem := "processes"
return &processCollector{
fs: fs,
threadAlloc: prometheus.NewDesc(
prometheus.BuildFQName(namespace, subsystem, "threads"),
"Allocated threads in system",
nil, nil,
),
threadLimit: prometheus.NewDesc(
prometheus.BuildFQName(namespace, subsystem, "max_threads"),
"Limit of threads in the system",
nil, nil,
),
procsState: prometheus.NewDesc(
prometheus.BuildFQName(namespace, subsystem, "state"),
"Number of processes in each state.",
[]string{"state"}, nil,
),
pidUsed: prometheus.NewDesc(prometheus.BuildFQName(namespace, subsystem, "pids"),
"Number of PIDs", nil, nil,
),
pidMax: prometheus.NewDesc(prometheus.BuildFQName(namespace, subsystem, "max_processes"),
"Number of max PIDs limit", nil, nil,
),
}, nil
} | [
"func",
"NewProcessStatCollector",
"(",
")",
"(",
"Collector",
",",
"error",
")",
"{",
"fs",
",",
"err",
":=",
"procfs",
".",
"NewFS",
"(",
"*",
"procPath",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"err",
")",
"\n",
"}",
"\n",
"subsystem",
":=",
"\"",
"\"",
"\n",
"return",
"&",
"processCollector",
"{",
"fs",
":",
"fs",
",",
"threadAlloc",
":",
"prometheus",
".",
"NewDesc",
"(",
"prometheus",
".",
"BuildFQName",
"(",
"namespace",
",",
"subsystem",
",",
"\"",
"\"",
")",
",",
"\"",
"\"",
",",
"nil",
",",
"nil",
",",
")",
",",
"threadLimit",
":",
"prometheus",
".",
"NewDesc",
"(",
"prometheus",
".",
"BuildFQName",
"(",
"namespace",
",",
"subsystem",
",",
"\"",
"\"",
")",
",",
"\"",
"\"",
",",
"nil",
",",
"nil",
",",
")",
",",
"procsState",
":",
"prometheus",
".",
"NewDesc",
"(",
"prometheus",
".",
"BuildFQName",
"(",
"namespace",
",",
"subsystem",
",",
"\"",
"\"",
")",
",",
"\"",
"\"",
",",
"[",
"]",
"string",
"{",
"\"",
"\"",
"}",
",",
"nil",
",",
")",
",",
"pidUsed",
":",
"prometheus",
".",
"NewDesc",
"(",
"prometheus",
".",
"BuildFQName",
"(",
"namespace",
",",
"subsystem",
",",
"\"",
"\"",
")",
",",
"\"",
"\"",
",",
"nil",
",",
"nil",
",",
")",
",",
"pidMax",
":",
"prometheus",
".",
"NewDesc",
"(",
"prometheus",
".",
"BuildFQName",
"(",
"namespace",
",",
"subsystem",
",",
"\"",
"\"",
")",
",",
"\"",
"\"",
",",
"nil",
",",
"nil",
",",
")",
",",
"}",
",",
"nil",
"\n",
"}"
] | // NewProcessStatCollector returns a new Collector exposing process data read from the proc filesystem. | [
"NewProcessStatCollector",
"returns",
"a",
"new",
"Collector",
"exposing",
"process",
"data",
"read",
"from",
"the",
"proc",
"filesystem",
"."
] | c3ce1ea6d8a12f49033a8cd884b7e8d7d36ea6c4 | https://github.com/prometheus/node_exporter/blob/c3ce1ea6d8a12f49033a8cd884b7e8d7d36ea6c4/collector/processes_linux.go#L41-L71 | train |
prometheus/node_exporter | collector/buddyinfo.go | NewBuddyinfoCollector | func NewBuddyinfoCollector() (Collector, error) {
desc := prometheus.NewDesc(
prometheus.BuildFQName(namespace, buddyInfoSubsystem, "blocks"),
"Count of free blocks according to size.",
[]string{"node", "zone", "size"}, nil,
)
fs, err := procfs.NewFS(*procPath)
if err != nil {
return nil, fmt.Errorf("failed to open procfs: %v", err)
}
return &buddyinfoCollector{fs, desc}, nil
} | go | func NewBuddyinfoCollector() (Collector, error) {
desc := prometheus.NewDesc(
prometheus.BuildFQName(namespace, buddyInfoSubsystem, "blocks"),
"Count of free blocks according to size.",
[]string{"node", "zone", "size"}, nil,
)
fs, err := procfs.NewFS(*procPath)
if err != nil {
return nil, fmt.Errorf("failed to open procfs: %v", err)
}
return &buddyinfoCollector{fs, desc}, nil
} | [
"func",
"NewBuddyinfoCollector",
"(",
")",
"(",
"Collector",
",",
"error",
")",
"{",
"desc",
":=",
"prometheus",
".",
"NewDesc",
"(",
"prometheus",
".",
"BuildFQName",
"(",
"namespace",
",",
"buddyInfoSubsystem",
",",
"\"",
"\"",
")",
",",
"\"",
"\"",
",",
"[",
"]",
"string",
"{",
"\"",
"\"",
",",
"\"",
"\"",
",",
"\"",
"\"",
"}",
",",
"nil",
",",
")",
"\n",
"fs",
",",
"err",
":=",
"procfs",
".",
"NewFS",
"(",
"*",
"procPath",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"err",
")",
"\n",
"}",
"\n",
"return",
"&",
"buddyinfoCollector",
"{",
"fs",
",",
"desc",
"}",
",",
"nil",
"\n",
"}"
] | // NewBuddyinfoCollector returns a new Collector exposing buddyinfo stats. | [
"NewBuddyinfoCollector",
"returns",
"a",
"new",
"Collector",
"exposing",
"buddyinfo",
"stats",
"."
] | c3ce1ea6d8a12f49033a8cd884b7e8d7d36ea6c4 | https://github.com/prometheus/node_exporter/blob/c3ce1ea6d8a12f49033a8cd884b7e8d7d36ea6c4/collector/buddyinfo.go#L42-L53 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.