id
int32 0
167k
| repo
stringlengths 5
54
| path
stringlengths 4
155
| func_name
stringlengths 1
118
| original_string
stringlengths 52
85.5k
| language
stringclasses 1
value | code
stringlengths 52
85.5k
| code_tokens
sequencelengths 21
1.41k
| docstring
stringlengths 6
2.61k
| docstring_tokens
sequencelengths 3
215
| sha
stringlengths 40
40
| url
stringlengths 85
252
|
---|---|---|---|---|---|---|---|---|---|---|---|
165,800 | aws/aws-sdk-go | service/swf/api.go | SetDecisions | func (s *RespondDecisionTaskCompletedInput) SetDecisions(v []*Decision) *RespondDecisionTaskCompletedInput {
s.Decisions = v
return s
} | go | func (s *RespondDecisionTaskCompletedInput) SetDecisions(v []*Decision) *RespondDecisionTaskCompletedInput {
s.Decisions = v
return s
} | [
"func",
"(",
"s",
"*",
"RespondDecisionTaskCompletedInput",
")",
"SetDecisions",
"(",
"v",
"[",
"]",
"*",
"Decision",
")",
"*",
"RespondDecisionTaskCompletedInput",
"{",
"s",
".",
"Decisions",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDecisions sets the Decisions field's value. | [
"SetDecisions",
"sets",
"the",
"Decisions",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/swf/api.go#L11307-L11310 |
165,801 | aws/aws-sdk-go | service/swf/api.go | SetNewExecutionRunId | func (s *WorkflowExecutionContinuedAsNewEventAttributes) SetNewExecutionRunId(v string) *WorkflowExecutionContinuedAsNewEventAttributes {
s.NewExecutionRunId = &v
return s
} | go | func (s *WorkflowExecutionContinuedAsNewEventAttributes) SetNewExecutionRunId(v string) *WorkflowExecutionContinuedAsNewEventAttributes {
s.NewExecutionRunId = &v
return s
} | [
"func",
"(",
"s",
"*",
"WorkflowExecutionContinuedAsNewEventAttributes",
")",
"SetNewExecutionRunId",
"(",
"v",
"string",
")",
"*",
"WorkflowExecutionContinuedAsNewEventAttributes",
"{",
"s",
".",
"NewExecutionRunId",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetNewExecutionRunId sets the NewExecutionRunId field's value. | [
"SetNewExecutionRunId",
"sets",
"the",
"NewExecutionRunId",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/swf/api.go#L13908-L13911 |
165,802 | aws/aws-sdk-go | service/swf/api.go | SetCloseStatus | func (s *WorkflowExecutionInfo) SetCloseStatus(v string) *WorkflowExecutionInfo {
s.CloseStatus = &v
return s
} | go | func (s *WorkflowExecutionInfo) SetCloseStatus(v string) *WorkflowExecutionInfo {
s.CloseStatus = &v
return s
} | [
"func",
"(",
"s",
"*",
"WorkflowExecutionInfo",
")",
"SetCloseStatus",
"(",
"v",
"string",
")",
"*",
"WorkflowExecutionInfo",
"{",
"s",
".",
"CloseStatus",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCloseStatus sets the CloseStatus field's value. | [
"SetCloseStatus",
"sets",
"the",
"CloseStatus",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/swf/api.go#L14147-L14150 |
165,803 | aws/aws-sdk-go | service/swf/api.go | SetCloseTimestamp | func (s *WorkflowExecutionInfo) SetCloseTimestamp(v time.Time) *WorkflowExecutionInfo {
s.CloseTimestamp = &v
return s
} | go | func (s *WorkflowExecutionInfo) SetCloseTimestamp(v time.Time) *WorkflowExecutionInfo {
s.CloseTimestamp = &v
return s
} | [
"func",
"(",
"s",
"*",
"WorkflowExecutionInfo",
")",
"SetCloseTimestamp",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"WorkflowExecutionInfo",
"{",
"s",
".",
"CloseTimestamp",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCloseTimestamp sets the CloseTimestamp field's value. | [
"SetCloseTimestamp",
"sets",
"the",
"CloseTimestamp",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/swf/api.go#L14153-L14156 |
165,804 | aws/aws-sdk-go | service/swf/api.go | SetParent | func (s *WorkflowExecutionInfo) SetParent(v *WorkflowExecution) *WorkflowExecutionInfo {
s.Parent = v
return s
} | go | func (s *WorkflowExecutionInfo) SetParent(v *WorkflowExecution) *WorkflowExecutionInfo {
s.Parent = v
return s
} | [
"func",
"(",
"s",
"*",
"WorkflowExecutionInfo",
")",
"SetParent",
"(",
"v",
"*",
"WorkflowExecution",
")",
"*",
"WorkflowExecutionInfo",
"{",
"s",
".",
"Parent",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetParent sets the Parent field's value. | [
"SetParent",
"sets",
"the",
"Parent",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/swf/api.go#L14171-L14174 |
165,805 | aws/aws-sdk-go | service/swf/api.go | SetExecutionInfos | func (s *WorkflowExecutionInfos) SetExecutionInfos(v []*WorkflowExecutionInfo) *WorkflowExecutionInfos {
s.ExecutionInfos = v
return s
} | go | func (s *WorkflowExecutionInfos) SetExecutionInfos(v []*WorkflowExecutionInfo) *WorkflowExecutionInfos {
s.ExecutionInfos = v
return s
} | [
"func",
"(",
"s",
"*",
"WorkflowExecutionInfos",
")",
"SetExecutionInfos",
"(",
"v",
"[",
"]",
"*",
"WorkflowExecutionInfo",
")",
"*",
"WorkflowExecutionInfos",
"{",
"s",
".",
"ExecutionInfos",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetExecutionInfos sets the ExecutionInfos field's value. | [
"SetExecutionInfos",
"sets",
"the",
"ExecutionInfos",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/swf/api.go#L14223-L14226 |
165,806 | aws/aws-sdk-go | service/swf/api.go | SetOpenActivityTasks | func (s *WorkflowExecutionOpenCounts) SetOpenActivityTasks(v int64) *WorkflowExecutionOpenCounts {
s.OpenActivityTasks = &v
return s
} | go | func (s *WorkflowExecutionOpenCounts) SetOpenActivityTasks(v int64) *WorkflowExecutionOpenCounts {
s.OpenActivityTasks = &v
return s
} | [
"func",
"(",
"s",
"*",
"WorkflowExecutionOpenCounts",
")",
"SetOpenActivityTasks",
"(",
"v",
"int64",
")",
"*",
"WorkflowExecutionOpenCounts",
"{",
"s",
".",
"OpenActivityTasks",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetOpenActivityTasks sets the OpenActivityTasks field's value. | [
"SetOpenActivityTasks",
"sets",
"the",
"OpenActivityTasks",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/swf/api.go#L14276-L14279 |
165,807 | aws/aws-sdk-go | service/swf/api.go | SetOpenChildWorkflowExecutions | func (s *WorkflowExecutionOpenCounts) SetOpenChildWorkflowExecutions(v int64) *WorkflowExecutionOpenCounts {
s.OpenChildWorkflowExecutions = &v
return s
} | go | func (s *WorkflowExecutionOpenCounts) SetOpenChildWorkflowExecutions(v int64) *WorkflowExecutionOpenCounts {
s.OpenChildWorkflowExecutions = &v
return s
} | [
"func",
"(",
"s",
"*",
"WorkflowExecutionOpenCounts",
")",
"SetOpenChildWorkflowExecutions",
"(",
"v",
"int64",
")",
"*",
"WorkflowExecutionOpenCounts",
"{",
"s",
".",
"OpenChildWorkflowExecutions",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetOpenChildWorkflowExecutions sets the OpenChildWorkflowExecutions field's value. | [
"SetOpenChildWorkflowExecutions",
"sets",
"the",
"OpenChildWorkflowExecutions",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/swf/api.go#L14282-L14285 |
165,808 | aws/aws-sdk-go | service/swf/api.go | SetOpenDecisionTasks | func (s *WorkflowExecutionOpenCounts) SetOpenDecisionTasks(v int64) *WorkflowExecutionOpenCounts {
s.OpenDecisionTasks = &v
return s
} | go | func (s *WorkflowExecutionOpenCounts) SetOpenDecisionTasks(v int64) *WorkflowExecutionOpenCounts {
s.OpenDecisionTasks = &v
return s
} | [
"func",
"(",
"s",
"*",
"WorkflowExecutionOpenCounts",
")",
"SetOpenDecisionTasks",
"(",
"v",
"int64",
")",
"*",
"WorkflowExecutionOpenCounts",
"{",
"s",
".",
"OpenDecisionTasks",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetOpenDecisionTasks sets the OpenDecisionTasks field's value. | [
"SetOpenDecisionTasks",
"sets",
"the",
"OpenDecisionTasks",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/swf/api.go#L14288-L14291 |
165,809 | aws/aws-sdk-go | service/swf/api.go | SetOpenLambdaFunctions | func (s *WorkflowExecutionOpenCounts) SetOpenLambdaFunctions(v int64) *WorkflowExecutionOpenCounts {
s.OpenLambdaFunctions = &v
return s
} | go | func (s *WorkflowExecutionOpenCounts) SetOpenLambdaFunctions(v int64) *WorkflowExecutionOpenCounts {
s.OpenLambdaFunctions = &v
return s
} | [
"func",
"(",
"s",
"*",
"WorkflowExecutionOpenCounts",
")",
"SetOpenLambdaFunctions",
"(",
"v",
"int64",
")",
"*",
"WorkflowExecutionOpenCounts",
"{",
"s",
".",
"OpenLambdaFunctions",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetOpenLambdaFunctions sets the OpenLambdaFunctions field's value. | [
"SetOpenLambdaFunctions",
"sets",
"the",
"OpenLambdaFunctions",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/swf/api.go#L14294-L14297 |
165,810 | aws/aws-sdk-go | service/swf/api.go | SetOpenTimers | func (s *WorkflowExecutionOpenCounts) SetOpenTimers(v int64) *WorkflowExecutionOpenCounts {
s.OpenTimers = &v
return s
} | go | func (s *WorkflowExecutionOpenCounts) SetOpenTimers(v int64) *WorkflowExecutionOpenCounts {
s.OpenTimers = &v
return s
} | [
"func",
"(",
"s",
"*",
"WorkflowExecutionOpenCounts",
")",
"SetOpenTimers",
"(",
"v",
"int64",
")",
"*",
"WorkflowExecutionOpenCounts",
"{",
"s",
".",
"OpenTimers",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetOpenTimers sets the OpenTimers field's value. | [
"SetOpenTimers",
"sets",
"the",
"OpenTimers",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/swf/api.go#L14300-L14303 |
165,811 | aws/aws-sdk-go | service/swf/api.go | SetContinuedExecutionRunId | func (s *WorkflowExecutionStartedEventAttributes) SetContinuedExecutionRunId(v string) *WorkflowExecutionStartedEventAttributes {
s.ContinuedExecutionRunId = &v
return s
} | go | func (s *WorkflowExecutionStartedEventAttributes) SetContinuedExecutionRunId(v string) *WorkflowExecutionStartedEventAttributes {
s.ContinuedExecutionRunId = &v
return s
} | [
"func",
"(",
"s",
"*",
"WorkflowExecutionStartedEventAttributes",
")",
"SetContinuedExecutionRunId",
"(",
"v",
"string",
")",
"*",
"WorkflowExecutionStartedEventAttributes",
"{",
"s",
".",
"ContinuedExecutionRunId",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetContinuedExecutionRunId sets the ContinuedExecutionRunId field's value. | [
"SetContinuedExecutionRunId",
"sets",
"the",
"ContinuedExecutionRunId",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/swf/api.go#L14458-L14461 |
165,812 | aws/aws-sdk-go | service/swf/api.go | SetParentInitiatedEventId | func (s *WorkflowExecutionStartedEventAttributes) SetParentInitiatedEventId(v int64) *WorkflowExecutionStartedEventAttributes {
s.ParentInitiatedEventId = &v
return s
} | go | func (s *WorkflowExecutionStartedEventAttributes) SetParentInitiatedEventId(v int64) *WorkflowExecutionStartedEventAttributes {
s.ParentInitiatedEventId = &v
return s
} | [
"func",
"(",
"s",
"*",
"WorkflowExecutionStartedEventAttributes",
")",
"SetParentInitiatedEventId",
"(",
"v",
"int64",
")",
"*",
"WorkflowExecutionStartedEventAttributes",
"{",
"s",
".",
"ParentInitiatedEventId",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetParentInitiatedEventId sets the ParentInitiatedEventId field's value. | [
"SetParentInitiatedEventId",
"sets",
"the",
"ParentInitiatedEventId",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/swf/api.go#L14482-L14485 |
165,813 | aws/aws-sdk-go | service/swf/api.go | SetParentWorkflowExecution | func (s *WorkflowExecutionStartedEventAttributes) SetParentWorkflowExecution(v *WorkflowExecution) *WorkflowExecutionStartedEventAttributes {
s.ParentWorkflowExecution = v
return s
} | go | func (s *WorkflowExecutionStartedEventAttributes) SetParentWorkflowExecution(v *WorkflowExecution) *WorkflowExecutionStartedEventAttributes {
s.ParentWorkflowExecution = v
return s
} | [
"func",
"(",
"s",
"*",
"WorkflowExecutionStartedEventAttributes",
")",
"SetParentWorkflowExecution",
"(",
"v",
"*",
"WorkflowExecution",
")",
"*",
"WorkflowExecutionStartedEventAttributes",
"{",
"s",
".",
"ParentWorkflowExecution",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetParentWorkflowExecution sets the ParentWorkflowExecution field's value. | [
"SetParentWorkflowExecution",
"sets",
"the",
"ParentWorkflowExecution",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/swf/api.go#L14488-L14491 |
165,814 | aws/aws-sdk-go | private/protocol/rest/payload.go | PayloadMember | func PayloadMember(i interface{}) interface{} {
if i == nil {
return nil
}
v := reflect.ValueOf(i).Elem()
if !v.IsValid() {
return nil
}
if field, ok := v.Type().FieldByName("_"); ok {
if payloadName := field.Tag.Get("payload"); payloadName != "" {
field, _ := v.Type().FieldByName(payloadName)
if field.Tag.Get("type") != "structure" {
return nil
}
payload := v.FieldByName(payloadName)
if payload.IsValid() || (payload.Kind() == reflect.Ptr && !payload.IsNil()) {
return payload.Interface()
}
}
}
return nil
} | go | func PayloadMember(i interface{}) interface{} {
if i == nil {
return nil
}
v := reflect.ValueOf(i).Elem()
if !v.IsValid() {
return nil
}
if field, ok := v.Type().FieldByName("_"); ok {
if payloadName := field.Tag.Get("payload"); payloadName != "" {
field, _ := v.Type().FieldByName(payloadName)
if field.Tag.Get("type") != "structure" {
return nil
}
payload := v.FieldByName(payloadName)
if payload.IsValid() || (payload.Kind() == reflect.Ptr && !payload.IsNil()) {
return payload.Interface()
}
}
}
return nil
} | [
"func",
"PayloadMember",
"(",
"i",
"interface",
"{",
"}",
")",
"interface",
"{",
"}",
"{",
"if",
"i",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n\n",
"v",
":=",
"reflect",
".",
"ValueOf",
"(",
"i",
")",
".",
"Elem",
"(",
")",
"\n",
"if",
"!",
"v",
".",
"IsValid",
"(",
")",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"if",
"field",
",",
"ok",
":=",
"v",
".",
"Type",
"(",
")",
".",
"FieldByName",
"(",
"\"",
"\"",
")",
";",
"ok",
"{",
"if",
"payloadName",
":=",
"field",
".",
"Tag",
".",
"Get",
"(",
"\"",
"\"",
")",
";",
"payloadName",
"!=",
"\"",
"\"",
"{",
"field",
",",
"_",
":=",
"v",
".",
"Type",
"(",
")",
".",
"FieldByName",
"(",
"payloadName",
")",
"\n",
"if",
"field",
".",
"Tag",
".",
"Get",
"(",
"\"",
"\"",
")",
"!=",
"\"",
"\"",
"{",
"return",
"nil",
"\n",
"}",
"\n\n",
"payload",
":=",
"v",
".",
"FieldByName",
"(",
"payloadName",
")",
"\n",
"if",
"payload",
".",
"IsValid",
"(",
")",
"||",
"(",
"payload",
".",
"Kind",
"(",
")",
"==",
"reflect",
".",
"Ptr",
"&&",
"!",
"payload",
".",
"IsNil",
"(",
")",
")",
"{",
"return",
"payload",
".",
"Interface",
"(",
")",
"\n",
"}",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
"\n",
"}"
] | // PayloadMember returns the payload field member of i if there is one, or nil. | [
"PayloadMember",
"returns",
"the",
"payload",
"field",
"member",
"of",
"i",
"if",
"there",
"is",
"one",
"or",
"nil",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/rest/payload.go#L6-L29 |
165,815 | aws/aws-sdk-go | private/protocol/rest/payload.go | PayloadType | func PayloadType(i interface{}) string {
v := reflect.Indirect(reflect.ValueOf(i))
if !v.IsValid() {
return ""
}
if field, ok := v.Type().FieldByName("_"); ok {
if payloadName := field.Tag.Get("payload"); payloadName != "" {
if member, ok := v.Type().FieldByName(payloadName); ok {
return member.Tag.Get("type")
}
}
}
return ""
} | go | func PayloadType(i interface{}) string {
v := reflect.Indirect(reflect.ValueOf(i))
if !v.IsValid() {
return ""
}
if field, ok := v.Type().FieldByName("_"); ok {
if payloadName := field.Tag.Get("payload"); payloadName != "" {
if member, ok := v.Type().FieldByName(payloadName); ok {
return member.Tag.Get("type")
}
}
}
return ""
} | [
"func",
"PayloadType",
"(",
"i",
"interface",
"{",
"}",
")",
"string",
"{",
"v",
":=",
"reflect",
".",
"Indirect",
"(",
"reflect",
".",
"ValueOf",
"(",
"i",
")",
")",
"\n",
"if",
"!",
"v",
".",
"IsValid",
"(",
")",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"if",
"field",
",",
"ok",
":=",
"v",
".",
"Type",
"(",
")",
".",
"FieldByName",
"(",
"\"",
"\"",
")",
";",
"ok",
"{",
"if",
"payloadName",
":=",
"field",
".",
"Tag",
".",
"Get",
"(",
"\"",
"\"",
")",
";",
"payloadName",
"!=",
"\"",
"\"",
"{",
"if",
"member",
",",
"ok",
":=",
"v",
".",
"Type",
"(",
")",
".",
"FieldByName",
"(",
"payloadName",
")",
";",
"ok",
"{",
"return",
"member",
".",
"Tag",
".",
"Get",
"(",
"\"",
"\"",
")",
"\n",
"}",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"\"",
"\"",
"\n",
"}"
] | // PayloadType returns the type of a payload field member of i if there is one, or "". | [
"PayloadType",
"returns",
"the",
"type",
"of",
"a",
"payload",
"field",
"member",
"of",
"i",
"if",
"there",
"is",
"one",
"or",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/rest/payload.go#L32-L45 |
165,816 | aws/aws-sdk-go | service/polly/customizations.go | restGETPresignStrategy | func restGETPresignStrategy(r *request.Request) error {
r.Handlers.Build.Clear()
r.Handlers.Build.PushBack(rest.BuildAsGET)
r.Operation.HTTPMethod = "GET"
r.HTTPRequest.Method = "GET"
return nil
} | go | func restGETPresignStrategy(r *request.Request) error {
r.Handlers.Build.Clear()
r.Handlers.Build.PushBack(rest.BuildAsGET)
r.Operation.HTTPMethod = "GET"
r.HTTPRequest.Method = "GET"
return nil
} | [
"func",
"restGETPresignStrategy",
"(",
"r",
"*",
"request",
".",
"Request",
")",
"error",
"{",
"r",
".",
"Handlers",
".",
"Build",
".",
"Clear",
"(",
")",
"\n",
"r",
".",
"Handlers",
".",
"Build",
".",
"PushBack",
"(",
"rest",
".",
"BuildAsGET",
")",
"\n",
"r",
".",
"Operation",
".",
"HTTPMethod",
"=",
"\"",
"\"",
"\n",
"r",
".",
"HTTPRequest",
".",
"Method",
"=",
"\"",
"\"",
"\n",
"return",
"nil",
"\n",
"}"
] | // restGETPresignStrategy will prepare the request from a POST to a GET request.
// Enabling the presigner to sign the request as a GET. | [
"restGETPresignStrategy",
"will",
"prepare",
"the",
"request",
"from",
"a",
"POST",
"to",
"a",
"GET",
"request",
".",
"Enabling",
"the",
"presigner",
"to",
"sign",
"the",
"request",
"as",
"a",
"GET",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/polly/customizations.go#L18-L24 |
165,817 | aws/aws-sdk-go | private/protocol/query/unmarshal.go | UnmarshalMeta | func UnmarshalMeta(r *request.Request) {
r.RequestID = r.HTTPResponse.Header.Get("X-Amzn-Requestid")
} | go | func UnmarshalMeta(r *request.Request) {
r.RequestID = r.HTTPResponse.Header.Get("X-Amzn-Requestid")
} | [
"func",
"UnmarshalMeta",
"(",
"r",
"*",
"request",
".",
"Request",
")",
"{",
"r",
".",
"RequestID",
"=",
"r",
".",
"HTTPResponse",
".",
"Header",
".",
"Get",
"(",
"\"",
"\"",
")",
"\n",
"}"
] | // UnmarshalMeta unmarshals header response values for an AWS Query service. | [
"UnmarshalMeta",
"unmarshals",
"header",
"response",
"values",
"for",
"an",
"AWS",
"Query",
"service",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/query/unmarshal.go#L37-L39 |
165,818 | aws/aws-sdk-go | example/aws/request/customRetryer/custom_retryer.go | ShouldRetry | func (r CustomRetryer) ShouldRetry(req *request.Request) bool {
if req.HTTPResponse.StatusCode >= 500 {
// Don't retry any 5xx status codes.
return false
}
// Fallback to SDK's built in retry rules
return r.DefaultRetryer.ShouldRetry(req)
} | go | func (r CustomRetryer) ShouldRetry(req *request.Request) bool {
if req.HTTPResponse.StatusCode >= 500 {
// Don't retry any 5xx status codes.
return false
}
// Fallback to SDK's built in retry rules
return r.DefaultRetryer.ShouldRetry(req)
} | [
"func",
"(",
"r",
"CustomRetryer",
")",
"ShouldRetry",
"(",
"req",
"*",
"request",
".",
"Request",
")",
"bool",
"{",
"if",
"req",
".",
"HTTPResponse",
".",
"StatusCode",
">=",
"500",
"{",
"// Don't retry any 5xx status codes.",
"return",
"false",
"\n",
"}",
"\n\n",
"// Fallback to SDK's built in retry rules",
"return",
"r",
".",
"DefaultRetryer",
".",
"ShouldRetry",
"(",
"req",
")",
"\n",
"}"
] | // ShouldRetry overrides the SDK's built in DefaultRetryer adding customization
// to not retry 5xx status codes. | [
"ShouldRetry",
"overrides",
"the",
"SDK",
"s",
"built",
"in",
"DefaultRetryer",
"adding",
"customization",
"to",
"not",
"retry",
"5xx",
"status",
"codes",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/example/aws/request/customRetryer/custom_retryer.go#L67-L75 |
165,819 | aws/aws-sdk-go | service/inspector/api.go | SetAgentHealthCodes | func (s *AgentFilter) SetAgentHealthCodes(v []*string) *AgentFilter {
s.AgentHealthCodes = v
return s
} | go | func (s *AgentFilter) SetAgentHealthCodes(v []*string) *AgentFilter {
s.AgentHealthCodes = v
return s
} | [
"func",
"(",
"s",
"*",
"AgentFilter",
")",
"SetAgentHealthCodes",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"AgentFilter",
"{",
"s",
".",
"AgentHealthCodes",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAgentHealthCodes sets the AgentHealthCodes field's value. | [
"SetAgentHealthCodes",
"sets",
"the",
"AgentHealthCodes",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L4183-L4186 |
165,820 | aws/aws-sdk-go | service/inspector/api.go | SetAgentHealths | func (s *AgentFilter) SetAgentHealths(v []*string) *AgentFilter {
s.AgentHealths = v
return s
} | go | func (s *AgentFilter) SetAgentHealths(v []*string) *AgentFilter {
s.AgentHealths = v
return s
} | [
"func",
"(",
"s",
"*",
"AgentFilter",
")",
"SetAgentHealths",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"AgentFilter",
"{",
"s",
".",
"AgentHealths",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAgentHealths sets the AgentHealths field's value. | [
"SetAgentHealths",
"sets",
"the",
"AgentHealths",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L4189-L4192 |
165,821 | aws/aws-sdk-go | service/inspector/api.go | SetKernelVersion | func (s *AgentPreview) SetKernelVersion(v string) *AgentPreview {
s.KernelVersion = &v
return s
} | go | func (s *AgentPreview) SetKernelVersion(v string) *AgentPreview {
s.KernelVersion = &v
return s
} | [
"func",
"(",
"s",
"*",
"AgentPreview",
")",
"SetKernelVersion",
"(",
"v",
"string",
")",
"*",
"AgentPreview",
"{",
"s",
".",
"KernelVersion",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetKernelVersion sets the KernelVersion field's value. | [
"SetKernelVersion",
"sets",
"the",
"KernelVersion",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L4275-L4278 |
165,822 | aws/aws-sdk-go | service/inspector/api.go | SetDataCollected | func (s *AssessmentRun) SetDataCollected(v bool) *AssessmentRun {
s.DataCollected = &v
return s
} | go | func (s *AssessmentRun) SetDataCollected(v bool) *AssessmentRun {
s.DataCollected = &v
return s
} | [
"func",
"(",
"s",
"*",
"AssessmentRun",
")",
"SetDataCollected",
"(",
"v",
"bool",
")",
"*",
"AssessmentRun",
"{",
"s",
".",
"DataCollected",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDataCollected sets the DataCollected field's value. | [
"SetDataCollected",
"sets",
"the",
"DataCollected",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L4404-L4407 |
165,823 | aws/aws-sdk-go | service/inspector/api.go | SetFindingCounts | func (s *AssessmentRun) SetFindingCounts(v map[string]*int64) *AssessmentRun {
s.FindingCounts = v
return s
} | go | func (s *AssessmentRun) SetFindingCounts(v map[string]*int64) *AssessmentRun {
s.FindingCounts = v
return s
} | [
"func",
"(",
"s",
"*",
"AssessmentRun",
")",
"SetFindingCounts",
"(",
"v",
"map",
"[",
"string",
"]",
"*",
"int64",
")",
"*",
"AssessmentRun",
"{",
"s",
".",
"FindingCounts",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetFindingCounts sets the FindingCounts field's value. | [
"SetFindingCounts",
"sets",
"the",
"FindingCounts",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L4416-L4419 |
165,824 | aws/aws-sdk-go | service/inspector/api.go | SetStateChanges | func (s *AssessmentRun) SetStateChanges(v []*AssessmentRunStateChange) *AssessmentRun {
s.StateChanges = v
return s
} | go | func (s *AssessmentRun) SetStateChanges(v []*AssessmentRunStateChange) *AssessmentRun {
s.StateChanges = v
return s
} | [
"func",
"(",
"s",
"*",
"AssessmentRun",
")",
"SetStateChanges",
"(",
"v",
"[",
"]",
"*",
"AssessmentRunStateChange",
")",
"*",
"AssessmentRun",
"{",
"s",
".",
"StateChanges",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetStateChanges sets the StateChanges field's value. | [
"SetStateChanges",
"sets",
"the",
"StateChanges",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L4458-L4461 |
165,825 | aws/aws-sdk-go | service/inspector/api.go | SetAgentHealthCode | func (s *AssessmentRunAgent) SetAgentHealthCode(v string) *AssessmentRunAgent {
s.AgentHealthCode = &v
return s
} | go | func (s *AssessmentRunAgent) SetAgentHealthCode(v string) *AssessmentRunAgent {
s.AgentHealthCode = &v
return s
} | [
"func",
"(",
"s",
"*",
"AssessmentRunAgent",
")",
"SetAgentHealthCode",
"(",
"v",
"string",
")",
"*",
"AssessmentRunAgent",
"{",
"s",
".",
"AgentHealthCode",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAgentHealthCode sets the AgentHealthCode field's value. | [
"SetAgentHealthCode",
"sets",
"the",
"AgentHealthCode",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L4524-L4527 |
165,826 | aws/aws-sdk-go | service/inspector/api.go | SetAgentHealthDetails | func (s *AssessmentRunAgent) SetAgentHealthDetails(v string) *AssessmentRunAgent {
s.AgentHealthDetails = &v
return s
} | go | func (s *AssessmentRunAgent) SetAgentHealthDetails(v string) *AssessmentRunAgent {
s.AgentHealthDetails = &v
return s
} | [
"func",
"(",
"s",
"*",
"AssessmentRunAgent",
")",
"SetAgentHealthDetails",
"(",
"v",
"string",
")",
"*",
"AssessmentRunAgent",
"{",
"s",
".",
"AgentHealthDetails",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAgentHealthDetails sets the AgentHealthDetails field's value. | [
"SetAgentHealthDetails",
"sets",
"the",
"AgentHealthDetails",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L4530-L4533 |
165,827 | aws/aws-sdk-go | service/inspector/api.go | SetCompletionTimeRange | func (s *AssessmentRunFilter) SetCompletionTimeRange(v *TimestampRange) *AssessmentRunFilter {
s.CompletionTimeRange = v
return s
} | go | func (s *AssessmentRunFilter) SetCompletionTimeRange(v *TimestampRange) *AssessmentRunFilter {
s.CompletionTimeRange = v
return s
} | [
"func",
"(",
"s",
"*",
"AssessmentRunFilter",
")",
"SetCompletionTimeRange",
"(",
"v",
"*",
"TimestampRange",
")",
"*",
"AssessmentRunFilter",
"{",
"s",
".",
"CompletionTimeRange",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCompletionTimeRange sets the CompletionTimeRange field's value. | [
"SetCompletionTimeRange",
"sets",
"the",
"CompletionTimeRange",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L4630-L4633 |
165,828 | aws/aws-sdk-go | service/inspector/api.go | SetStartTimeRange | func (s *AssessmentRunFilter) SetStartTimeRange(v *TimestampRange) *AssessmentRunFilter {
s.StartTimeRange = v
return s
} | go | func (s *AssessmentRunFilter) SetStartTimeRange(v *TimestampRange) *AssessmentRunFilter {
s.StartTimeRange = v
return s
} | [
"func",
"(",
"s",
"*",
"AssessmentRunFilter",
")",
"SetStartTimeRange",
"(",
"v",
"*",
"TimestampRange",
")",
"*",
"AssessmentRunFilter",
"{",
"s",
".",
"StartTimeRange",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetStartTimeRange sets the StartTimeRange field's value. | [
"SetStartTimeRange",
"sets",
"the",
"StartTimeRange",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L4654-L4657 |
165,829 | aws/aws-sdk-go | service/inspector/api.go | SetStateChangeTimeRange | func (s *AssessmentRunFilter) SetStateChangeTimeRange(v *TimestampRange) *AssessmentRunFilter {
s.StateChangeTimeRange = v
return s
} | go | func (s *AssessmentRunFilter) SetStateChangeTimeRange(v *TimestampRange) *AssessmentRunFilter {
s.StateChangeTimeRange = v
return s
} | [
"func",
"(",
"s",
"*",
"AssessmentRunFilter",
")",
"SetStateChangeTimeRange",
"(",
"v",
"*",
"TimestampRange",
")",
"*",
"AssessmentRunFilter",
"{",
"s",
".",
"StateChangeTimeRange",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetStateChangeTimeRange sets the StateChangeTimeRange field's value. | [
"SetStateChangeTimeRange",
"sets",
"the",
"StateChangeTimeRange",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L4660-L4663 |
165,830 | aws/aws-sdk-go | service/inspector/api.go | SetSnsPublishStatusCode | func (s *AssessmentRunNotification) SetSnsPublishStatusCode(v string) *AssessmentRunNotification {
s.SnsPublishStatusCode = &v
return s
} | go | func (s *AssessmentRunNotification) SetSnsPublishStatusCode(v string) *AssessmentRunNotification {
s.SnsPublishStatusCode = &v
return s
} | [
"func",
"(",
"s",
"*",
"AssessmentRunNotification",
")",
"SetSnsPublishStatusCode",
"(",
"v",
"string",
")",
"*",
"AssessmentRunNotification",
"{",
"s",
".",
"SnsPublishStatusCode",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSnsPublishStatusCode sets the SnsPublishStatusCode field's value. | [
"SetSnsPublishStatusCode",
"sets",
"the",
"SnsPublishStatusCode",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L4735-L4738 |
165,831 | aws/aws-sdk-go | service/inspector/api.go | SetAssessmentTargetNamePattern | func (s *AssessmentTargetFilter) SetAssessmentTargetNamePattern(v string) *AssessmentTargetFilter {
s.AssessmentTargetNamePattern = &v
return s
} | go | func (s *AssessmentTargetFilter) SetAssessmentTargetNamePattern(v string) *AssessmentTargetFilter {
s.AssessmentTargetNamePattern = &v
return s
} | [
"func",
"(",
"s",
"*",
"AssessmentTargetFilter",
")",
"SetAssessmentTargetNamePattern",
"(",
"v",
"string",
")",
"*",
"AssessmentTargetFilter",
"{",
"s",
".",
"AssessmentTargetNamePattern",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAssessmentTargetNamePattern sets the AssessmentTargetNamePattern field's value. | [
"SetAssessmentTargetNamePattern",
"sets",
"the",
"AssessmentTargetNamePattern",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L4887-L4890 |
165,832 | aws/aws-sdk-go | service/inspector/api.go | SetAssessmentRunCount | func (s *AssessmentTemplate) SetAssessmentRunCount(v int64) *AssessmentTemplate {
s.AssessmentRunCount = &v
return s
} | go | func (s *AssessmentTemplate) SetAssessmentRunCount(v int64) *AssessmentTemplate {
s.AssessmentRunCount = &v
return s
} | [
"func",
"(",
"s",
"*",
"AssessmentTemplate",
")",
"SetAssessmentRunCount",
"(",
"v",
"int64",
")",
"*",
"AssessmentTemplate",
"{",
"s",
".",
"AssessmentRunCount",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAssessmentRunCount sets the AssessmentRunCount field's value. | [
"SetAssessmentRunCount",
"sets",
"the",
"AssessmentRunCount",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L4965-L4968 |
165,833 | aws/aws-sdk-go | service/inspector/api.go | SetLastAssessmentRunArn | func (s *AssessmentTemplate) SetLastAssessmentRunArn(v string) *AssessmentTemplate {
s.LastAssessmentRunArn = &v
return s
} | go | func (s *AssessmentTemplate) SetLastAssessmentRunArn(v string) *AssessmentTemplate {
s.LastAssessmentRunArn = &v
return s
} | [
"func",
"(",
"s",
"*",
"AssessmentTemplate",
")",
"SetLastAssessmentRunArn",
"(",
"v",
"string",
")",
"*",
"AssessmentTemplate",
"{",
"s",
".",
"LastAssessmentRunArn",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetLastAssessmentRunArn sets the LastAssessmentRunArn field's value. | [
"SetLastAssessmentRunArn",
"sets",
"the",
"LastAssessmentRunArn",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L4989-L4992 |
165,834 | aws/aws-sdk-go | service/inspector/api.go | SetIpv4Addresses | func (s *AssetAttributes) SetIpv4Addresses(v []*string) *AssetAttributes {
s.Ipv4Addresses = v
return s
} | go | func (s *AssetAttributes) SetIpv4Addresses(v []*string) *AssetAttributes {
s.Ipv4Addresses = v
return s
} | [
"func",
"(",
"s",
"*",
"AssetAttributes",
")",
"SetIpv4Addresses",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"AssetAttributes",
"{",
"s",
".",
"Ipv4Addresses",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetIpv4Addresses sets the Ipv4Addresses field's value. | [
"SetIpv4Addresses",
"sets",
"the",
"Ipv4Addresses",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L5147-L5150 |
165,835 | aws/aws-sdk-go | service/inspector/api.go | SetAssessmentTemplateName | func (s *CreateAssessmentTemplateInput) SetAssessmentTemplateName(v string) *CreateAssessmentTemplateInput {
s.AssessmentTemplateName = &v
return s
} | go | func (s *CreateAssessmentTemplateInput) SetAssessmentTemplateName(v string) *CreateAssessmentTemplateInput {
s.AssessmentTemplateName = &v
return s
} | [
"func",
"(",
"s",
"*",
"CreateAssessmentTemplateInput",
")",
"SetAssessmentTemplateName",
"(",
"v",
"string",
")",
"*",
"CreateAssessmentTemplateInput",
"{",
"s",
".",
"AssessmentTemplateName",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAssessmentTemplateName sets the AssessmentTemplateName field's value. | [
"SetAssessmentTemplateName",
"sets",
"the",
"AssessmentTemplateName",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L5399-L5402 |
165,836 | aws/aws-sdk-go | service/inspector/api.go | SetResourceGroupTags | func (s *CreateResourceGroupInput) SetResourceGroupTags(v []*ResourceGroupTag) *CreateResourceGroupInput {
s.ResourceGroupTags = v
return s
} | go | func (s *CreateResourceGroupInput) SetResourceGroupTags(v []*ResourceGroupTag) *CreateResourceGroupInput {
s.ResourceGroupTags = v
return s
} | [
"func",
"(",
"s",
"*",
"CreateResourceGroupInput",
")",
"SetResourceGroupTags",
"(",
"v",
"[",
"]",
"*",
"ResourceGroupTag",
")",
"*",
"CreateResourceGroupInput",
"{",
"s",
".",
"ResourceGroupTags",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetResourceGroupTags sets the ResourceGroupTags field's value. | [
"SetResourceGroupTags",
"sets",
"the",
"ResourceGroupTags",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L5564-L5567 |
165,837 | aws/aws-sdk-go | service/inspector/api.go | SetAssessmentRuns | func (s *DescribeAssessmentRunsOutput) SetAssessmentRuns(v []*AssessmentRun) *DescribeAssessmentRunsOutput {
s.AssessmentRuns = v
return s
} | go | func (s *DescribeAssessmentRunsOutput) SetAssessmentRuns(v []*AssessmentRun) *DescribeAssessmentRunsOutput {
s.AssessmentRuns = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeAssessmentRunsOutput",
")",
"SetAssessmentRuns",
"(",
"v",
"[",
"]",
"*",
"AssessmentRun",
")",
"*",
"DescribeAssessmentRunsOutput",
"{",
"s",
".",
"AssessmentRuns",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAssessmentRuns sets the AssessmentRuns field's value. | [
"SetAssessmentRuns",
"sets",
"the",
"AssessmentRuns",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L5826-L5829 |
165,838 | aws/aws-sdk-go | service/inspector/api.go | SetAssessmentTargets | func (s *DescribeAssessmentTargetsOutput) SetAssessmentTargets(v []*AssessmentTarget) *DescribeAssessmentTargetsOutput {
s.AssessmentTargets = v
return s
} | go | func (s *DescribeAssessmentTargetsOutput) SetAssessmentTargets(v []*AssessmentTarget) *DescribeAssessmentTargetsOutput {
s.AssessmentTargets = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeAssessmentTargetsOutput",
")",
"SetAssessmentTargets",
"(",
"v",
"[",
"]",
"*",
"AssessmentTarget",
")",
"*",
"DescribeAssessmentTargetsOutput",
"{",
"s",
".",
"AssessmentTargets",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAssessmentTargets sets the AssessmentTargets field's value. | [
"SetAssessmentTargets",
"sets",
"the",
"AssessmentTargets",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L5904-L5907 |
165,839 | aws/aws-sdk-go | service/inspector/api.go | SetAssessmentTemplates | func (s *DescribeAssessmentTemplatesOutput) SetAssessmentTemplates(v []*AssessmentTemplate) *DescribeAssessmentTemplatesOutput {
s.AssessmentTemplates = v
return s
} | go | func (s *DescribeAssessmentTemplatesOutput) SetAssessmentTemplates(v []*AssessmentTemplate) *DescribeAssessmentTemplatesOutput {
s.AssessmentTemplates = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeAssessmentTemplatesOutput",
")",
"SetAssessmentTemplates",
"(",
"v",
"[",
"]",
"*",
"AssessmentTemplate",
")",
"*",
"DescribeAssessmentTemplatesOutput",
"{",
"s",
".",
"AssessmentTemplates",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAssessmentTemplates sets the AssessmentTemplates field's value. | [
"SetAssessmentTemplates",
"sets",
"the",
"AssessmentTemplates",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L5980-L5983 |
165,840 | aws/aws-sdk-go | service/inspector/api.go | SetResourceGroupArns | func (s *DescribeResourceGroupsInput) SetResourceGroupArns(v []*string) *DescribeResourceGroupsInput {
s.ResourceGroupArns = v
return s
} | go | func (s *DescribeResourceGroupsInput) SetResourceGroupArns(v []*string) *DescribeResourceGroupsInput {
s.ResourceGroupArns = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeResourceGroupsInput",
")",
"SetResourceGroupArns",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"DescribeResourceGroupsInput",
"{",
"s",
".",
"ResourceGroupArns",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetResourceGroupArns sets the ResourceGroupArns field's value. | [
"SetResourceGroupArns",
"sets",
"the",
"ResourceGroupArns",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L6266-L6269 |
165,841 | aws/aws-sdk-go | service/inspector/api.go | SetResourceGroups | func (s *DescribeResourceGroupsOutput) SetResourceGroups(v []*ResourceGroup) *DescribeResourceGroupsOutput {
s.ResourceGroups = v
return s
} | go | func (s *DescribeResourceGroupsOutput) SetResourceGroups(v []*ResourceGroup) *DescribeResourceGroupsOutput {
s.ResourceGroups = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeResourceGroupsOutput",
")",
"SetResourceGroups",
"(",
"v",
"[",
"]",
"*",
"ResourceGroup",
")",
"*",
"DescribeResourceGroupsOutput",
"{",
"s",
".",
"ResourceGroups",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetResourceGroups sets the ResourceGroups field's value. | [
"SetResourceGroups",
"sets",
"the",
"ResourceGroups",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L6303-L6306 |
165,842 | aws/aws-sdk-go | service/inspector/api.go | SetRulesPackages | func (s *DescribeRulesPackagesOutput) SetRulesPackages(v []*RulesPackage) *DescribeRulesPackagesOutput {
s.RulesPackages = v
return s
} | go | func (s *DescribeRulesPackagesOutput) SetRulesPackages(v []*RulesPackage) *DescribeRulesPackagesOutput {
s.RulesPackages = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeRulesPackagesOutput",
")",
"SetRulesPackages",
"(",
"v",
"[",
"]",
"*",
"RulesPackage",
")",
"*",
"DescribeRulesPackagesOutput",
"{",
"s",
".",
"RulesPackages",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetRulesPackages sets the RulesPackages field's value. | [
"SetRulesPackages",
"sets",
"the",
"RulesPackages",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L6390-L6393 |
165,843 | aws/aws-sdk-go | service/inspector/api.go | SetMaxSeconds | func (s *DurationRange) SetMaxSeconds(v int64) *DurationRange {
s.MaxSeconds = &v
return s
} | go | func (s *DurationRange) SetMaxSeconds(v int64) *DurationRange {
s.MaxSeconds = &v
return s
} | [
"func",
"(",
"s",
"*",
"DurationRange",
")",
"SetMaxSeconds",
"(",
"v",
"int64",
")",
"*",
"DurationRange",
"{",
"s",
".",
"MaxSeconds",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMaxSeconds sets the MaxSeconds field's value. | [
"SetMaxSeconds",
"sets",
"the",
"MaxSeconds",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L6434-L6437 |
165,844 | aws/aws-sdk-go | service/inspector/api.go | SetMinSeconds | func (s *DurationRange) SetMinSeconds(v int64) *DurationRange {
s.MinSeconds = &v
return s
} | go | func (s *DurationRange) SetMinSeconds(v int64) *DurationRange {
s.MinSeconds = &v
return s
} | [
"func",
"(",
"s",
"*",
"DurationRange",
")",
"SetMinSeconds",
"(",
"v",
"int64",
")",
"*",
"DurationRange",
"{",
"s",
".",
"MinSeconds",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMinSeconds sets the MinSeconds field's value. | [
"SetMinSeconds",
"sets",
"the",
"MinSeconds",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L6440-L6443 |
165,845 | aws/aws-sdk-go | service/inspector/api.go | SetSubscribedAt | func (s *EventSubscription) SetSubscribedAt(v time.Time) *EventSubscription {
s.SubscribedAt = &v
return s
} | go | func (s *EventSubscription) SetSubscribedAt(v time.Time) *EventSubscription {
s.SubscribedAt = &v
return s
} | [
"func",
"(",
"s",
"*",
"EventSubscription",
")",
"SetSubscribedAt",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"EventSubscription",
"{",
"s",
".",
"SubscribedAt",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSubscribedAt sets the SubscribedAt field's value. | [
"SetSubscribedAt",
"sets",
"the",
"SubscribedAt",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L6478-L6481 |
165,846 | aws/aws-sdk-go | service/inspector/api.go | SetRetryable | func (s *FailedItemDetails) SetRetryable(v bool) *FailedItemDetails {
s.Retryable = &v
return s
} | go | func (s *FailedItemDetails) SetRetryable(v bool) *FailedItemDetails {
s.Retryable = &v
return s
} | [
"func",
"(",
"s",
"*",
"FailedItemDetails",
")",
"SetRetryable",
"(",
"v",
"bool",
")",
"*",
"FailedItemDetails",
"{",
"s",
".",
"Retryable",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetRetryable sets the Retryable field's value. | [
"SetRetryable",
"sets",
"the",
"Retryable",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L6664-L6667 |
165,847 | aws/aws-sdk-go | service/inspector/api.go | SetAssetAttributes | func (s *Finding) SetAssetAttributes(v *AssetAttributes) *Finding {
s.AssetAttributes = v
return s
} | go | func (s *Finding) SetAssetAttributes(v *AssetAttributes) *Finding {
s.AssetAttributes = v
return s
} | [
"func",
"(",
"s",
"*",
"Finding",
")",
"SetAssetAttributes",
"(",
"v",
"*",
"AssetAttributes",
")",
"*",
"Finding",
"{",
"s",
".",
"AssetAttributes",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAssetAttributes sets the AssetAttributes field's value. | [
"SetAssetAttributes",
"sets",
"the",
"AssetAttributes",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L6756-L6759 |
165,848 | aws/aws-sdk-go | service/inspector/api.go | SetAssetType | func (s *Finding) SetAssetType(v string) *Finding {
s.AssetType = &v
return s
} | go | func (s *Finding) SetAssetType(v string) *Finding {
s.AssetType = &v
return s
} | [
"func",
"(",
"s",
"*",
"Finding",
")",
"SetAssetType",
"(",
"v",
"string",
")",
"*",
"Finding",
"{",
"s",
".",
"AssetType",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAssetType sets the AssetType field's value. | [
"SetAssetType",
"sets",
"the",
"AssetType",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L6762-L6765 |
165,849 | aws/aws-sdk-go | service/inspector/api.go | SetIndicatorOfCompromise | func (s *Finding) SetIndicatorOfCompromise(v bool) *Finding {
s.IndicatorOfCompromise = &v
return s
} | go | func (s *Finding) SetIndicatorOfCompromise(v bool) *Finding {
s.IndicatorOfCompromise = &v
return s
} | [
"func",
"(",
"s",
"*",
"Finding",
")",
"SetIndicatorOfCompromise",
"(",
"v",
"bool",
")",
"*",
"Finding",
"{",
"s",
".",
"IndicatorOfCompromise",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetIndicatorOfCompromise sets the IndicatorOfCompromise field's value. | [
"SetIndicatorOfCompromise",
"sets",
"the",
"IndicatorOfCompromise",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L6798-L6801 |
165,850 | aws/aws-sdk-go | service/inspector/api.go | SetNumericSeverity | func (s *Finding) SetNumericSeverity(v float64) *Finding {
s.NumericSeverity = &v
return s
} | go | func (s *Finding) SetNumericSeverity(v float64) *Finding {
s.NumericSeverity = &v
return s
} | [
"func",
"(",
"s",
"*",
"Finding",
")",
"SetNumericSeverity",
"(",
"v",
"float64",
")",
"*",
"Finding",
"{",
"s",
".",
"NumericSeverity",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetNumericSeverity sets the NumericSeverity field's value. | [
"SetNumericSeverity",
"sets",
"the",
"NumericSeverity",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L6804-L6807 |
165,851 | aws/aws-sdk-go | service/inspector/api.go | SetServiceAttributes | func (s *Finding) SetServiceAttributes(v *ServiceAttributes) *Finding {
s.ServiceAttributes = v
return s
} | go | func (s *Finding) SetServiceAttributes(v *ServiceAttributes) *Finding {
s.ServiceAttributes = v
return s
} | [
"func",
"(",
"s",
"*",
"Finding",
")",
"SetServiceAttributes",
"(",
"v",
"*",
"ServiceAttributes",
")",
"*",
"Finding",
"{",
"s",
".",
"ServiceAttributes",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetServiceAttributes sets the ServiceAttributes field's value. | [
"SetServiceAttributes",
"sets",
"the",
"ServiceAttributes",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L6828-L6831 |
165,852 | aws/aws-sdk-go | service/inspector/api.go | SetCreationTimeRange | func (s *FindingFilter) SetCreationTimeRange(v *TimestampRange) *FindingFilter {
s.CreationTimeRange = v
return s
} | go | func (s *FindingFilter) SetCreationTimeRange(v *TimestampRange) *FindingFilter {
s.CreationTimeRange = v
return s
} | [
"func",
"(",
"s",
"*",
"FindingFilter",
")",
"SetCreationTimeRange",
"(",
"v",
"*",
"TimestampRange",
")",
"*",
"FindingFilter",
"{",
"s",
".",
"CreationTimeRange",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCreationTimeRange sets the CreationTimeRange field's value. | [
"SetCreationTimeRange",
"sets",
"the",
"CreationTimeRange",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L6959-L6962 |
165,853 | aws/aws-sdk-go | service/inspector/api.go | SetSeverities | func (s *FindingFilter) SetSeverities(v []*string) *FindingFilter {
s.Severities = v
return s
} | go | func (s *FindingFilter) SetSeverities(v []*string) *FindingFilter {
s.Severities = v
return s
} | [
"func",
"(",
"s",
"*",
"FindingFilter",
")",
"SetSeverities",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"FindingFilter",
"{",
"s",
".",
"Severities",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSeverities sets the Severities field's value. | [
"SetSeverities",
"sets",
"the",
"Severities",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L6977-L6980 |
165,854 | aws/aws-sdk-go | service/inspector/api.go | SetReportFileFormat | func (s *GetAssessmentReportInput) SetReportFileFormat(v string) *GetAssessmentReportInput {
s.ReportFileFormat = &v
return s
} | go | func (s *GetAssessmentReportInput) SetReportFileFormat(v string) *GetAssessmentReportInput {
s.ReportFileFormat = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetAssessmentReportInput",
")",
"SetReportFileFormat",
"(",
"v",
"string",
")",
"*",
"GetAssessmentReportInput",
"{",
"s",
".",
"ReportFileFormat",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetReportFileFormat sets the ReportFileFormat field's value. | [
"SetReportFileFormat",
"sets",
"the",
"ReportFileFormat",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L7050-L7053 |
165,855 | aws/aws-sdk-go | service/inspector/api.go | SetExclusionPreviews | func (s *GetExclusionsPreviewOutput) SetExclusionPreviews(v []*ExclusionPreview) *GetExclusionsPreviewOutput {
s.ExclusionPreviews = v
return s
} | go | func (s *GetExclusionsPreviewOutput) SetExclusionPreviews(v []*ExclusionPreview) *GetExclusionsPreviewOutput {
s.ExclusionPreviews = v
return s
} | [
"func",
"(",
"s",
"*",
"GetExclusionsPreviewOutput",
")",
"SetExclusionPreviews",
"(",
"v",
"[",
"]",
"*",
"ExclusionPreview",
")",
"*",
"GetExclusionsPreviewOutput",
"{",
"s",
".",
"ExclusionPreviews",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetExclusionPreviews sets the ExclusionPreviews field's value. | [
"SetExclusionPreviews",
"sets",
"the",
"ExclusionPreviews",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L7216-L7219 |
165,856 | aws/aws-sdk-go | service/inspector/api.go | SetPreviewStatus | func (s *GetExclusionsPreviewOutput) SetPreviewStatus(v string) *GetExclusionsPreviewOutput {
s.PreviewStatus = &v
return s
} | go | func (s *GetExclusionsPreviewOutput) SetPreviewStatus(v string) *GetExclusionsPreviewOutput {
s.PreviewStatus = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetExclusionsPreviewOutput",
")",
"SetPreviewStatus",
"(",
"v",
"string",
")",
"*",
"GetExclusionsPreviewOutput",
"{",
"s",
".",
"PreviewStatus",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPreviewStatus sets the PreviewStatus field's value. | [
"SetPreviewStatus",
"sets",
"the",
"PreviewStatus",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L7228-L7231 |
165,857 | aws/aws-sdk-go | service/inspector/api.go | SetAssessmentRunAgents | func (s *ListAssessmentRunAgentsOutput) SetAssessmentRunAgents(v []*AssessmentRunAgent) *ListAssessmentRunAgentsOutput {
s.AssessmentRunAgents = v
return s
} | go | func (s *ListAssessmentRunAgentsOutput) SetAssessmentRunAgents(v []*AssessmentRunAgent) *ListAssessmentRunAgentsOutput {
s.AssessmentRunAgents = v
return s
} | [
"func",
"(",
"s",
"*",
"ListAssessmentRunAgentsOutput",
")",
"SetAssessmentRunAgents",
"(",
"v",
"[",
"]",
"*",
"AssessmentRunAgent",
")",
"*",
"ListAssessmentRunAgentsOutput",
"{",
"s",
".",
"AssessmentRunAgents",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAssessmentRunAgents sets the AssessmentRunAgents field's value. | [
"SetAssessmentRunAgents",
"sets",
"the",
"AssessmentRunAgents",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L7411-L7414 |
165,858 | aws/aws-sdk-go | service/inspector/api.go | SetPreviewAgentsArn | func (s *PreviewAgentsInput) SetPreviewAgentsArn(v string) *PreviewAgentsInput {
s.PreviewAgentsArn = &v
return s
} | go | func (s *PreviewAgentsInput) SetPreviewAgentsArn(v string) *PreviewAgentsInput {
s.PreviewAgentsArn = &v
return s
} | [
"func",
"(",
"s",
"*",
"PreviewAgentsInput",
")",
"SetPreviewAgentsArn",
"(",
"v",
"string",
")",
"*",
"PreviewAgentsInput",
"{",
"s",
".",
"PreviewAgentsArn",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPreviewAgentsArn sets the PreviewAgentsArn field's value. | [
"SetPreviewAgentsArn",
"sets",
"the",
"PreviewAgentsArn",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L8399-L8402 |
165,859 | aws/aws-sdk-go | service/inspector/api.go | SetAgentPreviews | func (s *PreviewAgentsOutput) SetAgentPreviews(v []*AgentPreview) *PreviewAgentsOutput {
s.AgentPreviews = v
return s
} | go | func (s *PreviewAgentsOutput) SetAgentPreviews(v []*AgentPreview) *PreviewAgentsOutput {
s.AgentPreviews = v
return s
} | [
"func",
"(",
"s",
"*",
"PreviewAgentsOutput",
")",
"SetAgentPreviews",
"(",
"v",
"[",
"]",
"*",
"AgentPreview",
")",
"*",
"PreviewAgentsOutput",
"{",
"s",
".",
"AgentPreviews",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAgentPreviews sets the AgentPreviews field's value. | [
"SetAgentPreviews",
"sets",
"the",
"AgentPreviews",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L8430-L8433 |
165,860 | aws/aws-sdk-go | service/inspector/api.go | SetAttributeKeys | func (s *RemoveAttributesFromFindingsInput) SetAttributeKeys(v []*string) *RemoveAttributesFromFindingsInput {
s.AttributeKeys = v
return s
} | go | func (s *RemoveAttributesFromFindingsInput) SetAttributeKeys(v []*string) *RemoveAttributesFromFindingsInput {
s.AttributeKeys = v
return s
} | [
"func",
"(",
"s",
"*",
"RemoveAttributesFromFindingsInput",
")",
"SetAttributeKeys",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"RemoveAttributesFromFindingsInput",
"{",
"s",
".",
"AttributeKeys",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAttributeKeys sets the AttributeKeys field's value. | [
"SetAttributeKeys",
"sets",
"the",
"AttributeKeys",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L8576-L8579 |
165,861 | aws/aws-sdk-go | service/inspector/api.go | SetRulesPackageArn | func (s *ServiceAttributes) SetRulesPackageArn(v string) *ServiceAttributes {
s.RulesPackageArn = &v
return s
} | go | func (s *ServiceAttributes) SetRulesPackageArn(v string) *ServiceAttributes {
s.RulesPackageArn = &v
return s
} | [
"func",
"(",
"s",
"*",
"ServiceAttributes",
")",
"SetRulesPackageArn",
"(",
"v",
"string",
")",
"*",
"ServiceAttributes",
"{",
"s",
".",
"RulesPackageArn",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetRulesPackageArn sets the RulesPackageArn field's value. | [
"SetRulesPackageArn",
"sets",
"the",
"RulesPackageArn",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L8889-L8892 |
165,862 | aws/aws-sdk-go | service/inspector/api.go | SetAssessmentRunName | func (s *StartAssessmentRunInput) SetAssessmentRunName(v string) *StartAssessmentRunInput {
s.AssessmentRunName = &v
return s
} | go | func (s *StartAssessmentRunInput) SetAssessmentRunName(v string) *StartAssessmentRunInput {
s.AssessmentRunName = &v
return s
} | [
"func",
"(",
"s",
"*",
"StartAssessmentRunInput",
")",
"SetAssessmentRunName",
"(",
"v",
"string",
")",
"*",
"StartAssessmentRunInput",
"{",
"s",
".",
"AssessmentRunName",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAssessmentRunName sets the AssessmentRunName field's value. | [
"SetAssessmentRunName",
"sets",
"the",
"AssessmentRunName",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L9019-L9022 |
165,863 | aws/aws-sdk-go | service/inspector/api.go | SetEventSubscriptions | func (s *Subscription) SetEventSubscriptions(v []*EventSubscription) *Subscription {
s.EventSubscriptions = v
return s
} | go | func (s *Subscription) SetEventSubscriptions(v []*EventSubscription) *Subscription {
s.EventSubscriptions = v
return s
} | [
"func",
"(",
"s",
"*",
"Subscription",
")",
"SetEventSubscriptions",
"(",
"v",
"[",
"]",
"*",
"EventSubscription",
")",
"*",
"Subscription",
"{",
"s",
".",
"EventSubscriptions",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetEventSubscriptions sets the EventSubscriptions field's value. | [
"SetEventSubscriptions",
"sets",
"the",
"EventSubscriptions",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L9244-L9247 |
165,864 | aws/aws-sdk-go | service/inspector/api.go | SetDataSize | func (s *TelemetryMetadata) SetDataSize(v int64) *TelemetryMetadata {
s.DataSize = &v
return s
} | go | func (s *TelemetryMetadata) SetDataSize(v int64) *TelemetryMetadata {
s.DataSize = &v
return s
} | [
"func",
"(",
"s",
"*",
"TelemetryMetadata",
")",
"SetDataSize",
"(",
"v",
"int64",
")",
"*",
"TelemetryMetadata",
"{",
"s",
".",
"DataSize",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDataSize sets the DataSize field's value. | [
"SetDataSize",
"sets",
"the",
"DataSize",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L9354-L9357 |
165,865 | aws/aws-sdk-go | service/inspector/api.go | SetBeginDate | func (s *TimestampRange) SetBeginDate(v time.Time) *TimestampRange {
s.BeginDate = &v
return s
} | go | func (s *TimestampRange) SetBeginDate(v time.Time) *TimestampRange {
s.BeginDate = &v
return s
} | [
"func",
"(",
"s",
"*",
"TimestampRange",
")",
"SetBeginDate",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"TimestampRange",
"{",
"s",
".",
"BeginDate",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetBeginDate sets the BeginDate field's value. | [
"SetBeginDate",
"sets",
"the",
"BeginDate",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/inspector/api.go#L9387-L9390 |
165,866 | aws/aws-sdk-go | service/machinelearning/waiters.go | WaitUntilBatchPredictionAvailable | func (c *MachineLearning) WaitUntilBatchPredictionAvailable(input *DescribeBatchPredictionsInput) error {
return c.WaitUntilBatchPredictionAvailableWithContext(aws.BackgroundContext(), input)
} | go | func (c *MachineLearning) WaitUntilBatchPredictionAvailable(input *DescribeBatchPredictionsInput) error {
return c.WaitUntilBatchPredictionAvailableWithContext(aws.BackgroundContext(), input)
} | [
"func",
"(",
"c",
"*",
"MachineLearning",
")",
"WaitUntilBatchPredictionAvailable",
"(",
"input",
"*",
"DescribeBatchPredictionsInput",
")",
"error",
"{",
"return",
"c",
".",
"WaitUntilBatchPredictionAvailableWithContext",
"(",
"aws",
".",
"BackgroundContext",
"(",
")",
",",
"input",
")",
"\n",
"}"
] | // WaitUntilBatchPredictionAvailable uses the Amazon Machine Learning API operation
// DescribeBatchPredictions 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. | [
"WaitUntilBatchPredictionAvailable",
"uses",
"the",
"Amazon",
"Machine",
"Learning",
"API",
"operation",
"DescribeBatchPredictions",
"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/machinelearning/waiters.go#L16-L18 |
165,867 | aws/aws-sdk-go | service/machinelearning/waiters.go | WaitUntilDataSourceAvailable | func (c *MachineLearning) WaitUntilDataSourceAvailable(input *DescribeDataSourcesInput) error {
return c.WaitUntilDataSourceAvailableWithContext(aws.BackgroundContext(), input)
} | go | func (c *MachineLearning) WaitUntilDataSourceAvailable(input *DescribeDataSourcesInput) error {
return c.WaitUntilDataSourceAvailableWithContext(aws.BackgroundContext(), input)
} | [
"func",
"(",
"c",
"*",
"MachineLearning",
")",
"WaitUntilDataSourceAvailable",
"(",
"input",
"*",
"DescribeDataSourcesInput",
")",
"error",
"{",
"return",
"c",
".",
"WaitUntilDataSourceAvailableWithContext",
"(",
"aws",
".",
"BackgroundContext",
"(",
")",
",",
"input",
")",
"\n",
"}"
] | // WaitUntilDataSourceAvailable uses the Amazon Machine Learning API operation
// DescribeDataSources 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. | [
"WaitUntilDataSourceAvailable",
"uses",
"the",
"Amazon",
"Machine",
"Learning",
"API",
"operation",
"DescribeDataSources",
"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/machinelearning/waiters.go#L67-L69 |
165,868 | aws/aws-sdk-go | service/machinelearning/waiters.go | WaitUntilEvaluationAvailable | func (c *MachineLearning) WaitUntilEvaluationAvailable(input *DescribeEvaluationsInput) error {
return c.WaitUntilEvaluationAvailableWithContext(aws.BackgroundContext(), input)
} | go | func (c *MachineLearning) WaitUntilEvaluationAvailable(input *DescribeEvaluationsInput) error {
return c.WaitUntilEvaluationAvailableWithContext(aws.BackgroundContext(), input)
} | [
"func",
"(",
"c",
"*",
"MachineLearning",
")",
"WaitUntilEvaluationAvailable",
"(",
"input",
"*",
"DescribeEvaluationsInput",
")",
"error",
"{",
"return",
"c",
".",
"WaitUntilEvaluationAvailableWithContext",
"(",
"aws",
".",
"BackgroundContext",
"(",
")",
",",
"input",
")",
"\n",
"}"
] | // WaitUntilEvaluationAvailable uses the Amazon Machine Learning API operation
// DescribeEvaluations 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. | [
"WaitUntilEvaluationAvailable",
"uses",
"the",
"Amazon",
"Machine",
"Learning",
"API",
"operation",
"DescribeEvaluations",
"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/machinelearning/waiters.go#L118-L120 |
165,869 | aws/aws-sdk-go | service/machinelearning/waiters.go | WaitUntilMLModelAvailable | func (c *MachineLearning) WaitUntilMLModelAvailable(input *DescribeMLModelsInput) error {
return c.WaitUntilMLModelAvailableWithContext(aws.BackgroundContext(), input)
} | go | func (c *MachineLearning) WaitUntilMLModelAvailable(input *DescribeMLModelsInput) error {
return c.WaitUntilMLModelAvailableWithContext(aws.BackgroundContext(), input)
} | [
"func",
"(",
"c",
"*",
"MachineLearning",
")",
"WaitUntilMLModelAvailable",
"(",
"input",
"*",
"DescribeMLModelsInput",
")",
"error",
"{",
"return",
"c",
".",
"WaitUntilMLModelAvailableWithContext",
"(",
"aws",
".",
"BackgroundContext",
"(",
")",
",",
"input",
")",
"\n",
"}"
] | // WaitUntilMLModelAvailable uses the Amazon Machine Learning API operation
// DescribeMLModels 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. | [
"WaitUntilMLModelAvailable",
"uses",
"the",
"Amazon",
"Machine",
"Learning",
"API",
"operation",
"DescribeMLModels",
"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/machinelearning/waiters.go#L169-L171 |
165,870 | aws/aws-sdk-go | aws/ec2metadata/service.go | NewClient | func NewClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string, opts ...func(*client.Client)) *EC2Metadata {
if !aws.BoolValue(cfg.EC2MetadataDisableTimeoutOverride) && httpClientZero(cfg.HTTPClient) {
// If the http client is unmodified and this feature is not disabled
// set custom timeouts for EC2Metadata requests.
cfg.HTTPClient = &http.Client{
// use a shorter timeout than default because the metadata
// service is local if it is running, and to fail faster
// if not running on an ec2 instance.
Timeout: 5 * time.Second,
}
}
svc := &EC2Metadata{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
ServiceID: ServiceName,
Endpoint: endpoint,
APIVersion: "latest",
},
handlers,
),
}
svc.Handlers.Unmarshal.PushBack(unmarshalHandler)
svc.Handlers.UnmarshalError.PushBack(unmarshalError)
svc.Handlers.Validate.Clear()
svc.Handlers.Validate.PushBack(validateEndpointHandler)
// Disable the EC2 Metadata service if the environment variable is set.
// This shortcirctes the service's functionality to always fail to send
// requests.
if strings.ToLower(os.Getenv(disableServiceEnvVar)) == "true" {
svc.Handlers.Send.SwapNamed(request.NamedHandler{
Name: corehandlers.SendHandler.Name,
Fn: func(r *request.Request) {
r.HTTPResponse = &http.Response{
Header: http.Header{},
}
r.Error = awserr.New(
request.CanceledErrorCode,
"EC2 IMDS access disabled via "+disableServiceEnvVar+" env var",
nil)
},
})
}
// Add additional options to the service config
for _, option := range opts {
option(svc.Client)
}
return svc
} | go | func NewClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string, opts ...func(*client.Client)) *EC2Metadata {
if !aws.BoolValue(cfg.EC2MetadataDisableTimeoutOverride) && httpClientZero(cfg.HTTPClient) {
// If the http client is unmodified and this feature is not disabled
// set custom timeouts for EC2Metadata requests.
cfg.HTTPClient = &http.Client{
// use a shorter timeout than default because the metadata
// service is local if it is running, and to fail faster
// if not running on an ec2 instance.
Timeout: 5 * time.Second,
}
}
svc := &EC2Metadata{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
ServiceID: ServiceName,
Endpoint: endpoint,
APIVersion: "latest",
},
handlers,
),
}
svc.Handlers.Unmarshal.PushBack(unmarshalHandler)
svc.Handlers.UnmarshalError.PushBack(unmarshalError)
svc.Handlers.Validate.Clear()
svc.Handlers.Validate.PushBack(validateEndpointHandler)
// Disable the EC2 Metadata service if the environment variable is set.
// This shortcirctes the service's functionality to always fail to send
// requests.
if strings.ToLower(os.Getenv(disableServiceEnvVar)) == "true" {
svc.Handlers.Send.SwapNamed(request.NamedHandler{
Name: corehandlers.SendHandler.Name,
Fn: func(r *request.Request) {
r.HTTPResponse = &http.Response{
Header: http.Header{},
}
r.Error = awserr.New(
request.CanceledErrorCode,
"EC2 IMDS access disabled via "+disableServiceEnvVar+" env var",
nil)
},
})
}
// Add additional options to the service config
for _, option := range opts {
option(svc.Client)
}
return svc
} | [
"func",
"NewClient",
"(",
"cfg",
"aws",
".",
"Config",
",",
"handlers",
"request",
".",
"Handlers",
",",
"endpoint",
",",
"signingRegion",
"string",
",",
"opts",
"...",
"func",
"(",
"*",
"client",
".",
"Client",
")",
")",
"*",
"EC2Metadata",
"{",
"if",
"!",
"aws",
".",
"BoolValue",
"(",
"cfg",
".",
"EC2MetadataDisableTimeoutOverride",
")",
"&&",
"httpClientZero",
"(",
"cfg",
".",
"HTTPClient",
")",
"{",
"// If the http client is unmodified and this feature is not disabled",
"// set custom timeouts for EC2Metadata requests.",
"cfg",
".",
"HTTPClient",
"=",
"&",
"http",
".",
"Client",
"{",
"// use a shorter timeout than default because the metadata",
"// service is local if it is running, and to fail faster",
"// if not running on an ec2 instance.",
"Timeout",
":",
"5",
"*",
"time",
".",
"Second",
",",
"}",
"\n",
"}",
"\n\n",
"svc",
":=",
"&",
"EC2Metadata",
"{",
"Client",
":",
"client",
".",
"New",
"(",
"cfg",
",",
"metadata",
".",
"ClientInfo",
"{",
"ServiceName",
":",
"ServiceName",
",",
"ServiceID",
":",
"ServiceName",
",",
"Endpoint",
":",
"endpoint",
",",
"APIVersion",
":",
"\"",
"\"",
",",
"}",
",",
"handlers",
",",
")",
",",
"}",
"\n\n",
"svc",
".",
"Handlers",
".",
"Unmarshal",
".",
"PushBack",
"(",
"unmarshalHandler",
")",
"\n",
"svc",
".",
"Handlers",
".",
"UnmarshalError",
".",
"PushBack",
"(",
"unmarshalError",
")",
"\n",
"svc",
".",
"Handlers",
".",
"Validate",
".",
"Clear",
"(",
")",
"\n",
"svc",
".",
"Handlers",
".",
"Validate",
".",
"PushBack",
"(",
"validateEndpointHandler",
")",
"\n\n",
"// Disable the EC2 Metadata service if the environment variable is set.",
"// This shortcirctes the service's functionality to always fail to send",
"// requests.",
"if",
"strings",
".",
"ToLower",
"(",
"os",
".",
"Getenv",
"(",
"disableServiceEnvVar",
")",
")",
"==",
"\"",
"\"",
"{",
"svc",
".",
"Handlers",
".",
"Send",
".",
"SwapNamed",
"(",
"request",
".",
"NamedHandler",
"{",
"Name",
":",
"corehandlers",
".",
"SendHandler",
".",
"Name",
",",
"Fn",
":",
"func",
"(",
"r",
"*",
"request",
".",
"Request",
")",
"{",
"r",
".",
"HTTPResponse",
"=",
"&",
"http",
".",
"Response",
"{",
"Header",
":",
"http",
".",
"Header",
"{",
"}",
",",
"}",
"\n",
"r",
".",
"Error",
"=",
"awserr",
".",
"New",
"(",
"request",
".",
"CanceledErrorCode",
",",
"\"",
"\"",
"+",
"disableServiceEnvVar",
"+",
"\"",
"\"",
",",
"nil",
")",
"\n",
"}",
",",
"}",
")",
"\n",
"}",
"\n\n",
"// Add additional options to the service config",
"for",
"_",
",",
"option",
":=",
"range",
"opts",
"{",
"option",
"(",
"svc",
".",
"Client",
")",
"\n",
"}",
"\n\n",
"return",
"svc",
"\n",
"}"
] | // NewClient returns a new EC2Metadata client. Should be used to create
// a client when not using a session. Generally using just New with a session
// is preferred.
//
// If an unmodified HTTP client is provided from the stdlib default, or no client
// the EC2RoleProvider's EC2Metadata HTTP client's timeout will be shortened.
// To disable this set Config.EC2MetadataDisableTimeoutOverride to false. Enabled by default. | [
"NewClient",
"returns",
"a",
"new",
"EC2Metadata",
"client",
".",
"Should",
"be",
"used",
"to",
"create",
"a",
"client",
"when",
"not",
"using",
"a",
"session",
".",
"Generally",
"using",
"just",
"New",
"with",
"a",
"session",
"is",
"preferred",
".",
"If",
"an",
"unmodified",
"HTTP",
"client",
"is",
"provided",
"from",
"the",
"stdlib",
"default",
"or",
"no",
"client",
"the",
"EC2RoleProvider",
"s",
"EC2Metadata",
"HTTP",
"client",
"s",
"timeout",
"will",
"be",
"shortened",
".",
"To",
"disable",
"this",
"set",
"Config",
".",
"EC2MetadataDisableTimeoutOverride",
"to",
"false",
".",
"Enabled",
"by",
"default",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/ec2metadata/service.go#L58-L112 |
165,871 | aws/aws-sdk-go | service/comprehend/api.go | SetAccuracy | func (s *ClassifierEvaluationMetrics) SetAccuracy(v float64) *ClassifierEvaluationMetrics {
s.Accuracy = &v
return s
} | go | func (s *ClassifierEvaluationMetrics) SetAccuracy(v float64) *ClassifierEvaluationMetrics {
s.Accuracy = &v
return s
} | [
"func",
"(",
"s",
"*",
"ClassifierEvaluationMetrics",
")",
"SetAccuracy",
"(",
"v",
"float64",
")",
"*",
"ClassifierEvaluationMetrics",
"{",
"s",
".",
"Accuracy",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAccuracy sets the Accuracy field's value. | [
"SetAccuracy",
"sets",
"the",
"Accuracy",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L5239-L5242 |
165,872 | aws/aws-sdk-go | service/comprehend/api.go | SetNumberOfLabels | func (s *ClassifierMetadata) SetNumberOfLabels(v int64) *ClassifierMetadata {
s.NumberOfLabels = &v
return s
} | go | func (s *ClassifierMetadata) SetNumberOfLabels(v int64) *ClassifierMetadata {
s.NumberOfLabels = &v
return s
} | [
"func",
"(",
"s",
"*",
"ClassifierMetadata",
")",
"SetNumberOfLabels",
"(",
"v",
"int64",
")",
"*",
"ClassifierMetadata",
"{",
"s",
".",
"NumberOfLabels",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetNumberOfLabels sets the NumberOfLabels field's value. | [
"SetNumberOfLabels",
"sets",
"the",
"NumberOfLabels",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L5299-L5302 |
165,873 | aws/aws-sdk-go | service/comprehend/api.go | SetDocumentClassifierName | func (s *CreateDocumentClassifierInput) SetDocumentClassifierName(v string) *CreateDocumentClassifierInput {
s.DocumentClassifierName = &v
return s
} | go | func (s *CreateDocumentClassifierInput) SetDocumentClassifierName(v string) *CreateDocumentClassifierInput {
s.DocumentClassifierName = &v
return s
} | [
"func",
"(",
"s",
"*",
"CreateDocumentClassifierInput",
")",
"SetDocumentClassifierName",
"(",
"v",
"string",
")",
"*",
"CreateDocumentClassifierInput",
"{",
"s",
".",
"DocumentClassifierName",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDocumentClassifierName sets the DocumentClassifierName field's value. | [
"SetDocumentClassifierName",
"sets",
"the",
"DocumentClassifierName",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L5432-L5435 |
165,874 | aws/aws-sdk-go | service/comprehend/api.go | SetRecognizerName | func (s *CreateEntityRecognizerInput) SetRecognizerName(v string) *CreateEntityRecognizerInput {
s.RecognizerName = &v
return s
} | go | func (s *CreateEntityRecognizerInput) SetRecognizerName(v string) *CreateEntityRecognizerInput {
s.RecognizerName = &v
return s
} | [
"func",
"(",
"s",
"*",
"CreateEntityRecognizerInput",
")",
"SetRecognizerName",
"(",
"v",
"string",
")",
"*",
"CreateEntityRecognizerInput",
"{",
"s",
".",
"RecognizerName",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetRecognizerName sets the RecognizerName field's value. | [
"SetRecognizerName",
"sets",
"the",
"RecognizerName",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L5618-L5621 |
165,875 | aws/aws-sdk-go | service/comprehend/api.go | SetDocumentClassificationJobProperties | func (s *DescribeDocumentClassificationJobOutput) SetDocumentClassificationJobProperties(v *DocumentClassificationJobProperties) *DescribeDocumentClassificationJobOutput {
s.DocumentClassificationJobProperties = v
return s
} | go | func (s *DescribeDocumentClassificationJobOutput) SetDocumentClassificationJobProperties(v *DocumentClassificationJobProperties) *DescribeDocumentClassificationJobOutput {
s.DocumentClassificationJobProperties = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeDocumentClassificationJobOutput",
")",
"SetDocumentClassificationJobProperties",
"(",
"v",
"*",
"DocumentClassificationJobProperties",
")",
"*",
"DescribeDocumentClassificationJobOutput",
"{",
"s",
".",
"DocumentClassificationJobProperties",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDocumentClassificationJobProperties sets the DocumentClassificationJobProperties field's value. | [
"SetDocumentClassificationJobProperties",
"sets",
"the",
"DocumentClassificationJobProperties",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L5823-L5826 |
165,876 | aws/aws-sdk-go | service/comprehend/api.go | SetDocumentClassifierProperties | func (s *DescribeDocumentClassifierOutput) SetDocumentClassifierProperties(v *DocumentClassifierProperties) *DescribeDocumentClassifierOutput {
s.DocumentClassifierProperties = v
return s
} | go | func (s *DescribeDocumentClassifierOutput) SetDocumentClassifierProperties(v *DocumentClassifierProperties) *DescribeDocumentClassifierOutput {
s.DocumentClassifierProperties = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeDocumentClassifierOutput",
")",
"SetDocumentClassifierProperties",
"(",
"v",
"*",
"DocumentClassifierProperties",
")",
"*",
"DescribeDocumentClassifierOutput",
"{",
"s",
".",
"DocumentClassifierProperties",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDocumentClassifierProperties sets the DocumentClassifierProperties field's value. | [
"SetDocumentClassifierProperties",
"sets",
"the",
"DocumentClassifierProperties",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L5885-L5888 |
165,877 | aws/aws-sdk-go | service/comprehend/api.go | SetDominantLanguageDetectionJobProperties | func (s *DescribeDominantLanguageDetectionJobOutput) SetDominantLanguageDetectionJobProperties(v *DominantLanguageDetectionJobProperties) *DescribeDominantLanguageDetectionJobOutput {
s.DominantLanguageDetectionJobProperties = v
return s
} | go | func (s *DescribeDominantLanguageDetectionJobOutput) SetDominantLanguageDetectionJobProperties(v *DominantLanguageDetectionJobProperties) *DescribeDominantLanguageDetectionJobOutput {
s.DominantLanguageDetectionJobProperties = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeDominantLanguageDetectionJobOutput",
")",
"SetDominantLanguageDetectionJobProperties",
"(",
"v",
"*",
"DominantLanguageDetectionJobProperties",
")",
"*",
"DescribeDominantLanguageDetectionJobOutput",
"{",
"s",
".",
"DominantLanguageDetectionJobProperties",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDominantLanguageDetectionJobProperties sets the DominantLanguageDetectionJobProperties field's value. | [
"SetDominantLanguageDetectionJobProperties",
"sets",
"the",
"DominantLanguageDetectionJobProperties",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L5951-L5954 |
165,878 | aws/aws-sdk-go | service/comprehend/api.go | SetEntitiesDetectionJobProperties | func (s *DescribeEntitiesDetectionJobOutput) SetEntitiesDetectionJobProperties(v *EntitiesDetectionJobProperties) *DescribeEntitiesDetectionJobOutput {
s.EntitiesDetectionJobProperties = v
return s
} | go | func (s *DescribeEntitiesDetectionJobOutput) SetEntitiesDetectionJobProperties(v *EntitiesDetectionJobProperties) *DescribeEntitiesDetectionJobOutput {
s.EntitiesDetectionJobProperties = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeEntitiesDetectionJobOutput",
")",
"SetEntitiesDetectionJobProperties",
"(",
"v",
"*",
"EntitiesDetectionJobProperties",
")",
"*",
"DescribeEntitiesDetectionJobOutput",
"{",
"s",
".",
"EntitiesDetectionJobProperties",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetEntitiesDetectionJobProperties sets the EntitiesDetectionJobProperties field's value. | [
"SetEntitiesDetectionJobProperties",
"sets",
"the",
"EntitiesDetectionJobProperties",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L6017-L6020 |
165,879 | aws/aws-sdk-go | service/comprehend/api.go | SetEntityRecognizerProperties | func (s *DescribeEntityRecognizerOutput) SetEntityRecognizerProperties(v *EntityRecognizerProperties) *DescribeEntityRecognizerOutput {
s.EntityRecognizerProperties = v
return s
} | go | func (s *DescribeEntityRecognizerOutput) SetEntityRecognizerProperties(v *EntityRecognizerProperties) *DescribeEntityRecognizerOutput {
s.EntityRecognizerProperties = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeEntityRecognizerOutput",
")",
"SetEntityRecognizerProperties",
"(",
"v",
"*",
"EntityRecognizerProperties",
")",
"*",
"DescribeEntityRecognizerOutput",
"{",
"s",
".",
"EntityRecognizerProperties",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetEntityRecognizerProperties sets the EntityRecognizerProperties field's value. | [
"SetEntityRecognizerProperties",
"sets",
"the",
"EntityRecognizerProperties",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L6078-L6081 |
165,880 | aws/aws-sdk-go | service/comprehend/api.go | SetKeyPhrasesDetectionJobProperties | func (s *DescribeKeyPhrasesDetectionJobOutput) SetKeyPhrasesDetectionJobProperties(v *KeyPhrasesDetectionJobProperties) *DescribeKeyPhrasesDetectionJobOutput {
s.KeyPhrasesDetectionJobProperties = v
return s
} | go | func (s *DescribeKeyPhrasesDetectionJobOutput) SetKeyPhrasesDetectionJobProperties(v *KeyPhrasesDetectionJobProperties) *DescribeKeyPhrasesDetectionJobOutput {
s.KeyPhrasesDetectionJobProperties = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeKeyPhrasesDetectionJobOutput",
")",
"SetKeyPhrasesDetectionJobProperties",
"(",
"v",
"*",
"KeyPhrasesDetectionJobProperties",
")",
"*",
"DescribeKeyPhrasesDetectionJobOutput",
"{",
"s",
".",
"KeyPhrasesDetectionJobProperties",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetKeyPhrasesDetectionJobProperties sets the KeyPhrasesDetectionJobProperties field's value. | [
"SetKeyPhrasesDetectionJobProperties",
"sets",
"the",
"KeyPhrasesDetectionJobProperties",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L6144-L6147 |
165,881 | aws/aws-sdk-go | service/comprehend/api.go | SetSentimentDetectionJobProperties | func (s *DescribeSentimentDetectionJobOutput) SetSentimentDetectionJobProperties(v *SentimentDetectionJobProperties) *DescribeSentimentDetectionJobOutput {
s.SentimentDetectionJobProperties = v
return s
} | go | func (s *DescribeSentimentDetectionJobOutput) SetSentimentDetectionJobProperties(v *SentimentDetectionJobProperties) *DescribeSentimentDetectionJobOutput {
s.SentimentDetectionJobProperties = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeSentimentDetectionJobOutput",
")",
"SetSentimentDetectionJobProperties",
"(",
"v",
"*",
"SentimentDetectionJobProperties",
")",
"*",
"DescribeSentimentDetectionJobOutput",
"{",
"s",
".",
"SentimentDetectionJobProperties",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSentimentDetectionJobProperties sets the SentimentDetectionJobProperties field's value. | [
"SetSentimentDetectionJobProperties",
"sets",
"the",
"SentimentDetectionJobProperties",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L6210-L6213 |
165,882 | aws/aws-sdk-go | service/comprehend/api.go | SetTopicsDetectionJobProperties | func (s *DescribeTopicsDetectionJobOutput) SetTopicsDetectionJobProperties(v *TopicsDetectionJobProperties) *DescribeTopicsDetectionJobOutput {
s.TopicsDetectionJobProperties = v
return s
} | go | func (s *DescribeTopicsDetectionJobOutput) SetTopicsDetectionJobProperties(v *TopicsDetectionJobProperties) *DescribeTopicsDetectionJobOutput {
s.TopicsDetectionJobProperties = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeTopicsDetectionJobOutput",
")",
"SetTopicsDetectionJobProperties",
"(",
"v",
"*",
"TopicsDetectionJobProperties",
")",
"*",
"DescribeTopicsDetectionJobOutput",
"{",
"s",
".",
"TopicsDetectionJobProperties",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTopicsDetectionJobProperties sets the TopicsDetectionJobProperties field's value. | [
"SetTopicsDetectionJobProperties",
"sets",
"the",
"TopicsDetectionJobProperties",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L6274-L6277 |
165,883 | aws/aws-sdk-go | service/comprehend/api.go | SetClassifierMetadata | func (s *DocumentClassifierProperties) SetClassifierMetadata(v *ClassifierMetadata) *DocumentClassifierProperties {
s.ClassifierMetadata = v
return s
} | go | func (s *DocumentClassifierProperties) SetClassifierMetadata(v *ClassifierMetadata) *DocumentClassifierProperties {
s.ClassifierMetadata = v
return s
} | [
"func",
"(",
"s",
"*",
"DocumentClassifierProperties",
")",
"SetClassifierMetadata",
"(",
"v",
"*",
"ClassifierMetadata",
")",
"*",
"DocumentClassifierProperties",
"{",
"s",
".",
"ClassifierMetadata",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetClassifierMetadata sets the ClassifierMetadata field's value. | [
"SetClassifierMetadata",
"sets",
"the",
"ClassifierMetadata",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L7102-L7105 |
165,884 | aws/aws-sdk-go | service/comprehend/api.go | SetEntityList | func (s *EntityRecognizerInputDataConfig) SetEntityList(v *EntityRecognizerEntityList) *EntityRecognizerInputDataConfig {
s.EntityList = v
return s
} | go | func (s *EntityRecognizerInputDataConfig) SetEntityList(v *EntityRecognizerEntityList) *EntityRecognizerInputDataConfig {
s.EntityList = v
return s
} | [
"func",
"(",
"s",
"*",
"EntityRecognizerInputDataConfig",
")",
"SetEntityList",
"(",
"v",
"*",
"EntityRecognizerEntityList",
")",
"*",
"EntityRecognizerInputDataConfig",
"{",
"s",
".",
"EntityList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetEntityList sets the EntityList field's value. | [
"SetEntityList",
"sets",
"the",
"EntityList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L7977-L7980 |
165,885 | aws/aws-sdk-go | service/comprehend/api.go | SetRecognizerMetadata | func (s *EntityRecognizerProperties) SetRecognizerMetadata(v *EntityRecognizerMetadata) *EntityRecognizerProperties {
s.RecognizerMetadata = v
return s
} | go | func (s *EntityRecognizerProperties) SetRecognizerMetadata(v *EntityRecognizerMetadata) *EntityRecognizerProperties {
s.RecognizerMetadata = v
return s
} | [
"func",
"(",
"s",
"*",
"EntityRecognizerProperties",
")",
"SetRecognizerMetadata",
"(",
"v",
"*",
"EntityRecognizerMetadata",
")",
"*",
"EntityRecognizerProperties",
"{",
"s",
".",
"RecognizerMetadata",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetRecognizerMetadata sets the RecognizerMetadata field's value. | [
"SetRecognizerMetadata",
"sets",
"the",
"RecognizerMetadata",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L8164-L8167 |
165,886 | aws/aws-sdk-go | service/comprehend/api.go | SetDocumentClassificationJobPropertiesList | func (s *ListDocumentClassificationJobsOutput) SetDocumentClassificationJobPropertiesList(v []*DocumentClassificationJobProperties) *ListDocumentClassificationJobsOutput {
s.DocumentClassificationJobPropertiesList = v
return s
} | go | func (s *ListDocumentClassificationJobsOutput) SetDocumentClassificationJobPropertiesList(v []*DocumentClassificationJobProperties) *ListDocumentClassificationJobsOutput {
s.DocumentClassificationJobPropertiesList = v
return s
} | [
"func",
"(",
"s",
"*",
"ListDocumentClassificationJobsOutput",
")",
"SetDocumentClassificationJobPropertiesList",
"(",
"v",
"[",
"]",
"*",
"DocumentClassificationJobProperties",
")",
"*",
"ListDocumentClassificationJobsOutput",
"{",
"s",
".",
"DocumentClassificationJobPropertiesList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDocumentClassificationJobPropertiesList sets the DocumentClassificationJobPropertiesList field's value. | [
"SetDocumentClassificationJobPropertiesList",
"sets",
"the",
"DocumentClassificationJobPropertiesList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L8639-L8642 |
165,887 | aws/aws-sdk-go | service/comprehend/api.go | SetDocumentClassifierPropertiesList | func (s *ListDocumentClassifiersOutput) SetDocumentClassifierPropertiesList(v []*DocumentClassifierProperties) *ListDocumentClassifiersOutput {
s.DocumentClassifierPropertiesList = v
return s
} | go | func (s *ListDocumentClassifiersOutput) SetDocumentClassifierPropertiesList(v []*DocumentClassifierProperties) *ListDocumentClassifiersOutput {
s.DocumentClassifierPropertiesList = v
return s
} | [
"func",
"(",
"s",
"*",
"ListDocumentClassifiersOutput",
")",
"SetDocumentClassifierPropertiesList",
"(",
"v",
"[",
"]",
"*",
"DocumentClassifierProperties",
")",
"*",
"ListDocumentClassifiersOutput",
"{",
"s",
".",
"DocumentClassifierPropertiesList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDocumentClassifierPropertiesList sets the DocumentClassifierPropertiesList field's value. | [
"SetDocumentClassifierPropertiesList",
"sets",
"the",
"DocumentClassifierPropertiesList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L8730-L8733 |
165,888 | aws/aws-sdk-go | service/comprehend/api.go | SetDominantLanguageDetectionJobPropertiesList | func (s *ListDominantLanguageDetectionJobsOutput) SetDominantLanguageDetectionJobPropertiesList(v []*DominantLanguageDetectionJobProperties) *ListDominantLanguageDetectionJobsOutput {
s.DominantLanguageDetectionJobPropertiesList = v
return s
} | go | func (s *ListDominantLanguageDetectionJobsOutput) SetDominantLanguageDetectionJobPropertiesList(v []*DominantLanguageDetectionJobProperties) *ListDominantLanguageDetectionJobsOutput {
s.DominantLanguageDetectionJobPropertiesList = v
return s
} | [
"func",
"(",
"s",
"*",
"ListDominantLanguageDetectionJobsOutput",
")",
"SetDominantLanguageDetectionJobPropertiesList",
"(",
"v",
"[",
"]",
"*",
"DominantLanguageDetectionJobProperties",
")",
"*",
"ListDominantLanguageDetectionJobsOutput",
"{",
"s",
".",
"DominantLanguageDetectionJobPropertiesList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDominantLanguageDetectionJobPropertiesList sets the DominantLanguageDetectionJobPropertiesList field's value. | [
"SetDominantLanguageDetectionJobPropertiesList",
"sets",
"the",
"DominantLanguageDetectionJobPropertiesList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L8826-L8829 |
165,889 | aws/aws-sdk-go | service/comprehend/api.go | SetEntitiesDetectionJobPropertiesList | func (s *ListEntitiesDetectionJobsOutput) SetEntitiesDetectionJobPropertiesList(v []*EntitiesDetectionJobProperties) *ListEntitiesDetectionJobsOutput {
s.EntitiesDetectionJobPropertiesList = v
return s
} | go | func (s *ListEntitiesDetectionJobsOutput) SetEntitiesDetectionJobPropertiesList(v []*EntitiesDetectionJobProperties) *ListEntitiesDetectionJobsOutput {
s.EntitiesDetectionJobPropertiesList = v
return s
} | [
"func",
"(",
"s",
"*",
"ListEntitiesDetectionJobsOutput",
")",
"SetEntitiesDetectionJobPropertiesList",
"(",
"v",
"[",
"]",
"*",
"EntitiesDetectionJobProperties",
")",
"*",
"ListEntitiesDetectionJobsOutput",
"{",
"s",
".",
"EntitiesDetectionJobPropertiesList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetEntitiesDetectionJobPropertiesList sets the EntitiesDetectionJobPropertiesList field's value. | [
"SetEntitiesDetectionJobPropertiesList",
"sets",
"the",
"EntitiesDetectionJobPropertiesList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L8922-L8925 |
165,890 | aws/aws-sdk-go | service/comprehend/api.go | SetEntityRecognizerPropertiesList | func (s *ListEntityRecognizersOutput) SetEntityRecognizerPropertiesList(v []*EntityRecognizerProperties) *ListEntityRecognizersOutput {
s.EntityRecognizerPropertiesList = v
return s
} | go | func (s *ListEntityRecognizersOutput) SetEntityRecognizerPropertiesList(v []*EntityRecognizerProperties) *ListEntityRecognizersOutput {
s.EntityRecognizerPropertiesList = v
return s
} | [
"func",
"(",
"s",
"*",
"ListEntityRecognizersOutput",
")",
"SetEntityRecognizerPropertiesList",
"(",
"v",
"[",
"]",
"*",
"EntityRecognizerProperties",
")",
"*",
"ListEntityRecognizersOutput",
"{",
"s",
".",
"EntityRecognizerPropertiesList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetEntityRecognizerPropertiesList sets the EntityRecognizerPropertiesList field's value. | [
"SetEntityRecognizerPropertiesList",
"sets",
"the",
"EntityRecognizerPropertiesList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L9012-L9015 |
165,891 | aws/aws-sdk-go | service/comprehend/api.go | SetKeyPhrasesDetectionJobPropertiesList | func (s *ListKeyPhrasesDetectionJobsOutput) SetKeyPhrasesDetectionJobPropertiesList(v []*KeyPhrasesDetectionJobProperties) *ListKeyPhrasesDetectionJobsOutput {
s.KeyPhrasesDetectionJobPropertiesList = v
return s
} | go | func (s *ListKeyPhrasesDetectionJobsOutput) SetKeyPhrasesDetectionJobPropertiesList(v []*KeyPhrasesDetectionJobProperties) *ListKeyPhrasesDetectionJobsOutput {
s.KeyPhrasesDetectionJobPropertiesList = v
return s
} | [
"func",
"(",
"s",
"*",
"ListKeyPhrasesDetectionJobsOutput",
")",
"SetKeyPhrasesDetectionJobPropertiesList",
"(",
"v",
"[",
"]",
"*",
"KeyPhrasesDetectionJobProperties",
")",
"*",
"ListKeyPhrasesDetectionJobsOutput",
"{",
"s",
".",
"KeyPhrasesDetectionJobPropertiesList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetKeyPhrasesDetectionJobPropertiesList sets the KeyPhrasesDetectionJobPropertiesList field's value. | [
"SetKeyPhrasesDetectionJobPropertiesList",
"sets",
"the",
"KeyPhrasesDetectionJobPropertiesList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L9108-L9111 |
165,892 | aws/aws-sdk-go | service/comprehend/api.go | SetSentimentDetectionJobPropertiesList | func (s *ListSentimentDetectionJobsOutput) SetSentimentDetectionJobPropertiesList(v []*SentimentDetectionJobProperties) *ListSentimentDetectionJobsOutput {
s.SentimentDetectionJobPropertiesList = v
return s
} | go | func (s *ListSentimentDetectionJobsOutput) SetSentimentDetectionJobPropertiesList(v []*SentimentDetectionJobProperties) *ListSentimentDetectionJobsOutput {
s.SentimentDetectionJobPropertiesList = v
return s
} | [
"func",
"(",
"s",
"*",
"ListSentimentDetectionJobsOutput",
")",
"SetSentimentDetectionJobPropertiesList",
"(",
"v",
"[",
"]",
"*",
"SentimentDetectionJobProperties",
")",
"*",
"ListSentimentDetectionJobsOutput",
"{",
"s",
".",
"SentimentDetectionJobPropertiesList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSentimentDetectionJobPropertiesList sets the SentimentDetectionJobPropertiesList field's value. | [
"SetSentimentDetectionJobPropertiesList",
"sets",
"the",
"SentimentDetectionJobPropertiesList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L9210-L9213 |
165,893 | aws/aws-sdk-go | service/comprehend/api.go | SetTopicsDetectionJobPropertiesList | func (s *ListTopicsDetectionJobsOutput) SetTopicsDetectionJobPropertiesList(v []*TopicsDetectionJobProperties) *ListTopicsDetectionJobsOutput {
s.TopicsDetectionJobPropertiesList = v
return s
} | go | func (s *ListTopicsDetectionJobsOutput) SetTopicsDetectionJobPropertiesList(v []*TopicsDetectionJobProperties) *ListTopicsDetectionJobsOutput {
s.TopicsDetectionJobPropertiesList = v
return s
} | [
"func",
"(",
"s",
"*",
"ListTopicsDetectionJobsOutput",
")",
"SetTopicsDetectionJobPropertiesList",
"(",
"v",
"[",
"]",
"*",
"TopicsDetectionJobProperties",
")",
"*",
"ListTopicsDetectionJobsOutput",
"{",
"s",
".",
"TopicsDetectionJobPropertiesList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTopicsDetectionJobPropertiesList sets the TopicsDetectionJobPropertiesList field's value. | [
"SetTopicsDetectionJobPropertiesList",
"sets",
"the",
"TopicsDetectionJobPropertiesList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L9381-L9384 |
165,894 | aws/aws-sdk-go | service/comprehend/api.go | SetMixed | func (s *SentimentScore) SetMixed(v float64) *SentimentScore {
s.Mixed = &v
return s
} | go | func (s *SentimentScore) SetMixed(v float64) *SentimentScore {
s.Mixed = &v
return s
} | [
"func",
"(",
"s",
"*",
"SentimentScore",
")",
"SetMixed",
"(",
"v",
"float64",
")",
"*",
"SentimentScore",
"{",
"s",
".",
"Mixed",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMixed sets the Mixed field's value. | [
"SetMixed",
"sets",
"the",
"Mixed",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L9718-L9721 |
165,895 | aws/aws-sdk-go | service/comprehend/api.go | SetNegative | func (s *SentimentScore) SetNegative(v float64) *SentimentScore {
s.Negative = &v
return s
} | go | func (s *SentimentScore) SetNegative(v float64) *SentimentScore {
s.Negative = &v
return s
} | [
"func",
"(",
"s",
"*",
"SentimentScore",
")",
"SetNegative",
"(",
"v",
"float64",
")",
"*",
"SentimentScore",
"{",
"s",
".",
"Negative",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetNegative sets the Negative field's value. | [
"SetNegative",
"sets",
"the",
"Negative",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L9724-L9727 |
165,896 | aws/aws-sdk-go | service/comprehend/api.go | SetNeutral | func (s *SentimentScore) SetNeutral(v float64) *SentimentScore {
s.Neutral = &v
return s
} | go | func (s *SentimentScore) SetNeutral(v float64) *SentimentScore {
s.Neutral = &v
return s
} | [
"func",
"(",
"s",
"*",
"SentimentScore",
")",
"SetNeutral",
"(",
"v",
"float64",
")",
"*",
"SentimentScore",
"{",
"s",
".",
"Neutral",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetNeutral sets the Neutral field's value. | [
"SetNeutral",
"sets",
"the",
"Neutral",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L9730-L9733 |
165,897 | aws/aws-sdk-go | service/comprehend/api.go | SetPositive | func (s *SentimentScore) SetPositive(v float64) *SentimentScore {
s.Positive = &v
return s
} | go | func (s *SentimentScore) SetPositive(v float64) *SentimentScore {
s.Positive = &v
return s
} | [
"func",
"(",
"s",
"*",
"SentimentScore",
")",
"SetPositive",
"(",
"v",
"float64",
")",
"*",
"SentimentScore",
"{",
"s",
".",
"Positive",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPositive sets the Positive field's value. | [
"SetPositive",
"sets",
"the",
"Positive",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L9736-L9739 |
165,898 | aws/aws-sdk-go | service/comprehend/api.go | SetPartOfSpeech | func (s *SyntaxToken) SetPartOfSpeech(v *PartOfSpeechTag) *SyntaxToken {
s.PartOfSpeech = v
return s
} | go | func (s *SyntaxToken) SetPartOfSpeech(v *PartOfSpeechTag) *SyntaxToken {
s.PartOfSpeech = v
return s
} | [
"func",
"(",
"s",
"*",
"SyntaxToken",
")",
"SetPartOfSpeech",
"(",
"v",
"*",
"PartOfSpeechTag",
")",
"*",
"SyntaxToken",
"{",
"s",
".",
"PartOfSpeech",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPartOfSpeech sets the PartOfSpeech field's value. | [
"SetPartOfSpeech",
"sets",
"the",
"PartOfSpeech",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L11272-L11275 |
165,899 | aws/aws-sdk-go | service/comprehend/api.go | SetTokenId | func (s *SyntaxToken) SetTokenId(v int64) *SyntaxToken {
s.TokenId = &v
return s
} | go | func (s *SyntaxToken) SetTokenId(v int64) *SyntaxToken {
s.TokenId = &v
return s
} | [
"func",
"(",
"s",
"*",
"SyntaxToken",
")",
"SetTokenId",
"(",
"v",
"int64",
")",
"*",
"SyntaxToken",
"{",
"s",
".",
"TokenId",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTokenId sets the TokenId field's value. | [
"SetTokenId",
"sets",
"the",
"TokenId",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/comprehend/api.go#L11284-L11287 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.