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
166,900
aws/aws-sdk-go
service/translate/api.go
SetTerminologyNames
func (s *TextInput) SetTerminologyNames(v []*string) *TextInput { s.TerminologyNames = v return s }
go
func (s *TextInput) SetTerminologyNames(v []*string) *TextInput { s.TerminologyNames = v return s }
[ "func", "(", "s", "*", "TextInput", ")", "SetTerminologyNames", "(", "v", "[", "]", "*", "string", ")", "*", "TextInput", "{", "s", ".", "TerminologyNames", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetTerminologyNames sets the TerminologyNames field's value.
[ "SetTerminologyNames", "sets", "the", "TerminologyNames", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/translate/api.go#L1299-L1302
166,901
aws/aws-sdk-go
service/translate/api.go
SetAppliedTerminologies
func (s *TextOutput) SetAppliedTerminologies(v []*AppliedTerminology) *TextOutput { s.AppliedTerminologies = v return s }
go
func (s *TextOutput) SetAppliedTerminologies(v []*AppliedTerminology) *TextOutput { s.AppliedTerminologies = v return s }
[ "func", "(", "s", "*", "TextOutput", ")", "SetAppliedTerminologies", "(", "v", "[", "]", "*", "AppliedTerminology", ")", "*", "TextOutput", "{", "s", ".", "AppliedTerminologies", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetAppliedTerminologies sets the AppliedTerminologies field's value.
[ "SetAppliedTerminologies", "sets", "the", "AppliedTerminologies", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/translate/api.go#L1344-L1347
166,902
aws/aws-sdk-go
service/translate/api.go
SetTranslatedText
func (s *TextOutput) SetTranslatedText(v string) *TextOutput { s.TranslatedText = &v return s }
go
func (s *TextOutput) SetTranslatedText(v string) *TextOutput { s.TranslatedText = &v return s }
[ "func", "(", "s", "*", "TextOutput", ")", "SetTranslatedText", "(", "v", "string", ")", "*", "TextOutput", "{", "s", ".", "TranslatedText", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetTranslatedText sets the TranslatedText field's value.
[ "SetTranslatedText", "sets", "the", "TranslatedText", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/translate/api.go#L1362-L1365
166,903
aws/aws-sdk-go
private/model/api/exportable_name.go
ExportableName
func (a *API) ExportableName(name string) string { if name == "" { return name } return strings.ToUpper(name[0:1]) + name[1:] }
go
func (a *API) ExportableName(name string) string { if name == "" { return name } return strings.ToUpper(name[0:1]) + name[1:] }
[ "func", "(", "a", "*", "API", ")", "ExportableName", "(", "name", "string", ")", "string", "{", "if", "name", "==", "\"", "\"", "{", "return", "name", "\n", "}", "\n\n", "return", "strings", ".", "ToUpper", "(", "name", "[", "0", ":", "1", "]", ")", "+", "name", "[", "1", ":", "]", "\n", "}" ]
// ExportableName a name which is exportable as a value or name in Go code
[ "ExportableName", "a", "name", "which", "is", "exportable", "as", "a", "value", "or", "name", "in", "Go", "code" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/exportable_name.go#L8-L14
166,904
aws/aws-sdk-go
service/elastictranscoder/waiters.go
WaitUntilJobComplete
func (c *ElasticTranscoder) WaitUntilJobComplete(input *ReadJobInput) error { return c.WaitUntilJobCompleteWithContext(aws.BackgroundContext(), input) }
go
func (c *ElasticTranscoder) WaitUntilJobComplete(input *ReadJobInput) error { return c.WaitUntilJobCompleteWithContext(aws.BackgroundContext(), input) }
[ "func", "(", "c", "*", "ElasticTranscoder", ")", "WaitUntilJobComplete", "(", "input", "*", "ReadJobInput", ")", "error", "{", "return", "c", ".", "WaitUntilJobCompleteWithContext", "(", "aws", ".", "BackgroundContext", "(", ")", ",", "input", ")", "\n", "}" ]
// WaitUntilJobComplete uses the Amazon Elastic Transcoder API operation // ReadJob 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.
[ "WaitUntilJobComplete", "uses", "the", "Amazon", "Elastic", "Transcoder", "API", "operation", "ReadJob", "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/elastictranscoder/waiters.go#L16-L18
166,905
aws/aws-sdk-go
aws/request/request.go
New
func New(cfg aws.Config, clientInfo metadata.ClientInfo, handlers Handlers, retryer Retryer, operation *Operation, params interface{}, data interface{}) *Request { method := operation.HTTPMethod if method == "" { method = "POST" } httpReq, _ := http.NewRequest(method, "", nil) var err error httpReq.URL, err = url.Parse(clientInfo.Endpoint + operation.HTTPPath) if err != nil { httpReq.URL = &url.URL{} err = awserr.New("InvalidEndpointURL", "invalid endpoint uri", err) } SanitizeHostForHeader(httpReq) r := &Request{ Config: cfg, ClientInfo: clientInfo, Handlers: handlers.Copy(), Retryer: retryer, Time: time.Now(), ExpireTime: 0, Operation: operation, HTTPRequest: httpReq, Body: nil, Params: params, Error: err, Data: data, } r.SetBufferBody([]byte{}) return r }
go
func New(cfg aws.Config, clientInfo metadata.ClientInfo, handlers Handlers, retryer Retryer, operation *Operation, params interface{}, data interface{}) *Request { method := operation.HTTPMethod if method == "" { method = "POST" } httpReq, _ := http.NewRequest(method, "", nil) var err error httpReq.URL, err = url.Parse(clientInfo.Endpoint + operation.HTTPPath) if err != nil { httpReq.URL = &url.URL{} err = awserr.New("InvalidEndpointURL", "invalid endpoint uri", err) } SanitizeHostForHeader(httpReq) r := &Request{ Config: cfg, ClientInfo: clientInfo, Handlers: handlers.Copy(), Retryer: retryer, Time: time.Now(), ExpireTime: 0, Operation: operation, HTTPRequest: httpReq, Body: nil, Params: params, Error: err, Data: data, } r.SetBufferBody([]byte{}) return r }
[ "func", "New", "(", "cfg", "aws", ".", "Config", ",", "clientInfo", "metadata", ".", "ClientInfo", ",", "handlers", "Handlers", ",", "retryer", "Retryer", ",", "operation", "*", "Operation", ",", "params", "interface", "{", "}", ",", "data", "interface", "{", "}", ")", "*", "Request", "{", "method", ":=", "operation", ".", "HTTPMethod", "\n", "if", "method", "==", "\"", "\"", "{", "method", "=", "\"", "\"", "\n", "}", "\n\n", "httpReq", ",", "_", ":=", "http", ".", "NewRequest", "(", "method", ",", "\"", "\"", ",", "nil", ")", "\n\n", "var", "err", "error", "\n", "httpReq", ".", "URL", ",", "err", "=", "url", ".", "Parse", "(", "clientInfo", ".", "Endpoint", "+", "operation", ".", "HTTPPath", ")", "\n", "if", "err", "!=", "nil", "{", "httpReq", ".", "URL", "=", "&", "url", ".", "URL", "{", "}", "\n", "err", "=", "awserr", ".", "New", "(", "\"", "\"", ",", "\"", "\"", ",", "err", ")", "\n", "}", "\n\n", "SanitizeHostForHeader", "(", "httpReq", ")", "\n\n", "r", ":=", "&", "Request", "{", "Config", ":", "cfg", ",", "ClientInfo", ":", "clientInfo", ",", "Handlers", ":", "handlers", ".", "Copy", "(", ")", ",", "Retryer", ":", "retryer", ",", "Time", ":", "time", ".", "Now", "(", ")", ",", "ExpireTime", ":", "0", ",", "Operation", ":", "operation", ",", "HTTPRequest", ":", "httpReq", ",", "Body", ":", "nil", ",", "Params", ":", "params", ",", "Error", ":", "err", ",", "Data", ":", "data", ",", "}", "\n", "r", ".", "SetBufferBody", "(", "[", "]", "byte", "{", "}", ")", "\n\n", "return", "r", "\n", "}" ]
// New returns a new Request pointer for the service API // operation and parameters. // // Params is any value of input parameters to be the request payload. // Data is pointer value to an object which the request's response // payload will be deserialized to.
[ "New", "returns", "a", "new", "Request", "pointer", "for", "the", "service", "API", "operation", "and", "parameters", ".", "Params", "is", "any", "value", "of", "input", "parameters", "to", "be", "the", "request", "payload", ".", "Data", "is", "pointer", "value", "to", "an", "object", "which", "the", "request", "s", "response", "payload", "will", "be", "deserialized", "to", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/request.go#L99-L136
166,906
aws/aws-sdk-go
aws/request/request.go
ApplyOptions
func (r *Request) ApplyOptions(opts ...Option) { for _, opt := range opts { opt(r) } }
go
func (r *Request) ApplyOptions(opts ...Option) { for _, opt := range opts { opt(r) } }
[ "func", "(", "r", "*", "Request", ")", "ApplyOptions", "(", "opts", "...", "Option", ")", "{", "for", "_", ",", "opt", ":=", "range", "opts", "{", "opt", "(", "r", ")", "\n", "}", "\n", "}" ]
// ApplyOptions will apply each option to the request calling them in the order // the were provided.
[ "ApplyOptions", "will", "apply", "each", "option", "to", "the", "request", "calling", "them", "in", "the", "order", "the", "were", "provided", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/request.go#L188-L192
166,907
aws/aws-sdk-go
aws/request/request.go
Context
func (r *Request) Context() aws.Context { if r.context != nil { return r.context } return aws.BackgroundContext() }
go
func (r *Request) Context() aws.Context { if r.context != nil { return r.context } return aws.BackgroundContext() }
[ "func", "(", "r", "*", "Request", ")", "Context", "(", ")", "aws", ".", "Context", "{", "if", "r", ".", "context", "!=", "nil", "{", "return", "r", ".", "context", "\n", "}", "\n", "return", "aws", ".", "BackgroundContext", "(", ")", "\n", "}" ]
// Context will always returns a non-nil context. If Request does not have a // context aws.BackgroundContext will be returned.
[ "Context", "will", "always", "returns", "a", "non", "-", "nil", "context", ".", "If", "Request", "does", "not", "have", "a", "context", "aws", ".", "BackgroundContext", "will", "be", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/request.go#L196-L201
166,908
aws/aws-sdk-go
aws/request/request.go
WillRetry
func (r *Request) WillRetry() bool { if !aws.IsReaderSeekable(r.Body) && r.HTTPRequest.Body != NoBody { return false } return r.Error != nil && aws.BoolValue(r.Retryable) && r.RetryCount < r.MaxRetries() }
go
func (r *Request) WillRetry() bool { if !aws.IsReaderSeekable(r.Body) && r.HTTPRequest.Body != NoBody { return false } return r.Error != nil && aws.BoolValue(r.Retryable) && r.RetryCount < r.MaxRetries() }
[ "func", "(", "r", "*", "Request", ")", "WillRetry", "(", ")", "bool", "{", "if", "!", "aws", ".", "IsReaderSeekable", "(", "r", ".", "Body", ")", "&&", "r", ".", "HTTPRequest", ".", "Body", "!=", "NoBody", "{", "return", "false", "\n", "}", "\n", "return", "r", ".", "Error", "!=", "nil", "&&", "aws", ".", "BoolValue", "(", "r", ".", "Retryable", ")", "&&", "r", ".", "RetryCount", "<", "r", ".", "MaxRetries", "(", ")", "\n", "}" ]
// WillRetry returns if the request's can be retried.
[ "WillRetry", "returns", "if", "the", "request", "s", "can", "be", "retried", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/request.go#L227-L232
166,909
aws/aws-sdk-go
aws/request/request.go
ParamsFilled
func (r *Request) ParamsFilled() bool { return r.Params != nil && reflect.ValueOf(r.Params).Elem().IsValid() }
go
func (r *Request) ParamsFilled() bool { return r.Params != nil && reflect.ValueOf(r.Params).Elem().IsValid() }
[ "func", "(", "r", "*", "Request", ")", "ParamsFilled", "(", ")", "bool", "{", "return", "r", ".", "Params", "!=", "nil", "&&", "reflect", ".", "ValueOf", "(", "r", ".", "Params", ")", ".", "Elem", "(", ")", ".", "IsValid", "(", ")", "\n", "}" ]
// ParamsFilled returns if the request's parameters have been populated // and the parameters are valid. False is returned if no parameters are // provided or invalid.
[ "ParamsFilled", "returns", "if", "the", "request", "s", "parameters", "have", "been", "populated", "and", "the", "parameters", "are", "valid", ".", "False", "is", "returned", "if", "no", "parameters", "are", "provided", "or", "invalid", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/request.go#L237-L239
166,910
aws/aws-sdk-go
aws/request/request.go
DataFilled
func (r *Request) DataFilled() bool { return r.Data != nil && reflect.ValueOf(r.Data).Elem().IsValid() }
go
func (r *Request) DataFilled() bool { return r.Data != nil && reflect.ValueOf(r.Data).Elem().IsValid() }
[ "func", "(", "r", "*", "Request", ")", "DataFilled", "(", ")", "bool", "{", "return", "r", ".", "Data", "!=", "nil", "&&", "reflect", ".", "ValueOf", "(", "r", ".", "Data", ")", ".", "Elem", "(", ")", ".", "IsValid", "(", ")", "\n", "}" ]
// DataFilled returns true if the request's data for response deserialization // target has been set and is a valid. False is returned if data is not // set, or is invalid.
[ "DataFilled", "returns", "true", "if", "the", "request", "s", "data", "for", "response", "deserialization", "target", "has", "been", "set", "and", "is", "a", "valid", ".", "False", "is", "returned", "if", "data", "is", "not", "set", "or", "is", "invalid", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/request.go#L244-L246
166,911
aws/aws-sdk-go
aws/request/request.go
SetBufferBody
func (r *Request) SetBufferBody(buf []byte) { r.SetReaderBody(bytes.NewReader(buf)) }
go
func (r *Request) SetBufferBody(buf []byte) { r.SetReaderBody(bytes.NewReader(buf)) }
[ "func", "(", "r", "*", "Request", ")", "SetBufferBody", "(", "buf", "[", "]", "byte", ")", "{", "r", ".", "SetReaderBody", "(", "bytes", ".", "NewReader", "(", "buf", ")", ")", "\n", "}" ]
// SetBufferBody will set the request's body bytes that will be sent to // the service API.
[ "SetBufferBody", "will", "set", "the", "request", "s", "body", "bytes", "that", "will", "be", "sent", "to", "the", "service", "API", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/request.go#L250-L252
166,912
aws/aws-sdk-go
aws/request/request.go
SetStringBody
func (r *Request) SetStringBody(s string) { r.SetReaderBody(strings.NewReader(s)) }
go
func (r *Request) SetStringBody(s string) { r.SetReaderBody(strings.NewReader(s)) }
[ "func", "(", "r", "*", "Request", ")", "SetStringBody", "(", "s", "string", ")", "{", "r", ".", "SetReaderBody", "(", "strings", ".", "NewReader", "(", "s", ")", ")", "\n", "}" ]
// SetStringBody sets the body of the request to be backed by a string.
[ "SetStringBody", "sets", "the", "body", "of", "the", "request", "to", "be", "backed", "by", "a", "string", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/request.go#L255-L257
166,913
aws/aws-sdk-go
aws/request/request.go
SetReaderBody
func (r *Request) SetReaderBody(reader io.ReadSeeker) { r.Body = reader r.BodyStart, _ = reader.Seek(0, sdkio.SeekCurrent) // Get the Bodies current offset. r.ResetBody() }
go
func (r *Request) SetReaderBody(reader io.ReadSeeker) { r.Body = reader r.BodyStart, _ = reader.Seek(0, sdkio.SeekCurrent) // Get the Bodies current offset. r.ResetBody() }
[ "func", "(", "r", "*", "Request", ")", "SetReaderBody", "(", "reader", "io", ".", "ReadSeeker", ")", "{", "r", ".", "Body", "=", "reader", "\n", "r", ".", "BodyStart", ",", "_", "=", "reader", ".", "Seek", "(", "0", ",", "sdkio", ".", "SeekCurrent", ")", "// Get the Bodies current offset.", "\n", "r", ".", "ResetBody", "(", ")", "\n", "}" ]
// SetReaderBody will set the request's body reader.
[ "SetReaderBody", "will", "set", "the", "request", "s", "body", "reader", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/request.go#L260-L264
166,914
aws/aws-sdk-go
aws/request/request.go
Presign
func (r *Request) Presign(expire time.Duration) (string, error) { r = r.copy() // Presign requires all headers be hoisted. There is no way to retrieve // the signed headers not hoisted without this. Making the presigned URL // useless. r.NotHoist = false u, _, err := getPresignedURL(r, expire) return u, err }
go
func (r *Request) Presign(expire time.Duration) (string, error) { r = r.copy() // Presign requires all headers be hoisted. There is no way to retrieve // the signed headers not hoisted without this. Making the presigned URL // useless. r.NotHoist = false u, _, err := getPresignedURL(r, expire) return u, err }
[ "func", "(", "r", "*", "Request", ")", "Presign", "(", "expire", "time", ".", "Duration", ")", "(", "string", ",", "error", ")", "{", "r", "=", "r", ".", "copy", "(", ")", "\n\n", "// Presign requires all headers be hoisted. There is no way to retrieve", "// the signed headers not hoisted without this. Making the presigned URL", "// useless.", "r", ".", "NotHoist", "=", "false", "\n\n", "u", ",", "_", ",", "err", ":=", "getPresignedURL", "(", "r", ",", "expire", ")", "\n", "return", "u", ",", "err", "\n", "}" ]
// Presign returns the request's signed URL. Error will be returned // if the signing fails. The expire parameter is only used for presigned Amazon // S3 API requests. All other AWS services will use a fixed expiration // time of 15 minutes. // // It is invalid to create a presigned URL with a expire duration 0 or less. An // error is returned if expire duration is 0 or less.
[ "Presign", "returns", "the", "request", "s", "signed", "URL", ".", "Error", "will", "be", "returned", "if", "the", "signing", "fails", ".", "The", "expire", "parameter", "is", "only", "used", "for", "presigned", "Amazon", "S3", "API", "requests", ".", "All", "other", "AWS", "services", "will", "use", "a", "fixed", "expiration", "time", "of", "15", "minutes", ".", "It", "is", "invalid", "to", "create", "a", "presigned", "URL", "with", "a", "expire", "duration", "0", "or", "less", ".", "An", "error", "is", "returned", "if", "expire", "duration", "is", "0", "or", "less", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/request.go#L273-L283
166,915
aws/aws-sdk-go
aws/request/request.go
PresignRequest
func (r *Request) PresignRequest(expire time.Duration) (string, http.Header, error) { r = r.copy() return getPresignedURL(r, expire) }
go
func (r *Request) PresignRequest(expire time.Duration) (string, http.Header, error) { r = r.copy() return getPresignedURL(r, expire) }
[ "func", "(", "r", "*", "Request", ")", "PresignRequest", "(", "expire", "time", ".", "Duration", ")", "(", "string", ",", "http", ".", "Header", ",", "error", ")", "{", "r", "=", "r", ".", "copy", "(", ")", "\n", "return", "getPresignedURL", "(", "r", ",", "expire", ")", "\n", "}" ]
// PresignRequest behaves just like presign, with the addition of returning a // set of headers that were signed. The expire parameter is only used for // presigned Amazon S3 API requests. All other AWS services will use a fixed // expiration time of 15 minutes. // // It is invalid to create a presigned URL with a expire duration 0 or less. An // error is returned if expire duration is 0 or less. // // Returns the URL string for the API operation with signature in the query string, // and the HTTP headers that were included in the signature. These headers must // be included in any HTTP request made with the presigned URL. // // To prevent hoisting any headers to the query string set NotHoist to true on // this Request value prior to calling PresignRequest.
[ "PresignRequest", "behaves", "just", "like", "presign", "with", "the", "addition", "of", "returning", "a", "set", "of", "headers", "that", "were", "signed", ".", "The", "expire", "parameter", "is", "only", "used", "for", "presigned", "Amazon", "S3", "API", "requests", ".", "All", "other", "AWS", "services", "will", "use", "a", "fixed", "expiration", "time", "of", "15", "minutes", ".", "It", "is", "invalid", "to", "create", "a", "presigned", "URL", "with", "a", "expire", "duration", "0", "or", "less", ".", "An", "error", "is", "returned", "if", "expire", "duration", "is", "0", "or", "less", ".", "Returns", "the", "URL", "string", "for", "the", "API", "operation", "with", "signature", "in", "the", "query", "string", "and", "the", "HTTP", "headers", "that", "were", "included", "in", "the", "signature", ".", "These", "headers", "must", "be", "included", "in", "any", "HTTP", "request", "made", "with", "the", "presigned", "URL", ".", "To", "prevent", "hoisting", "any", "headers", "to", "the", "query", "string", "set", "NotHoist", "to", "true", "on", "this", "Request", "value", "prior", "to", "calling", "PresignRequest", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/request.go#L299-L302
166,916
aws/aws-sdk-go
aws/request/request.go
Build
func (r *Request) Build() error { if !r.built { r.Handlers.Validate.Run(r) if r.Error != nil { debugLogReqError(r, "Validate Request", false, r.Error) return r.Error } r.Handlers.Build.Run(r) if r.Error != nil { debugLogReqError(r, "Build Request", false, r.Error) return r.Error } r.built = true } return r.Error }
go
func (r *Request) Build() error { if !r.built { r.Handlers.Validate.Run(r) if r.Error != nil { debugLogReqError(r, "Validate Request", false, r.Error) return r.Error } r.Handlers.Build.Run(r) if r.Error != nil { debugLogReqError(r, "Build Request", false, r.Error) return r.Error } r.built = true } return r.Error }
[ "func", "(", "r", "*", "Request", ")", "Build", "(", ")", "error", "{", "if", "!", "r", ".", "built", "{", "r", ".", "Handlers", ".", "Validate", ".", "Run", "(", "r", ")", "\n", "if", "r", ".", "Error", "!=", "nil", "{", "debugLogReqError", "(", "r", ",", "\"", "\"", ",", "false", ",", "r", ".", "Error", ")", "\n", "return", "r", ".", "Error", "\n", "}", "\n", "r", ".", "Handlers", ".", "Build", ".", "Run", "(", "r", ")", "\n", "if", "r", ".", "Error", "!=", "nil", "{", "debugLogReqError", "(", "r", ",", "\"", "\"", ",", "false", ",", "r", ".", "Error", ")", "\n", "return", "r", ".", "Error", "\n", "}", "\n", "r", ".", "built", "=", "true", "\n", "}", "\n\n", "return", "r", ".", "Error", "\n", "}" ]
// Build will build the request's object so it can be signed and sent // to the service. Build will also validate all the request's parameters. // Any additional build Handlers set on this request will be run // in the order they were set. // // The request will only be built once. Multiple calls to build will have // no effect. // // If any Validate or Build errors occur the build will stop and the error // which occurred will be returned.
[ "Build", "will", "build", "the", "request", "s", "object", "so", "it", "can", "be", "signed", "and", "sent", "to", "the", "service", ".", "Build", "will", "also", "validate", "all", "the", "request", "s", "parameters", ".", "Any", "additional", "build", "Handlers", "set", "on", "this", "request", "will", "be", "run", "in", "the", "order", "they", "were", "set", ".", "The", "request", "will", "only", "be", "built", "once", ".", "Multiple", "calls", "to", "build", "will", "have", "no", "effect", ".", "If", "any", "Validate", "or", "Build", "errors", "occur", "the", "build", "will", "stop", "and", "the", "error", "which", "occurred", "will", "be", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/request.go#L357-L373
166,917
aws/aws-sdk-go
aws/request/request.go
Sign
func (r *Request) Sign() error { r.Build() if r.Error != nil { debugLogReqError(r, "Build Request", false, r.Error) return r.Error } r.Handlers.Sign.Run(r) return r.Error }
go
func (r *Request) Sign() error { r.Build() if r.Error != nil { debugLogReqError(r, "Build Request", false, r.Error) return r.Error } r.Handlers.Sign.Run(r) return r.Error }
[ "func", "(", "r", "*", "Request", ")", "Sign", "(", ")", "error", "{", "r", ".", "Build", "(", ")", "\n", "if", "r", ".", "Error", "!=", "nil", "{", "debugLogReqError", "(", "r", ",", "\"", "\"", ",", "false", ",", "r", ".", "Error", ")", "\n", "return", "r", ".", "Error", "\n", "}", "\n\n", "r", ".", "Handlers", ".", "Sign", ".", "Run", "(", "r", ")", "\n", "return", "r", ".", "Error", "\n", "}" ]
// Sign will sign the request, returning error if errors are encountered. // // Sign will build the request prior to signing. All Sign Handlers will // be executed in the order they were set.
[ "Sign", "will", "sign", "the", "request", "returning", "error", "if", "errors", "are", "encountered", ".", "Sign", "will", "build", "the", "request", "prior", "to", "signing", ".", "All", "Sign", "Handlers", "will", "be", "executed", "in", "the", "order", "they", "were", "set", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/request.go#L379-L388
166,918
aws/aws-sdk-go
aws/request/request.go
copy
func (r *Request) copy() *Request { req := &Request{} *req = *r req.Handlers = r.Handlers.Copy() op := *r.Operation req.Operation = &op return req }
go
func (r *Request) copy() *Request { req := &Request{} *req = *r req.Handlers = r.Handlers.Copy() op := *r.Operation req.Operation = &op return req }
[ "func", "(", "r", "*", "Request", ")", "copy", "(", ")", "*", "Request", "{", "req", ":=", "&", "Request", "{", "}", "\n", "*", "req", "=", "*", "r", "\n", "req", ".", "Handlers", "=", "r", ".", "Handlers", ".", "Copy", "(", ")", "\n", "op", ":=", "*", "r", ".", "Operation", "\n", "req", ".", "Operation", "=", "&", "op", "\n", "return", "req", "\n", "}" ]
// copy will copy a request which will allow for local manipulation of the // request.
[ "copy", "will", "copy", "a", "request", "which", "will", "allow", "for", "local", "manipulation", "of", "the", "request", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/request.go#L546-L553
166,919
aws/aws-sdk-go
aws/request/request.go
AddToUserAgent
func AddToUserAgent(r *Request, s string) { curUA := r.HTTPRequest.Header.Get("User-Agent") if len(curUA) > 0 { s = curUA + " " + s } r.HTTPRequest.Header.Set("User-Agent", s) }
go
func AddToUserAgent(r *Request, s string) { curUA := r.HTTPRequest.Header.Get("User-Agent") if len(curUA) > 0 { s = curUA + " " + s } r.HTTPRequest.Header.Set("User-Agent", s) }
[ "func", "AddToUserAgent", "(", "r", "*", "Request", ",", "s", "string", ")", "{", "curUA", ":=", "r", ".", "HTTPRequest", ".", "Header", ".", "Get", "(", "\"", "\"", ")", "\n", "if", "len", "(", "curUA", ")", ">", "0", "{", "s", "=", "curUA", "+", "\"", "\"", "+", "s", "\n", "}", "\n", "r", ".", "HTTPRequest", ".", "Header", ".", "Set", "(", "\"", "\"", ",", "s", ")", "\n", "}" ]
// AddToUserAgent adds the string to the end of the request's current user agent.
[ "AddToUserAgent", "adds", "the", "string", "to", "the", "end", "of", "the", "request", "s", "current", "user", "agent", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/request.go#L556-L562
166,920
aws/aws-sdk-go
aws/request/request.go
SanitizeHostForHeader
func SanitizeHostForHeader(r *http.Request) { host := getHost(r) port := portOnly(host) if port != "" && isDefaultPort(r.URL.Scheme, port) { r.Host = stripPort(host) } }
go
func SanitizeHostForHeader(r *http.Request) { host := getHost(r) port := portOnly(host) if port != "" && isDefaultPort(r.URL.Scheme, port) { r.Host = stripPort(host) } }
[ "func", "SanitizeHostForHeader", "(", "r", "*", "http", ".", "Request", ")", "{", "host", ":=", "getHost", "(", "r", ")", "\n", "port", ":=", "portOnly", "(", "host", ")", "\n", "if", "port", "!=", "\"", "\"", "&&", "isDefaultPort", "(", "r", ".", "URL", ".", "Scheme", ",", "port", ")", "{", "r", ".", "Host", "=", "stripPort", "(", "host", ")", "\n", "}", "\n", "}" ]
// SanitizeHostForHeader removes default port from host and updates request.Host
[ "SanitizeHostForHeader", "removes", "default", "port", "from", "host", "and", "updates", "request", ".", "Host" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/request.go#L607-L613
166,921
aws/aws-sdk-go
aws/request/request.go
getHost
func getHost(r *http.Request) string { if r.Host != "" { return r.Host } return r.URL.Host }
go
func getHost(r *http.Request) string { if r.Host != "" { return r.Host } return r.URL.Host }
[ "func", "getHost", "(", "r", "*", "http", ".", "Request", ")", "string", "{", "if", "r", ".", "Host", "!=", "\"", "\"", "{", "return", "r", ".", "Host", "\n", "}", "\n\n", "return", "r", ".", "URL", ".", "Host", "\n", "}" ]
// Returns host from request
[ "Returns", "host", "from", "request" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/request.go#L616-L622
166,922
aws/aws-sdk-go
service/mediaconnect/api.go
SetEgressIp
func (s *Flow) SetEgressIp(v string) *Flow { s.EgressIp = &v return s }
go
func (s *Flow) SetEgressIp(v string) *Flow { s.EgressIp = &v return s }
[ "func", "(", "s", "*", "Flow", ")", "SetEgressIp", "(", "v", "string", ")", "*", "Flow", "{", "s", ".", "EgressIp", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetEgressIp sets the EgressIp field's value.
[ "SetEgressIp", "sets", "the", "EgressIp", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediaconnect/api.go#L2614-L2617
166,923
aws/aws-sdk-go
service/mediaconnect/api.go
SetFlows
func (s *ListFlowsOutput) SetFlows(v []*ListedFlow) *ListFlowsOutput { s.Flows = v return s }
go
func (s *ListFlowsOutput) SetFlows(v []*ListedFlow) *ListFlowsOutput { s.Flows = v return s }
[ "func", "(", "s", "*", "ListFlowsOutput", ")", "SetFlows", "(", "v", "[", "]", "*", "ListedFlow", ")", "*", "ListFlowsOutput", "{", "s", ".", "Flows", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetFlows sets the Flows field's value.
[ "SetFlows", "sets", "the", "Flows", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediaconnect/api.go#L2981-L2984
166,924
aws/aws-sdk-go
service/mediaconnect/api.go
SetEntitlementName
func (s *ListedEntitlement) SetEntitlementName(v string) *ListedEntitlement { s.EntitlementName = &v return s }
go
func (s *ListedEntitlement) SetEntitlementName(v string) *ListedEntitlement { s.EntitlementName = &v return s }
[ "func", "(", "s", "*", "ListedEntitlement", ")", "SetEntitlementName", "(", "v", "string", ")", "*", "ListedEntitlement", "{", "s", ".", "EntitlementName", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetEntitlementName sets the EntitlementName field's value.
[ "SetEntitlementName", "sets", "the", "EntitlementName", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediaconnect/api.go#L3088-L3091
166,925
aws/aws-sdk-go
service/mediaconnect/api.go
SetMediaLiveInputArn
func (s *Output) SetMediaLiveInputArn(v string) *Output { s.MediaLiveInputArn = &v return s }
go
func (s *Output) SetMediaLiveInputArn(v string) *Output { s.MediaLiveInputArn = &v return s }
[ "func", "(", "s", "*", "Output", ")", "SetMediaLiveInputArn", "(", "v", "string", ")", "*", "Output", "{", "s", ".", "MediaLiveInputArn", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetMediaLiveInputArn sets the MediaLiveInputArn field's value.
[ "SetMediaLiveInputArn", "sets", "the", "MediaLiveInputArn", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediaconnect/api.go#L3278-L3281
166,926
aws/aws-sdk-go
service/mediaconnect/api.go
SetIngestIp
func (s *Source) SetIngestIp(v string) *Source { s.IngestIp = &v return s }
go
func (s *Source) SetIngestIp(v string) *Source { s.IngestIp = &v return s }
[ "func", "(", "s", "*", "Source", ")", "SetIngestIp", "(", "v", "string", ")", "*", "Source", "{", "s", ".", "IngestIp", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetIngestIp sets the IngestIp field's value.
[ "SetIngestIp", "sets", "the", "IngestIp", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediaconnect/api.go#L3680-L3683
166,927
aws/aws-sdk-go
service/mediaconnect/api.go
SetEntitlement
func (s *UpdateFlowEntitlementOutput) SetEntitlement(v *Entitlement) *UpdateFlowEntitlementOutput { s.Entitlement = v return s }
go
func (s *UpdateFlowEntitlementOutput) SetEntitlement(v *Entitlement) *UpdateFlowEntitlementOutput { s.Entitlement = v return s }
[ "func", "(", "s", "*", "UpdateFlowEntitlementOutput", ")", "SetEntitlement", "(", "v", "*", "Entitlement", ")", "*", "UpdateFlowEntitlementOutput", "{", "s", ".", "Entitlement", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetEntitlement sets the Entitlement field's value.
[ "SetEntitlement", "sets", "the", "Entitlement", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediaconnect/api.go#L4222-L4225
166,928
aws/aws-sdk-go
private/protocol/host_prefix.go
NewHostPrefixHandler
func NewHostPrefixHandler(prefix string, labelsFn func() map[string]string) request.NamedHandler { builder := HostPrefixBuilder{ Prefix: prefix, LabelsFn: labelsFn, } return request.NamedHandler{ Name: HostPrefixHandlerName, Fn: builder.Build, } }
go
func NewHostPrefixHandler(prefix string, labelsFn func() map[string]string) request.NamedHandler { builder := HostPrefixBuilder{ Prefix: prefix, LabelsFn: labelsFn, } return request.NamedHandler{ Name: HostPrefixHandlerName, Fn: builder.Build, } }
[ "func", "NewHostPrefixHandler", "(", "prefix", "string", ",", "labelsFn", "func", "(", ")", "map", "[", "string", "]", "string", ")", "request", ".", "NamedHandler", "{", "builder", ":=", "HostPrefixBuilder", "{", "Prefix", ":", "prefix", ",", "LabelsFn", ":", "labelsFn", ",", "}", "\n\n", "return", "request", ".", "NamedHandler", "{", "Name", ":", "HostPrefixHandlerName", ",", "Fn", ":", "builder", ".", "Build", ",", "}", "\n", "}" ]
// NewHostPrefixHandler constructs a build handler
[ "NewHostPrefixHandler", "constructs", "a", "build", "handler" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/host_prefix.go#L15-L25
166,929
aws/aws-sdk-go
private/protocol/host_prefix.go
Build
func (h HostPrefixBuilder) Build(r *request.Request) { if aws.BoolValue(r.Config.DisableEndpointHostPrefix) { return } var labels map[string]string if h.LabelsFn != nil { labels = h.LabelsFn() } prefix := h.Prefix for name, value := range labels { prefix = strings.Replace(prefix, "{"+name+"}", value, -1) } r.HTTPRequest.URL.Host = prefix + r.HTTPRequest.URL.Host if len(r.HTTPRequest.Host) > 0 { r.HTTPRequest.Host = prefix + r.HTTPRequest.Host } }
go
func (h HostPrefixBuilder) Build(r *request.Request) { if aws.BoolValue(r.Config.DisableEndpointHostPrefix) { return } var labels map[string]string if h.LabelsFn != nil { labels = h.LabelsFn() } prefix := h.Prefix for name, value := range labels { prefix = strings.Replace(prefix, "{"+name+"}", value, -1) } r.HTTPRequest.URL.Host = prefix + r.HTTPRequest.URL.Host if len(r.HTTPRequest.Host) > 0 { r.HTTPRequest.Host = prefix + r.HTTPRequest.Host } }
[ "func", "(", "h", "HostPrefixBuilder", ")", "Build", "(", "r", "*", "request", ".", "Request", ")", "{", "if", "aws", ".", "BoolValue", "(", "r", ".", "Config", ".", "DisableEndpointHostPrefix", ")", "{", "return", "\n", "}", "\n\n", "var", "labels", "map", "[", "string", "]", "string", "\n", "if", "h", ".", "LabelsFn", "!=", "nil", "{", "labels", "=", "h", ".", "LabelsFn", "(", ")", "\n", "}", "\n\n", "prefix", ":=", "h", ".", "Prefix", "\n", "for", "name", ",", "value", ":=", "range", "labels", "{", "prefix", "=", "strings", ".", "Replace", "(", "prefix", ",", "\"", "\"", "+", "name", "+", "\"", "\"", ",", "value", ",", "-", "1", ")", "\n", "}", "\n\n", "r", ".", "HTTPRequest", ".", "URL", ".", "Host", "=", "prefix", "+", "r", ".", "HTTPRequest", ".", "URL", ".", "Host", "\n", "if", "len", "(", "r", ".", "HTTPRequest", ".", "Host", ")", ">", "0", "{", "r", ".", "HTTPRequest", ".", "Host", "=", "prefix", "+", "r", ".", "HTTPRequest", ".", "Host", "\n", "}", "\n", "}" ]
// Build updates the passed in Request with the HostPrefix template expanded.
[ "Build", "updates", "the", "passed", "in", "Request", "with", "the", "HostPrefix", "template", "expanded", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/host_prefix.go#L35-L54
166,930
aws/aws-sdk-go
service/sfn/api.go
SetHeartbeatInSeconds
func (s *ActivityScheduledEventDetails) SetHeartbeatInSeconds(v int64) *ActivityScheduledEventDetails { s.HeartbeatInSeconds = &v return s }
go
func (s *ActivityScheduledEventDetails) SetHeartbeatInSeconds(v int64) *ActivityScheduledEventDetails { s.HeartbeatInSeconds = &v return s }
[ "func", "(", "s", "*", "ActivityScheduledEventDetails", ")", "SetHeartbeatInSeconds", "(", "v", "int64", ")", "*", "ActivityScheduledEventDetails", "{", "s", ".", "HeartbeatInSeconds", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetHeartbeatInSeconds sets the HeartbeatInSeconds field's value.
[ "SetHeartbeatInSeconds", "sets", "the", "HeartbeatInSeconds", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L2379-L2382
166,931
aws/aws-sdk-go
service/sfn/api.go
SetActivityFailedEventDetails
func (s *HistoryEvent) SetActivityFailedEventDetails(v *ActivityFailedEventDetails) *HistoryEvent { s.ActivityFailedEventDetails = v return s }
go
func (s *HistoryEvent) SetActivityFailedEventDetails(v *ActivityFailedEventDetails) *HistoryEvent { s.ActivityFailedEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetActivityFailedEventDetails", "(", "v", "*", "ActivityFailedEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "ActivityFailedEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetActivityFailedEventDetails sets the ActivityFailedEventDetails field's value.
[ "SetActivityFailedEventDetails", "sets", "the", "ActivityFailedEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L3924-L3927
166,932
aws/aws-sdk-go
service/sfn/api.go
SetActivityScheduleFailedEventDetails
func (s *HistoryEvent) SetActivityScheduleFailedEventDetails(v *ActivityScheduleFailedEventDetails) *HistoryEvent { s.ActivityScheduleFailedEventDetails = v return s }
go
func (s *HistoryEvent) SetActivityScheduleFailedEventDetails(v *ActivityScheduleFailedEventDetails) *HistoryEvent { s.ActivityScheduleFailedEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetActivityScheduleFailedEventDetails", "(", "v", "*", "ActivityScheduleFailedEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "ActivityScheduleFailedEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetActivityScheduleFailedEventDetails sets the ActivityScheduleFailedEventDetails field's value.
[ "SetActivityScheduleFailedEventDetails", "sets", "the", "ActivityScheduleFailedEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L3930-L3933
166,933
aws/aws-sdk-go
service/sfn/api.go
SetActivityScheduledEventDetails
func (s *HistoryEvent) SetActivityScheduledEventDetails(v *ActivityScheduledEventDetails) *HistoryEvent { s.ActivityScheduledEventDetails = v return s }
go
func (s *HistoryEvent) SetActivityScheduledEventDetails(v *ActivityScheduledEventDetails) *HistoryEvent { s.ActivityScheduledEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetActivityScheduledEventDetails", "(", "v", "*", "ActivityScheduledEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "ActivityScheduledEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetActivityScheduledEventDetails sets the ActivityScheduledEventDetails field's value.
[ "SetActivityScheduledEventDetails", "sets", "the", "ActivityScheduledEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L3936-L3939
166,934
aws/aws-sdk-go
service/sfn/api.go
SetActivityStartedEventDetails
func (s *HistoryEvent) SetActivityStartedEventDetails(v *ActivityStartedEventDetails) *HistoryEvent { s.ActivityStartedEventDetails = v return s }
go
func (s *HistoryEvent) SetActivityStartedEventDetails(v *ActivityStartedEventDetails) *HistoryEvent { s.ActivityStartedEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetActivityStartedEventDetails", "(", "v", "*", "ActivityStartedEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "ActivityStartedEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetActivityStartedEventDetails sets the ActivityStartedEventDetails field's value.
[ "SetActivityStartedEventDetails", "sets", "the", "ActivityStartedEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L3942-L3945
166,935
aws/aws-sdk-go
service/sfn/api.go
SetActivitySucceededEventDetails
func (s *HistoryEvent) SetActivitySucceededEventDetails(v *ActivitySucceededEventDetails) *HistoryEvent { s.ActivitySucceededEventDetails = v return s }
go
func (s *HistoryEvent) SetActivitySucceededEventDetails(v *ActivitySucceededEventDetails) *HistoryEvent { s.ActivitySucceededEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetActivitySucceededEventDetails", "(", "v", "*", "ActivitySucceededEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "ActivitySucceededEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetActivitySucceededEventDetails sets the ActivitySucceededEventDetails field's value.
[ "SetActivitySucceededEventDetails", "sets", "the", "ActivitySucceededEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L3948-L3951
166,936
aws/aws-sdk-go
service/sfn/api.go
SetActivityTimedOutEventDetails
func (s *HistoryEvent) SetActivityTimedOutEventDetails(v *ActivityTimedOutEventDetails) *HistoryEvent { s.ActivityTimedOutEventDetails = v return s }
go
func (s *HistoryEvent) SetActivityTimedOutEventDetails(v *ActivityTimedOutEventDetails) *HistoryEvent { s.ActivityTimedOutEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetActivityTimedOutEventDetails", "(", "v", "*", "ActivityTimedOutEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "ActivityTimedOutEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetActivityTimedOutEventDetails sets the ActivityTimedOutEventDetails field's value.
[ "SetActivityTimedOutEventDetails", "sets", "the", "ActivityTimedOutEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L3954-L3957
166,937
aws/aws-sdk-go
service/sfn/api.go
SetExecutionAbortedEventDetails
func (s *HistoryEvent) SetExecutionAbortedEventDetails(v *ExecutionAbortedEventDetails) *HistoryEvent { s.ExecutionAbortedEventDetails = v return s }
go
func (s *HistoryEvent) SetExecutionAbortedEventDetails(v *ExecutionAbortedEventDetails) *HistoryEvent { s.ExecutionAbortedEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetExecutionAbortedEventDetails", "(", "v", "*", "ExecutionAbortedEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "ExecutionAbortedEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetExecutionAbortedEventDetails sets the ExecutionAbortedEventDetails field's value.
[ "SetExecutionAbortedEventDetails", "sets", "the", "ExecutionAbortedEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L3960-L3963
166,938
aws/aws-sdk-go
service/sfn/api.go
SetExecutionFailedEventDetails
func (s *HistoryEvent) SetExecutionFailedEventDetails(v *ExecutionFailedEventDetails) *HistoryEvent { s.ExecutionFailedEventDetails = v return s }
go
func (s *HistoryEvent) SetExecutionFailedEventDetails(v *ExecutionFailedEventDetails) *HistoryEvent { s.ExecutionFailedEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetExecutionFailedEventDetails", "(", "v", "*", "ExecutionFailedEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "ExecutionFailedEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetExecutionFailedEventDetails sets the ExecutionFailedEventDetails field's value.
[ "SetExecutionFailedEventDetails", "sets", "the", "ExecutionFailedEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L3966-L3969
166,939
aws/aws-sdk-go
service/sfn/api.go
SetExecutionStartedEventDetails
func (s *HistoryEvent) SetExecutionStartedEventDetails(v *ExecutionStartedEventDetails) *HistoryEvent { s.ExecutionStartedEventDetails = v return s }
go
func (s *HistoryEvent) SetExecutionStartedEventDetails(v *ExecutionStartedEventDetails) *HistoryEvent { s.ExecutionStartedEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetExecutionStartedEventDetails", "(", "v", "*", "ExecutionStartedEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "ExecutionStartedEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetExecutionStartedEventDetails sets the ExecutionStartedEventDetails field's value.
[ "SetExecutionStartedEventDetails", "sets", "the", "ExecutionStartedEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L3972-L3975
166,940
aws/aws-sdk-go
service/sfn/api.go
SetExecutionSucceededEventDetails
func (s *HistoryEvent) SetExecutionSucceededEventDetails(v *ExecutionSucceededEventDetails) *HistoryEvent { s.ExecutionSucceededEventDetails = v return s }
go
func (s *HistoryEvent) SetExecutionSucceededEventDetails(v *ExecutionSucceededEventDetails) *HistoryEvent { s.ExecutionSucceededEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetExecutionSucceededEventDetails", "(", "v", "*", "ExecutionSucceededEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "ExecutionSucceededEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetExecutionSucceededEventDetails sets the ExecutionSucceededEventDetails field's value.
[ "SetExecutionSucceededEventDetails", "sets", "the", "ExecutionSucceededEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L3978-L3981
166,941
aws/aws-sdk-go
service/sfn/api.go
SetExecutionTimedOutEventDetails
func (s *HistoryEvent) SetExecutionTimedOutEventDetails(v *ExecutionTimedOutEventDetails) *HistoryEvent { s.ExecutionTimedOutEventDetails = v return s }
go
func (s *HistoryEvent) SetExecutionTimedOutEventDetails(v *ExecutionTimedOutEventDetails) *HistoryEvent { s.ExecutionTimedOutEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetExecutionTimedOutEventDetails", "(", "v", "*", "ExecutionTimedOutEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "ExecutionTimedOutEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetExecutionTimedOutEventDetails sets the ExecutionTimedOutEventDetails field's value.
[ "SetExecutionTimedOutEventDetails", "sets", "the", "ExecutionTimedOutEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L3984-L3987
166,942
aws/aws-sdk-go
service/sfn/api.go
SetLambdaFunctionFailedEventDetails
func (s *HistoryEvent) SetLambdaFunctionFailedEventDetails(v *LambdaFunctionFailedEventDetails) *HistoryEvent { s.LambdaFunctionFailedEventDetails = v return s }
go
func (s *HistoryEvent) SetLambdaFunctionFailedEventDetails(v *LambdaFunctionFailedEventDetails) *HistoryEvent { s.LambdaFunctionFailedEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetLambdaFunctionFailedEventDetails", "(", "v", "*", "LambdaFunctionFailedEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "LambdaFunctionFailedEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetLambdaFunctionFailedEventDetails sets the LambdaFunctionFailedEventDetails field's value.
[ "SetLambdaFunctionFailedEventDetails", "sets", "the", "LambdaFunctionFailedEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L3996-L3999
166,943
aws/aws-sdk-go
service/sfn/api.go
SetLambdaFunctionScheduleFailedEventDetails
func (s *HistoryEvent) SetLambdaFunctionScheduleFailedEventDetails(v *LambdaFunctionScheduleFailedEventDetails) *HistoryEvent { s.LambdaFunctionScheduleFailedEventDetails = v return s }
go
func (s *HistoryEvent) SetLambdaFunctionScheduleFailedEventDetails(v *LambdaFunctionScheduleFailedEventDetails) *HistoryEvent { s.LambdaFunctionScheduleFailedEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetLambdaFunctionScheduleFailedEventDetails", "(", "v", "*", "LambdaFunctionScheduleFailedEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "LambdaFunctionScheduleFailedEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetLambdaFunctionScheduleFailedEventDetails sets the LambdaFunctionScheduleFailedEventDetails field's value.
[ "SetLambdaFunctionScheduleFailedEventDetails", "sets", "the", "LambdaFunctionScheduleFailedEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L4002-L4005
166,944
aws/aws-sdk-go
service/sfn/api.go
SetLambdaFunctionScheduledEventDetails
func (s *HistoryEvent) SetLambdaFunctionScheduledEventDetails(v *LambdaFunctionScheduledEventDetails) *HistoryEvent { s.LambdaFunctionScheduledEventDetails = v return s }
go
func (s *HistoryEvent) SetLambdaFunctionScheduledEventDetails(v *LambdaFunctionScheduledEventDetails) *HistoryEvent { s.LambdaFunctionScheduledEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetLambdaFunctionScheduledEventDetails", "(", "v", "*", "LambdaFunctionScheduledEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "LambdaFunctionScheduledEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetLambdaFunctionScheduledEventDetails sets the LambdaFunctionScheduledEventDetails field's value.
[ "SetLambdaFunctionScheduledEventDetails", "sets", "the", "LambdaFunctionScheduledEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L4008-L4011
166,945
aws/aws-sdk-go
service/sfn/api.go
SetLambdaFunctionStartFailedEventDetails
func (s *HistoryEvent) SetLambdaFunctionStartFailedEventDetails(v *LambdaFunctionStartFailedEventDetails) *HistoryEvent { s.LambdaFunctionStartFailedEventDetails = v return s }
go
func (s *HistoryEvent) SetLambdaFunctionStartFailedEventDetails(v *LambdaFunctionStartFailedEventDetails) *HistoryEvent { s.LambdaFunctionStartFailedEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetLambdaFunctionStartFailedEventDetails", "(", "v", "*", "LambdaFunctionStartFailedEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "LambdaFunctionStartFailedEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetLambdaFunctionStartFailedEventDetails sets the LambdaFunctionStartFailedEventDetails field's value.
[ "SetLambdaFunctionStartFailedEventDetails", "sets", "the", "LambdaFunctionStartFailedEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L4014-L4017
166,946
aws/aws-sdk-go
service/sfn/api.go
SetLambdaFunctionSucceededEventDetails
func (s *HistoryEvent) SetLambdaFunctionSucceededEventDetails(v *LambdaFunctionSucceededEventDetails) *HistoryEvent { s.LambdaFunctionSucceededEventDetails = v return s }
go
func (s *HistoryEvent) SetLambdaFunctionSucceededEventDetails(v *LambdaFunctionSucceededEventDetails) *HistoryEvent { s.LambdaFunctionSucceededEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetLambdaFunctionSucceededEventDetails", "(", "v", "*", "LambdaFunctionSucceededEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "LambdaFunctionSucceededEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetLambdaFunctionSucceededEventDetails sets the LambdaFunctionSucceededEventDetails field's value.
[ "SetLambdaFunctionSucceededEventDetails", "sets", "the", "LambdaFunctionSucceededEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L4020-L4023
166,947
aws/aws-sdk-go
service/sfn/api.go
SetLambdaFunctionTimedOutEventDetails
func (s *HistoryEvent) SetLambdaFunctionTimedOutEventDetails(v *LambdaFunctionTimedOutEventDetails) *HistoryEvent { s.LambdaFunctionTimedOutEventDetails = v return s }
go
func (s *HistoryEvent) SetLambdaFunctionTimedOutEventDetails(v *LambdaFunctionTimedOutEventDetails) *HistoryEvent { s.LambdaFunctionTimedOutEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetLambdaFunctionTimedOutEventDetails", "(", "v", "*", "LambdaFunctionTimedOutEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "LambdaFunctionTimedOutEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetLambdaFunctionTimedOutEventDetails sets the LambdaFunctionTimedOutEventDetails field's value.
[ "SetLambdaFunctionTimedOutEventDetails", "sets", "the", "LambdaFunctionTimedOutEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L4026-L4029
166,948
aws/aws-sdk-go
service/sfn/api.go
SetPreviousEventId
func (s *HistoryEvent) SetPreviousEventId(v int64) *HistoryEvent { s.PreviousEventId = &v return s }
go
func (s *HistoryEvent) SetPreviousEventId(v int64) *HistoryEvent { s.PreviousEventId = &v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetPreviousEventId", "(", "v", "int64", ")", "*", "HistoryEvent", "{", "s", ".", "PreviousEventId", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetPreviousEventId sets the PreviousEventId field's value.
[ "SetPreviousEventId", "sets", "the", "PreviousEventId", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L4032-L4035
166,949
aws/aws-sdk-go
service/sfn/api.go
SetStateEnteredEventDetails
func (s *HistoryEvent) SetStateEnteredEventDetails(v *StateEnteredEventDetails) *HistoryEvent { s.StateEnteredEventDetails = v return s }
go
func (s *HistoryEvent) SetStateEnteredEventDetails(v *StateEnteredEventDetails) *HistoryEvent { s.StateEnteredEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetStateEnteredEventDetails", "(", "v", "*", "StateEnteredEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "StateEnteredEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetStateEnteredEventDetails sets the StateEnteredEventDetails field's value.
[ "SetStateEnteredEventDetails", "sets", "the", "StateEnteredEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L4038-L4041
166,950
aws/aws-sdk-go
service/sfn/api.go
SetStateExitedEventDetails
func (s *HistoryEvent) SetStateExitedEventDetails(v *StateExitedEventDetails) *HistoryEvent { s.StateExitedEventDetails = v return s }
go
func (s *HistoryEvent) SetStateExitedEventDetails(v *StateExitedEventDetails) *HistoryEvent { s.StateExitedEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetStateExitedEventDetails", "(", "v", "*", "StateExitedEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "StateExitedEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetStateExitedEventDetails sets the StateExitedEventDetails field's value.
[ "SetStateExitedEventDetails", "sets", "the", "StateExitedEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L4044-L4047
166,951
aws/aws-sdk-go
service/sfn/api.go
SetTaskFailedEventDetails
func (s *HistoryEvent) SetTaskFailedEventDetails(v *TaskFailedEventDetails) *HistoryEvent { s.TaskFailedEventDetails = v return s }
go
func (s *HistoryEvent) SetTaskFailedEventDetails(v *TaskFailedEventDetails) *HistoryEvent { s.TaskFailedEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetTaskFailedEventDetails", "(", "v", "*", "TaskFailedEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "TaskFailedEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetTaskFailedEventDetails sets the TaskFailedEventDetails field's value.
[ "SetTaskFailedEventDetails", "sets", "the", "TaskFailedEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L4050-L4053
166,952
aws/aws-sdk-go
service/sfn/api.go
SetTaskScheduledEventDetails
func (s *HistoryEvent) SetTaskScheduledEventDetails(v *TaskScheduledEventDetails) *HistoryEvent { s.TaskScheduledEventDetails = v return s }
go
func (s *HistoryEvent) SetTaskScheduledEventDetails(v *TaskScheduledEventDetails) *HistoryEvent { s.TaskScheduledEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetTaskScheduledEventDetails", "(", "v", "*", "TaskScheduledEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "TaskScheduledEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetTaskScheduledEventDetails sets the TaskScheduledEventDetails field's value.
[ "SetTaskScheduledEventDetails", "sets", "the", "TaskScheduledEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L4056-L4059
166,953
aws/aws-sdk-go
service/sfn/api.go
SetTaskStartFailedEventDetails
func (s *HistoryEvent) SetTaskStartFailedEventDetails(v *TaskStartFailedEventDetails) *HistoryEvent { s.TaskStartFailedEventDetails = v return s }
go
func (s *HistoryEvent) SetTaskStartFailedEventDetails(v *TaskStartFailedEventDetails) *HistoryEvent { s.TaskStartFailedEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetTaskStartFailedEventDetails", "(", "v", "*", "TaskStartFailedEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "TaskStartFailedEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetTaskStartFailedEventDetails sets the TaskStartFailedEventDetails field's value.
[ "SetTaskStartFailedEventDetails", "sets", "the", "TaskStartFailedEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L4062-L4065
166,954
aws/aws-sdk-go
service/sfn/api.go
SetTaskStartedEventDetails
func (s *HistoryEvent) SetTaskStartedEventDetails(v *TaskStartedEventDetails) *HistoryEvent { s.TaskStartedEventDetails = v return s }
go
func (s *HistoryEvent) SetTaskStartedEventDetails(v *TaskStartedEventDetails) *HistoryEvent { s.TaskStartedEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetTaskStartedEventDetails", "(", "v", "*", "TaskStartedEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "TaskStartedEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetTaskStartedEventDetails sets the TaskStartedEventDetails field's value.
[ "SetTaskStartedEventDetails", "sets", "the", "TaskStartedEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L4068-L4071
166,955
aws/aws-sdk-go
service/sfn/api.go
SetTaskSubmitFailedEventDetails
func (s *HistoryEvent) SetTaskSubmitFailedEventDetails(v *TaskSubmitFailedEventDetails) *HistoryEvent { s.TaskSubmitFailedEventDetails = v return s }
go
func (s *HistoryEvent) SetTaskSubmitFailedEventDetails(v *TaskSubmitFailedEventDetails) *HistoryEvent { s.TaskSubmitFailedEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetTaskSubmitFailedEventDetails", "(", "v", "*", "TaskSubmitFailedEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "TaskSubmitFailedEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetTaskSubmitFailedEventDetails sets the TaskSubmitFailedEventDetails field's value.
[ "SetTaskSubmitFailedEventDetails", "sets", "the", "TaskSubmitFailedEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L4074-L4077
166,956
aws/aws-sdk-go
service/sfn/api.go
SetTaskSubmittedEventDetails
func (s *HistoryEvent) SetTaskSubmittedEventDetails(v *TaskSubmittedEventDetails) *HistoryEvent { s.TaskSubmittedEventDetails = v return s }
go
func (s *HistoryEvent) SetTaskSubmittedEventDetails(v *TaskSubmittedEventDetails) *HistoryEvent { s.TaskSubmittedEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetTaskSubmittedEventDetails", "(", "v", "*", "TaskSubmittedEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "TaskSubmittedEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetTaskSubmittedEventDetails sets the TaskSubmittedEventDetails field's value.
[ "SetTaskSubmittedEventDetails", "sets", "the", "TaskSubmittedEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L4080-L4083
166,957
aws/aws-sdk-go
service/sfn/api.go
SetTaskSucceededEventDetails
func (s *HistoryEvent) SetTaskSucceededEventDetails(v *TaskSucceededEventDetails) *HistoryEvent { s.TaskSucceededEventDetails = v return s }
go
func (s *HistoryEvent) SetTaskSucceededEventDetails(v *TaskSucceededEventDetails) *HistoryEvent { s.TaskSucceededEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetTaskSucceededEventDetails", "(", "v", "*", "TaskSucceededEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "TaskSucceededEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetTaskSucceededEventDetails sets the TaskSucceededEventDetails field's value.
[ "SetTaskSucceededEventDetails", "sets", "the", "TaskSucceededEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L4086-L4089
166,958
aws/aws-sdk-go
service/sfn/api.go
SetTaskTimedOutEventDetails
func (s *HistoryEvent) SetTaskTimedOutEventDetails(v *TaskTimedOutEventDetails) *HistoryEvent { s.TaskTimedOutEventDetails = v return s }
go
func (s *HistoryEvent) SetTaskTimedOutEventDetails(v *TaskTimedOutEventDetails) *HistoryEvent { s.TaskTimedOutEventDetails = v return s }
[ "func", "(", "s", "*", "HistoryEvent", ")", "SetTaskTimedOutEventDetails", "(", "v", "*", "TaskTimedOutEventDetails", ")", "*", "HistoryEvent", "{", "s", ".", "TaskTimedOutEventDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetTaskTimedOutEventDetails sets the TaskTimedOutEventDetails field's value.
[ "SetTaskTimedOutEventDetails", "sets", "the", "TaskTimedOutEventDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L4092-L4095
166,959
aws/aws-sdk-go
service/sfn/api.go
SetExecutions
func (s *ListExecutionsOutput) SetExecutions(v []*ExecutionListItem) *ListExecutionsOutput { s.Executions = v return s }
go
func (s *ListExecutionsOutput) SetExecutions(v []*ExecutionListItem) *ListExecutionsOutput { s.Executions = v return s }
[ "func", "(", "s", "*", "ListExecutionsOutput", ")", "SetExecutions", "(", "v", "[", "]", "*", "ExecutionListItem", ")", "*", "ListExecutionsOutput", "{", "s", ".", "Executions", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetExecutions sets the Executions field's value.
[ "SetExecutions", "sets", "the", "Executions", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L4512-L4515
166,960
aws/aws-sdk-go
service/sfn/api.go
SetStateMachines
func (s *ListStateMachinesOutput) SetStateMachines(v []*StateMachineListItem) *ListStateMachinesOutput { s.StateMachines = v return s }
go
func (s *ListStateMachinesOutput) SetStateMachines(v []*StateMachineListItem) *ListStateMachinesOutput { s.StateMachines = v return s }
[ "func", "(", "s", "*", "ListStateMachinesOutput", ")", "SetStateMachines", "(", "v", "[", "]", "*", "StateMachineListItem", ")", "*", "ListStateMachinesOutput", "{", "s", ".", "StateMachines", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetStateMachines sets the StateMachines field's value.
[ "SetStateMachines", "sets", "the", "StateMachines", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sfn/api.go#L4608-L4611
166,961
aws/aws-sdk-go
private/model/api/passes.go
updateTopLevelShapeReferences
func (a *API) updateTopLevelShapeReferences() { for _, o := range a.Operations { // these are for REST-XML services if o.InputRef.LocationName != "" { o.InputRef.Shape.LocationName = o.InputRef.LocationName } if o.InputRef.Location != "" { o.InputRef.Shape.Location = o.InputRef.Location } if o.InputRef.Payload != "" { o.InputRef.Shape.Payload = o.InputRef.Payload } if o.InputRef.XMLNamespace.Prefix != "" { o.InputRef.Shape.XMLNamespace.Prefix = o.InputRef.XMLNamespace.Prefix } if o.InputRef.XMLNamespace.URI != "" { o.InputRef.Shape.XMLNamespace.URI = o.InputRef.XMLNamespace.URI } } }
go
func (a *API) updateTopLevelShapeReferences() { for _, o := range a.Operations { // these are for REST-XML services if o.InputRef.LocationName != "" { o.InputRef.Shape.LocationName = o.InputRef.LocationName } if o.InputRef.Location != "" { o.InputRef.Shape.Location = o.InputRef.Location } if o.InputRef.Payload != "" { o.InputRef.Shape.Payload = o.InputRef.Payload } if o.InputRef.XMLNamespace.Prefix != "" { o.InputRef.Shape.XMLNamespace.Prefix = o.InputRef.XMLNamespace.Prefix } if o.InputRef.XMLNamespace.URI != "" { o.InputRef.Shape.XMLNamespace.URI = o.InputRef.XMLNamespace.URI } } }
[ "func", "(", "a", "*", "API", ")", "updateTopLevelShapeReferences", "(", ")", "{", "for", "_", ",", "o", ":=", "range", "a", ".", "Operations", "{", "// these are for REST-XML services", "if", "o", ".", "InputRef", ".", "LocationName", "!=", "\"", "\"", "{", "o", ".", "InputRef", ".", "Shape", ".", "LocationName", "=", "o", ".", "InputRef", ".", "LocationName", "\n", "}", "\n", "if", "o", ".", "InputRef", ".", "Location", "!=", "\"", "\"", "{", "o", ".", "InputRef", ".", "Shape", ".", "Location", "=", "o", ".", "InputRef", ".", "Location", "\n", "}", "\n", "if", "o", ".", "InputRef", ".", "Payload", "!=", "\"", "\"", "{", "o", ".", "InputRef", ".", "Shape", ".", "Payload", "=", "o", ".", "InputRef", ".", "Payload", "\n", "}", "\n", "if", "o", ".", "InputRef", ".", "XMLNamespace", ".", "Prefix", "!=", "\"", "\"", "{", "o", ".", "InputRef", ".", "Shape", ".", "XMLNamespace", ".", "Prefix", "=", "o", ".", "InputRef", ".", "XMLNamespace", ".", "Prefix", "\n", "}", "\n", "if", "o", ".", "InputRef", ".", "XMLNamespace", ".", "URI", "!=", "\"", "\"", "{", "o", ".", "InputRef", ".", "Shape", ".", "XMLNamespace", ".", "URI", "=", "o", ".", "InputRef", ".", "XMLNamespace", ".", "URI", "\n", "}", "\n", "}", "\n\n", "}" ]
// updateTopLevelShapeReferences moves resultWrapper, locationName, and // xmlNamespace traits from toplevel shape references to the toplevel // shapes for easier code generation
[ "updateTopLevelShapeReferences", "moves", "resultWrapper", "locationName", "and", "xmlNamespace", "traits", "from", "toplevel", "shape", "references", "to", "the", "toplevel", "shapes", "for", "easier", "code", "generation" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/passes.go#L14-L34
166,962
aws/aws-sdk-go
private/model/api/passes.go
writeShapeNames
func (a *API) writeShapeNames() { for n, s := range a.Shapes { s.API = a s.ShapeName = n } }
go
func (a *API) writeShapeNames() { for n, s := range a.Shapes { s.API = a s.ShapeName = n } }
[ "func", "(", "a", "*", "API", ")", "writeShapeNames", "(", ")", "{", "for", "n", ",", "s", ":=", "range", "a", ".", "Shapes", "{", "s", ".", "API", "=", "a", "\n", "s", ".", "ShapeName", "=", "n", "\n", "}", "\n", "}" ]
// writeShapeNames sets each shape's API and shape name values. Binding the // shape to its parent API.
[ "writeShapeNames", "sets", "each", "shape", "s", "API", "and", "shape", "name", "values", ".", "Binding", "the", "shape", "to", "its", "parent", "API", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/passes.go#L38-L43
166,963
aws/aws-sdk-go
private/model/api/passes.go
resolveReference
func (r *referenceResolver) resolveReference(ref *ShapeRef) { if ref.ShapeName == "" { return } shape, ok := r.API.Shapes[ref.ShapeName] if !ok { panic(fmt.Sprintf("unable resolve reference, %s", ref.ShapeName)) } if ref.JSONValue { ref.ShapeName = "JSONValue" if _, ok := r.API.Shapes[ref.ShapeName]; !ok { r.API.Shapes[ref.ShapeName] = &Shape{ API: r.API, ShapeName: "JSONValue", Type: "jsonvalue", ValueRef: ShapeRef{ JSONValue: true, }, } } } ref.API = r.API // resolve reference back to API ref.Shape = shape // resolve shape reference if r.visited[ref] { return } r.visited[ref] = true shape.refs = append(shape.refs, ref) // register the ref // resolve shape's references, if it has any r.resolveShape(shape) }
go
func (r *referenceResolver) resolveReference(ref *ShapeRef) { if ref.ShapeName == "" { return } shape, ok := r.API.Shapes[ref.ShapeName] if !ok { panic(fmt.Sprintf("unable resolve reference, %s", ref.ShapeName)) } if ref.JSONValue { ref.ShapeName = "JSONValue" if _, ok := r.API.Shapes[ref.ShapeName]; !ok { r.API.Shapes[ref.ShapeName] = &Shape{ API: r.API, ShapeName: "JSONValue", Type: "jsonvalue", ValueRef: ShapeRef{ JSONValue: true, }, } } } ref.API = r.API // resolve reference back to API ref.Shape = shape // resolve shape reference if r.visited[ref] { return } r.visited[ref] = true shape.refs = append(shape.refs, ref) // register the ref // resolve shape's references, if it has any r.resolveShape(shape) }
[ "func", "(", "r", "*", "referenceResolver", ")", "resolveReference", "(", "ref", "*", "ShapeRef", ")", "{", "if", "ref", ".", "ShapeName", "==", "\"", "\"", "{", "return", "\n", "}", "\n\n", "shape", ",", "ok", ":=", "r", ".", "API", ".", "Shapes", "[", "ref", ".", "ShapeName", "]", "\n", "if", "!", "ok", "{", "panic", "(", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "ref", ".", "ShapeName", ")", ")", "\n", "}", "\n\n", "if", "ref", ".", "JSONValue", "{", "ref", ".", "ShapeName", "=", "\"", "\"", "\n", "if", "_", ",", "ok", ":=", "r", ".", "API", ".", "Shapes", "[", "ref", ".", "ShapeName", "]", ";", "!", "ok", "{", "r", ".", "API", ".", "Shapes", "[", "ref", ".", "ShapeName", "]", "=", "&", "Shape", "{", "API", ":", "r", ".", "API", ",", "ShapeName", ":", "\"", "\"", ",", "Type", ":", "\"", "\"", ",", "ValueRef", ":", "ShapeRef", "{", "JSONValue", ":", "true", ",", "}", ",", "}", "\n", "}", "\n", "}", "\n\n", "ref", ".", "API", "=", "r", ".", "API", "// resolve reference back to API", "\n", "ref", ".", "Shape", "=", "shape", "// resolve shape reference", "\n\n", "if", "r", ".", "visited", "[", "ref", "]", "{", "return", "\n", "}", "\n", "r", ".", "visited", "[", "ref", "]", "=", "true", "\n\n", "shape", ".", "refs", "=", "append", "(", "shape", ".", "refs", ",", "ref", ")", "// register the ref", "\n\n", "// resolve shape's references, if it has any", "r", ".", "resolveShape", "(", "shape", ")", "\n", "}" ]
// resolveReference updates a shape reference to reference the API and // its shape definition. All other nested references are also resolved.
[ "resolveReference", "updates", "a", "shape", "reference", "to", "reference", "the", "API", "and", "its", "shape", "definition", ".", "All", "other", "nested", "references", "are", "also", "resolved", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/passes.go#L76-L112
166,964
aws/aws-sdk-go
private/model/api/passes.go
resolveShape
func (r *referenceResolver) resolveShape(shape *Shape) { r.resolveReference(&shape.MemberRef) r.resolveReference(&shape.KeyRef) r.resolveReference(&shape.ValueRef) for _, m := range shape.MemberRefs { r.resolveReference(m) } }
go
func (r *referenceResolver) resolveShape(shape *Shape) { r.resolveReference(&shape.MemberRef) r.resolveReference(&shape.KeyRef) r.resolveReference(&shape.ValueRef) for _, m := range shape.MemberRefs { r.resolveReference(m) } }
[ "func", "(", "r", "*", "referenceResolver", ")", "resolveShape", "(", "shape", "*", "Shape", ")", "{", "r", ".", "resolveReference", "(", "&", "shape", ".", "MemberRef", ")", "\n", "r", ".", "resolveReference", "(", "&", "shape", ".", "KeyRef", ")", "\n", "r", ".", "resolveReference", "(", "&", "shape", ".", "ValueRef", ")", "\n", "for", "_", ",", "m", ":=", "range", "shape", ".", "MemberRefs", "{", "r", ".", "resolveReference", "(", "m", ")", "\n", "}", "\n", "}" ]
// resolveShape resolves a shape's Member Key Value, and nested member // shape references.
[ "resolveShape", "resolves", "a", "shape", "s", "Member", "Key", "Value", "and", "nested", "member", "shape", "references", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/passes.go#L116-L123
166,965
aws/aws-sdk-go
private/model/api/passes.go
renameExportable
func (a *API) renameExportable() { for name, op := range a.Operations { newName := a.ExportableName(name) if newName != name { delete(a.Operations, name) a.Operations[newName] = op } op.ExportedName = newName } for k, s := range a.Shapes { // FIXME SNS has lower and uppercased shape names with the same name, // except the lowercased variant is used exclusively for string and // other primitive types. Renaming both would cause a collision. // We work around this by only renaming the structure shapes. if s.Type == "string" { continue } for mName, member := range s.MemberRefs { ref := s.MemberRefs[mName] ref.OrigShapeName = mName s.MemberRefs[mName] = ref newName := a.ExportableName(mName) if newName != mName { delete(s.MemberRefs, mName) s.MemberRefs[newName] = member // also apply locationName trait so we keep the old one // but only if there's no locationName trait on ref or shape if member.LocationName == "" && member.Shape.LocationName == "" { member.LocationName = mName } } if newName == "_" { panic("Shape " + s.ShapeName + " uses reserved member name '_'") } } newName := a.ExportableName(k) if newName != s.ShapeName { s.Rename(newName) } s.Payload = a.ExportableName(s.Payload) // fix required trait names for i, n := range s.Required { s.Required[i] = a.ExportableName(n) } } for _, s := range a.Shapes { // fix enum names if s.IsEnum() { s.EnumConsts = make([]string, len(s.Enum)) for i := range s.Enum { shape := s.ShapeName shape = strings.ToUpper(shape[0:1]) + shape[1:] s.EnumConsts[i] = shape + s.EnumName(i) } } } }
go
func (a *API) renameExportable() { for name, op := range a.Operations { newName := a.ExportableName(name) if newName != name { delete(a.Operations, name) a.Operations[newName] = op } op.ExportedName = newName } for k, s := range a.Shapes { // FIXME SNS has lower and uppercased shape names with the same name, // except the lowercased variant is used exclusively for string and // other primitive types. Renaming both would cause a collision. // We work around this by only renaming the structure shapes. if s.Type == "string" { continue } for mName, member := range s.MemberRefs { ref := s.MemberRefs[mName] ref.OrigShapeName = mName s.MemberRefs[mName] = ref newName := a.ExportableName(mName) if newName != mName { delete(s.MemberRefs, mName) s.MemberRefs[newName] = member // also apply locationName trait so we keep the old one // but only if there's no locationName trait on ref or shape if member.LocationName == "" && member.Shape.LocationName == "" { member.LocationName = mName } } if newName == "_" { panic("Shape " + s.ShapeName + " uses reserved member name '_'") } } newName := a.ExportableName(k) if newName != s.ShapeName { s.Rename(newName) } s.Payload = a.ExportableName(s.Payload) // fix required trait names for i, n := range s.Required { s.Required[i] = a.ExportableName(n) } } for _, s := range a.Shapes { // fix enum names if s.IsEnum() { s.EnumConsts = make([]string, len(s.Enum)) for i := range s.Enum { shape := s.ShapeName shape = strings.ToUpper(shape[0:1]) + shape[1:] s.EnumConsts[i] = shape + s.EnumName(i) } } } }
[ "func", "(", "a", "*", "API", ")", "renameExportable", "(", ")", "{", "for", "name", ",", "op", ":=", "range", "a", ".", "Operations", "{", "newName", ":=", "a", ".", "ExportableName", "(", "name", ")", "\n", "if", "newName", "!=", "name", "{", "delete", "(", "a", ".", "Operations", ",", "name", ")", "\n", "a", ".", "Operations", "[", "newName", "]", "=", "op", "\n", "}", "\n", "op", ".", "ExportedName", "=", "newName", "\n", "}", "\n\n", "for", "k", ",", "s", ":=", "range", "a", ".", "Shapes", "{", "// FIXME SNS has lower and uppercased shape names with the same name,", "// except the lowercased variant is used exclusively for string and", "// other primitive types. Renaming both would cause a collision.", "// We work around this by only renaming the structure shapes.", "if", "s", ".", "Type", "==", "\"", "\"", "{", "continue", "\n", "}", "\n\n", "for", "mName", ",", "member", ":=", "range", "s", ".", "MemberRefs", "{", "ref", ":=", "s", ".", "MemberRefs", "[", "mName", "]", "\n", "ref", ".", "OrigShapeName", "=", "mName", "\n", "s", ".", "MemberRefs", "[", "mName", "]", "=", "ref", "\n\n", "newName", ":=", "a", ".", "ExportableName", "(", "mName", ")", "\n", "if", "newName", "!=", "mName", "{", "delete", "(", "s", ".", "MemberRefs", ",", "mName", ")", "\n", "s", ".", "MemberRefs", "[", "newName", "]", "=", "member", "\n\n", "// also apply locationName trait so we keep the old one", "// but only if there's no locationName trait on ref or shape", "if", "member", ".", "LocationName", "==", "\"", "\"", "&&", "member", ".", "Shape", ".", "LocationName", "==", "\"", "\"", "{", "member", ".", "LocationName", "=", "mName", "\n", "}", "\n", "}", "\n\n", "if", "newName", "==", "\"", "\"", "{", "panic", "(", "\"", "\"", "+", "s", ".", "ShapeName", "+", "\"", "\"", ")", "\n", "}", "\n", "}", "\n\n", "newName", ":=", "a", ".", "ExportableName", "(", "k", ")", "\n", "if", "newName", "!=", "s", ".", "ShapeName", "{", "s", ".", "Rename", "(", "newName", ")", "\n", "}", "\n\n", "s", ".", "Payload", "=", "a", ".", "ExportableName", "(", "s", ".", "Payload", ")", "\n\n", "// fix required trait names", "for", "i", ",", "n", ":=", "range", "s", ".", "Required", "{", "s", ".", "Required", "[", "i", "]", "=", "a", ".", "ExportableName", "(", "n", ")", "\n", "}", "\n", "}", "\n\n", "for", "_", ",", "s", ":=", "range", "a", ".", "Shapes", "{", "// fix enum names", "if", "s", ".", "IsEnum", "(", ")", "{", "s", ".", "EnumConsts", "=", "make", "(", "[", "]", "string", ",", "len", "(", "s", ".", "Enum", ")", ")", "\n", "for", "i", ":=", "range", "s", ".", "Enum", "{", "shape", ":=", "s", ".", "ShapeName", "\n", "shape", "=", "strings", ".", "ToUpper", "(", "shape", "[", "0", ":", "1", "]", ")", "+", "shape", "[", "1", ":", "]", "\n", "s", ".", "EnumConsts", "[", "i", "]", "=", "shape", "+", "s", ".", "EnumName", "(", "i", ")", "\n", "}", "\n", "}", "\n", "}", "\n", "}" ]
// renameExportable renames all operation names to be exportable names. // All nested Shape names are also updated to the exportable variant.
[ "renameExportable", "renames", "all", "operation", "names", "to", "be", "exportable", "names", ".", "All", "nested", "Shape", "names", "are", "also", "updated", "to", "the", "exportable", "variant", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/passes.go#L155-L220
166,966
aws/aws-sdk-go
private/model/api/passes.go
renameCollidingFields
func (a *API) renameCollidingFields() { for _, v := range a.Shapes { namesWithSet := map[string]struct{}{} for k, field := range v.MemberRefs { if _, ok := v.MemberRefs["Set"+k]; ok { namesWithSet["Set"+k] = struct{}{} } if collides(k) || (v.Exception && exceptionCollides(k)) { renameCollidingField(k, v, field) } } // checks if any field names collide with setters. for name := range namesWithSet { field := v.MemberRefs[name] renameCollidingField(name, v, field) } } }
go
func (a *API) renameCollidingFields() { for _, v := range a.Shapes { namesWithSet := map[string]struct{}{} for k, field := range v.MemberRefs { if _, ok := v.MemberRefs["Set"+k]; ok { namesWithSet["Set"+k] = struct{}{} } if collides(k) || (v.Exception && exceptionCollides(k)) { renameCollidingField(k, v, field) } } // checks if any field names collide with setters. for name := range namesWithSet { field := v.MemberRefs[name] renameCollidingField(name, v, field) } } }
[ "func", "(", "a", "*", "API", ")", "renameCollidingFields", "(", ")", "{", "for", "_", ",", "v", ":=", "range", "a", ".", "Shapes", "{", "namesWithSet", ":=", "map", "[", "string", "]", "struct", "{", "}", "{", "}", "\n", "for", "k", ",", "field", ":=", "range", "v", ".", "MemberRefs", "{", "if", "_", ",", "ok", ":=", "v", ".", "MemberRefs", "[", "\"", "\"", "+", "k", "]", ";", "ok", "{", "namesWithSet", "[", "\"", "\"", "+", "k", "]", "=", "struct", "{", "}", "{", "}", "\n", "}", "\n\n", "if", "collides", "(", "k", ")", "||", "(", "v", ".", "Exception", "&&", "exceptionCollides", "(", "k", ")", ")", "{", "renameCollidingField", "(", "k", ",", "v", ",", "field", ")", "\n", "}", "\n", "}", "\n\n", "// checks if any field names collide with setters.", "for", "name", ":=", "range", "namesWithSet", "{", "field", ":=", "v", ".", "MemberRefs", "[", "name", "]", "\n", "renameCollidingField", "(", "name", ",", "v", ",", "field", ")", "\n", "}", "\n", "}", "\n", "}" ]
// renameCollidingFields will rename any fields that uses an SDK or Golang // specific name.
[ "renameCollidingFields", "will", "rename", "any", "fields", "that", "uses", "an", "SDK", "or", "Golang", "specific", "name", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/passes.go#L224-L243
166,967
aws/aws-sdk-go
private/model/api/passes.go
makeIOShape
func (a *API) makeIOShape(name string) *Shape { shape := &Shape{ API: a, ShapeName: name, Type: "structure", MemberRefs: map[string]*ShapeRef{}, } a.Shapes[name] = shape return shape }
go
func (a *API) makeIOShape(name string) *Shape { shape := &Shape{ API: a, ShapeName: name, Type: "structure", MemberRefs: map[string]*ShapeRef{}, } a.Shapes[name] = shape return shape }
[ "func", "(", "a", "*", "API", ")", "makeIOShape", "(", "name", "string", ")", "*", "Shape", "{", "shape", ":=", "&", "Shape", "{", "API", ":", "a", ",", "ShapeName", ":", "name", ",", "Type", ":", "\"", "\"", ",", "MemberRefs", ":", "map", "[", "string", "]", "*", "ShapeRef", "{", "}", ",", "}", "\n", "a", ".", "Shapes", "[", "name", "]", "=", "shape", "\n", "return", "shape", "\n", "}" ]
// makeIOShape returns a pointer to a new Shape initialized by the name provided.
[ "makeIOShape", "returns", "a", "pointer", "to", "a", "new", "Shape", "initialized", "by", "the", "name", "provided", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/passes.go#L342-L349
166,968
aws/aws-sdk-go
private/model/api/passes.go
removeUnusedShapes
func (a *API) removeUnusedShapes() { for _, s := range a.Shapes { if len(s.refs) == 0 { a.removeShape(s) } } }
go
func (a *API) removeUnusedShapes() { for _, s := range a.Shapes { if len(s.refs) == 0 { a.removeShape(s) } } }
[ "func", "(", "a", "*", "API", ")", "removeUnusedShapes", "(", ")", "{", "for", "_", ",", "s", ":=", "range", "a", ".", "Shapes", "{", "if", "len", "(", "s", ".", "refs", ")", "==", "0", "{", "a", ".", "removeShape", "(", "s", ")", "\n", "}", "\n", "}", "\n", "}" ]
// removeUnusedShapes removes shapes from the API which are not referenced by any // other shape in the API.
[ "removeUnusedShapes", "removes", "shapes", "from", "the", "API", "which", "are", "not", "referenced", "by", "any", "other", "shape", "in", "the", "API", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/passes.go#L353-L359
166,969
aws/aws-sdk-go
private/model/api/passes.go
setMetadataEndpointsKey
func (a *API) setMetadataEndpointsKey() { if len(a.Metadata.EndpointsID) != 0 { return } if v, ok := custEndpointsKey[a.PackageName()]; ok { a.Metadata.EndpointsID = v } else { a.Metadata.EndpointsID = a.Metadata.EndpointPrefix } }
go
func (a *API) setMetadataEndpointsKey() { if len(a.Metadata.EndpointsID) != 0 { return } if v, ok := custEndpointsKey[a.PackageName()]; ok { a.Metadata.EndpointsID = v } else { a.Metadata.EndpointsID = a.Metadata.EndpointPrefix } }
[ "func", "(", "a", "*", "API", ")", "setMetadataEndpointsKey", "(", ")", "{", "if", "len", "(", "a", ".", "Metadata", ".", "EndpointsID", ")", "!=", "0", "{", "return", "\n", "}", "\n\n", "if", "v", ",", "ok", ":=", "custEndpointsKey", "[", "a", ".", "PackageName", "(", ")", "]", ";", "ok", "{", "a", ".", "Metadata", ".", "EndpointsID", "=", "v", "\n", "}", "else", "{", "a", ".", "Metadata", ".", "EndpointsID", "=", "a", ".", "Metadata", ".", "EndpointPrefix", "\n", "}", "\n", "}" ]
// Sents the EndpointsID field of Metadata with the value of the // EndpointPrefix if EndpointsID is not set. Also adds // customizations for services if EndpointPrefix is not a valid key.
[ "Sents", "the", "EndpointsID", "field", "of", "Metadata", "with", "the", "value", "of", "the", "EndpointPrefix", "if", "EndpointsID", "is", "not", "set", ".", "Also", "adds", "customizations", "for", "services", "if", "EndpointPrefix", "is", "not", "a", "valid", "key", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/passes.go#L369-L379
166,970
aws/aws-sdk-go
service/cloudhsm/api.go
SetHapgSerial
func (s *DescribeHapgOutput) SetHapgSerial(v string) *DescribeHapgOutput { s.HapgSerial = &v return s }
go
func (s *DescribeHapgOutput) SetHapgSerial(v string) *DescribeHapgOutput { s.HapgSerial = &v return s }
[ "func", "(", "s", "*", "DescribeHapgOutput", ")", "SetHapgSerial", "(", "v", "string", ")", "*", "DescribeHapgOutput", "{", "s", ".", "HapgSerial", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetHapgSerial sets the HapgSerial field's value.
[ "SetHapgSerial", "sets", "the", "HapgSerial", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsm/api.go#L2590-L2593
166,971
aws/aws-sdk-go
service/cloudhsm/api.go
SetHsmsLastActionFailed
func (s *DescribeHapgOutput) SetHsmsLastActionFailed(v []*string) *DescribeHapgOutput { s.HsmsLastActionFailed = v return s }
go
func (s *DescribeHapgOutput) SetHsmsLastActionFailed(v []*string) *DescribeHapgOutput { s.HsmsLastActionFailed = v return s }
[ "func", "(", "s", "*", "DescribeHapgOutput", ")", "SetHsmsLastActionFailed", "(", "v", "[", "]", "*", "string", ")", "*", "DescribeHapgOutput", "{", "s", ".", "HsmsLastActionFailed", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetHsmsLastActionFailed sets the HsmsLastActionFailed field's value.
[ "SetHsmsLastActionFailed", "sets", "the", "HsmsLastActionFailed", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsm/api.go#L2596-L2599
166,972
aws/aws-sdk-go
service/cloudhsm/api.go
SetHsmsPendingDeletion
func (s *DescribeHapgOutput) SetHsmsPendingDeletion(v []*string) *DescribeHapgOutput { s.HsmsPendingDeletion = v return s }
go
func (s *DescribeHapgOutput) SetHsmsPendingDeletion(v []*string) *DescribeHapgOutput { s.HsmsPendingDeletion = v return s }
[ "func", "(", "s", "*", "DescribeHapgOutput", ")", "SetHsmsPendingDeletion", "(", "v", "[", "]", "*", "string", ")", "*", "DescribeHapgOutput", "{", "s", ".", "HsmsPendingDeletion", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetHsmsPendingDeletion sets the HsmsPendingDeletion field's value.
[ "SetHsmsPendingDeletion", "sets", "the", "HsmsPendingDeletion", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsm/api.go#L2602-L2605
166,973
aws/aws-sdk-go
service/cloudhsm/api.go
SetHsmsPendingRegistration
func (s *DescribeHapgOutput) SetHsmsPendingRegistration(v []*string) *DescribeHapgOutput { s.HsmsPendingRegistration = v return s }
go
func (s *DescribeHapgOutput) SetHsmsPendingRegistration(v []*string) *DescribeHapgOutput { s.HsmsPendingRegistration = v return s }
[ "func", "(", "s", "*", "DescribeHapgOutput", ")", "SetHsmsPendingRegistration", "(", "v", "[", "]", "*", "string", ")", "*", "DescribeHapgOutput", "{", "s", ".", "HsmsPendingRegistration", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetHsmsPendingRegistration sets the HsmsPendingRegistration field's value.
[ "SetHsmsPendingRegistration", "sets", "the", "HsmsPendingRegistration", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsm/api.go#L2608-L2611
166,974
aws/aws-sdk-go
service/cloudhsm/api.go
SetHsmSerialNumber
func (s *DescribeHsmInput) SetHsmSerialNumber(v string) *DescribeHsmInput { s.HsmSerialNumber = &v return s }
go
func (s *DescribeHsmInput) SetHsmSerialNumber(v string) *DescribeHsmInput { s.HsmSerialNumber = &v return s }
[ "func", "(", "s", "*", "DescribeHsmInput", ")", "SetHsmSerialNumber", "(", "v", "string", ")", "*", "DescribeHsmInput", "{", "s", ".", "HsmSerialNumber", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetHsmSerialNumber sets the HsmSerialNumber field's value.
[ "SetHsmSerialNumber", "sets", "the", "HsmSerialNumber", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsm/api.go#L2667-L2670
166,975
aws/aws-sdk-go
service/cloudhsm/api.go
SetServerCertLastUpdated
func (s *DescribeHsmOutput) SetServerCertLastUpdated(v string) *DescribeHsmOutput { s.ServerCertLastUpdated = &v return s }
go
func (s *DescribeHsmOutput) SetServerCertLastUpdated(v string) *DescribeHsmOutput { s.ServerCertLastUpdated = &v return s }
[ "func", "(", "s", "*", "DescribeHsmOutput", ")", "SetServerCertLastUpdated", "(", "v", "string", ")", "*", "DescribeHsmOutput", "{", "s", ".", "ServerCertLastUpdated", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetServerCertLastUpdated sets the ServerCertLastUpdated field's value.
[ "SetServerCertLastUpdated", "sets", "the", "ServerCertLastUpdated", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsm/api.go#L2803-L2806
166,976
aws/aws-sdk-go
service/cloudhsm/api.go
SetServerCertUri
func (s *DescribeHsmOutput) SetServerCertUri(v string) *DescribeHsmOutput { s.ServerCertUri = &v return s }
go
func (s *DescribeHsmOutput) SetServerCertUri(v string) *DescribeHsmOutput { s.ServerCertUri = &v return s }
[ "func", "(", "s", "*", "DescribeHsmOutput", ")", "SetServerCertUri", "(", "v", "string", ")", "*", "DescribeHsmOutput", "{", "s", ".", "ServerCertUri", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetServerCertUri sets the ServerCertUri field's value.
[ "SetServerCertUri", "sets", "the", "ServerCertUri", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsm/api.go#L2809-L2812
166,977
aws/aws-sdk-go
service/cloudhsm/api.go
SetSshKeyLastUpdated
func (s *DescribeHsmOutput) SetSshKeyLastUpdated(v string) *DescribeHsmOutput { s.SshKeyLastUpdated = &v return s }
go
func (s *DescribeHsmOutput) SetSshKeyLastUpdated(v string) *DescribeHsmOutput { s.SshKeyLastUpdated = &v return s }
[ "func", "(", "s", "*", "DescribeHsmOutput", ")", "SetSshKeyLastUpdated", "(", "v", "string", ")", "*", "DescribeHsmOutput", "{", "s", ".", "SshKeyLastUpdated", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetSshKeyLastUpdated sets the SshKeyLastUpdated field's value.
[ "SetSshKeyLastUpdated", "sets", "the", "SshKeyLastUpdated", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsm/api.go#L2821-L2824
166,978
aws/aws-sdk-go
service/cloudhsm/api.go
SetSubscriptionEndDate
func (s *DescribeHsmOutput) SetSubscriptionEndDate(v string) *DescribeHsmOutput { s.SubscriptionEndDate = &v return s }
go
func (s *DescribeHsmOutput) SetSubscriptionEndDate(v string) *DescribeHsmOutput { s.SubscriptionEndDate = &v return s }
[ "func", "(", "s", "*", "DescribeHsmOutput", ")", "SetSubscriptionEndDate", "(", "v", "string", ")", "*", "DescribeHsmOutput", "{", "s", ".", "SubscriptionEndDate", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetSubscriptionEndDate sets the SubscriptionEndDate field's value.
[ "SetSubscriptionEndDate", "sets", "the", "SubscriptionEndDate", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsm/api.go#L2851-L2854
166,979
aws/aws-sdk-go
service/cloudhsm/api.go
SetSubscriptionStartDate
func (s *DescribeHsmOutput) SetSubscriptionStartDate(v string) *DescribeHsmOutput { s.SubscriptionStartDate = &v return s }
go
func (s *DescribeHsmOutput) SetSubscriptionStartDate(v string) *DescribeHsmOutput { s.SubscriptionStartDate = &v return s }
[ "func", "(", "s", "*", "DescribeHsmOutput", ")", "SetSubscriptionStartDate", "(", "v", "string", ")", "*", "DescribeHsmOutput", "{", "s", ".", "SubscriptionStartDate", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetSubscriptionStartDate sets the SubscriptionStartDate field's value.
[ "SetSubscriptionStartDate", "sets", "the", "SubscriptionStartDate", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsm/api.go#L2857-L2860
166,980
aws/aws-sdk-go
service/cloudhsm/api.go
SetVendorName
func (s *DescribeHsmOutput) SetVendorName(v string) *DescribeHsmOutput { s.VendorName = &v return s }
go
func (s *DescribeHsmOutput) SetVendorName(v string) *DescribeHsmOutput { s.VendorName = &v return s }
[ "func", "(", "s", "*", "DescribeHsmOutput", ")", "SetVendorName", "(", "v", "string", ")", "*", "DescribeHsmOutput", "{", "s", ".", "VendorName", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetVendorName sets the VendorName field's value.
[ "SetVendorName", "sets", "the", "VendorName", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsm/api.go#L2869-L2872
166,981
aws/aws-sdk-go
service/cloudhsm/api.go
SetClientVersion
func (s *GetConfigInput) SetClientVersion(v string) *GetConfigInput { s.ClientVersion = &v return s }
go
func (s *GetConfigInput) SetClientVersion(v string) *GetConfigInput { s.ClientVersion = &v return s }
[ "func", "(", "s", "*", "GetConfigInput", ")", "SetClientVersion", "(", "v", "string", ")", "*", "GetConfigInput", "{", "s", ".", "ClientVersion", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetClientVersion sets the ClientVersion field's value.
[ "SetClientVersion", "sets", "the", "ClientVersion", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsm/api.go#L3027-L3030
166,982
aws/aws-sdk-go
service/cloudhsm/api.go
SetConfigCred
func (s *GetConfigOutput) SetConfigCred(v string) *GetConfigOutput { s.ConfigCred = &v return s }
go
func (s *GetConfigOutput) SetConfigCred(v string) *GetConfigOutput { s.ConfigCred = &v return s }
[ "func", "(", "s", "*", "GetConfigOutput", ")", "SetConfigCred", "(", "v", "string", ")", "*", "GetConfigOutput", "{", "s", ".", "ConfigCred", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetConfigCred sets the ConfigCred field's value.
[ "SetConfigCred", "sets", "the", "ConfigCred", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsm/api.go#L3062-L3065
166,983
aws/aws-sdk-go
service/cloudhsm/api.go
SetConfigFile
func (s *GetConfigOutput) SetConfigFile(v string) *GetConfigOutput { s.ConfigFile = &v return s }
go
func (s *GetConfigOutput) SetConfigFile(v string) *GetConfigOutput { s.ConfigFile = &v return s }
[ "func", "(", "s", "*", "GetConfigOutput", ")", "SetConfigFile", "(", "v", "string", ")", "*", "GetConfigOutput", "{", "s", ".", "ConfigFile", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetConfigFile sets the ConfigFile field's value.
[ "SetConfigFile", "sets", "the", "ConfigFile", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsm/api.go#L3068-L3071
166,984
aws/aws-sdk-go
service/cloudhsm/api.go
SetConfigType
func (s *GetConfigOutput) SetConfigType(v string) *GetConfigOutput { s.ConfigType = &v return s }
go
func (s *GetConfigOutput) SetConfigType(v string) *GetConfigOutput { s.ConfigType = &v return s }
[ "func", "(", "s", "*", "GetConfigOutput", ")", "SetConfigType", "(", "v", "string", ")", "*", "GetConfigOutput", "{", "s", ".", "ConfigType", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetConfigType sets the ConfigType field's value.
[ "SetConfigType", "sets", "the", "ConfigType", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsm/api.go#L3074-L3077
166,985
aws/aws-sdk-go
service/cloudhsm/api.go
SetAZList
func (s *ListAvailableZonesOutput) SetAZList(v []*string) *ListAvailableZonesOutput { s.AZList = v return s }
go
func (s *ListAvailableZonesOutput) SetAZList(v []*string) *ListAvailableZonesOutput { s.AZList = v return s }
[ "func", "(", "s", "*", "ListAvailableZonesOutput", ")", "SetAZList", "(", "v", "[", "]", "*", "string", ")", "*", "ListAvailableZonesOutput", "{", "s", ".", "AZList", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetAZList sets the AZList field's value.
[ "SetAZList", "sets", "the", "AZList", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsm/api.go#L3112-L3115
166,986
aws/aws-sdk-go
service/cloudhsm/api.go
SetHsmList
func (s *ListHsmsOutput) SetHsmList(v []*string) *ListHsmsOutput { s.HsmList = v return s }
go
func (s *ListHsmsOutput) SetHsmList(v []*string) *ListHsmsOutput { s.HsmList = v return s }
[ "func", "(", "s", "*", "ListHsmsOutput", ")", "SetHsmList", "(", "v", "[", "]", "*", "string", ")", "*", "ListHsmsOutput", "{", "s", ".", "HsmList", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetHsmList sets the HsmList field's value.
[ "SetHsmList", "sets", "the", "HsmList", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudhsm/api.go#L3223-L3226
166,987
aws/aws-sdk-go
aws/endpoints/endpoints.go
EndpointFor
func (fn ResolverFunc) EndpointFor(service, region string, opts ...func(*Options)) (ResolvedEndpoint, error) { return fn(service, region, opts...) }
go
func (fn ResolverFunc) EndpointFor(service, region string, opts ...func(*Options)) (ResolvedEndpoint, error) { return fn(service, region, opts...) }
[ "func", "(", "fn", "ResolverFunc", ")", "EndpointFor", "(", "service", ",", "region", "string", ",", "opts", "...", "func", "(", "*", "Options", ")", ")", "(", "ResolvedEndpoint", ",", "error", ")", "{", "return", "fn", "(", "service", ",", "region", ",", "opts", "...", ")", "\n", "}" ]
// EndpointFor wraps the ResolverFunc function to satisfy the Resolver interface.
[ "EndpointFor", "wraps", "the", "ResolverFunc", "function", "to", "satisfy", "the", "Resolver", "interface", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/endpoints/endpoints.go#L94-L96
166,988
aws/aws-sdk-go
aws/endpoints/endpoints.go
AddScheme
func AddScheme(endpoint string, disableSSL bool) string { if !schemeRE.MatchString(endpoint) { scheme := "https" if disableSSL { scheme = "http" } endpoint = fmt.Sprintf("%s://%s", scheme, endpoint) } return endpoint }
go
func AddScheme(endpoint string, disableSSL bool) string { if !schemeRE.MatchString(endpoint) { scheme := "https" if disableSSL { scheme = "http" } endpoint = fmt.Sprintf("%s://%s", scheme, endpoint) } return endpoint }
[ "func", "AddScheme", "(", "endpoint", "string", ",", "disableSSL", "bool", ")", "string", "{", "if", "!", "schemeRE", ".", "MatchString", "(", "endpoint", ")", "{", "scheme", ":=", "\"", "\"", "\n", "if", "disableSSL", "{", "scheme", "=", "\"", "\"", "\n", "}", "\n", "endpoint", "=", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "scheme", ",", "endpoint", ")", "\n", "}", "\n\n", "return", "endpoint", "\n", "}" ]
// AddScheme adds the HTTP or HTTPS schemes to a endpoint URL if there is no // scheme. If disableSSL is true HTTP will set HTTP instead of the default HTTPS. // // If disableSSL is set, it will only set the URL's scheme if the URL does not // contain a scheme.
[ "AddScheme", "adds", "the", "HTTP", "or", "HTTPS", "schemes", "to", "a", "endpoint", "URL", "if", "there", "is", "no", "scheme", ".", "If", "disableSSL", "is", "true", "HTTP", "will", "set", "HTTP", "instead", "of", "the", "default", "HTTPS", ".", "If", "disableSSL", "is", "set", "it", "will", "only", "set", "the", "URL", "s", "scheme", "if", "the", "URL", "does", "not", "contain", "a", "scheme", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/endpoints/endpoints.go#L105-L115
166,989
aws/aws-sdk-go
aws/endpoints/endpoints.go
PartitionForRegion
func PartitionForRegion(ps []Partition, regionID string) (Partition, bool) { for _, p := range ps { if _, ok := p.p.Regions[regionID]; ok || p.p.RegionRegex.MatchString(regionID) { return p, true } } return Partition{}, false }
go
func PartitionForRegion(ps []Partition, regionID string) (Partition, bool) { for _, p := range ps { if _, ok := p.p.Regions[regionID]; ok || p.p.RegionRegex.MatchString(regionID) { return p, true } } return Partition{}, false }
[ "func", "PartitionForRegion", "(", "ps", "[", "]", "Partition", ",", "regionID", "string", ")", "(", "Partition", ",", "bool", ")", "{", "for", "_", ",", "p", ":=", "range", "ps", "{", "if", "_", ",", "ok", ":=", "p", ".", "p", ".", "Regions", "[", "regionID", "]", ";", "ok", "||", "p", ".", "p", ".", "RegionRegex", ".", "MatchString", "(", "regionID", ")", "{", "return", "p", ",", "true", "\n", "}", "\n", "}", "\n\n", "return", "Partition", "{", "}", ",", "false", "\n", "}" ]
// PartitionForRegion returns the first partition which includes the region // passed in. This includes both known regions and regions which match // a pattern supported by the partition which may include regions that are // not explicitly known by the partition. Use the Regions method of the // returned Partition if explicit support is needed.
[ "PartitionForRegion", "returns", "the", "first", "partition", "which", "includes", "the", "region", "passed", "in", ".", "This", "includes", "both", "known", "regions", "and", "regions", "which", "match", "a", "pattern", "supported", "by", "the", "partition", "which", "may", "include", "regions", "that", "are", "not", "explicitly", "known", "by", "the", "partition", ".", "Use", "the", "Regions", "method", "of", "the", "returned", "Partition", "if", "explicit", "support", "is", "needed", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/endpoints/endpoints.go#L160-L168
166,990
aws/aws-sdk-go
aws/endpoints/endpoints.go
Regions
func (p Partition) Regions() map[string]Region { rs := map[string]Region{} for id, r := range p.p.Regions { rs[id] = Region{ id: id, desc: r.Description, p: p.p, } } return rs }
go
func (p Partition) Regions() map[string]Region { rs := map[string]Region{} for id, r := range p.p.Regions { rs[id] = Region{ id: id, desc: r.Description, p: p.p, } } return rs }
[ "func", "(", "p", "Partition", ")", "Regions", "(", ")", "map", "[", "string", "]", "Region", "{", "rs", ":=", "map", "[", "string", "]", "Region", "{", "}", "\n", "for", "id", ",", "r", ":=", "range", "p", ".", "p", ".", "Regions", "{", "rs", "[", "id", "]", "=", "Region", "{", "id", ":", "id", ",", "desc", ":", "r", ".", "Description", ",", "p", ":", "p", ".", "p", ",", "}", "\n", "}", "\n\n", "return", "rs", "\n", "}" ]
// Regions returns a map of Regions indexed by their ID. This is useful for // enumerating over the regions in a partition.
[ "Regions", "returns", "a", "map", "of", "Regions", "indexed", "by", "their", "ID", ".", "This", "is", "useful", "for", "enumerating", "over", "the", "regions", "in", "a", "partition", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/endpoints/endpoints.go#L207-L218
166,991
aws/aws-sdk-go
aws/endpoints/endpoints.go
Services
func (p Partition) Services() map[string]Service { ss := map[string]Service{} for id := range p.p.Services { ss[id] = Service{ id: id, p: p.p, } } return ss }
go
func (p Partition) Services() map[string]Service { ss := map[string]Service{} for id := range p.p.Services { ss[id] = Service{ id: id, p: p.p, } } return ss }
[ "func", "(", "p", "Partition", ")", "Services", "(", ")", "map", "[", "string", "]", "Service", "{", "ss", ":=", "map", "[", "string", "]", "Service", "{", "}", "\n", "for", "id", ":=", "range", "p", ".", "p", ".", "Services", "{", "ss", "[", "id", "]", "=", "Service", "{", "id", ":", "id", ",", "p", ":", "p", ".", "p", ",", "}", "\n", "}", "\n\n", "return", "ss", "\n", "}" ]
// Services returns a map of Service indexed by their ID. This is useful for // enumerating over the services in a partition.
[ "Services", "returns", "a", "map", "of", "Service", "indexed", "by", "their", "ID", ".", "This", "is", "useful", "for", "enumerating", "over", "the", "services", "in", "a", "partition", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/endpoints/endpoints.go#L222-L232
166,992
aws/aws-sdk-go
aws/endpoints/endpoints.go
ResolveEndpoint
func (r Region) ResolveEndpoint(service string, opts ...func(*Options)) (ResolvedEndpoint, error) { return r.p.EndpointFor(service, r.id, opts...) }
go
func (r Region) ResolveEndpoint(service string, opts ...func(*Options)) (ResolvedEndpoint, error) { return r.p.EndpointFor(service, r.id, opts...) }
[ "func", "(", "r", "Region", ")", "ResolveEndpoint", "(", "service", "string", ",", "opts", "...", "func", "(", "*", "Options", ")", ")", "(", "ResolvedEndpoint", ",", "error", ")", "{", "return", "r", ".", "p", ".", "EndpointFor", "(", "service", ",", "r", ".", "id", ",", "opts", "...", ")", "\n", "}" ]
// ResolveEndpoint resolves an endpoint from the context of the region given // a service. See Partition.EndpointFor for usage and errors that can be returned.
[ "ResolveEndpoint", "resolves", "an", "endpoint", "from", "the", "context", "of", "the", "region", "given", "a", "service", ".", "See", "Partition", ".", "EndpointFor", "for", "usage", "and", "errors", "that", "can", "be", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/endpoints/endpoints.go#L250-L252
166,993
aws/aws-sdk-go
aws/endpoints/endpoints.go
Services
func (r Region) Services() map[string]Service { ss := map[string]Service{} for id, s := range r.p.Services { if _, ok := s.Endpoints[r.id]; ok { ss[id] = Service{ id: id, p: r.p, } } } return ss }
go
func (r Region) Services() map[string]Service { ss := map[string]Service{} for id, s := range r.p.Services { if _, ok := s.Endpoints[r.id]; ok { ss[id] = Service{ id: id, p: r.p, } } } return ss }
[ "func", "(", "r", "Region", ")", "Services", "(", ")", "map", "[", "string", "]", "Service", "{", "ss", ":=", "map", "[", "string", "]", "Service", "{", "}", "\n", "for", "id", ",", "s", ":=", "range", "r", ".", "p", ".", "Services", "{", "if", "_", ",", "ok", ":=", "s", ".", "Endpoints", "[", "r", ".", "id", "]", ";", "ok", "{", "ss", "[", "id", "]", "=", "Service", "{", "id", ":", "id", ",", "p", ":", "r", ".", "p", ",", "}", "\n", "}", "\n", "}", "\n\n", "return", "ss", "\n", "}" ]
// Services returns a list of all services that are known to be in this region.
[ "Services", "returns", "a", "list", "of", "all", "services", "that", "are", "known", "to", "be", "in", "this", "region", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/endpoints/endpoints.go#L255-L267
166,994
aws/aws-sdk-go
aws/endpoints/endpoints.go
ResolveEndpoint
func (s Service) ResolveEndpoint(region string, opts ...func(*Options)) (ResolvedEndpoint, error) { return s.p.EndpointFor(s.id, region, opts...) }
go
func (s Service) ResolveEndpoint(region string, opts ...func(*Options)) (ResolvedEndpoint, error) { return s.p.EndpointFor(s.id, region, opts...) }
[ "func", "(", "s", "Service", ")", "ResolveEndpoint", "(", "region", "string", ",", "opts", "...", "func", "(", "*", "Options", ")", ")", "(", "ResolvedEndpoint", ",", "error", ")", "{", "return", "s", ".", "p", ".", "EndpointFor", "(", "s", ".", "id", ",", "region", ",", "opts", "...", ")", "\n", "}" ]
// ResolveEndpoint resolves an endpoint from the context of a service given // a region. See Partition.EndpointFor for usage and errors that can be returned.
[ "ResolveEndpoint", "resolves", "an", "endpoint", "from", "the", "context", "of", "a", "service", "given", "a", "region", ".", "See", "Partition", ".", "EndpointFor", "for", "usage", "and", "errors", "that", "can", "be", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/endpoints/endpoints.go#L281-L283
166,995
aws/aws-sdk-go
aws/endpoints/endpoints.go
Regions
func (s Service) Regions() map[string]Region { rs := map[string]Region{} for id := range s.p.Services[s.id].Endpoints { if r, ok := s.p.Regions[id]; ok { rs[id] = Region{ id: id, desc: r.Description, p: s.p, } } } return rs }
go
func (s Service) Regions() map[string]Region { rs := map[string]Region{} for id := range s.p.Services[s.id].Endpoints { if r, ok := s.p.Regions[id]; ok { rs[id] = Region{ id: id, desc: r.Description, p: s.p, } } } return rs }
[ "func", "(", "s", "Service", ")", "Regions", "(", ")", "map", "[", "string", "]", "Region", "{", "rs", ":=", "map", "[", "string", "]", "Region", "{", "}", "\n", "for", "id", ":=", "range", "s", ".", "p", ".", "Services", "[", "s", ".", "id", "]", ".", "Endpoints", "{", "if", "r", ",", "ok", ":=", "s", ".", "p", ".", "Regions", "[", "id", "]", ";", "ok", "{", "rs", "[", "id", "]", "=", "Region", "{", "id", ":", "id", ",", "desc", ":", "r", ".", "Description", ",", "p", ":", "s", ".", "p", ",", "}", "\n", "}", "\n", "}", "\n\n", "return", "rs", "\n", "}" ]
// Regions returns a map of Regions that the service is present in. // // A region is the AWS region the service exists in. Whereas a Endpoint is // an URL that can be resolved to a instance of a service.
[ "Regions", "returns", "a", "map", "of", "Regions", "that", "the", "service", "is", "present", "in", ".", "A", "region", "is", "the", "AWS", "region", "the", "service", "exists", "in", ".", "Whereas", "a", "Endpoint", "is", "an", "URL", "that", "can", "be", "resolved", "to", "a", "instance", "of", "a", "service", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/endpoints/endpoints.go#L289-L302
166,996
aws/aws-sdk-go
aws/endpoints/endpoints.go
Endpoints
func (s Service) Endpoints() map[string]Endpoint { es := map[string]Endpoint{} for id := range s.p.Services[s.id].Endpoints { es[id] = Endpoint{ id: id, serviceID: s.id, p: s.p, } } return es }
go
func (s Service) Endpoints() map[string]Endpoint { es := map[string]Endpoint{} for id := range s.p.Services[s.id].Endpoints { es[id] = Endpoint{ id: id, serviceID: s.id, p: s.p, } } return es }
[ "func", "(", "s", "Service", ")", "Endpoints", "(", ")", "map", "[", "string", "]", "Endpoint", "{", "es", ":=", "map", "[", "string", "]", "Endpoint", "{", "}", "\n", "for", "id", ":=", "range", "s", ".", "p", ".", "Services", "[", "s", ".", "id", "]", ".", "Endpoints", "{", "es", "[", "id", "]", "=", "Endpoint", "{", "id", ":", "id", ",", "serviceID", ":", "s", ".", "id", ",", "p", ":", "s", ".", "p", ",", "}", "\n", "}", "\n\n", "return", "es", "\n", "}" ]
// Endpoints returns a map of Endpoints indexed by their ID for all known // endpoints for a service. // // A region is the AWS region the service exists in. Whereas a Endpoint is // an URL that can be resolved to a instance of a service.
[ "Endpoints", "returns", "a", "map", "of", "Endpoints", "indexed", "by", "their", "ID", "for", "all", "known", "endpoints", "for", "a", "service", ".", "A", "region", "is", "the", "AWS", "region", "the", "service", "exists", "in", ".", "Whereas", "a", "Endpoint", "is", "an", "URL", "that", "can", "be", "resolved", "to", "a", "instance", "of", "a", "service", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/endpoints/endpoints.go#L309-L320
166,997
aws/aws-sdk-go
aws/endpoints/endpoints.go
ResolveEndpoint
func (e Endpoint) ResolveEndpoint(opts ...func(*Options)) (ResolvedEndpoint, error) { return e.p.EndpointFor(e.serviceID, e.id, opts...) }
go
func (e Endpoint) ResolveEndpoint(opts ...func(*Options)) (ResolvedEndpoint, error) { return e.p.EndpointFor(e.serviceID, e.id, opts...) }
[ "func", "(", "e", "Endpoint", ")", "ResolveEndpoint", "(", "opts", "...", "func", "(", "*", "Options", ")", ")", "(", "ResolvedEndpoint", ",", "error", ")", "{", "return", "e", ".", "p", ".", "EndpointFor", "(", "e", ".", "serviceID", ",", "e", ".", "id", ",", "opts", "...", ")", "\n", "}" ]
// ResolveEndpoint resolves an endpoint from the context of a service and // region the endpoint represents. See Partition.EndpointFor for usage and // errors that can be returned.
[ "ResolveEndpoint", "resolves", "an", "endpoint", "from", "the", "context", "of", "a", "service", "and", "region", "the", "endpoint", "represents", ".", "See", "Partition", ".", "EndpointFor", "for", "usage", "and", "errors", "that", "can", "be", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/endpoints/endpoints.go#L340-L342
166,998
aws/aws-sdk-go
aws/endpoints/endpoints.go
NewUnknownServiceError
func NewUnknownServiceError(p, s string, known []string) UnknownServiceError { return UnknownServiceError{ awsError: awserr.New("UnknownServiceError", "could not resolve endpoint for unknown service", nil), Partition: p, Service: s, Known: known, } }
go
func NewUnknownServiceError(p, s string, known []string) UnknownServiceError { return UnknownServiceError{ awsError: awserr.New("UnknownServiceError", "could not resolve endpoint for unknown service", nil), Partition: p, Service: s, Known: known, } }
[ "func", "NewUnknownServiceError", "(", "p", ",", "s", "string", ",", "known", "[", "]", "string", ")", "UnknownServiceError", "{", "return", "UnknownServiceError", "{", "awsError", ":", "awserr", ".", "New", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ")", ",", "Partition", ":", "p", ",", "Service", ":", "s", ",", "Known", ":", "known", ",", "}", "\n", "}" ]
// NewUnknownServiceError builds and returns UnknownServiceError.
[ "NewUnknownServiceError", "builds", "and", "returns", "UnknownServiceError", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/endpoints/endpoints.go#L388-L396
166,999
aws/aws-sdk-go
aws/endpoints/endpoints.go
Error
func (e UnknownServiceError) Error() string { extra := fmt.Sprintf("partition: %q, service: %q", e.Partition, e.Service) if len(e.Known) > 0 { extra += fmt.Sprintf(", known: %v", e.Known) } return awserr.SprintError(e.Code(), e.Message(), extra, e.OrigErr()) }
go
func (e UnknownServiceError) Error() string { extra := fmt.Sprintf("partition: %q, service: %q", e.Partition, e.Service) if len(e.Known) > 0 { extra += fmt.Sprintf(", known: %v", e.Known) } return awserr.SprintError(e.Code(), e.Message(), extra, e.OrigErr()) }
[ "func", "(", "e", "UnknownServiceError", ")", "Error", "(", ")", "string", "{", "extra", ":=", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "e", ".", "Partition", ",", "e", ".", "Service", ")", "\n", "if", "len", "(", "e", ".", "Known", ")", ">", "0", "{", "extra", "+=", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "e", ".", "Known", ")", "\n", "}", "\n", "return", "awserr", ".", "SprintError", "(", "e", ".", "Code", "(", ")", ",", "e", ".", "Message", "(", ")", ",", "extra", ",", "e", ".", "OrigErr", "(", ")", ")", "\n", "}" ]
// String returns the string representation of the error.
[ "String", "returns", "the", "string", "representation", "of", "the", "error", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/endpoints/endpoints.go#L399-L406