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
|
---|---|---|---|---|---|---|---|---|---|---|---|
3,100 | aws/aws-sdk-go | service/cloudsearchdomain/api.go | SetPartial | func (s *SearchInput) SetPartial(v bool) *SearchInput {
s.Partial = &v
return s
} | go | func (s *SearchInput) SetPartial(v bool) *SearchInput {
s.Partial = &v
return s
} | [
"func",
"(",
"s",
"*",
"SearchInput",
")",
"SetPartial",
"(",
"v",
"bool",
")",
"*",
"SearchInput",
"{",
"s",
".",
"Partial",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPartial sets the Partial field's value. | [
"SetPartial",
"sets",
"the",
"Partial",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudsearchdomain/api.go#L950-L953 |
3,101 | aws/aws-sdk-go | service/cloudsearchdomain/api.go | SetQueryOptions | func (s *SearchInput) SetQueryOptions(v string) *SearchInput {
s.QueryOptions = &v
return s
} | go | func (s *SearchInput) SetQueryOptions(v string) *SearchInput {
s.QueryOptions = &v
return s
} | [
"func",
"(",
"s",
"*",
"SearchInput",
")",
"SetQueryOptions",
"(",
"v",
"string",
")",
"*",
"SearchInput",
"{",
"s",
".",
"QueryOptions",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetQueryOptions sets the QueryOptions field's value. | [
"SetQueryOptions",
"sets",
"the",
"QueryOptions",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudsearchdomain/api.go#L962-L965 |
3,102 | aws/aws-sdk-go | service/cloudsearchdomain/api.go | SetQueryParser | func (s *SearchInput) SetQueryParser(v string) *SearchInput {
s.QueryParser = &v
return s
} | go | func (s *SearchInput) SetQueryParser(v string) *SearchInput {
s.QueryParser = &v
return s
} | [
"func",
"(",
"s",
"*",
"SearchInput",
")",
"SetQueryParser",
"(",
"v",
"string",
")",
"*",
"SearchInput",
"{",
"s",
".",
"QueryParser",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetQueryParser sets the QueryParser field's value. | [
"SetQueryParser",
"sets",
"the",
"QueryParser",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudsearchdomain/api.go#L968-L971 |
3,103 | aws/aws-sdk-go | service/cloudsearchdomain/api.go | SetReturn | func (s *SearchInput) SetReturn(v string) *SearchInput {
s.Return = &v
return s
} | go | func (s *SearchInput) SetReturn(v string) *SearchInput {
s.Return = &v
return s
} | [
"func",
"(",
"s",
"*",
"SearchInput",
")",
"SetReturn",
"(",
"v",
"string",
")",
"*",
"SearchInput",
"{",
"s",
".",
"Return",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetReturn sets the Return field's value. | [
"SetReturn",
"sets",
"the",
"Return",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudsearchdomain/api.go#L974-L977 |
3,104 | aws/aws-sdk-go | service/cloudsearchdomain/api.go | SetFacets | func (s *SearchOutput) SetFacets(v map[string]*BucketInfo) *SearchOutput {
s.Facets = v
return s
} | go | func (s *SearchOutput) SetFacets(v map[string]*BucketInfo) *SearchOutput {
s.Facets = v
return s
} | [
"func",
"(",
"s",
"*",
"SearchOutput",
")",
"SetFacets",
"(",
"v",
"map",
"[",
"string",
"]",
"*",
"BucketInfo",
")",
"*",
"SearchOutput",
"{",
"s",
".",
"Facets",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetFacets sets the Facets field's value. | [
"SetFacets",
"sets",
"the",
"Facets",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudsearchdomain/api.go#L1032-L1035 |
3,105 | aws/aws-sdk-go | service/cloudsearchdomain/api.go | SetHits | func (s *SearchOutput) SetHits(v *Hits) *SearchOutput {
s.Hits = v
return s
} | go | func (s *SearchOutput) SetHits(v *Hits) *SearchOutput {
s.Hits = v
return s
} | [
"func",
"(",
"s",
"*",
"SearchOutput",
")",
"SetHits",
"(",
"v",
"*",
"Hits",
")",
"*",
"SearchOutput",
"{",
"s",
".",
"Hits",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetHits sets the Hits field's value. | [
"SetHits",
"sets",
"the",
"Hits",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudsearchdomain/api.go#L1038-L1041 |
3,106 | aws/aws-sdk-go | service/cloudsearchdomain/api.go | SetSuggestions | func (s *SuggestModel) SetSuggestions(v []*SuggestionMatch) *SuggestModel {
s.Suggestions = v
return s
} | go | func (s *SuggestModel) SetSuggestions(v []*SuggestionMatch) *SuggestModel {
s.Suggestions = v
return s
} | [
"func",
"(",
"s",
"*",
"SuggestModel",
")",
"SetSuggestions",
"(",
"v",
"[",
"]",
"*",
"SuggestionMatch",
")",
"*",
"SuggestModel",
"{",
"s",
".",
"Suggestions",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSuggestions sets the Suggestions field's value. | [
"SetSuggestions",
"sets",
"the",
"Suggestions",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudsearchdomain/api.go#L1188-L1191 |
3,107 | aws/aws-sdk-go | service/cloudsearchdomain/api.go | SetSuggest | func (s *SuggestOutput) SetSuggest(v *SuggestModel) *SuggestOutput {
s.Suggest = v
return s
} | go | func (s *SuggestOutput) SetSuggest(v *SuggestModel) *SuggestOutput {
s.Suggest = v
return s
} | [
"func",
"(",
"s",
"*",
"SuggestOutput",
")",
"SetSuggest",
"(",
"v",
"*",
"SuggestModel",
")",
"*",
"SuggestOutput",
"{",
"s",
".",
"Suggest",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSuggest sets the Suggest field's value. | [
"SetSuggest",
"sets",
"the",
"Suggest",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudsearchdomain/api.go#L1222-L1225 |
3,108 | aws/aws-sdk-go | service/cloudsearchdomain/api.go | SetSuggestion | func (s *SuggestionMatch) SetSuggestion(v string) *SuggestionMatch {
s.Suggestion = &v
return s
} | go | func (s *SuggestionMatch) SetSuggestion(v string) *SuggestionMatch {
s.Suggestion = &v
return s
} | [
"func",
"(",
"s",
"*",
"SuggestionMatch",
")",
"SetSuggestion",
"(",
"v",
"string",
")",
"*",
"SuggestionMatch",
"{",
"s",
".",
"Suggestion",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSuggestion sets the Suggestion field's value. | [
"SetSuggestion",
"sets",
"the",
"Suggestion",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudsearchdomain/api.go#L1298-L1301 |
3,109 | aws/aws-sdk-go | service/cloudsearchdomain/api.go | SetAdds | func (s *UploadDocumentsOutput) SetAdds(v int64) *UploadDocumentsOutput {
s.Adds = &v
return s
} | go | func (s *UploadDocumentsOutput) SetAdds(v int64) *UploadDocumentsOutput {
s.Adds = &v
return s
} | [
"func",
"(",
"s",
"*",
"UploadDocumentsOutput",
")",
"SetAdds",
"(",
"v",
"int64",
")",
"*",
"UploadDocumentsOutput",
"{",
"s",
".",
"Adds",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAdds sets the Adds field's value. | [
"SetAdds",
"sets",
"the",
"Adds",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudsearchdomain/api.go#L1388-L1391 |
3,110 | aws/aws-sdk-go | service/emr/waiters.go | WaitUntilClusterRunning | func (c *EMR) WaitUntilClusterRunning(input *DescribeClusterInput) error {
return c.WaitUntilClusterRunningWithContext(aws.BackgroundContext(), input)
} | go | func (c *EMR) WaitUntilClusterRunning(input *DescribeClusterInput) error {
return c.WaitUntilClusterRunningWithContext(aws.BackgroundContext(), input)
} | [
"func",
"(",
"c",
"*",
"EMR",
")",
"WaitUntilClusterRunning",
"(",
"input",
"*",
"DescribeClusterInput",
")",
"error",
"{",
"return",
"c",
".",
"WaitUntilClusterRunningWithContext",
"(",
"aws",
".",
"BackgroundContext",
"(",
")",
",",
"input",
")",
"\n",
"}"
] | // WaitUntilClusterRunning uses the Amazon EMR API operation
// DescribeCluster 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. | [
"WaitUntilClusterRunning",
"uses",
"the",
"Amazon",
"EMR",
"API",
"operation",
"DescribeCluster",
"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/emr/waiters.go#L16-L18 |
3,111 | aws/aws-sdk-go | service/emr/waiters.go | WaitUntilClusterTerminated | func (c *EMR) WaitUntilClusterTerminated(input *DescribeClusterInput) error {
return c.WaitUntilClusterTerminatedWithContext(aws.BackgroundContext(), input)
} | go | func (c *EMR) WaitUntilClusterTerminated(input *DescribeClusterInput) error {
return c.WaitUntilClusterTerminatedWithContext(aws.BackgroundContext(), input)
} | [
"func",
"(",
"c",
"*",
"EMR",
")",
"WaitUntilClusterTerminated",
"(",
"input",
"*",
"DescribeClusterInput",
")",
"error",
"{",
"return",
"c",
".",
"WaitUntilClusterTerminatedWithContext",
"(",
"aws",
".",
"BackgroundContext",
"(",
")",
",",
"input",
")",
"\n",
"}"
] | // WaitUntilClusterTerminated uses the Amazon EMR API operation
// DescribeCluster 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. | [
"WaitUntilClusterTerminated",
"uses",
"the",
"Amazon",
"EMR",
"API",
"operation",
"DescribeCluster",
"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/emr/waiters.go#L82-L84 |
3,112 | aws/aws-sdk-go | service/emr/waiters.go | WaitUntilStepComplete | func (c *EMR) WaitUntilStepComplete(input *DescribeStepInput) error {
return c.WaitUntilStepCompleteWithContext(aws.BackgroundContext(), input)
} | go | func (c *EMR) WaitUntilStepComplete(input *DescribeStepInput) error {
return c.WaitUntilStepCompleteWithContext(aws.BackgroundContext(), input)
} | [
"func",
"(",
"c",
"*",
"EMR",
")",
"WaitUntilStepComplete",
"(",
"input",
"*",
"DescribeStepInput",
")",
"error",
"{",
"return",
"c",
".",
"WaitUntilStepCompleteWithContext",
"(",
"aws",
".",
"BackgroundContext",
"(",
")",
",",
"input",
")",
"\n",
"}"
] | // WaitUntilStepComplete uses the Amazon EMR API operation
// DescribeStep 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. | [
"WaitUntilStepComplete",
"uses",
"the",
"Amazon",
"EMR",
"API",
"operation",
"DescribeStep",
"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/emr/waiters.go#L133-L135 |
3,113 | aws/aws-sdk-go | private/model/api/param_filler.go | typeName | func (f paramFiller) typeName(shape *Shape) string {
if f.prefixPackageName && shape.Type == "structure" {
return "*" + shape.API.PackageName() + "." + shape.GoTypeElem()
}
return shape.GoType()
} | go | func (f paramFiller) typeName(shape *Shape) string {
if f.prefixPackageName && shape.Type == "structure" {
return "*" + shape.API.PackageName() + "." + shape.GoTypeElem()
}
return shape.GoType()
} | [
"func",
"(",
"f",
"paramFiller",
")",
"typeName",
"(",
"shape",
"*",
"Shape",
")",
"string",
"{",
"if",
"f",
".",
"prefixPackageName",
"&&",
"shape",
".",
"Type",
"==",
"\"",
"\"",
"{",
"return",
"\"",
"\"",
"+",
"shape",
".",
"API",
".",
"PackageName",
"(",
")",
"+",
"\"",
"\"",
"+",
"shape",
".",
"GoTypeElem",
"(",
")",
"\n",
"}",
"\n",
"return",
"shape",
".",
"GoType",
"(",
")",
"\n",
"}"
] | // typeName returns the type name of a shape. | [
"typeName",
"returns",
"the",
"type",
"name",
"of",
"a",
"shape",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/param_filler.go#L20-L25 |
3,114 | aws/aws-sdk-go | private/model/api/param_filler.go | ParamsStructFromJSON | func ParamsStructFromJSON(value interface{}, shape *Shape, prefixPackageName bool) string {
f := paramFiller{prefixPackageName: prefixPackageName}
return util.GoFmt(f.paramsStructAny(value, shape))
} | go | func ParamsStructFromJSON(value interface{}, shape *Shape, prefixPackageName bool) string {
f := paramFiller{prefixPackageName: prefixPackageName}
return util.GoFmt(f.paramsStructAny(value, shape))
} | [
"func",
"ParamsStructFromJSON",
"(",
"value",
"interface",
"{",
"}",
",",
"shape",
"*",
"Shape",
",",
"prefixPackageName",
"bool",
")",
"string",
"{",
"f",
":=",
"paramFiller",
"{",
"prefixPackageName",
":",
"prefixPackageName",
"}",
"\n",
"return",
"util",
".",
"GoFmt",
"(",
"f",
".",
"paramsStructAny",
"(",
"value",
",",
"shape",
")",
")",
"\n",
"}"
] | // ParamsStructFromJSON returns a JSON string representation of a structure. | [
"ParamsStructFromJSON",
"returns",
"a",
"JSON",
"string",
"representation",
"of",
"a",
"structure",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/param_filler.go#L28-L31 |
3,115 | aws/aws-sdk-go | private/model/api/param_filler.go | paramsStructAny | func (f paramFiller) paramsStructAny(value interface{}, shape *Shape) string {
if value == nil {
return ""
}
switch shape.Type {
case "structure":
if value != nil {
vmap := value.(map[string]interface{})
return f.paramsStructStruct(vmap, shape)
}
case "list":
vlist := value.([]interface{})
return f.paramsStructList(vlist, shape)
case "map":
vmap := value.(map[string]interface{})
return f.paramsStructMap(vmap, shape)
case "string", "character":
v := reflect.Indirect(reflect.ValueOf(value))
if v.IsValid() {
return fmt.Sprintf("aws.String(%#v)", v.Interface())
}
case "blob":
v := reflect.Indirect(reflect.ValueOf(value))
if v.IsValid() && shape.Streaming {
return fmt.Sprintf("bytes.NewReader([]byte(%#v))", v.Interface())
} else if v.IsValid() {
return fmt.Sprintf("[]byte(%#v)", v.Interface())
}
case "boolean":
v := reflect.Indirect(reflect.ValueOf(value))
if v.IsValid() {
return fmt.Sprintf("aws.Bool(%#v)", v.Interface())
}
case "integer", "long":
v := reflect.Indirect(reflect.ValueOf(value))
if v.IsValid() {
return fmt.Sprintf("aws.Int64(%v)", v.Interface())
}
case "float", "double":
v := reflect.Indirect(reflect.ValueOf(value))
if v.IsValid() {
return fmt.Sprintf("aws.Float64(%v)", v.Interface())
}
case "timestamp":
v := reflect.Indirect(reflect.ValueOf(value))
if v.IsValid() {
return fmt.Sprintf("aws.Time(time.Unix(%d, 0))", int(v.Float()))
}
case "jsonvalue":
v, err := json.Marshal(value)
if err != nil {
panic("failed to marshal JSONValue, " + err.Error())
}
const tmpl = `func() aws.JSONValue {
var m aws.JSONValue
if err := json.Unmarshal([]byte(%q), &m); err != nil {
panic("failed to unmarshal JSONValue, "+err.Error())
}
return m
}()`
return fmt.Sprintf(tmpl, string(v))
default:
panic("Unhandled type " + shape.Type)
}
return ""
} | go | func (f paramFiller) paramsStructAny(value interface{}, shape *Shape) string {
if value == nil {
return ""
}
switch shape.Type {
case "structure":
if value != nil {
vmap := value.(map[string]interface{})
return f.paramsStructStruct(vmap, shape)
}
case "list":
vlist := value.([]interface{})
return f.paramsStructList(vlist, shape)
case "map":
vmap := value.(map[string]interface{})
return f.paramsStructMap(vmap, shape)
case "string", "character":
v := reflect.Indirect(reflect.ValueOf(value))
if v.IsValid() {
return fmt.Sprintf("aws.String(%#v)", v.Interface())
}
case "blob":
v := reflect.Indirect(reflect.ValueOf(value))
if v.IsValid() && shape.Streaming {
return fmt.Sprintf("bytes.NewReader([]byte(%#v))", v.Interface())
} else if v.IsValid() {
return fmt.Sprintf("[]byte(%#v)", v.Interface())
}
case "boolean":
v := reflect.Indirect(reflect.ValueOf(value))
if v.IsValid() {
return fmt.Sprintf("aws.Bool(%#v)", v.Interface())
}
case "integer", "long":
v := reflect.Indirect(reflect.ValueOf(value))
if v.IsValid() {
return fmt.Sprintf("aws.Int64(%v)", v.Interface())
}
case "float", "double":
v := reflect.Indirect(reflect.ValueOf(value))
if v.IsValid() {
return fmt.Sprintf("aws.Float64(%v)", v.Interface())
}
case "timestamp":
v := reflect.Indirect(reflect.ValueOf(value))
if v.IsValid() {
return fmt.Sprintf("aws.Time(time.Unix(%d, 0))", int(v.Float()))
}
case "jsonvalue":
v, err := json.Marshal(value)
if err != nil {
panic("failed to marshal JSONValue, " + err.Error())
}
const tmpl = `func() aws.JSONValue {
var m aws.JSONValue
if err := json.Unmarshal([]byte(%q), &m); err != nil {
panic("failed to unmarshal JSONValue, "+err.Error())
}
return m
}()`
return fmt.Sprintf(tmpl, string(v))
default:
panic("Unhandled type " + shape.Type)
}
return ""
} | [
"func",
"(",
"f",
"paramFiller",
")",
"paramsStructAny",
"(",
"value",
"interface",
"{",
"}",
",",
"shape",
"*",
"Shape",
")",
"string",
"{",
"if",
"value",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n\n",
"switch",
"shape",
".",
"Type",
"{",
"case",
"\"",
"\"",
":",
"if",
"value",
"!=",
"nil",
"{",
"vmap",
":=",
"value",
".",
"(",
"map",
"[",
"string",
"]",
"interface",
"{",
"}",
")",
"\n",
"return",
"f",
".",
"paramsStructStruct",
"(",
"vmap",
",",
"shape",
")",
"\n",
"}",
"\n",
"case",
"\"",
"\"",
":",
"vlist",
":=",
"value",
".",
"(",
"[",
"]",
"interface",
"{",
"}",
")",
"\n",
"return",
"f",
".",
"paramsStructList",
"(",
"vlist",
",",
"shape",
")",
"\n",
"case",
"\"",
"\"",
":",
"vmap",
":=",
"value",
".",
"(",
"map",
"[",
"string",
"]",
"interface",
"{",
"}",
")",
"\n",
"return",
"f",
".",
"paramsStructMap",
"(",
"vmap",
",",
"shape",
")",
"\n",
"case",
"\"",
"\"",
",",
"\"",
"\"",
":",
"v",
":=",
"reflect",
".",
"Indirect",
"(",
"reflect",
".",
"ValueOf",
"(",
"value",
")",
")",
"\n",
"if",
"v",
".",
"IsValid",
"(",
")",
"{",
"return",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"v",
".",
"Interface",
"(",
")",
")",
"\n",
"}",
"\n",
"case",
"\"",
"\"",
":",
"v",
":=",
"reflect",
".",
"Indirect",
"(",
"reflect",
".",
"ValueOf",
"(",
"value",
")",
")",
"\n",
"if",
"v",
".",
"IsValid",
"(",
")",
"&&",
"shape",
".",
"Streaming",
"{",
"return",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"v",
".",
"Interface",
"(",
")",
")",
"\n",
"}",
"else",
"if",
"v",
".",
"IsValid",
"(",
")",
"{",
"return",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"v",
".",
"Interface",
"(",
")",
")",
"\n",
"}",
"\n",
"case",
"\"",
"\"",
":",
"v",
":=",
"reflect",
".",
"Indirect",
"(",
"reflect",
".",
"ValueOf",
"(",
"value",
")",
")",
"\n",
"if",
"v",
".",
"IsValid",
"(",
")",
"{",
"return",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"v",
".",
"Interface",
"(",
")",
")",
"\n",
"}",
"\n",
"case",
"\"",
"\"",
",",
"\"",
"\"",
":",
"v",
":=",
"reflect",
".",
"Indirect",
"(",
"reflect",
".",
"ValueOf",
"(",
"value",
")",
")",
"\n",
"if",
"v",
".",
"IsValid",
"(",
")",
"{",
"return",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"v",
".",
"Interface",
"(",
")",
")",
"\n",
"}",
"\n",
"case",
"\"",
"\"",
",",
"\"",
"\"",
":",
"v",
":=",
"reflect",
".",
"Indirect",
"(",
"reflect",
".",
"ValueOf",
"(",
"value",
")",
")",
"\n",
"if",
"v",
".",
"IsValid",
"(",
")",
"{",
"return",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"v",
".",
"Interface",
"(",
")",
")",
"\n",
"}",
"\n",
"case",
"\"",
"\"",
":",
"v",
":=",
"reflect",
".",
"Indirect",
"(",
"reflect",
".",
"ValueOf",
"(",
"value",
")",
")",
"\n",
"if",
"v",
".",
"IsValid",
"(",
")",
"{",
"return",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"int",
"(",
"v",
".",
"Float",
"(",
")",
")",
")",
"\n",
"}",
"\n",
"case",
"\"",
"\"",
":",
"v",
",",
"err",
":=",
"json",
".",
"Marshal",
"(",
"value",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"panic",
"(",
"\"",
"\"",
"+",
"err",
".",
"Error",
"(",
")",
")",
"\n",
"}",
"\n",
"const",
"tmpl",
"=",
"`func() aws.JSONValue {\n\t\t\tvar m aws.JSONValue\n\t\t\tif err := json.Unmarshal([]byte(%q), &m); err != nil {\n\t\t\t\tpanic(\"failed to unmarshal JSONValue, \"+err.Error())\n\t\t\t}\n\t\t\treturn m\n\t\t}()`",
"\n",
"return",
"fmt",
".",
"Sprintf",
"(",
"tmpl",
",",
"string",
"(",
"v",
")",
")",
"\n",
"default",
":",
"panic",
"(",
"\"",
"\"",
"+",
"shape",
".",
"Type",
")",
"\n",
"}",
"\n",
"return",
"\"",
"\"",
"\n",
"}"
] | // paramsStructAny returns the string representation of any value. | [
"paramsStructAny",
"returns",
"the",
"string",
"representation",
"of",
"any",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/param_filler.go#L34-L100 |
3,116 | aws/aws-sdk-go | private/model/api/param_filler.go | paramsStructStruct | func (f paramFiller) paramsStructStruct(value map[string]interface{}, shape *Shape) string {
out := "&" + f.typeName(shape)[1:] + "{\n"
for _, n := range shape.MemberNames() {
ref := shape.MemberRefs[n]
name := findParamMember(value, n)
if val := f.paramsStructAny(value[name], ref.Shape); val != "" {
out += fmt.Sprintf("%s: %s,\n", n, val)
}
}
out += "}"
return out
} | go | func (f paramFiller) paramsStructStruct(value map[string]interface{}, shape *Shape) string {
out := "&" + f.typeName(shape)[1:] + "{\n"
for _, n := range shape.MemberNames() {
ref := shape.MemberRefs[n]
name := findParamMember(value, n)
if val := f.paramsStructAny(value[name], ref.Shape); val != "" {
out += fmt.Sprintf("%s: %s,\n", n, val)
}
}
out += "}"
return out
} | [
"func",
"(",
"f",
"paramFiller",
")",
"paramsStructStruct",
"(",
"value",
"map",
"[",
"string",
"]",
"interface",
"{",
"}",
",",
"shape",
"*",
"Shape",
")",
"string",
"{",
"out",
":=",
"\"",
"\"",
"+",
"f",
".",
"typeName",
"(",
"shape",
")",
"[",
"1",
":",
"]",
"+",
"\"",
"\\n",
"\"",
"\n",
"for",
"_",
",",
"n",
":=",
"range",
"shape",
".",
"MemberNames",
"(",
")",
"{",
"ref",
":=",
"shape",
".",
"MemberRefs",
"[",
"n",
"]",
"\n",
"name",
":=",
"findParamMember",
"(",
"value",
",",
"n",
")",
"\n\n",
"if",
"val",
":=",
"f",
".",
"paramsStructAny",
"(",
"value",
"[",
"name",
"]",
",",
"ref",
".",
"Shape",
")",
";",
"val",
"!=",
"\"",
"\"",
"{",
"out",
"+=",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\\n",
"\"",
",",
"n",
",",
"val",
")",
"\n",
"}",
"\n",
"}",
"\n",
"out",
"+=",
"\"",
"\"",
"\n",
"return",
"out",
"\n",
"}"
] | // paramsStructStruct returns the string representation of a structure | [
"paramsStructStruct",
"returns",
"the",
"string",
"representation",
"of",
"a",
"structure"
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/param_filler.go#L103-L115 |
3,117 | aws/aws-sdk-go | private/model/api/param_filler.go | paramsStructMap | func (f paramFiller) paramsStructMap(value map[string]interface{}, shape *Shape) string {
out := f.typeName(shape) + "{\n"
keys := util.SortedKeys(value)
for _, k := range keys {
v := value[k]
out += fmt.Sprintf("%q: %s,\n", k, f.paramsStructAny(v, shape.ValueRef.Shape))
}
out += "}"
return out
} | go | func (f paramFiller) paramsStructMap(value map[string]interface{}, shape *Shape) string {
out := f.typeName(shape) + "{\n"
keys := util.SortedKeys(value)
for _, k := range keys {
v := value[k]
out += fmt.Sprintf("%q: %s,\n", k, f.paramsStructAny(v, shape.ValueRef.Shape))
}
out += "}"
return out
} | [
"func",
"(",
"f",
"paramFiller",
")",
"paramsStructMap",
"(",
"value",
"map",
"[",
"string",
"]",
"interface",
"{",
"}",
",",
"shape",
"*",
"Shape",
")",
"string",
"{",
"out",
":=",
"f",
".",
"typeName",
"(",
"shape",
")",
"+",
"\"",
"\\n",
"\"",
"\n",
"keys",
":=",
"util",
".",
"SortedKeys",
"(",
"value",
")",
"\n",
"for",
"_",
",",
"k",
":=",
"range",
"keys",
"{",
"v",
":=",
"value",
"[",
"k",
"]",
"\n",
"out",
"+=",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\\n",
"\"",
",",
"k",
",",
"f",
".",
"paramsStructAny",
"(",
"v",
",",
"shape",
".",
"ValueRef",
".",
"Shape",
")",
")",
"\n",
"}",
"\n",
"out",
"+=",
"\"",
"\"",
"\n",
"return",
"out",
"\n",
"}"
] | // paramsStructMap returns the string representation of a map of values | [
"paramsStructMap",
"returns",
"the",
"string",
"representation",
"of",
"a",
"map",
"of",
"values"
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/param_filler.go#L118-L127 |
3,118 | aws/aws-sdk-go | private/model/api/param_filler.go | paramsStructList | func (f paramFiller) paramsStructList(value []interface{}, shape *Shape) string {
out := f.typeName(shape) + "{\n"
for _, v := range value {
out += fmt.Sprintf("%s,\n", f.paramsStructAny(v, shape.MemberRef.Shape))
}
out += "}"
return out
} | go | func (f paramFiller) paramsStructList(value []interface{}, shape *Shape) string {
out := f.typeName(shape) + "{\n"
for _, v := range value {
out += fmt.Sprintf("%s,\n", f.paramsStructAny(v, shape.MemberRef.Shape))
}
out += "}"
return out
} | [
"func",
"(",
"f",
"paramFiller",
")",
"paramsStructList",
"(",
"value",
"[",
"]",
"interface",
"{",
"}",
",",
"shape",
"*",
"Shape",
")",
"string",
"{",
"out",
":=",
"f",
".",
"typeName",
"(",
"shape",
")",
"+",
"\"",
"\\n",
"\"",
"\n",
"for",
"_",
",",
"v",
":=",
"range",
"value",
"{",
"out",
"+=",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\\n",
"\"",
",",
"f",
".",
"paramsStructAny",
"(",
"v",
",",
"shape",
".",
"MemberRef",
".",
"Shape",
")",
")",
"\n",
"}",
"\n",
"out",
"+=",
"\"",
"\"",
"\n",
"return",
"out",
"\n",
"}"
] | // paramsStructList returns the string representation of slice of values | [
"paramsStructList",
"returns",
"the",
"string",
"representation",
"of",
"slice",
"of",
"values"
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/param_filler.go#L130-L137 |
3,119 | aws/aws-sdk-go | private/model/api/param_filler.go | findParamMember | func findParamMember(value map[string]interface{}, key string) string {
for actualKey := range value {
if strings.ToLower(key) == strings.ToLower(actualKey) {
return actualKey
}
}
return ""
} | go | func findParamMember(value map[string]interface{}, key string) string {
for actualKey := range value {
if strings.ToLower(key) == strings.ToLower(actualKey) {
return actualKey
}
}
return ""
} | [
"func",
"findParamMember",
"(",
"value",
"map",
"[",
"string",
"]",
"interface",
"{",
"}",
",",
"key",
"string",
")",
"string",
"{",
"for",
"actualKey",
":=",
"range",
"value",
"{",
"if",
"strings",
".",
"ToLower",
"(",
"key",
")",
"==",
"strings",
".",
"ToLower",
"(",
"actualKey",
")",
"{",
"return",
"actualKey",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"\"",
"\"",
"\n",
"}"
] | // findParamMember searches a map for a key ignoring case. Returns the map key if found. | [
"findParamMember",
"searches",
"a",
"map",
"for",
"a",
"key",
"ignoring",
"case",
".",
"Returns",
"the",
"map",
"key",
"if",
"found",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/param_filler.go#L140-L147 |
3,120 | aws/aws-sdk-go | service/apigateway/api.go | SetApiKeyVersion | func (s *Account) SetApiKeyVersion(v string) *Account {
s.ApiKeyVersion = &v
return s
} | go | func (s *Account) SetApiKeyVersion(v string) *Account {
s.ApiKeyVersion = &v
return s
} | [
"func",
"(",
"s",
"*",
"Account",
")",
"SetApiKeyVersion",
"(",
"v",
"string",
")",
"*",
"Account",
"{",
"s",
".",
"ApiKeyVersion",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetApiKeyVersion sets the ApiKeyVersion field's value. | [
"SetApiKeyVersion",
"sets",
"the",
"ApiKeyVersion",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L11407-L11410 |
3,121 | aws/aws-sdk-go | service/apigateway/api.go | SetCloudwatchRoleArn | func (s *Account) SetCloudwatchRoleArn(v string) *Account {
s.CloudwatchRoleArn = &v
return s
} | go | func (s *Account) SetCloudwatchRoleArn(v string) *Account {
s.CloudwatchRoleArn = &v
return s
} | [
"func",
"(",
"s",
"*",
"Account",
")",
"SetCloudwatchRoleArn",
"(",
"v",
"string",
")",
"*",
"Account",
"{",
"s",
".",
"CloudwatchRoleArn",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCloudwatchRoleArn sets the CloudwatchRoleArn field's value. | [
"SetCloudwatchRoleArn",
"sets",
"the",
"CloudwatchRoleArn",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L11413-L11416 |
3,122 | aws/aws-sdk-go | service/apigateway/api.go | SetThrottleSettings | func (s *Account) SetThrottleSettings(v *ThrottleSettings) *Account {
s.ThrottleSettings = v
return s
} | go | func (s *Account) SetThrottleSettings(v *ThrottleSettings) *Account {
s.ThrottleSettings = v
return s
} | [
"func",
"(",
"s",
"*",
"Account",
")",
"SetThrottleSettings",
"(",
"v",
"*",
"ThrottleSettings",
")",
"*",
"Account",
"{",
"s",
".",
"ThrottleSettings",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetThrottleSettings sets the ThrottleSettings field's value. | [
"SetThrottleSettings",
"sets",
"the",
"ThrottleSettings",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L11425-L11428 |
3,123 | aws/aws-sdk-go | service/apigateway/api.go | SetGenerateDistinctId | func (s *CreateApiKeyInput) SetGenerateDistinctId(v bool) *CreateApiKeyInput {
s.GenerateDistinctId = &v
return s
} | go | func (s *CreateApiKeyInput) SetGenerateDistinctId(v bool) *CreateApiKeyInput {
s.GenerateDistinctId = &v
return s
} | [
"func",
"(",
"s",
"*",
"CreateApiKeyInput",
")",
"SetGenerateDistinctId",
"(",
"v",
"bool",
")",
"*",
"CreateApiKeyInput",
"{",
"s",
".",
"GenerateDistinctId",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetGenerateDistinctId sets the GenerateDistinctId field's value. | [
"SetGenerateDistinctId",
"sets",
"the",
"GenerateDistinctId",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L11949-L11952 |
3,124 | aws/aws-sdk-go | service/apigateway/api.go | SetStageDescription | func (s *CreateDeploymentInput) SetStageDescription(v string) *CreateDeploymentInput {
s.StageDescription = &v
return s
} | go | func (s *CreateDeploymentInput) SetStageDescription(v string) *CreateDeploymentInput {
s.StageDescription = &v
return s
} | [
"func",
"(",
"s",
"*",
"CreateDeploymentInput",
")",
"SetStageDescription",
"(",
"v",
"string",
")",
"*",
"CreateDeploymentInput",
"{",
"s",
".",
"StageDescription",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetStageDescription sets the StageDescription field's value. | [
"SetStageDescription",
"sets",
"the",
"StageDescription",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L12319-L12322 |
3,125 | aws/aws-sdk-go | service/apigateway/api.go | SetCertificatePrivateKey | func (s *CreateDomainNameInput) SetCertificatePrivateKey(v string) *CreateDomainNameInput {
s.CertificatePrivateKey = &v
return s
} | go | func (s *CreateDomainNameInput) SetCertificatePrivateKey(v string) *CreateDomainNameInput {
s.CertificatePrivateKey = &v
return s
} | [
"func",
"(",
"s",
"*",
"CreateDomainNameInput",
")",
"SetCertificatePrivateKey",
"(",
"v",
"string",
")",
"*",
"CreateDomainNameInput",
"{",
"s",
".",
"CertificatePrivateKey",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCertificatePrivateKey sets the CertificatePrivateKey field's value. | [
"SetCertificatePrivateKey",
"sets",
"the",
"CertificatePrivateKey",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L12591-L12594 |
3,126 | aws/aws-sdk-go | service/apigateway/api.go | SetCloneFrom | func (s *CreateRestApiInput) SetCloneFrom(v string) *CreateRestApiInput {
s.CloneFrom = &v
return s
} | go | func (s *CreateRestApiInput) SetCloneFrom(v string) *CreateRestApiInput {
s.CloneFrom = &v
return s
} | [
"func",
"(",
"s",
"*",
"CreateRestApiInput",
")",
"SetCloneFrom",
"(",
"v",
"string",
")",
"*",
"CreateRestApiInput",
"{",
"s",
".",
"CloneFrom",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCloneFrom sets the CloneFrom field's value. | [
"SetCloneFrom",
"sets",
"the",
"CloneFrom",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L12934-L12937 |
3,127 | aws/aws-sdk-go | service/apigateway/api.go | SetApiSummary | func (s *Deployment) SetApiSummary(v map[string]map[string]*MethodSnapshot) *Deployment {
s.ApiSummary = v
return s
} | go | func (s *Deployment) SetApiSummary(v map[string]map[string]*MethodSnapshot) *Deployment {
s.ApiSummary = v
return s
} | [
"func",
"(",
"s",
"*",
"Deployment",
")",
"SetApiSummary",
"(",
"v",
"map",
"[",
"string",
"]",
"map",
"[",
"string",
"]",
"*",
"MethodSnapshot",
")",
"*",
"Deployment",
"{",
"s",
".",
"ApiSummary",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetApiSummary sets the ApiSummary field's value. | [
"SetApiSummary",
"sets",
"the",
"ApiSummary",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L14932-L14935 |
3,128 | aws/aws-sdk-go | service/apigateway/api.go | SetDistributionDomainName | func (s *DomainName) SetDistributionDomainName(v string) *DomainName {
s.DistributionDomainName = &v
return s
} | go | func (s *DomainName) SetDistributionDomainName(v string) *DomainName {
s.DistributionDomainName = &v
return s
} | [
"func",
"(",
"s",
"*",
"DomainName",
")",
"SetDistributionDomainName",
"(",
"v",
"string",
")",
"*",
"DomainName",
"{",
"s",
".",
"DistributionDomainName",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDistributionDomainName sets the DistributionDomainName field's value. | [
"SetDistributionDomainName",
"sets",
"the",
"DistributionDomainName",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L15313-L15316 |
3,129 | aws/aws-sdk-go | service/apigateway/api.go | SetDistributionHostedZoneId | func (s *DomainName) SetDistributionHostedZoneId(v string) *DomainName {
s.DistributionHostedZoneId = &v
return s
} | go | func (s *DomainName) SetDistributionHostedZoneId(v string) *DomainName {
s.DistributionHostedZoneId = &v
return s
} | [
"func",
"(",
"s",
"*",
"DomainName",
")",
"SetDistributionHostedZoneId",
"(",
"v",
"string",
")",
"*",
"DomainName",
"{",
"s",
".",
"DistributionHostedZoneId",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDistributionHostedZoneId sets the DistributionHostedZoneId field's value. | [
"SetDistributionHostedZoneId",
"sets",
"the",
"DistributionHostedZoneId",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L15319-L15322 |
3,130 | aws/aws-sdk-go | service/apigateway/api.go | SetRegionalDomainName | func (s *DomainName) SetRegionalDomainName(v string) *DomainName {
s.RegionalDomainName = &v
return s
} | go | func (s *DomainName) SetRegionalDomainName(v string) *DomainName {
s.RegionalDomainName = &v
return s
} | [
"func",
"(",
"s",
"*",
"DomainName",
")",
"SetRegionalDomainName",
"(",
"v",
"string",
")",
"*",
"DomainName",
"{",
"s",
".",
"RegionalDomainName",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetRegionalDomainName sets the RegionalDomainName field's value. | [
"SetRegionalDomainName",
"sets",
"the",
"RegionalDomainName",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L15349-L15352 |
3,131 | aws/aws-sdk-go | service/apigateway/api.go | SetRegionalHostedZoneId | func (s *DomainName) SetRegionalHostedZoneId(v string) *DomainName {
s.RegionalHostedZoneId = &v
return s
} | go | func (s *DomainName) SetRegionalHostedZoneId(v string) *DomainName {
s.RegionalHostedZoneId = &v
return s
} | [
"func",
"(",
"s",
"*",
"DomainName",
")",
"SetRegionalHostedZoneId",
"(",
"v",
"string",
")",
"*",
"DomainName",
"{",
"s",
".",
"RegionalHostedZoneId",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetRegionalHostedZoneId sets the RegionalHostedZoneId field's value. | [
"SetRegionalHostedZoneId",
"sets",
"the",
"RegionalHostedZoneId",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L15355-L15358 |
3,132 | aws/aws-sdk-go | service/apigateway/api.go | SetIncludeValue | func (s *GetApiKeyInput) SetIncludeValue(v bool) *GetApiKeyInput {
s.IncludeValue = &v
return s
} | go | func (s *GetApiKeyInput) SetIncludeValue(v bool) *GetApiKeyInput {
s.IncludeValue = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetApiKeyInput",
")",
"SetIncludeValue",
"(",
"v",
"bool",
")",
"*",
"GetApiKeyInput",
"{",
"s",
".",
"IncludeValue",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetIncludeValue sets the IncludeValue field's value. | [
"SetIncludeValue",
"sets",
"the",
"IncludeValue",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L15620-L15623 |
3,133 | aws/aws-sdk-go | service/apigateway/api.go | SetIncludeValues | func (s *GetApiKeysInput) SetIncludeValues(v bool) *GetApiKeysInput {
s.IncludeValues = &v
return s
} | go | func (s *GetApiKeysInput) SetIncludeValues(v bool) *GetApiKeysInput {
s.IncludeValues = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetApiKeysInput",
")",
"SetIncludeValues",
"(",
"v",
"bool",
")",
"*",
"GetApiKeysInput",
"{",
"s",
".",
"IncludeValues",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetIncludeValues sets the IncludeValues field's value. | [
"SetIncludeValues",
"sets",
"the",
"IncludeValues",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L15665-L15668 |
3,134 | aws/aws-sdk-go | service/apigateway/api.go | SetLocationStatus | func (s *GetDocumentationPartsInput) SetLocationStatus(v string) *GetDocumentationPartsInput {
s.LocationStatus = &v
return s
} | go | func (s *GetDocumentationPartsInput) SetLocationStatus(v string) *GetDocumentationPartsInput {
s.LocationStatus = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetDocumentationPartsInput",
")",
"SetLocationStatus",
"(",
"v",
"string",
")",
"*",
"GetDocumentationPartsInput",
"{",
"s",
".",
"LocationStatus",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetLocationStatus sets the LocationStatus field's value. | [
"SetLocationStatus",
"sets",
"the",
"LocationStatus",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L16455-L16458 |
3,135 | aws/aws-sdk-go | service/apigateway/api.go | SetAccepts | func (s *GetExportInput) SetAccepts(v string) *GetExportInput {
s.Accepts = &v
return s
} | go | func (s *GetExportInput) SetAccepts(v string) *GetExportInput {
s.Accepts = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetExportInput",
")",
"SetAccepts",
"(",
"v",
"string",
")",
"*",
"GetExportInput",
"{",
"s",
".",
"Accepts",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAccepts sets the Accepts field's value. | [
"SetAccepts",
"sets",
"the",
"Accepts",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L16866-L16869 |
3,136 | aws/aws-sdk-go | service/apigateway/api.go | SetFlatten | func (s *GetModelInput) SetFlatten(v bool) *GetModelInput {
s.Flatten = &v
return s
} | go | func (s *GetModelInput) SetFlatten(v bool) *GetModelInput {
s.Flatten = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetModelInput",
")",
"SetFlatten",
"(",
"v",
"bool",
")",
"*",
"GetModelInput",
"{",
"s",
".",
"Flatten",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetFlatten sets the Flatten field's value. | [
"SetFlatten",
"sets",
"the",
"Flatten",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L17665-L17668 |
3,137 | aws/aws-sdk-go | service/apigateway/api.go | SetSdkType | func (s *GetSdkInput) SetSdkType(v string) *GetSdkInput {
s.SdkType = &v
return s
} | go | func (s *GetSdkInput) SetSdkType(v string) *GetSdkInput {
s.SdkType = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetSdkInput",
")",
"SetSdkType",
"(",
"v",
"string",
")",
"*",
"GetSdkInput",
"{",
"s",
".",
"SdkType",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSdkType sets the SdkType field's value. | [
"SetSdkType",
"sets",
"the",
"SdkType",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L18393-L18396 |
3,138 | aws/aws-sdk-go | service/apigateway/api.go | SetIntegrationResponses | func (s *Integration) SetIntegrationResponses(v map[string]*IntegrationResponse) *Integration {
s.IntegrationResponses = v
return s
} | go | func (s *Integration) SetIntegrationResponses(v map[string]*IntegrationResponse) *Integration {
s.IntegrationResponses = v
return s
} | [
"func",
"(",
"s",
"*",
"Integration",
")",
"SetIntegrationResponses",
"(",
"v",
"map",
"[",
"string",
"]",
"*",
"IntegrationResponse",
")",
"*",
"Integration",
"{",
"s",
".",
"IntegrationResponses",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetIntegrationResponses sets the IntegrationResponses field's value. | [
"SetIntegrationResponses",
"sets",
"the",
"IntegrationResponses",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L19789-L19792 |
3,139 | aws/aws-sdk-go | service/apigateway/api.go | SetMethodIntegration | func (s *Method) SetMethodIntegration(v *Integration) *Method {
s.MethodIntegration = v
return s
} | go | func (s *Method) SetMethodIntegration(v *Integration) *Method {
s.MethodIntegration = v
return s
} | [
"func",
"(",
"s",
"*",
"Method",
")",
"SetMethodIntegration",
"(",
"v",
"*",
"Integration",
")",
"*",
"Method",
"{",
"s",
".",
"MethodIntegration",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMethodIntegration sets the MethodIntegration field's value. | [
"SetMethodIntegration",
"sets",
"the",
"MethodIntegration",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L20160-L20163 |
3,140 | aws/aws-sdk-go | service/apigateway/api.go | SetMethodResponses | func (s *Method) SetMethodResponses(v map[string]*MethodResponse) *Method {
s.MethodResponses = v
return s
} | go | func (s *Method) SetMethodResponses(v map[string]*MethodResponse) *Method {
s.MethodResponses = v
return s
} | [
"func",
"(",
"s",
"*",
"Method",
")",
"SetMethodResponses",
"(",
"v",
"map",
"[",
"string",
"]",
"*",
"MethodResponse",
")",
"*",
"Method",
"{",
"s",
".",
"MethodResponses",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMethodResponses sets the MethodResponses field's value. | [
"SetMethodResponses",
"sets",
"the",
"MethodResponses",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L20166-L20169 |
3,141 | aws/aws-sdk-go | service/apigateway/api.go | SetCacheDataEncrypted | func (s *MethodSetting) SetCacheDataEncrypted(v bool) *MethodSetting {
s.CacheDataEncrypted = &v
return s
} | go | func (s *MethodSetting) SetCacheDataEncrypted(v bool) *MethodSetting {
s.CacheDataEncrypted = &v
return s
} | [
"func",
"(",
"s",
"*",
"MethodSetting",
")",
"SetCacheDataEncrypted",
"(",
"v",
"bool",
")",
"*",
"MethodSetting",
"{",
"s",
".",
"CacheDataEncrypted",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCacheDataEncrypted sets the CacheDataEncrypted field's value. | [
"SetCacheDataEncrypted",
"sets",
"the",
"CacheDataEncrypted",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L20341-L20344 |
3,142 | aws/aws-sdk-go | service/apigateway/api.go | SetCacheTtlInSeconds | func (s *MethodSetting) SetCacheTtlInSeconds(v int64) *MethodSetting {
s.CacheTtlInSeconds = &v
return s
} | go | func (s *MethodSetting) SetCacheTtlInSeconds(v int64) *MethodSetting {
s.CacheTtlInSeconds = &v
return s
} | [
"func",
"(",
"s",
"*",
"MethodSetting",
")",
"SetCacheTtlInSeconds",
"(",
"v",
"int64",
")",
"*",
"MethodSetting",
"{",
"s",
".",
"CacheTtlInSeconds",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCacheTtlInSeconds sets the CacheTtlInSeconds field's value. | [
"SetCacheTtlInSeconds",
"sets",
"the",
"CacheTtlInSeconds",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L20347-L20350 |
3,143 | aws/aws-sdk-go | service/apigateway/api.go | SetCachingEnabled | func (s *MethodSetting) SetCachingEnabled(v bool) *MethodSetting {
s.CachingEnabled = &v
return s
} | go | func (s *MethodSetting) SetCachingEnabled(v bool) *MethodSetting {
s.CachingEnabled = &v
return s
} | [
"func",
"(",
"s",
"*",
"MethodSetting",
")",
"SetCachingEnabled",
"(",
"v",
"bool",
")",
"*",
"MethodSetting",
"{",
"s",
".",
"CachingEnabled",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCachingEnabled sets the CachingEnabled field's value. | [
"SetCachingEnabled",
"sets",
"the",
"CachingEnabled",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L20353-L20356 |
3,144 | aws/aws-sdk-go | service/apigateway/api.go | SetMetricsEnabled | func (s *MethodSetting) SetMetricsEnabled(v bool) *MethodSetting {
s.MetricsEnabled = &v
return s
} | go | func (s *MethodSetting) SetMetricsEnabled(v bool) *MethodSetting {
s.MetricsEnabled = &v
return s
} | [
"func",
"(",
"s",
"*",
"MethodSetting",
")",
"SetMetricsEnabled",
"(",
"v",
"bool",
")",
"*",
"MethodSetting",
"{",
"s",
".",
"MetricsEnabled",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMetricsEnabled sets the MetricsEnabled field's value. | [
"SetMetricsEnabled",
"sets",
"the",
"MetricsEnabled",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L20371-L20374 |
3,145 | aws/aws-sdk-go | service/apigateway/api.go | SetRequireAuthorizationForCacheControl | func (s *MethodSetting) SetRequireAuthorizationForCacheControl(v bool) *MethodSetting {
s.RequireAuthorizationForCacheControl = &v
return s
} | go | func (s *MethodSetting) SetRequireAuthorizationForCacheControl(v bool) *MethodSetting {
s.RequireAuthorizationForCacheControl = &v
return s
} | [
"func",
"(",
"s",
"*",
"MethodSetting",
")",
"SetRequireAuthorizationForCacheControl",
"(",
"v",
"bool",
")",
"*",
"MethodSetting",
"{",
"s",
".",
"RequireAuthorizationForCacheControl",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetRequireAuthorizationForCacheControl sets the RequireAuthorizationForCacheControl field's value. | [
"SetRequireAuthorizationForCacheControl",
"sets",
"the",
"RequireAuthorizationForCacheControl",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L20377-L20380 |
3,146 | aws/aws-sdk-go | service/apigateway/api.go | SetUnauthorizedCacheControlHeaderStrategy | func (s *MethodSetting) SetUnauthorizedCacheControlHeaderStrategy(v string) *MethodSetting {
s.UnauthorizedCacheControlHeaderStrategy = &v
return s
} | go | func (s *MethodSetting) SetUnauthorizedCacheControlHeaderStrategy(v string) *MethodSetting {
s.UnauthorizedCacheControlHeaderStrategy = &v
return s
} | [
"func",
"(",
"s",
"*",
"MethodSetting",
")",
"SetUnauthorizedCacheControlHeaderStrategy",
"(",
"v",
"string",
")",
"*",
"MethodSetting",
"{",
"s",
".",
"UnauthorizedCacheControlHeaderStrategy",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetUnauthorizedCacheControlHeaderStrategy sets the UnauthorizedCacheControlHeaderStrategy field's value. | [
"SetUnauthorizedCacheControlHeaderStrategy",
"sets",
"the",
"UnauthorizedCacheControlHeaderStrategy",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L20395-L20398 |
3,147 | aws/aws-sdk-go | service/apigateway/api.go | SetIntegrationHttpMethod | func (s *PutIntegrationInput) SetIntegrationHttpMethod(v string) *PutIntegrationInput {
s.IntegrationHttpMethod = &v
return s
} | go | func (s *PutIntegrationInput) SetIntegrationHttpMethod(v string) *PutIntegrationInput {
s.IntegrationHttpMethod = &v
return s
} | [
"func",
"(",
"s",
"*",
"PutIntegrationInput",
")",
"SetIntegrationHttpMethod",
"(",
"v",
"string",
")",
"*",
"PutIntegrationInput",
"{",
"s",
".",
"IntegrationHttpMethod",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetIntegrationHttpMethod sets the IntegrationHttpMethod field's value. | [
"SetIntegrationHttpMethod",
"sets",
"the",
"IntegrationHttpMethod",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L20895-L20898 |
3,148 | aws/aws-sdk-go | service/apigateway/api.go | SetResourceMethods | func (s *Resource) SetResourceMethods(v map[string]*Method) *Resource {
s.ResourceMethods = v
return s
} | go | func (s *Resource) SetResourceMethods(v map[string]*Method) *Resource {
s.ResourceMethods = v
return s
} | [
"func",
"(",
"s",
"*",
"Resource",
")",
"SetResourceMethods",
"(",
"v",
"map",
"[",
"string",
"]",
"*",
"Method",
")",
"*",
"Resource",
"{",
"s",
".",
"ResourceMethods",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetResourceMethods sets the ResourceMethods field's value. | [
"SetResourceMethods",
"sets",
"the",
"ResourceMethods",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L21643-L21646 |
3,149 | aws/aws-sdk-go | service/apigateway/api.go | SetMethodSettings | func (s *Stage) SetMethodSettings(v map[string]*MethodSetting) *Stage {
s.MethodSettings = v
return s
} | go | func (s *Stage) SetMethodSettings(v map[string]*MethodSetting) *Stage {
s.MethodSettings = v
return s
} | [
"func",
"(",
"s",
"*",
"Stage",
")",
"SetMethodSettings",
"(",
"v",
"map",
"[",
"string",
"]",
"*",
"MethodSetting",
")",
"*",
"Stage",
"{",
"s",
".",
"MethodSettings",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMethodSettings sets the MethodSettings field's value. | [
"SetMethodSettings",
"sets",
"the",
"MethodSettings",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L22031-L22034 |
3,150 | aws/aws-sdk-go | service/apigateway/api.go | SetWebAclArn | func (s *Stage) SetWebAclArn(v string) *Stage {
s.WebAclArn = &v
return s
} | go | func (s *Stage) SetWebAclArn(v string) *Stage {
s.WebAclArn = &v
return s
} | [
"func",
"(",
"s",
"*",
"Stage",
")",
"SetWebAclArn",
"(",
"v",
"string",
")",
"*",
"Stage",
"{",
"s",
".",
"WebAclArn",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetWebAclArn sets the WebAclArn field's value. | [
"SetWebAclArn",
"sets",
"the",
"WebAclArn",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L22061-L22064 |
3,151 | aws/aws-sdk-go | service/apigateway/api.go | SetAdditionalContext | func (s *TestInvokeAuthorizerInput) SetAdditionalContext(v map[string]*string) *TestInvokeAuthorizerInput {
s.AdditionalContext = v
return s
} | go | func (s *TestInvokeAuthorizerInput) SetAdditionalContext(v map[string]*string) *TestInvokeAuthorizerInput {
s.AdditionalContext = v
return s
} | [
"func",
"(",
"s",
"*",
"TestInvokeAuthorizerInput",
")",
"SetAdditionalContext",
"(",
"v",
"map",
"[",
"string",
"]",
"*",
"string",
")",
"*",
"TestInvokeAuthorizerInput",
"{",
"s",
".",
"AdditionalContext",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAdditionalContext sets the AdditionalContext field's value. | [
"SetAdditionalContext",
"sets",
"the",
"AdditionalContext",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L22244-L22247 |
3,152 | aws/aws-sdk-go | service/apigateway/api.go | SetAuthorization | func (s *TestInvokeAuthorizerOutput) SetAuthorization(v map[string][]*string) *TestInvokeAuthorizerOutput {
s.Authorization = v
return s
} | go | func (s *TestInvokeAuthorizerOutput) SetAuthorization(v map[string][]*string) *TestInvokeAuthorizerOutput {
s.Authorization = v
return s
} | [
"func",
"(",
"s",
"*",
"TestInvokeAuthorizerOutput",
")",
"SetAuthorization",
"(",
"v",
"map",
"[",
"string",
"]",
"[",
"]",
"*",
"string",
")",
"*",
"TestInvokeAuthorizerOutput",
"{",
"s",
".",
"Authorization",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAuthorization sets the Authorization field's value. | [
"SetAuthorization",
"sets",
"the",
"Authorization",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L22330-L22333 |
3,153 | aws/aws-sdk-go | service/apigateway/api.go | SetClaims | func (s *TestInvokeAuthorizerOutput) SetClaims(v map[string]*string) *TestInvokeAuthorizerOutput {
s.Claims = v
return s
} | go | func (s *TestInvokeAuthorizerOutput) SetClaims(v map[string]*string) *TestInvokeAuthorizerOutput {
s.Claims = v
return s
} | [
"func",
"(",
"s",
"*",
"TestInvokeAuthorizerOutput",
")",
"SetClaims",
"(",
"v",
"map",
"[",
"string",
"]",
"*",
"string",
")",
"*",
"TestInvokeAuthorizerOutput",
"{",
"s",
".",
"Claims",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetClaims sets the Claims field's value. | [
"SetClaims",
"sets",
"the",
"Claims",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L22336-L22339 |
3,154 | aws/aws-sdk-go | service/apigateway/api.go | SetClientStatus | func (s *TestInvokeAuthorizerOutput) SetClientStatus(v int64) *TestInvokeAuthorizerOutput {
s.ClientStatus = &v
return s
} | go | func (s *TestInvokeAuthorizerOutput) SetClientStatus(v int64) *TestInvokeAuthorizerOutput {
s.ClientStatus = &v
return s
} | [
"func",
"(",
"s",
"*",
"TestInvokeAuthorizerOutput",
")",
"SetClientStatus",
"(",
"v",
"int64",
")",
"*",
"TestInvokeAuthorizerOutput",
"{",
"s",
".",
"ClientStatus",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetClientStatus sets the ClientStatus field's value. | [
"SetClientStatus",
"sets",
"the",
"ClientStatus",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L22342-L22345 |
3,155 | aws/aws-sdk-go | service/apigateway/api.go | SetBurstLimit | func (s *ThrottleSettings) SetBurstLimit(v int64) *ThrottleSettings {
s.BurstLimit = &v
return s
} | go | func (s *ThrottleSettings) SetBurstLimit(v int64) *ThrottleSettings {
s.BurstLimit = &v
return s
} | [
"func",
"(",
"s",
"*",
"ThrottleSettings",
")",
"SetBurstLimit",
"(",
"v",
"int64",
")",
"*",
"ThrottleSettings",
"{",
"s",
".",
"BurstLimit",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetBurstLimit sets the BurstLimit field's value. | [
"SetBurstLimit",
"sets",
"the",
"BurstLimit",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L22601-L22604 |
3,156 | aws/aws-sdk-go | service/apigateway/api.go | SetDefaultResponse | func (s *UpdateGatewayResponseOutput) SetDefaultResponse(v bool) *UpdateGatewayResponseOutput {
s.DefaultResponse = &v
return s
} | go | func (s *UpdateGatewayResponseOutput) SetDefaultResponse(v bool) *UpdateGatewayResponseOutput {
s.DefaultResponse = &v
return s
} | [
"func",
"(",
"s",
"*",
"UpdateGatewayResponseOutput",
")",
"SetDefaultResponse",
"(",
"v",
"bool",
")",
"*",
"UpdateGatewayResponseOutput",
"{",
"s",
".",
"DefaultResponse",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDefaultResponse sets the DefaultResponse field's value. | [
"SetDefaultResponse",
"sets",
"the",
"DefaultResponse",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/apigateway/api.go#L23394-L23397 |
3,157 | aws/aws-sdk-go | service/route53/waiters.go | WaitUntilResourceRecordSetsChanged | func (c *Route53) WaitUntilResourceRecordSetsChanged(input *GetChangeInput) error {
return c.WaitUntilResourceRecordSetsChangedWithContext(aws.BackgroundContext(), input)
} | go | func (c *Route53) WaitUntilResourceRecordSetsChanged(input *GetChangeInput) error {
return c.WaitUntilResourceRecordSetsChangedWithContext(aws.BackgroundContext(), input)
} | [
"func",
"(",
"c",
"*",
"Route53",
")",
"WaitUntilResourceRecordSetsChanged",
"(",
"input",
"*",
"GetChangeInput",
")",
"error",
"{",
"return",
"c",
".",
"WaitUntilResourceRecordSetsChangedWithContext",
"(",
"aws",
".",
"BackgroundContext",
"(",
")",
",",
"input",
")",
"\n",
"}"
] | // WaitUntilResourceRecordSetsChanged uses the Route 53 API operation
// GetChange 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. | [
"WaitUntilResourceRecordSetsChanged",
"uses",
"the",
"Route",
"53",
"API",
"operation",
"GetChange",
"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/route53/waiters.go#L16-L18 |
3,158 | aws/aws-sdk-go | service/s3/s3crypto/strategy.go | Save | func (strat S3SaveStrategy) Save(env Envelope, req *request.Request) error {
input := req.Params.(*s3.PutObjectInput)
b, err := json.Marshal(env)
if err != nil {
return err
}
instInput := s3.PutObjectInput{
Bucket: input.Bucket,
Body: bytes.NewReader(b),
}
if strat.InstructionFileSuffix == "" {
instInput.Key = aws.String(*input.Key + DefaultInstructionKeySuffix)
} else {
instInput.Key = aws.String(*input.Key + strat.InstructionFileSuffix)
}
_, err = strat.Client.PutObject(&instInput)
return err
} | go | func (strat S3SaveStrategy) Save(env Envelope, req *request.Request) error {
input := req.Params.(*s3.PutObjectInput)
b, err := json.Marshal(env)
if err != nil {
return err
}
instInput := s3.PutObjectInput{
Bucket: input.Bucket,
Body: bytes.NewReader(b),
}
if strat.InstructionFileSuffix == "" {
instInput.Key = aws.String(*input.Key + DefaultInstructionKeySuffix)
} else {
instInput.Key = aws.String(*input.Key + strat.InstructionFileSuffix)
}
_, err = strat.Client.PutObject(&instInput)
return err
} | [
"func",
"(",
"strat",
"S3SaveStrategy",
")",
"Save",
"(",
"env",
"Envelope",
",",
"req",
"*",
"request",
".",
"Request",
")",
"error",
"{",
"input",
":=",
"req",
".",
"Params",
".",
"(",
"*",
"s3",
".",
"PutObjectInput",
")",
"\n",
"b",
",",
"err",
":=",
"json",
".",
"Marshal",
"(",
"env",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"err",
"\n",
"}",
"\n\n",
"instInput",
":=",
"s3",
".",
"PutObjectInput",
"{",
"Bucket",
":",
"input",
".",
"Bucket",
",",
"Body",
":",
"bytes",
".",
"NewReader",
"(",
"b",
")",
",",
"}",
"\n\n",
"if",
"strat",
".",
"InstructionFileSuffix",
"==",
"\"",
"\"",
"{",
"instInput",
".",
"Key",
"=",
"aws",
".",
"String",
"(",
"*",
"input",
".",
"Key",
"+",
"DefaultInstructionKeySuffix",
")",
"\n",
"}",
"else",
"{",
"instInput",
".",
"Key",
"=",
"aws",
".",
"String",
"(",
"*",
"input",
".",
"Key",
"+",
"strat",
".",
"InstructionFileSuffix",
")",
"\n",
"}",
"\n\n",
"_",
",",
"err",
"=",
"strat",
".",
"Client",
".",
"PutObject",
"(",
"&",
"instInput",
")",
"\n",
"return",
"err",
"\n",
"}"
] | // Save will save the envelope contents to s3. | [
"Save",
"will",
"save",
"the",
"envelope",
"contents",
"to",
"s3",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3crypto/strategy.go#L28-L48 |
3,159 | aws/aws-sdk-go | service/s3/s3crypto/strategy.go | Save | func (strat HeaderV2SaveStrategy) Save(env Envelope, req *request.Request) error {
input := req.Params.(*s3.PutObjectInput)
if input.Metadata == nil {
input.Metadata = map[string]*string{}
}
input.Metadata[http.CanonicalHeaderKey(keyV2Header)] = &env.CipherKey
input.Metadata[http.CanonicalHeaderKey(ivHeader)] = &env.IV
input.Metadata[http.CanonicalHeaderKey(matDescHeader)] = &env.MatDesc
input.Metadata[http.CanonicalHeaderKey(wrapAlgorithmHeader)] = &env.WrapAlg
input.Metadata[http.CanonicalHeaderKey(cekAlgorithmHeader)] = &env.CEKAlg
input.Metadata[http.CanonicalHeaderKey(unencryptedMD5Header)] = &env.UnencryptedMD5
input.Metadata[http.CanonicalHeaderKey(unencryptedContentLengthHeader)] = &env.UnencryptedContentLen
if len(env.TagLen) > 0 {
input.Metadata[http.CanonicalHeaderKey(tagLengthHeader)] = &env.TagLen
}
return nil
} | go | func (strat HeaderV2SaveStrategy) Save(env Envelope, req *request.Request) error {
input := req.Params.(*s3.PutObjectInput)
if input.Metadata == nil {
input.Metadata = map[string]*string{}
}
input.Metadata[http.CanonicalHeaderKey(keyV2Header)] = &env.CipherKey
input.Metadata[http.CanonicalHeaderKey(ivHeader)] = &env.IV
input.Metadata[http.CanonicalHeaderKey(matDescHeader)] = &env.MatDesc
input.Metadata[http.CanonicalHeaderKey(wrapAlgorithmHeader)] = &env.WrapAlg
input.Metadata[http.CanonicalHeaderKey(cekAlgorithmHeader)] = &env.CEKAlg
input.Metadata[http.CanonicalHeaderKey(unencryptedMD5Header)] = &env.UnencryptedMD5
input.Metadata[http.CanonicalHeaderKey(unencryptedContentLengthHeader)] = &env.UnencryptedContentLen
if len(env.TagLen) > 0 {
input.Metadata[http.CanonicalHeaderKey(tagLengthHeader)] = &env.TagLen
}
return nil
} | [
"func",
"(",
"strat",
"HeaderV2SaveStrategy",
")",
"Save",
"(",
"env",
"Envelope",
",",
"req",
"*",
"request",
".",
"Request",
")",
"error",
"{",
"input",
":=",
"req",
".",
"Params",
".",
"(",
"*",
"s3",
".",
"PutObjectInput",
")",
"\n",
"if",
"input",
".",
"Metadata",
"==",
"nil",
"{",
"input",
".",
"Metadata",
"=",
"map",
"[",
"string",
"]",
"*",
"string",
"{",
"}",
"\n",
"}",
"\n\n",
"input",
".",
"Metadata",
"[",
"http",
".",
"CanonicalHeaderKey",
"(",
"keyV2Header",
")",
"]",
"=",
"&",
"env",
".",
"CipherKey",
"\n",
"input",
".",
"Metadata",
"[",
"http",
".",
"CanonicalHeaderKey",
"(",
"ivHeader",
")",
"]",
"=",
"&",
"env",
".",
"IV",
"\n",
"input",
".",
"Metadata",
"[",
"http",
".",
"CanonicalHeaderKey",
"(",
"matDescHeader",
")",
"]",
"=",
"&",
"env",
".",
"MatDesc",
"\n",
"input",
".",
"Metadata",
"[",
"http",
".",
"CanonicalHeaderKey",
"(",
"wrapAlgorithmHeader",
")",
"]",
"=",
"&",
"env",
".",
"WrapAlg",
"\n",
"input",
".",
"Metadata",
"[",
"http",
".",
"CanonicalHeaderKey",
"(",
"cekAlgorithmHeader",
")",
"]",
"=",
"&",
"env",
".",
"CEKAlg",
"\n",
"input",
".",
"Metadata",
"[",
"http",
".",
"CanonicalHeaderKey",
"(",
"unencryptedMD5Header",
")",
"]",
"=",
"&",
"env",
".",
"UnencryptedMD5",
"\n",
"input",
".",
"Metadata",
"[",
"http",
".",
"CanonicalHeaderKey",
"(",
"unencryptedContentLengthHeader",
")",
"]",
"=",
"&",
"env",
".",
"UnencryptedContentLen",
"\n\n",
"if",
"len",
"(",
"env",
".",
"TagLen",
")",
">",
"0",
"{",
"input",
".",
"Metadata",
"[",
"http",
".",
"CanonicalHeaderKey",
"(",
"tagLengthHeader",
")",
"]",
"=",
"&",
"env",
".",
"TagLen",
"\n",
"}",
"\n",
"return",
"nil",
"\n",
"}"
] | // Save will save the envelope to the request's header. | [
"Save",
"will",
"save",
"the",
"envelope",
"to",
"the",
"request",
"s",
"header",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3crypto/strategy.go#L55-L73 |
3,160 | aws/aws-sdk-go | service/s3/s3crypto/strategy.go | Load | func (load S3LoadStrategy) Load(req *request.Request) (Envelope, error) {
env := Envelope{}
if load.InstructionFileSuffix == "" {
load.InstructionFileSuffix = DefaultInstructionKeySuffix
}
input := req.Params.(*s3.GetObjectInput)
out, err := load.Client.GetObject(&s3.GetObjectInput{
Key: aws.String(strings.Join([]string{*input.Key, load.InstructionFileSuffix}, "")),
Bucket: input.Bucket,
})
if err != nil {
return env, err
}
b, err := ioutil.ReadAll(out.Body)
if err != nil {
return env, err
}
err = json.Unmarshal(b, &env)
return env, err
} | go | func (load S3LoadStrategy) Load(req *request.Request) (Envelope, error) {
env := Envelope{}
if load.InstructionFileSuffix == "" {
load.InstructionFileSuffix = DefaultInstructionKeySuffix
}
input := req.Params.(*s3.GetObjectInput)
out, err := load.Client.GetObject(&s3.GetObjectInput{
Key: aws.String(strings.Join([]string{*input.Key, load.InstructionFileSuffix}, "")),
Bucket: input.Bucket,
})
if err != nil {
return env, err
}
b, err := ioutil.ReadAll(out.Body)
if err != nil {
return env, err
}
err = json.Unmarshal(b, &env)
return env, err
} | [
"func",
"(",
"load",
"S3LoadStrategy",
")",
"Load",
"(",
"req",
"*",
"request",
".",
"Request",
")",
"(",
"Envelope",
",",
"error",
")",
"{",
"env",
":=",
"Envelope",
"{",
"}",
"\n",
"if",
"load",
".",
"InstructionFileSuffix",
"==",
"\"",
"\"",
"{",
"load",
".",
"InstructionFileSuffix",
"=",
"DefaultInstructionKeySuffix",
"\n",
"}",
"\n\n",
"input",
":=",
"req",
".",
"Params",
".",
"(",
"*",
"s3",
".",
"GetObjectInput",
")",
"\n",
"out",
",",
"err",
":=",
"load",
".",
"Client",
".",
"GetObject",
"(",
"&",
"s3",
".",
"GetObjectInput",
"{",
"Key",
":",
"aws",
".",
"String",
"(",
"strings",
".",
"Join",
"(",
"[",
"]",
"string",
"{",
"*",
"input",
".",
"Key",
",",
"load",
".",
"InstructionFileSuffix",
"}",
",",
"\"",
"\"",
")",
")",
",",
"Bucket",
":",
"input",
".",
"Bucket",
",",
"}",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"env",
",",
"err",
"\n",
"}",
"\n\n",
"b",
",",
"err",
":=",
"ioutil",
".",
"ReadAll",
"(",
"out",
".",
"Body",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"env",
",",
"err",
"\n",
"}",
"\n",
"err",
"=",
"json",
".",
"Unmarshal",
"(",
"b",
",",
"&",
"env",
")",
"\n",
"return",
"env",
",",
"err",
"\n",
"}"
] | // Load from a given instruction file suffix | [
"Load",
"from",
"a",
"given",
"instruction",
"file",
"suffix"
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3crypto/strategy.go#L87-L108 |
3,161 | aws/aws-sdk-go | service/s3/s3crypto/strategy.go | Load | func (load HeaderV2LoadStrategy) Load(req *request.Request) (Envelope, error) {
env := Envelope{}
env.CipherKey = req.HTTPResponse.Header.Get(strings.Join([]string{metaHeader, keyV2Header}, "-"))
env.IV = req.HTTPResponse.Header.Get(strings.Join([]string{metaHeader, ivHeader}, "-"))
env.MatDesc = req.HTTPResponse.Header.Get(strings.Join([]string{metaHeader, matDescHeader}, "-"))
env.WrapAlg = req.HTTPResponse.Header.Get(strings.Join([]string{metaHeader, wrapAlgorithmHeader}, "-"))
env.CEKAlg = req.HTTPResponse.Header.Get(strings.Join([]string{metaHeader, cekAlgorithmHeader}, "-"))
env.TagLen = req.HTTPResponse.Header.Get(strings.Join([]string{metaHeader, tagLengthHeader}, "-"))
env.UnencryptedMD5 = req.HTTPResponse.Header.Get(strings.Join([]string{metaHeader, unencryptedMD5Header}, "-"))
env.UnencryptedContentLen = req.HTTPResponse.Header.Get(strings.Join([]string{metaHeader, unencryptedContentLengthHeader}, "-"))
return env, nil
} | go | func (load HeaderV2LoadStrategy) Load(req *request.Request) (Envelope, error) {
env := Envelope{}
env.CipherKey = req.HTTPResponse.Header.Get(strings.Join([]string{metaHeader, keyV2Header}, "-"))
env.IV = req.HTTPResponse.Header.Get(strings.Join([]string{metaHeader, ivHeader}, "-"))
env.MatDesc = req.HTTPResponse.Header.Get(strings.Join([]string{metaHeader, matDescHeader}, "-"))
env.WrapAlg = req.HTTPResponse.Header.Get(strings.Join([]string{metaHeader, wrapAlgorithmHeader}, "-"))
env.CEKAlg = req.HTTPResponse.Header.Get(strings.Join([]string{metaHeader, cekAlgorithmHeader}, "-"))
env.TagLen = req.HTTPResponse.Header.Get(strings.Join([]string{metaHeader, tagLengthHeader}, "-"))
env.UnencryptedMD5 = req.HTTPResponse.Header.Get(strings.Join([]string{metaHeader, unencryptedMD5Header}, "-"))
env.UnencryptedContentLen = req.HTTPResponse.Header.Get(strings.Join([]string{metaHeader, unencryptedContentLengthHeader}, "-"))
return env, nil
} | [
"func",
"(",
"load",
"HeaderV2LoadStrategy",
")",
"Load",
"(",
"req",
"*",
"request",
".",
"Request",
")",
"(",
"Envelope",
",",
"error",
")",
"{",
"env",
":=",
"Envelope",
"{",
"}",
"\n",
"env",
".",
"CipherKey",
"=",
"req",
".",
"HTTPResponse",
".",
"Header",
".",
"Get",
"(",
"strings",
".",
"Join",
"(",
"[",
"]",
"string",
"{",
"metaHeader",
",",
"keyV2Header",
"}",
",",
"\"",
"\"",
")",
")",
"\n",
"env",
".",
"IV",
"=",
"req",
".",
"HTTPResponse",
".",
"Header",
".",
"Get",
"(",
"strings",
".",
"Join",
"(",
"[",
"]",
"string",
"{",
"metaHeader",
",",
"ivHeader",
"}",
",",
"\"",
"\"",
")",
")",
"\n",
"env",
".",
"MatDesc",
"=",
"req",
".",
"HTTPResponse",
".",
"Header",
".",
"Get",
"(",
"strings",
".",
"Join",
"(",
"[",
"]",
"string",
"{",
"metaHeader",
",",
"matDescHeader",
"}",
",",
"\"",
"\"",
")",
")",
"\n",
"env",
".",
"WrapAlg",
"=",
"req",
".",
"HTTPResponse",
".",
"Header",
".",
"Get",
"(",
"strings",
".",
"Join",
"(",
"[",
"]",
"string",
"{",
"metaHeader",
",",
"wrapAlgorithmHeader",
"}",
",",
"\"",
"\"",
")",
")",
"\n",
"env",
".",
"CEKAlg",
"=",
"req",
".",
"HTTPResponse",
".",
"Header",
".",
"Get",
"(",
"strings",
".",
"Join",
"(",
"[",
"]",
"string",
"{",
"metaHeader",
",",
"cekAlgorithmHeader",
"}",
",",
"\"",
"\"",
")",
")",
"\n",
"env",
".",
"TagLen",
"=",
"req",
".",
"HTTPResponse",
".",
"Header",
".",
"Get",
"(",
"strings",
".",
"Join",
"(",
"[",
"]",
"string",
"{",
"metaHeader",
",",
"tagLengthHeader",
"}",
",",
"\"",
"\"",
")",
")",
"\n",
"env",
".",
"UnencryptedMD5",
"=",
"req",
".",
"HTTPResponse",
".",
"Header",
".",
"Get",
"(",
"strings",
".",
"Join",
"(",
"[",
"]",
"string",
"{",
"metaHeader",
",",
"unencryptedMD5Header",
"}",
",",
"\"",
"\"",
")",
")",
"\n",
"env",
".",
"UnencryptedContentLen",
"=",
"req",
".",
"HTTPResponse",
".",
"Header",
".",
"Get",
"(",
"strings",
".",
"Join",
"(",
"[",
"]",
"string",
"{",
"metaHeader",
",",
"unencryptedContentLengthHeader",
"}",
",",
"\"",
"\"",
")",
")",
"\n",
"return",
"env",
",",
"nil",
"\n",
"}"
] | // Load from a given object's header | [
"Load",
"from",
"a",
"given",
"object",
"s",
"header"
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3crypto/strategy.go#L114-L125 |
3,162 | aws/aws-sdk-go | service/s3/s3manager/bucket_region.go | GetBucketRegionWithClient | func GetBucketRegionWithClient(ctx aws.Context, svc s3iface.S3API, bucket string, opts ...request.Option) (string, error) {
req, _ := svc.HeadBucketRequest(&s3.HeadBucketInput{
Bucket: aws.String(bucket),
})
req.Config.S3ForcePathStyle = aws.Bool(true)
req.Config.Credentials = credentials.AnonymousCredentials
req.SetContext(ctx)
// Disable HTTP redirects to prevent an invalid 301 from eating the response
// because Go's HTTP client will fail, and drop the response if an 301 is
// received without a location header. S3 will return a 301 without the
// location header for HeadObject API calls.
req.DisableFollowRedirects = true
var bucketRegion string
req.Handlers.Send.PushBack(func(r *request.Request) {
bucketRegion = r.HTTPResponse.Header.Get(bucketRegionHeader)
if len(bucketRegion) == 0 {
return
}
r.HTTPResponse.StatusCode = 200
r.HTTPResponse.Status = "OK"
r.Error = nil
})
req.ApplyOptions(opts...)
if err := req.Send(); err != nil {
return "", err
}
bucketRegion = s3.NormalizeBucketLocation(bucketRegion)
return bucketRegion, nil
} | go | func GetBucketRegionWithClient(ctx aws.Context, svc s3iface.S3API, bucket string, opts ...request.Option) (string, error) {
req, _ := svc.HeadBucketRequest(&s3.HeadBucketInput{
Bucket: aws.String(bucket),
})
req.Config.S3ForcePathStyle = aws.Bool(true)
req.Config.Credentials = credentials.AnonymousCredentials
req.SetContext(ctx)
// Disable HTTP redirects to prevent an invalid 301 from eating the response
// because Go's HTTP client will fail, and drop the response if an 301 is
// received without a location header. S3 will return a 301 without the
// location header for HeadObject API calls.
req.DisableFollowRedirects = true
var bucketRegion string
req.Handlers.Send.PushBack(func(r *request.Request) {
bucketRegion = r.HTTPResponse.Header.Get(bucketRegionHeader)
if len(bucketRegion) == 0 {
return
}
r.HTTPResponse.StatusCode = 200
r.HTTPResponse.Status = "OK"
r.Error = nil
})
req.ApplyOptions(opts...)
if err := req.Send(); err != nil {
return "", err
}
bucketRegion = s3.NormalizeBucketLocation(bucketRegion)
return bucketRegion, nil
} | [
"func",
"GetBucketRegionWithClient",
"(",
"ctx",
"aws",
".",
"Context",
",",
"svc",
"s3iface",
".",
"S3API",
",",
"bucket",
"string",
",",
"opts",
"...",
"request",
".",
"Option",
")",
"(",
"string",
",",
"error",
")",
"{",
"req",
",",
"_",
":=",
"svc",
".",
"HeadBucketRequest",
"(",
"&",
"s3",
".",
"HeadBucketInput",
"{",
"Bucket",
":",
"aws",
".",
"String",
"(",
"bucket",
")",
",",
"}",
")",
"\n",
"req",
".",
"Config",
".",
"S3ForcePathStyle",
"=",
"aws",
".",
"Bool",
"(",
"true",
")",
"\n",
"req",
".",
"Config",
".",
"Credentials",
"=",
"credentials",
".",
"AnonymousCredentials",
"\n",
"req",
".",
"SetContext",
"(",
"ctx",
")",
"\n\n",
"// Disable HTTP redirects to prevent an invalid 301 from eating the response",
"// because Go's HTTP client will fail, and drop the response if an 301 is",
"// received without a location header. S3 will return a 301 without the",
"// location header for HeadObject API calls.",
"req",
".",
"DisableFollowRedirects",
"=",
"true",
"\n\n",
"var",
"bucketRegion",
"string",
"\n",
"req",
".",
"Handlers",
".",
"Send",
".",
"PushBack",
"(",
"func",
"(",
"r",
"*",
"request",
".",
"Request",
")",
"{",
"bucketRegion",
"=",
"r",
".",
"HTTPResponse",
".",
"Header",
".",
"Get",
"(",
"bucketRegionHeader",
")",
"\n",
"if",
"len",
"(",
"bucketRegion",
")",
"==",
"0",
"{",
"return",
"\n",
"}",
"\n",
"r",
".",
"HTTPResponse",
".",
"StatusCode",
"=",
"200",
"\n",
"r",
".",
"HTTPResponse",
".",
"Status",
"=",
"\"",
"\"",
"\n",
"r",
".",
"Error",
"=",
"nil",
"\n",
"}",
")",
"\n\n",
"req",
".",
"ApplyOptions",
"(",
"opts",
"...",
")",
"\n\n",
"if",
"err",
":=",
"req",
".",
"Send",
"(",
")",
";",
"err",
"!=",
"nil",
"{",
"return",
"\"",
"\"",
",",
"err",
"\n",
"}",
"\n\n",
"bucketRegion",
"=",
"s3",
".",
"NormalizeBucketLocation",
"(",
"bucketRegion",
")",
"\n\n",
"return",
"bucketRegion",
",",
"nil",
"\n",
"}"
] | // GetBucketRegionWithClient is the same as GetBucketRegion with the exception
// that it takes a S3 service client instead of a Session. The regionHint is
// derived from the region the S3 service client was created in.
//
// See GetBucketRegion for more information. | [
"GetBucketRegionWithClient",
"is",
"the",
"same",
"as",
"GetBucketRegion",
"with",
"the",
"exception",
"that",
"it",
"takes",
"a",
"S3",
"service",
"client",
"instead",
"of",
"a",
"Session",
".",
"The",
"regionHint",
"is",
"derived",
"from",
"the",
"region",
"the",
"S3",
"service",
"client",
"was",
"created",
"in",
".",
"See",
"GetBucketRegion",
"for",
"more",
"information",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/bucket_region.go#L54-L88 |
3,163 | aws/aws-sdk-go | service/mobile/api.go | SetAvailablePlatforms | func (s *BundleDetails) SetAvailablePlatforms(v []*string) *BundleDetails {
s.AvailablePlatforms = v
return s
} | go | func (s *BundleDetails) SetAvailablePlatforms(v []*string) *BundleDetails {
s.AvailablePlatforms = v
return s
} | [
"func",
"(",
"s",
"*",
"BundleDetails",
")",
"SetAvailablePlatforms",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"BundleDetails",
"{",
"s",
".",
"AvailablePlatforms",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAvailablePlatforms sets the AvailablePlatforms field's value. | [
"SetAvailablePlatforms",
"sets",
"the",
"AvailablePlatforms",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mobile/api.go#L1049-L1052 |
3,164 | aws/aws-sdk-go | service/mobile/api.go | SetDeletedResources | func (s *DeleteProjectOutput) SetDeletedResources(v []*Resource) *DeleteProjectOutput {
s.DeletedResources = v
return s
} | go | func (s *DeleteProjectOutput) SetDeletedResources(v []*Resource) *DeleteProjectOutput {
s.DeletedResources = v
return s
} | [
"func",
"(",
"s",
"*",
"DeleteProjectOutput",
")",
"SetDeletedResources",
"(",
"v",
"[",
"]",
"*",
"Resource",
")",
"*",
"DeleteProjectOutput",
"{",
"s",
".",
"DeletedResources",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDeletedResources sets the DeletedResources field's value. | [
"SetDeletedResources",
"sets",
"the",
"DeletedResources",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mobile/api.go#L1227-L1230 |
3,165 | aws/aws-sdk-go | service/mobile/api.go | SetOrphanedResources | func (s *DeleteProjectOutput) SetOrphanedResources(v []*Resource) *DeleteProjectOutput {
s.OrphanedResources = v
return s
} | go | func (s *DeleteProjectOutput) SetOrphanedResources(v []*Resource) *DeleteProjectOutput {
s.OrphanedResources = v
return s
} | [
"func",
"(",
"s",
"*",
"DeleteProjectOutput",
")",
"SetOrphanedResources",
"(",
"v",
"[",
"]",
"*",
"Resource",
")",
"*",
"DeleteProjectOutput",
"{",
"s",
".",
"OrphanedResources",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetOrphanedResources sets the OrphanedResources field's value. | [
"SetOrphanedResources",
"sets",
"the",
"OrphanedResources",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mobile/api.go#L1233-L1236 |
3,166 | aws/aws-sdk-go | service/mobile/api.go | SetSyncFromResources | func (s *DescribeProjectInput) SetSyncFromResources(v bool) *DescribeProjectInput {
s.SyncFromResources = &v
return s
} | go | func (s *DescribeProjectInput) SetSyncFromResources(v bool) *DescribeProjectInput {
s.SyncFromResources = &v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeProjectInput",
")",
"SetSyncFromResources",
"(",
"v",
"bool",
")",
"*",
"DescribeProjectInput",
"{",
"s",
".",
"SyncFromResources",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSyncFromResources sets the SyncFromResources field's value. | [
"SetSyncFromResources",
"sets",
"the",
"SyncFromResources",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mobile/api.go#L1349-L1352 |
3,167 | aws/aws-sdk-go | service/mobile/api.go | SetShareUrl | func (s *ExportProjectOutput) SetShareUrl(v string) *ExportProjectOutput {
s.ShareUrl = &v
return s
} | go | func (s *ExportProjectOutput) SetShareUrl(v string) *ExportProjectOutput {
s.ShareUrl = &v
return s
} | [
"func",
"(",
"s",
"*",
"ExportProjectOutput",
")",
"SetShareUrl",
"(",
"v",
"string",
")",
"*",
"ExportProjectOutput",
"{",
"s",
".",
"ShareUrl",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetShareUrl sets the ShareUrl field's value. | [
"SetShareUrl",
"sets",
"the",
"ShareUrl",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mobile/api.go#L1546-L1549 |
3,168 | aws/aws-sdk-go | service/mobile/api.go | SetBundleList | func (s *ListBundlesOutput) SetBundleList(v []*BundleDetails) *ListBundlesOutput {
s.BundleList = v
return s
} | go | func (s *ListBundlesOutput) SetBundleList(v []*BundleDetails) *ListBundlesOutput {
s.BundleList = v
return s
} | [
"func",
"(",
"s",
"*",
"ListBundlesOutput",
")",
"SetBundleList",
"(",
"v",
"[",
"]",
"*",
"BundleDetails",
")",
"*",
"ListBundlesOutput",
"{",
"s",
".",
"BundleList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetBundleList sets the BundleList field's value. | [
"SetBundleList",
"sets",
"the",
"BundleList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mobile/api.go#L1615-L1618 |
3,169 | aws/aws-sdk-go | service/mobile/api.go | SetConsoleUrl | func (s *ProjectDetails) SetConsoleUrl(v string) *ProjectDetails {
s.ConsoleUrl = &v
return s
} | go | func (s *ProjectDetails) SetConsoleUrl(v string) *ProjectDetails {
s.ConsoleUrl = &v
return s
} | [
"func",
"(",
"s",
"*",
"ProjectDetails",
")",
"SetConsoleUrl",
"(",
"v",
"string",
")",
"*",
"ProjectDetails",
"{",
"s",
".",
"ConsoleUrl",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetConsoleUrl sets the ConsoleUrl field's value. | [
"SetConsoleUrl",
"sets",
"the",
"ConsoleUrl",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mobile/api.go#L1736-L1739 |
3,170 | aws/aws-sdk-go | service/mobile/api.go | SetFeature | func (s *Resource) SetFeature(v string) *Resource {
s.Feature = &v
return s
} | go | func (s *Resource) SetFeature(v string) *Resource {
s.Feature = &v
return s
} | [
"func",
"(",
"s",
"*",
"Resource",
")",
"SetFeature",
"(",
"v",
"string",
")",
"*",
"Resource",
"{",
"s",
".",
"Feature",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetFeature sets the Feature field's value. | [
"SetFeature",
"sets",
"the",
"Feature",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mobile/api.go#L1860-L1863 |
3,171 | aws/aws-sdk-go | service/cloudhsmv2/api.go | SetBackupState | func (s *Backup) SetBackupState(v string) *Backup {
s.BackupState = &v
return s
} | go | func (s *Backup) SetBackupState(v string) *Backup {
s.BackupState = &v
return s
} | [
"func",
"(",
"s",
"*",
"Backup",
")",
"SetBackupState",
"(",
"v",
"string",
")",
"*",
"Backup",
"{",
"s",
".",
"BackupState",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetBackupState sets the BackupState field's value. | [
"SetBackupState",
"sets",
"the",
"BackupState",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsmv2/api.go#L1471-L1474 |
3,172 | aws/aws-sdk-go | service/cloudhsmv2/api.go | SetCopyTimestamp | func (s *Backup) SetCopyTimestamp(v time.Time) *Backup {
s.CopyTimestamp = &v
return s
} | go | func (s *Backup) SetCopyTimestamp(v time.Time) *Backup {
s.CopyTimestamp = &v
return s
} | [
"func",
"(",
"s",
"*",
"Backup",
")",
"SetCopyTimestamp",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"Backup",
"{",
"s",
".",
"CopyTimestamp",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCopyTimestamp sets the CopyTimestamp field's value. | [
"SetCopyTimestamp",
"sets",
"the",
"CopyTimestamp",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsmv2/api.go#L1483-L1486 |
3,173 | aws/aws-sdk-go | service/cloudhsmv2/api.go | SetDeleteTimestamp | func (s *Backup) SetDeleteTimestamp(v time.Time) *Backup {
s.DeleteTimestamp = &v
return s
} | go | func (s *Backup) SetDeleteTimestamp(v time.Time) *Backup {
s.DeleteTimestamp = &v
return s
} | [
"func",
"(",
"s",
"*",
"Backup",
")",
"SetDeleteTimestamp",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"Backup",
"{",
"s",
".",
"DeleteTimestamp",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDeleteTimestamp sets the DeleteTimestamp field's value. | [
"SetDeleteTimestamp",
"sets",
"the",
"DeleteTimestamp",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsmv2/api.go#L1495-L1498 |
3,174 | aws/aws-sdk-go | service/cloudhsmv2/api.go | SetAwsHardwareCertificate | func (s *Certificates) SetAwsHardwareCertificate(v string) *Certificates {
s.AwsHardwareCertificate = &v
return s
} | go | func (s *Certificates) SetAwsHardwareCertificate(v string) *Certificates {
s.AwsHardwareCertificate = &v
return s
} | [
"func",
"(",
"s",
"*",
"Certificates",
")",
"SetAwsHardwareCertificate",
"(",
"v",
"string",
")",
"*",
"Certificates",
"{",
"s",
".",
"AwsHardwareCertificate",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAwsHardwareCertificate sets the AwsHardwareCertificate field's value. | [
"SetAwsHardwareCertificate",
"sets",
"the",
"AwsHardwareCertificate",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsmv2/api.go#L1551-L1554 |
3,175 | aws/aws-sdk-go | service/cloudhsmv2/api.go | SetClusterCertificate | func (s *Certificates) SetClusterCertificate(v string) *Certificates {
s.ClusterCertificate = &v
return s
} | go | func (s *Certificates) SetClusterCertificate(v string) *Certificates {
s.ClusterCertificate = &v
return s
} | [
"func",
"(",
"s",
"*",
"Certificates",
")",
"SetClusterCertificate",
"(",
"v",
"string",
")",
"*",
"Certificates",
"{",
"s",
".",
"ClusterCertificate",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetClusterCertificate sets the ClusterCertificate field's value. | [
"SetClusterCertificate",
"sets",
"the",
"ClusterCertificate",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsmv2/api.go#L1557-L1560 |
3,176 | aws/aws-sdk-go | service/cloudhsmv2/api.go | SetClusterCsr | func (s *Certificates) SetClusterCsr(v string) *Certificates {
s.ClusterCsr = &v
return s
} | go | func (s *Certificates) SetClusterCsr(v string) *Certificates {
s.ClusterCsr = &v
return s
} | [
"func",
"(",
"s",
"*",
"Certificates",
")",
"SetClusterCsr",
"(",
"v",
"string",
")",
"*",
"Certificates",
"{",
"s",
".",
"ClusterCsr",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetClusterCsr sets the ClusterCsr field's value. | [
"SetClusterCsr",
"sets",
"the",
"ClusterCsr",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsmv2/api.go#L1563-L1566 |
3,177 | aws/aws-sdk-go | service/cloudhsmv2/api.go | SetHsmCertificate | func (s *Certificates) SetHsmCertificate(v string) *Certificates {
s.HsmCertificate = &v
return s
} | go | func (s *Certificates) SetHsmCertificate(v string) *Certificates {
s.HsmCertificate = &v
return s
} | [
"func",
"(",
"s",
"*",
"Certificates",
")",
"SetHsmCertificate",
"(",
"v",
"string",
")",
"*",
"Certificates",
"{",
"s",
".",
"HsmCertificate",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetHsmCertificate sets the HsmCertificate field's value. | [
"SetHsmCertificate",
"sets",
"the",
"HsmCertificate",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsmv2/api.go#L1569-L1572 |
3,178 | aws/aws-sdk-go | service/cloudhsmv2/api.go | SetManufacturerHardwareCertificate | func (s *Certificates) SetManufacturerHardwareCertificate(v string) *Certificates {
s.ManufacturerHardwareCertificate = &v
return s
} | go | func (s *Certificates) SetManufacturerHardwareCertificate(v string) *Certificates {
s.ManufacturerHardwareCertificate = &v
return s
} | [
"func",
"(",
"s",
"*",
"Certificates",
")",
"SetManufacturerHardwareCertificate",
"(",
"v",
"string",
")",
"*",
"Certificates",
"{",
"s",
".",
"ManufacturerHardwareCertificate",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetManufacturerHardwareCertificate sets the ManufacturerHardwareCertificate field's value. | [
"SetManufacturerHardwareCertificate",
"sets",
"the",
"ManufacturerHardwareCertificate",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsmv2/api.go#L1575-L1578 |
3,179 | aws/aws-sdk-go | service/cloudhsmv2/api.go | SetBackupPolicy | func (s *Cluster) SetBackupPolicy(v string) *Cluster {
s.BackupPolicy = &v
return s
} | go | func (s *Cluster) SetBackupPolicy(v string) *Cluster {
s.BackupPolicy = &v
return s
} | [
"func",
"(",
"s",
"*",
"Cluster",
")",
"SetBackupPolicy",
"(",
"v",
"string",
")",
"*",
"Cluster",
"{",
"s",
".",
"BackupPolicy",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetBackupPolicy sets the BackupPolicy field's value. | [
"SetBackupPolicy",
"sets",
"the",
"BackupPolicy",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsmv2/api.go#L1637-L1640 |
3,180 | aws/aws-sdk-go | service/cloudhsmv2/api.go | SetHsms | func (s *Cluster) SetHsms(v []*Hsm) *Cluster {
s.Hsms = v
return s
} | go | func (s *Cluster) SetHsms(v []*Hsm) *Cluster {
s.Hsms = v
return s
} | [
"func",
"(",
"s",
"*",
"Cluster",
")",
"SetHsms",
"(",
"v",
"[",
"]",
"*",
"Hsm",
")",
"*",
"Cluster",
"{",
"s",
".",
"Hsms",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetHsms sets the Hsms field's value. | [
"SetHsms",
"sets",
"the",
"Hsms",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsmv2/api.go#L1667-L1670 |
3,181 | aws/aws-sdk-go | service/cloudhsmv2/api.go | SetPreCoPassword | func (s *Cluster) SetPreCoPassword(v string) *Cluster {
s.PreCoPassword = &v
return s
} | go | func (s *Cluster) SetPreCoPassword(v string) *Cluster {
s.PreCoPassword = &v
return s
} | [
"func",
"(",
"s",
"*",
"Cluster",
")",
"SetPreCoPassword",
"(",
"v",
"string",
")",
"*",
"Cluster",
"{",
"s",
".",
"PreCoPassword",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPreCoPassword sets the PreCoPassword field's value. | [
"SetPreCoPassword",
"sets",
"the",
"PreCoPassword",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsmv2/api.go#L1673-L1676 |
3,182 | aws/aws-sdk-go | service/cloudhsmv2/api.go | SetSubnetMapping | func (s *Cluster) SetSubnetMapping(v map[string]*string) *Cluster {
s.SubnetMapping = v
return s
} | go | func (s *Cluster) SetSubnetMapping(v map[string]*string) *Cluster {
s.SubnetMapping = v
return s
} | [
"func",
"(",
"s",
"*",
"Cluster",
")",
"SetSubnetMapping",
"(",
"v",
"map",
"[",
"string",
"]",
"*",
"string",
")",
"*",
"Cluster",
"{",
"s",
".",
"SubnetMapping",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSubnetMapping sets the SubnetMapping field's value. | [
"SetSubnetMapping",
"sets",
"the",
"SubnetMapping",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsmv2/api.go#L1703-L1706 |
3,183 | aws/aws-sdk-go | service/cloudhsmv2/api.go | SetDestinationBackup | func (s *CopyBackupToRegionOutput) SetDestinationBackup(v *DestinationBackup) *CopyBackupToRegionOutput {
s.DestinationBackup = v
return s
} | go | func (s *CopyBackupToRegionOutput) SetDestinationBackup(v *DestinationBackup) *CopyBackupToRegionOutput {
s.DestinationBackup = v
return s
} | [
"func",
"(",
"s",
"*",
"CopyBackupToRegionOutput",
")",
"SetDestinationBackup",
"(",
"v",
"*",
"DestinationBackup",
")",
"*",
"CopyBackupToRegionOutput",
"{",
"s",
".",
"DestinationBackup",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDestinationBackup sets the DestinationBackup field's value. | [
"SetDestinationBackup",
"sets",
"the",
"DestinationBackup",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsmv2/api.go#L1791-L1794 |
3,184 | aws/aws-sdk-go | service/cloudhsmv2/api.go | SetHsm | func (s *CreateHsmOutput) SetHsm(v *Hsm) *CreateHsmOutput {
s.Hsm = v
return s
} | go | func (s *CreateHsmOutput) SetHsm(v *Hsm) *CreateHsmOutput {
s.Hsm = v
return s
} | [
"func",
"(",
"s",
"*",
"CreateHsmOutput",
")",
"SetHsm",
"(",
"v",
"*",
"Hsm",
")",
"*",
"CreateHsmOutput",
"{",
"s",
".",
"Hsm",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetHsm sets the Hsm field's value. | [
"SetHsm",
"sets",
"the",
"Hsm",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsmv2/api.go#L1975-L1978 |
3,185 | aws/aws-sdk-go | service/cloudhsmv2/api.go | SetSortAscending | func (s *DescribeBackupsInput) SetSortAscending(v bool) *DescribeBackupsInput {
s.SortAscending = &v
return s
} | go | func (s *DescribeBackupsInput) SetSortAscending(v bool) *DescribeBackupsInput {
s.SortAscending = &v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeBackupsInput",
")",
"SetSortAscending",
"(",
"v",
"bool",
")",
"*",
"DescribeBackupsInput",
"{",
"s",
".",
"SortAscending",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSortAscending sets the SortAscending field's value. | [
"SetSortAscending",
"sets",
"the",
"SortAscending",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsmv2/api.go#L2265-L2268 |
3,186 | aws/aws-sdk-go | service/cloudhsmv2/api.go | SetSignedCert | func (s *InitializeClusterInput) SetSignedCert(v string) *InitializeClusterInput {
s.SignedCert = &v
return s
} | go | func (s *InitializeClusterInput) SetSignedCert(v string) *InitializeClusterInput {
s.SignedCert = &v
return s
} | [
"func",
"(",
"s",
"*",
"InitializeClusterInput",
")",
"SetSignedCert",
"(",
"v",
"string",
")",
"*",
"InitializeClusterInput",
"{",
"s",
".",
"SignedCert",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSignedCert sets the SignedCert field's value. | [
"SetSignedCert",
"sets",
"the",
"SignedCert",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsmv2/api.go#L2601-L2604 |
3,187 | aws/aws-sdk-go | service/cloudhsmv2/api.go | SetTrustAnchor | func (s *InitializeClusterInput) SetTrustAnchor(v string) *InitializeClusterInput {
s.TrustAnchor = &v
return s
} | go | func (s *InitializeClusterInput) SetTrustAnchor(v string) *InitializeClusterInput {
s.TrustAnchor = &v
return s
} | [
"func",
"(",
"s",
"*",
"InitializeClusterInput",
")",
"SetTrustAnchor",
"(",
"v",
"string",
")",
"*",
"InitializeClusterInput",
"{",
"s",
".",
"TrustAnchor",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTrustAnchor sets the TrustAnchor field's value. | [
"SetTrustAnchor",
"sets",
"the",
"TrustAnchor",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsmv2/api.go#L2607-L2610 |
3,188 | aws/aws-sdk-go | private/model/api/example.go | Names | func (exs Examples) Names() []string {
names := make([]string, 0, len(exs))
for k := range exs {
names = append(names, k)
}
sort.Strings(names)
return names
} | go | func (exs Examples) Names() []string {
names := make([]string, 0, len(exs))
for k := range exs {
names = append(names, k)
}
sort.Strings(names)
return names
} | [
"func",
"(",
"exs",
"Examples",
")",
"Names",
"(",
")",
"[",
"]",
"string",
"{",
"names",
":=",
"make",
"(",
"[",
"]",
"string",
",",
"0",
",",
"len",
"(",
"exs",
")",
")",
"\n",
"for",
"k",
":=",
"range",
"exs",
"{",
"names",
"=",
"append",
"(",
"names",
",",
"k",
")",
"\n",
"}",
"\n\n",
"sort",
".",
"Strings",
"(",
"names",
")",
"\n",
"return",
"names",
"\n",
"}"
] | // Names will return the name of the example. This will also be the name of the operation
// that is to be tested. | [
"Names",
"will",
"return",
"the",
"name",
"of",
"the",
"example",
".",
"This",
"will",
"also",
"be",
"the",
"name",
"of",
"the",
"operation",
"that",
"is",
"to",
"be",
"tested",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/example.go#L91-L99 |
3,189 | aws/aws-sdk-go | private/model/api/example.go | correctType | func correctType(memName string, t string, value interface{}) string {
if value == nil {
return ""
}
v := ""
switch value.(type) {
case string:
v = value.(string)
case int:
v = fmt.Sprintf("%d", value.(int))
case float64:
if t == "integer" || t == "long" || t == "int64" {
v = fmt.Sprintf("%d", int(value.(float64)))
} else {
v = fmt.Sprintf("%f", value.(float64))
}
case bool:
v = fmt.Sprintf("%t", value.(bool))
}
return convertToCorrectType(memName, t, v)
} | go | func correctType(memName string, t string, value interface{}) string {
if value == nil {
return ""
}
v := ""
switch value.(type) {
case string:
v = value.(string)
case int:
v = fmt.Sprintf("%d", value.(int))
case float64:
if t == "integer" || t == "long" || t == "int64" {
v = fmt.Sprintf("%d", int(value.(float64)))
} else {
v = fmt.Sprintf("%f", value.(float64))
}
case bool:
v = fmt.Sprintf("%t", value.(bool))
}
return convertToCorrectType(memName, t, v)
} | [
"func",
"correctType",
"(",
"memName",
"string",
",",
"t",
"string",
",",
"value",
"interface",
"{",
"}",
")",
"string",
"{",
"if",
"value",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n\n",
"v",
":=",
"\"",
"\"",
"\n",
"switch",
"value",
".",
"(",
"type",
")",
"{",
"case",
"string",
":",
"v",
"=",
"value",
".",
"(",
"string",
")",
"\n",
"case",
"int",
":",
"v",
"=",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"value",
".",
"(",
"int",
")",
")",
"\n",
"case",
"float64",
":",
"if",
"t",
"==",
"\"",
"\"",
"||",
"t",
"==",
"\"",
"\"",
"||",
"t",
"==",
"\"",
"\"",
"{",
"v",
"=",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"int",
"(",
"value",
".",
"(",
"float64",
")",
")",
")",
"\n",
"}",
"else",
"{",
"v",
"=",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"value",
".",
"(",
"float64",
")",
")",
"\n",
"}",
"\n",
"case",
"bool",
":",
"v",
"=",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"value",
".",
"(",
"bool",
")",
")",
"\n",
"}",
"\n\n",
"return",
"convertToCorrectType",
"(",
"memName",
",",
"t",
",",
"v",
")",
"\n",
"}"
] | // correctType will cast the value to the correct type when printing the string.
// This is due to the json decoder choosing numbers to be floats, but the shape may
// actually be an int. To counter this, we pass the shape's type and properly do the
// casting here. | [
"correctType",
"will",
"cast",
"the",
"value",
"to",
"the",
"correct",
"type",
"when",
"printing",
"the",
"string",
".",
"This",
"is",
"due",
"to",
"the",
"json",
"decoder",
"choosing",
"numbers",
"to",
"be",
"floats",
"but",
"the",
"shape",
"may",
"actually",
"be",
"an",
"int",
".",
"To",
"counter",
"this",
"we",
"pass",
"the",
"shape",
"s",
"type",
"and",
"properly",
"do",
"the",
"casting",
"here",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/example.go#L149-L171 |
3,190 | aws/aws-sdk-go | private/model/api/example.go | ExamplesGoCode | func (a *API) ExamplesGoCode() string {
var buf bytes.Buffer
var builder examplesBuilder
ok := false
if builder, ok = examplesBuilderCustomizations[a.PackageName()]; !ok {
builder = defaultExamplesBuilder{}
}
if err := exampleHeader.ExecuteTemplate(&buf, "exampleHeader", &exHeader{builder, a}); err != nil {
panic(err)
}
code := a.Examples.GoCode()
if len(code) == 0 {
return ""
}
buf.WriteString(code)
return buf.String()
} | go | func (a *API) ExamplesGoCode() string {
var buf bytes.Buffer
var builder examplesBuilder
ok := false
if builder, ok = examplesBuilderCustomizations[a.PackageName()]; !ok {
builder = defaultExamplesBuilder{}
}
if err := exampleHeader.ExecuteTemplate(&buf, "exampleHeader", &exHeader{builder, a}); err != nil {
panic(err)
}
code := a.Examples.GoCode()
if len(code) == 0 {
return ""
}
buf.WriteString(code)
return buf.String()
} | [
"func",
"(",
"a",
"*",
"API",
")",
"ExamplesGoCode",
"(",
")",
"string",
"{",
"var",
"buf",
"bytes",
".",
"Buffer",
"\n",
"var",
"builder",
"examplesBuilder",
"\n",
"ok",
":=",
"false",
"\n",
"if",
"builder",
",",
"ok",
"=",
"examplesBuilderCustomizations",
"[",
"a",
".",
"PackageName",
"(",
")",
"]",
";",
"!",
"ok",
"{",
"builder",
"=",
"defaultExamplesBuilder",
"{",
"}",
"\n",
"}",
"\n\n",
"if",
"err",
":=",
"exampleHeader",
".",
"ExecuteTemplate",
"(",
"&",
"buf",
",",
"\"",
"\"",
",",
"&",
"exHeader",
"{",
"builder",
",",
"a",
"}",
")",
";",
"err",
"!=",
"nil",
"{",
"panic",
"(",
"err",
")",
"\n",
"}",
"\n\n",
"code",
":=",
"a",
".",
"Examples",
".",
"GoCode",
"(",
")",
"\n",
"if",
"len",
"(",
"code",
")",
"==",
"0",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n\n",
"buf",
".",
"WriteString",
"(",
"code",
")",
"\n",
"return",
"buf",
".",
"String",
"(",
")",
"\n",
"}"
] | // ExamplesGoCode will return a code representation of the entry within the
// examples.json file. | [
"ExamplesGoCode",
"will",
"return",
"a",
"code",
"representation",
"of",
"the",
"entry",
"within",
"the",
"examples",
".",
"json",
"file",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/example.go#L272-L291 |
3,191 | aws/aws-sdk-go | service/mediapackage/api.go | SetManifestLayout | func (s *DashPackage) SetManifestLayout(v string) *DashPackage {
s.ManifestLayout = &v
return s
} | go | func (s *DashPackage) SetManifestLayout(v string) *DashPackage {
s.ManifestLayout = &v
return s
} | [
"func",
"(",
"s",
"*",
"DashPackage",
")",
"SetManifestLayout",
"(",
"v",
"string",
")",
"*",
"DashPackage",
"{",
"s",
".",
"ManifestLayout",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetManifestLayout sets the ManifestLayout field's value. | [
"SetManifestLayout",
"sets",
"the",
"ManifestLayout",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediapackage/api.go#L2208-L2211 |
3,192 | aws/aws-sdk-go | service/mediapackage/api.go | SetMinBufferTimeSeconds | func (s *DashPackage) SetMinBufferTimeSeconds(v int64) *DashPackage {
s.MinBufferTimeSeconds = &v
return s
} | go | func (s *DashPackage) SetMinBufferTimeSeconds(v int64) *DashPackage {
s.MinBufferTimeSeconds = &v
return s
} | [
"func",
"(",
"s",
"*",
"DashPackage",
")",
"SetMinBufferTimeSeconds",
"(",
"v",
"int64",
")",
"*",
"DashPackage",
"{",
"s",
".",
"MinBufferTimeSeconds",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMinBufferTimeSeconds sets the MinBufferTimeSeconds field's value. | [
"SetMinBufferTimeSeconds",
"sets",
"the",
"MinBufferTimeSeconds",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediapackage/api.go#L2220-L2223 |
3,193 | aws/aws-sdk-go | service/mediapackage/api.go | SetMinUpdatePeriodSeconds | func (s *DashPackage) SetMinUpdatePeriodSeconds(v int64) *DashPackage {
s.MinUpdatePeriodSeconds = &v
return s
} | go | func (s *DashPackage) SetMinUpdatePeriodSeconds(v int64) *DashPackage {
s.MinUpdatePeriodSeconds = &v
return s
} | [
"func",
"(",
"s",
"*",
"DashPackage",
")",
"SetMinUpdatePeriodSeconds",
"(",
"v",
"int64",
")",
"*",
"DashPackage",
"{",
"s",
".",
"MinUpdatePeriodSeconds",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMinUpdatePeriodSeconds sets the MinUpdatePeriodSeconds field's value. | [
"SetMinUpdatePeriodSeconds",
"sets",
"the",
"MinUpdatePeriodSeconds",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediapackage/api.go#L2226-L2229 |
3,194 | aws/aws-sdk-go | service/mediapackage/api.go | SetPeriodTriggers | func (s *DashPackage) SetPeriodTriggers(v []*string) *DashPackage {
s.PeriodTriggers = v
return s
} | go | func (s *DashPackage) SetPeriodTriggers(v []*string) *DashPackage {
s.PeriodTriggers = v
return s
} | [
"func",
"(",
"s",
"*",
"DashPackage",
")",
"SetPeriodTriggers",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"DashPackage",
"{",
"s",
".",
"PeriodTriggers",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPeriodTriggers sets the PeriodTriggers field's value. | [
"SetPeriodTriggers",
"sets",
"the",
"PeriodTriggers",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediapackage/api.go#L2232-L2235 |
3,195 | aws/aws-sdk-go | service/mediapackage/api.go | SetSegmentTemplateFormat | func (s *DashPackage) SetSegmentTemplateFormat(v string) *DashPackage {
s.SegmentTemplateFormat = &v
return s
} | go | func (s *DashPackage) SetSegmentTemplateFormat(v string) *DashPackage {
s.SegmentTemplateFormat = &v
return s
} | [
"func",
"(",
"s",
"*",
"DashPackage",
")",
"SetSegmentTemplateFormat",
"(",
"v",
"string",
")",
"*",
"DashPackage",
"{",
"s",
".",
"SegmentTemplateFormat",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSegmentTemplateFormat sets the SegmentTemplateFormat field's value. | [
"SetSegmentTemplateFormat",
"sets",
"the",
"SegmentTemplateFormat",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediapackage/api.go#L2250-L2253 |
3,196 | aws/aws-sdk-go | service/mediapackage/api.go | SetSuggestedPresentationDelaySeconds | func (s *DashPackage) SetSuggestedPresentationDelaySeconds(v int64) *DashPackage {
s.SuggestedPresentationDelaySeconds = &v
return s
} | go | func (s *DashPackage) SetSuggestedPresentationDelaySeconds(v int64) *DashPackage {
s.SuggestedPresentationDelaySeconds = &v
return s
} | [
"func",
"(",
"s",
"*",
"DashPackage",
")",
"SetSuggestedPresentationDelaySeconds",
"(",
"v",
"int64",
")",
"*",
"DashPackage",
"{",
"s",
".",
"SuggestedPresentationDelaySeconds",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSuggestedPresentationDelaySeconds sets the SuggestedPresentationDelaySeconds field's value. | [
"SetSuggestedPresentationDelaySeconds",
"sets",
"the",
"SuggestedPresentationDelaySeconds",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediapackage/api.go#L2262-L2265 |
3,197 | aws/aws-sdk-go | service/mediapackage/api.go | SetRepeatExtXKey | func (s *HlsEncryption) SetRepeatExtXKey(v bool) *HlsEncryption {
s.RepeatExtXKey = &v
return s
} | go | func (s *HlsEncryption) SetRepeatExtXKey(v bool) *HlsEncryption {
s.RepeatExtXKey = &v
return s
} | [
"func",
"(",
"s",
"*",
"HlsEncryption",
")",
"SetRepeatExtXKey",
"(",
"v",
"bool",
")",
"*",
"HlsEncryption",
"{",
"s",
".",
"RepeatExtXKey",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetRepeatExtXKey sets the RepeatExtXKey field's value. | [
"SetRepeatExtXKey",
"sets",
"the",
"RepeatExtXKey",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediapackage/api.go#L2709-L2712 |
3,198 | aws/aws-sdk-go | service/mediapackage/api.go | SetIngestEndpoints | func (s *HlsIngest) SetIngestEndpoints(v []*IngestEndpoint) *HlsIngest {
s.IngestEndpoints = v
return s
} | go | func (s *HlsIngest) SetIngestEndpoints(v []*IngestEndpoint) *HlsIngest {
s.IngestEndpoints = v
return s
} | [
"func",
"(",
"s",
"*",
"HlsIngest",
")",
"SetIngestEndpoints",
"(",
"v",
"[",
"]",
"*",
"IngestEndpoint",
")",
"*",
"HlsIngest",
"{",
"s",
".",
"IngestEndpoints",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetIngestEndpoints sets the IngestEndpoints field's value. | [
"SetIngestEndpoints",
"sets",
"the",
"IngestEndpoints",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediapackage/api.go#L2739-L2742 |
3,199 | aws/aws-sdk-go | service/mediapackage/api.go | SetUseAudioRenditionGroup | func (s *HlsPackage) SetUseAudioRenditionGroup(v bool) *HlsPackage {
s.UseAudioRenditionGroup = &v
return s
} | go | func (s *HlsPackage) SetUseAudioRenditionGroup(v bool) *HlsPackage {
s.UseAudioRenditionGroup = &v
return s
} | [
"func",
"(",
"s",
"*",
"HlsPackage",
")",
"SetUseAudioRenditionGroup",
"(",
"v",
"bool",
")",
"*",
"HlsPackage",
"{",
"s",
".",
"UseAudioRenditionGroup",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetUseAudioRenditionGroup sets the UseAudioRenditionGroup field's value. | [
"SetUseAudioRenditionGroup",
"sets",
"the",
"UseAudioRenditionGroup",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediapackage/api.go#L3076-L3079 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.