id
int32
0
167k
repo
stringlengths
5
54
path
stringlengths
4
155
func_name
stringlengths
1
118
original_string
stringlengths
52
85.5k
language
stringclasses
1 value
code
stringlengths
52
85.5k
code_tokens
sequencelengths
21
1.41k
docstring
stringlengths
6
2.61k
docstring_tokens
sequencelengths
3
215
sha
stringlengths
40
40
url
stringlengths
85
252
3,200
aws/aws-sdk-go
service/mediapackage/api.go
SetOriginEndpoints
func (s *ListOriginEndpointsOutput) SetOriginEndpoints(v []*OriginEndpoint) *ListOriginEndpointsOutput { s.OriginEndpoints = v return s }
go
func (s *ListOriginEndpointsOutput) SetOriginEndpoints(v []*OriginEndpoint) *ListOriginEndpointsOutput { s.OriginEndpoints = v return s }
[ "func", "(", "s", "*", "ListOriginEndpointsOutput", ")", "SetOriginEndpoints", "(", "v", "[", "]", "*", "OriginEndpoint", ")", "*", "ListOriginEndpointsOutput", "{", "s", ".", "OriginEndpoints", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetOriginEndpoints sets the OriginEndpoints field's value.
[ "SetOriginEndpoints", "sets", "the", "OriginEndpoints", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediapackage/api.go#L3281-L3284
3,201
aws/aws-sdk-go
service/mediapackage/api.go
SetIngestEndpointId
func (s *RotateIngestEndpointCredentialsInput) SetIngestEndpointId(v string) *RotateIngestEndpointCredentialsInput { s.IngestEndpointId = &v return s }
go
func (s *RotateIngestEndpointCredentialsInput) SetIngestEndpointId(v string) *RotateIngestEndpointCredentialsInput { s.IngestEndpointId = &v return s }
[ "func", "(", "s", "*", "RotateIngestEndpointCredentialsInput", ")", "SetIngestEndpointId", "(", "v", "string", ")", "*", "RotateIngestEndpointCredentialsInput", "{", "s", ".", "IngestEndpointId", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetIngestEndpointId sets the IngestEndpointId field's value.
[ "SetIngestEndpointId", "sets", "the", "IngestEndpointId", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediapackage/api.go#L3747-L3750
3,202
aws/aws-sdk-go
service/mediapackage/api.go
SetMaxVideoBitsPerSecond
func (s *StreamSelection) SetMaxVideoBitsPerSecond(v int64) *StreamSelection { s.MaxVideoBitsPerSecond = &v return s }
go
func (s *StreamSelection) SetMaxVideoBitsPerSecond(v int64) *StreamSelection { s.MaxVideoBitsPerSecond = &v return s }
[ "func", "(", "s", "*", "StreamSelection", ")", "SetMaxVideoBitsPerSecond", "(", "v", "int64", ")", "*", "StreamSelection", "{", "s", ".", "MaxVideoBitsPerSecond", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetMaxVideoBitsPerSecond sets the MaxVideoBitsPerSecond field's value.
[ "SetMaxVideoBitsPerSecond", "sets", "the", "MaxVideoBitsPerSecond", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediapackage/api.go#L3927-L3930
3,203
aws/aws-sdk-go
service/mediapackage/api.go
SetMinVideoBitsPerSecond
func (s *StreamSelection) SetMinVideoBitsPerSecond(v int64) *StreamSelection { s.MinVideoBitsPerSecond = &v return s }
go
func (s *StreamSelection) SetMinVideoBitsPerSecond(v int64) *StreamSelection { s.MinVideoBitsPerSecond = &v return s }
[ "func", "(", "s", "*", "StreamSelection", ")", "SetMinVideoBitsPerSecond", "(", "v", "int64", ")", "*", "StreamSelection", "{", "s", ".", "MinVideoBitsPerSecond", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetMinVideoBitsPerSecond sets the MinVideoBitsPerSecond field's value.
[ "SetMinVideoBitsPerSecond", "sets", "the", "MinVideoBitsPerSecond", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediapackage/api.go#L3933-L3936
3,204
aws/aws-sdk-go
service/mediapackage/api.go
SetStreamOrder
func (s *StreamSelection) SetStreamOrder(v string) *StreamSelection { s.StreamOrder = &v return s }
go
func (s *StreamSelection) SetStreamOrder(v string) *StreamSelection { s.StreamOrder = &v return s }
[ "func", "(", "s", "*", "StreamSelection", ")", "SetStreamOrder", "(", "v", "string", ")", "*", "StreamSelection", "{", "s", ".", "StreamOrder", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetStreamOrder sets the StreamOrder field's value.
[ "SetStreamOrder", "sets", "the", "StreamOrder", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediapackage/api.go#L3939-L3942
3,205
aws/aws-sdk-go
service/s3/s3manager/download.go
WithDownloaderRequestOptions
func WithDownloaderRequestOptions(opts ...request.Option) func(*Downloader) { return func(d *Downloader) { d.RequestOptions = append(d.RequestOptions, opts...) } }
go
func WithDownloaderRequestOptions(opts ...request.Option) func(*Downloader) { return func(d *Downloader) { d.RequestOptions = append(d.RequestOptions, opts...) } }
[ "func", "WithDownloaderRequestOptions", "(", "opts", "...", "request", ".", "Option", ")", "func", "(", "*", "Downloader", ")", "{", "return", "func", "(", "d", "*", "Downloader", ")", "{", "d", ".", "RequestOptions", "=", "append", "(", "d", ".", "RequestOptions", ",", "opts", "...", ")", "\n", "}", "\n", "}" ]
// WithDownloaderRequestOptions appends to the Downloader's API request options.
[ "WithDownloaderRequestOptions", "appends", "to", "the", "Downloader", "s", "API", "request", "options", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/download.go#L56-L60
3,206
aws/aws-sdk-go
service/s3/s3manager/download.go
download
func (d *downloader) download() (n int64, err error) { // If range is specified fall back to single download of that range // this enables the functionality of ranged gets with the downloader but // at the cost of no multipart downloads. if rng := aws.StringValue(d.in.Range); len(rng) > 0 { d.downloadRange(rng) return d.written, d.err } // Spin off first worker to check additional header information d.getChunk() if total := d.getTotalBytes(); total >= 0 { // Spin up workers ch := make(chan dlchunk, d.cfg.Concurrency) for i := 0; i < d.cfg.Concurrency; i++ { d.wg.Add(1) go d.downloadPart(ch) } // Assign work for d.getErr() == nil { if d.pos >= total { break // We're finished queuing chunks } // Queue the next range of bytes to read. ch <- dlchunk{w: d.w, start: d.pos, size: d.cfg.PartSize} d.pos += d.cfg.PartSize } // Wait for completion close(ch) d.wg.Wait() } else { // Checking if we read anything new for d.err == nil { d.getChunk() } // We expect a 416 error letting us know we are done downloading the // total bytes. Since we do not know the content's length, this will // keep grabbing chunks of data until the range of bytes specified in // the request is out of range of the content. Once, this happens, a // 416 should occur. e, ok := d.err.(awserr.RequestFailure) if ok && e.StatusCode() == http.StatusRequestedRangeNotSatisfiable { d.err = nil } } // Return error return d.written, d.err }
go
func (d *downloader) download() (n int64, err error) { // If range is specified fall back to single download of that range // this enables the functionality of ranged gets with the downloader but // at the cost of no multipart downloads. if rng := aws.StringValue(d.in.Range); len(rng) > 0 { d.downloadRange(rng) return d.written, d.err } // Spin off first worker to check additional header information d.getChunk() if total := d.getTotalBytes(); total >= 0 { // Spin up workers ch := make(chan dlchunk, d.cfg.Concurrency) for i := 0; i < d.cfg.Concurrency; i++ { d.wg.Add(1) go d.downloadPart(ch) } // Assign work for d.getErr() == nil { if d.pos >= total { break // We're finished queuing chunks } // Queue the next range of bytes to read. ch <- dlchunk{w: d.w, start: d.pos, size: d.cfg.PartSize} d.pos += d.cfg.PartSize } // Wait for completion close(ch) d.wg.Wait() } else { // Checking if we read anything new for d.err == nil { d.getChunk() } // We expect a 416 error letting us know we are done downloading the // total bytes. Since we do not know the content's length, this will // keep grabbing chunks of data until the range of bytes specified in // the request is out of range of the content. Once, this happens, a // 416 should occur. e, ok := d.err.(awserr.RequestFailure) if ok && e.StatusCode() == http.StatusRequestedRangeNotSatisfiable { d.err = nil } } // Return error return d.written, d.err }
[ "func", "(", "d", "*", "downloader", ")", "download", "(", ")", "(", "n", "int64", ",", "err", "error", ")", "{", "// If range is specified fall back to single download of that range", "// this enables the functionality of ranged gets with the downloader but", "// at the cost of no multipart downloads.", "if", "rng", ":=", "aws", ".", "StringValue", "(", "d", ".", "in", ".", "Range", ")", ";", "len", "(", "rng", ")", ">", "0", "{", "d", ".", "downloadRange", "(", "rng", ")", "\n", "return", "d", ".", "written", ",", "d", ".", "err", "\n", "}", "\n\n", "// Spin off first worker to check additional header information", "d", ".", "getChunk", "(", ")", "\n\n", "if", "total", ":=", "d", ".", "getTotalBytes", "(", ")", ";", "total", ">=", "0", "{", "// Spin up workers", "ch", ":=", "make", "(", "chan", "dlchunk", ",", "d", ".", "cfg", ".", "Concurrency", ")", "\n\n", "for", "i", ":=", "0", ";", "i", "<", "d", ".", "cfg", ".", "Concurrency", ";", "i", "++", "{", "d", ".", "wg", ".", "Add", "(", "1", ")", "\n", "go", "d", ".", "downloadPart", "(", "ch", ")", "\n", "}", "\n\n", "// Assign work", "for", "d", ".", "getErr", "(", ")", "==", "nil", "{", "if", "d", ".", "pos", ">=", "total", "{", "break", "// We're finished queuing chunks", "\n", "}", "\n\n", "// Queue the next range of bytes to read.", "ch", "<-", "dlchunk", "{", "w", ":", "d", ".", "w", ",", "start", ":", "d", ".", "pos", ",", "size", ":", "d", ".", "cfg", ".", "PartSize", "}", "\n", "d", ".", "pos", "+=", "d", ".", "cfg", ".", "PartSize", "\n", "}", "\n\n", "// Wait for completion", "close", "(", "ch", ")", "\n", "d", ".", "wg", ".", "Wait", "(", ")", "\n", "}", "else", "{", "// Checking if we read anything new", "for", "d", ".", "err", "==", "nil", "{", "d", ".", "getChunk", "(", ")", "\n", "}", "\n\n", "// We expect a 416 error letting us know we are done downloading the", "// total bytes. Since we do not know the content's length, this will", "// keep grabbing chunks of data until the range of bytes specified in", "// the request is out of range of the content. Once, this happens, a", "// 416 should occur.", "e", ",", "ok", ":=", "d", ".", "err", ".", "(", "awserr", ".", "RequestFailure", ")", "\n", "if", "ok", "&&", "e", ".", "StatusCode", "(", ")", "==", "http", ".", "StatusRequestedRangeNotSatisfiable", "{", "d", ".", "err", "=", "nil", "\n", "}", "\n", "}", "\n\n", "// Return error", "return", "d", ".", "written", ",", "d", ".", "err", "\n", "}" ]
// download performs the implementation of the object download across ranged // GETs.
[ "download", "performs", "the", "implementation", "of", "the", "object", "download", "across", "ranged", "GETs", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/download.go#L281-L335
3,207
aws/aws-sdk-go
service/s3/s3manager/download.go
downloadPart
func (d *downloader) downloadPart(ch chan dlchunk) { defer d.wg.Done() for { chunk, ok := <-ch if !ok { break } if d.getErr() != nil { // Drain the channel if there is an error, to prevent deadlocking // of download producer. continue } if err := d.downloadChunk(chunk); err != nil { d.setErr(err) } } }
go
func (d *downloader) downloadPart(ch chan dlchunk) { defer d.wg.Done() for { chunk, ok := <-ch if !ok { break } if d.getErr() != nil { // Drain the channel if there is an error, to prevent deadlocking // of download producer. continue } if err := d.downloadChunk(chunk); err != nil { d.setErr(err) } } }
[ "func", "(", "d", "*", "downloader", ")", "downloadPart", "(", "ch", "chan", "dlchunk", ")", "{", "defer", "d", ".", "wg", ".", "Done", "(", ")", "\n", "for", "{", "chunk", ",", "ok", ":=", "<-", "ch", "\n", "if", "!", "ok", "{", "break", "\n", "}", "\n", "if", "d", ".", "getErr", "(", ")", "!=", "nil", "{", "// Drain the channel if there is an error, to prevent deadlocking", "// of download producer.", "continue", "\n", "}", "\n\n", "if", "err", ":=", "d", ".", "downloadChunk", "(", "chunk", ")", ";", "err", "!=", "nil", "{", "d", ".", "setErr", "(", "err", ")", "\n", "}", "\n", "}", "\n", "}" ]
// downloadPart is an individual goroutine worker reading from the ch channel // and performing a GetObject request on the data with a given byte range. // // If this is the first worker, this operation also resolves the total number // of bytes to be read so that the worker manager knows when it is finished.
[ "downloadPart", "is", "an", "individual", "goroutine", "worker", "reading", "from", "the", "ch", "channel", "and", "performing", "a", "GetObject", "request", "on", "the", "data", "with", "a", "given", "byte", "range", ".", "If", "this", "is", "the", "first", "worker", "this", "operation", "also", "resolves", "the", "total", "number", "of", "bytes", "to", "be", "read", "so", "that", "the", "worker", "manager", "knows", "when", "it", "is", "finished", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/download.go#L342-L359
3,208
aws/aws-sdk-go
service/s3/s3manager/download.go
getChunk
func (d *downloader) getChunk() { if d.getErr() != nil { return } chunk := dlchunk{w: d.w, start: d.pos, size: d.cfg.PartSize} d.pos += d.cfg.PartSize if err := d.downloadChunk(chunk); err != nil { d.setErr(err) } }
go
func (d *downloader) getChunk() { if d.getErr() != nil { return } chunk := dlchunk{w: d.w, start: d.pos, size: d.cfg.PartSize} d.pos += d.cfg.PartSize if err := d.downloadChunk(chunk); err != nil { d.setErr(err) } }
[ "func", "(", "d", "*", "downloader", ")", "getChunk", "(", ")", "{", "if", "d", ".", "getErr", "(", ")", "!=", "nil", "{", "return", "\n", "}", "\n\n", "chunk", ":=", "dlchunk", "{", "w", ":", "d", ".", "w", ",", "start", ":", "d", ".", "pos", ",", "size", ":", "d", ".", "cfg", ".", "PartSize", "}", "\n", "d", ".", "pos", "+=", "d", ".", "cfg", ".", "PartSize", "\n\n", "if", "err", ":=", "d", ".", "downloadChunk", "(", "chunk", ")", ";", "err", "!=", "nil", "{", "d", ".", "setErr", "(", "err", ")", "\n", "}", "\n", "}" ]
// getChunk grabs a chunk of data from the body. // Not thread safe. Should only used when grabbing data on a single thread.
[ "getChunk", "grabs", "a", "chunk", "of", "data", "from", "the", "body", ".", "Not", "thread", "safe", ".", "Should", "only", "used", "when", "grabbing", "data", "on", "a", "single", "thread", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/download.go#L363-L374
3,209
aws/aws-sdk-go
service/s3/s3manager/download.go
downloadRange
func (d *downloader) downloadRange(rng string) { if d.getErr() != nil { return } chunk := dlchunk{w: d.w, start: d.pos} // Ranges specified will short circuit the multipart download chunk.withRange = rng if err := d.downloadChunk(chunk); err != nil { d.setErr(err) } // Update the position based on the amount of data received. d.pos = d.written }
go
func (d *downloader) downloadRange(rng string) { if d.getErr() != nil { return } chunk := dlchunk{w: d.w, start: d.pos} // Ranges specified will short circuit the multipart download chunk.withRange = rng if err := d.downloadChunk(chunk); err != nil { d.setErr(err) } // Update the position based on the amount of data received. d.pos = d.written }
[ "func", "(", "d", "*", "downloader", ")", "downloadRange", "(", "rng", "string", ")", "{", "if", "d", ".", "getErr", "(", ")", "!=", "nil", "{", "return", "\n", "}", "\n\n", "chunk", ":=", "dlchunk", "{", "w", ":", "d", ".", "w", ",", "start", ":", "d", ".", "pos", "}", "\n", "// Ranges specified will short circuit the multipart download", "chunk", ".", "withRange", "=", "rng", "\n\n", "if", "err", ":=", "d", ".", "downloadChunk", "(", "chunk", ")", ";", "err", "!=", "nil", "{", "d", ".", "setErr", "(", "err", ")", "\n", "}", "\n\n", "// Update the position based on the amount of data received.", "d", ".", "pos", "=", "d", ".", "written", "\n", "}" ]
// downloadRange downloads an Object given the passed in Byte-Range value. // The chunk used down download the range will be configured for that range.
[ "downloadRange", "downloads", "an", "Object", "given", "the", "passed", "in", "Byte", "-", "Range", "value", ".", "The", "chunk", "used", "down", "download", "the", "range", "will", "be", "configured", "for", "that", "range", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/download.go#L378-L393
3,210
aws/aws-sdk-go
service/s3/s3manager/download.go
downloadChunk
func (d *downloader) downloadChunk(chunk dlchunk) error { in := &s3.GetObjectInput{} awsutil.Copy(in, d.in) // Get the next byte range of data in.Range = aws.String(chunk.ByteRange()) var n int64 var err error for retry := 0; retry <= d.partBodyMaxRetries; retry++ { var resp *s3.GetObjectOutput resp, err = d.cfg.S3.GetObjectWithContext(d.ctx, in, d.cfg.RequestOptions...) if err != nil { return err } d.setTotalBytes(resp) // Set total if not yet set. n, err = io.Copy(&chunk, resp.Body) resp.Body.Close() if err == nil { break } chunk.cur = 0 logMessage(d.cfg.S3, aws.LogDebugWithRequestRetries, fmt.Sprintf("DEBUG: object part body download interrupted %s, err, %v, retrying attempt %d", aws.StringValue(in.Key), err, retry)) } d.incrWritten(n) return err }
go
func (d *downloader) downloadChunk(chunk dlchunk) error { in := &s3.GetObjectInput{} awsutil.Copy(in, d.in) // Get the next byte range of data in.Range = aws.String(chunk.ByteRange()) var n int64 var err error for retry := 0; retry <= d.partBodyMaxRetries; retry++ { var resp *s3.GetObjectOutput resp, err = d.cfg.S3.GetObjectWithContext(d.ctx, in, d.cfg.RequestOptions...) if err != nil { return err } d.setTotalBytes(resp) // Set total if not yet set. n, err = io.Copy(&chunk, resp.Body) resp.Body.Close() if err == nil { break } chunk.cur = 0 logMessage(d.cfg.S3, aws.LogDebugWithRequestRetries, fmt.Sprintf("DEBUG: object part body download interrupted %s, err, %v, retrying attempt %d", aws.StringValue(in.Key), err, retry)) } d.incrWritten(n) return err }
[ "func", "(", "d", "*", "downloader", ")", "downloadChunk", "(", "chunk", "dlchunk", ")", "error", "{", "in", ":=", "&", "s3", ".", "GetObjectInput", "{", "}", "\n", "awsutil", ".", "Copy", "(", "in", ",", "d", ".", "in", ")", "\n\n", "// Get the next byte range of data", "in", ".", "Range", "=", "aws", ".", "String", "(", "chunk", ".", "ByteRange", "(", ")", ")", "\n\n", "var", "n", "int64", "\n", "var", "err", "error", "\n", "for", "retry", ":=", "0", ";", "retry", "<=", "d", ".", "partBodyMaxRetries", ";", "retry", "++", "{", "var", "resp", "*", "s3", ".", "GetObjectOutput", "\n", "resp", ",", "err", "=", "d", ".", "cfg", ".", "S3", ".", "GetObjectWithContext", "(", "d", ".", "ctx", ",", "in", ",", "d", ".", "cfg", ".", "RequestOptions", "...", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n", "d", ".", "setTotalBytes", "(", "resp", ")", "// Set total if not yet set.", "\n\n", "n", ",", "err", "=", "io", ".", "Copy", "(", "&", "chunk", ",", "resp", ".", "Body", ")", "\n", "resp", ".", "Body", ".", "Close", "(", ")", "\n", "if", "err", "==", "nil", "{", "break", "\n", "}", "\n\n", "chunk", ".", "cur", "=", "0", "\n", "logMessage", "(", "d", ".", "cfg", ".", "S3", ",", "aws", ".", "LogDebugWithRequestRetries", ",", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "aws", ".", "StringValue", "(", "in", ".", "Key", ")", ",", "err", ",", "retry", ")", ")", "\n", "}", "\n\n", "d", ".", "incrWritten", "(", "n", ")", "\n\n", "return", "err", "\n", "}" ]
// downloadChunk downloads the chunk from s3
[ "downloadChunk", "downloads", "the", "chunk", "from", "s3" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/download.go#L396-L428
3,211
aws/aws-sdk-go
service/s3/s3manager/download.go
getTotalBytes
func (d *downloader) getTotalBytes() int64 { d.m.Lock() defer d.m.Unlock() return d.totalBytes }
go
func (d *downloader) getTotalBytes() int64 { d.m.Lock() defer d.m.Unlock() return d.totalBytes }
[ "func", "(", "d", "*", "downloader", ")", "getTotalBytes", "(", ")", "int64", "{", "d", ".", "m", ".", "Lock", "(", ")", "\n", "defer", "d", ".", "m", ".", "Unlock", "(", ")", "\n\n", "return", "d", ".", "totalBytes", "\n", "}" ]
// getTotalBytes is a thread-safe getter for retrieving the total byte status.
[ "getTotalBytes", "is", "a", "thread", "-", "safe", "getter", "for", "retrieving", "the", "total", "byte", "status", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/download.go#L446-L451
3,212
aws/aws-sdk-go
service/s3/s3manager/download.go
setTotalBytes
func (d *downloader) setTotalBytes(resp *s3.GetObjectOutput) { d.m.Lock() defer d.m.Unlock() if d.totalBytes >= 0 { return } if resp.ContentRange == nil { // ContentRange is nil when the full file contents is provided, and // is not chunked. Use ContentLength instead. if resp.ContentLength != nil { d.totalBytes = *resp.ContentLength return } } else { parts := strings.Split(*resp.ContentRange, "/") total := int64(-1) var err error // Checking for whether or not a numbered total exists // If one does not exist, we will assume the total to be -1, undefined, // and sequentially download each chunk until hitting a 416 error totalStr := parts[len(parts)-1] if totalStr != "*" { total, err = strconv.ParseInt(totalStr, 10, 64) if err != nil { d.err = err return } } d.totalBytes = total } }
go
func (d *downloader) setTotalBytes(resp *s3.GetObjectOutput) { d.m.Lock() defer d.m.Unlock() if d.totalBytes >= 0 { return } if resp.ContentRange == nil { // ContentRange is nil when the full file contents is provided, and // is not chunked. Use ContentLength instead. if resp.ContentLength != nil { d.totalBytes = *resp.ContentLength return } } else { parts := strings.Split(*resp.ContentRange, "/") total := int64(-1) var err error // Checking for whether or not a numbered total exists // If one does not exist, we will assume the total to be -1, undefined, // and sequentially download each chunk until hitting a 416 error totalStr := parts[len(parts)-1] if totalStr != "*" { total, err = strconv.ParseInt(totalStr, 10, 64) if err != nil { d.err = err return } } d.totalBytes = total } }
[ "func", "(", "d", "*", "downloader", ")", "setTotalBytes", "(", "resp", "*", "s3", ".", "GetObjectOutput", ")", "{", "d", ".", "m", ".", "Lock", "(", ")", "\n", "defer", "d", ".", "m", ".", "Unlock", "(", ")", "\n\n", "if", "d", ".", "totalBytes", ">=", "0", "{", "return", "\n", "}", "\n\n", "if", "resp", ".", "ContentRange", "==", "nil", "{", "// ContentRange is nil when the full file contents is provided, and", "// is not chunked. Use ContentLength instead.", "if", "resp", ".", "ContentLength", "!=", "nil", "{", "d", ".", "totalBytes", "=", "*", "resp", ".", "ContentLength", "\n", "return", "\n", "}", "\n", "}", "else", "{", "parts", ":=", "strings", ".", "Split", "(", "*", "resp", ".", "ContentRange", ",", "\"", "\"", ")", "\n\n", "total", ":=", "int64", "(", "-", "1", ")", "\n", "var", "err", "error", "\n", "// Checking for whether or not a numbered total exists", "// If one does not exist, we will assume the total to be -1, undefined,", "// and sequentially download each chunk until hitting a 416 error", "totalStr", ":=", "parts", "[", "len", "(", "parts", ")", "-", "1", "]", "\n", "if", "totalStr", "!=", "\"", "\"", "{", "total", ",", "err", "=", "strconv", ".", "ParseInt", "(", "totalStr", ",", "10", ",", "64", ")", "\n", "if", "err", "!=", "nil", "{", "d", ".", "err", "=", "err", "\n", "return", "\n", "}", "\n", "}", "\n\n", "d", ".", "totalBytes", "=", "total", "\n", "}", "\n", "}" ]
// setTotalBytes is a thread-safe setter for setting the total byte status. // Will extract the object's total bytes from the Content-Range if the file // will be chunked, or Content-Length. Content-Length is used when the response // does not include a Content-Range. Meaning the object was not chunked. This // occurs when the full file fits within the PartSize directive.
[ "setTotalBytes", "is", "a", "thread", "-", "safe", "setter", "for", "setting", "the", "total", "byte", "status", ".", "Will", "extract", "the", "object", "s", "total", "bytes", "from", "the", "Content", "-", "Range", "if", "the", "file", "will", "be", "chunked", "or", "Content", "-", "Length", ".", "Content", "-", "Length", "is", "used", "when", "the", "response", "does", "not", "include", "a", "Content", "-", "Range", ".", "Meaning", "the", "object", "was", "not", "chunked", ".", "This", "occurs", "when", "the", "full", "file", "fits", "within", "the", "PartSize", "directive", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/download.go#L458-L492
3,213
aws/aws-sdk-go
service/s3/s3manager/download.go
getErr
func (d *downloader) getErr() error { d.m.Lock() defer d.m.Unlock() return d.err }
go
func (d *downloader) getErr() error { d.m.Lock() defer d.m.Unlock() return d.err }
[ "func", "(", "d", "*", "downloader", ")", "getErr", "(", ")", "error", "{", "d", ".", "m", ".", "Lock", "(", ")", "\n", "defer", "d", ".", "m", ".", "Unlock", "(", ")", "\n\n", "return", "d", ".", "err", "\n", "}" ]
// getErr is a thread-safe getter for the error object
[ "getErr", "is", "a", "thread", "-", "safe", "getter", "for", "the", "error", "object" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/download.go#L502-L507
3,214
aws/aws-sdk-go
service/s3/s3manager/download.go
setErr
func (d *downloader) setErr(e error) { d.m.Lock() defer d.m.Unlock() d.err = e }
go
func (d *downloader) setErr(e error) { d.m.Lock() defer d.m.Unlock() d.err = e }
[ "func", "(", "d", "*", "downloader", ")", "setErr", "(", "e", "error", ")", "{", "d", ".", "m", ".", "Lock", "(", ")", "\n", "defer", "d", ".", "m", ".", "Unlock", "(", ")", "\n\n", "d", ".", "err", "=", "e", "\n", "}" ]
// setErr is a thread-safe setter for the error object
[ "setErr", "is", "a", "thread", "-", "safe", "setter", "for", "the", "error", "object" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/download.go#L510-L515
3,215
aws/aws-sdk-go
service/s3/s3manager/download.go
ByteRange
func (c *dlchunk) ByteRange() string { if len(c.withRange) != 0 { return c.withRange } return fmt.Sprintf("bytes=%d-%d", c.start, c.start+c.size-1) }
go
func (c *dlchunk) ByteRange() string { if len(c.withRange) != 0 { return c.withRange } return fmt.Sprintf("bytes=%d-%d", c.start, c.start+c.size-1) }
[ "func", "(", "c", "*", "dlchunk", ")", "ByteRange", "(", ")", "string", "{", "if", "len", "(", "c", ".", "withRange", ")", "!=", "0", "{", "return", "c", ".", "withRange", "\n", "}", "\n\n", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "c", ".", "start", ",", "c", ".", "start", "+", "c", ".", "size", "-", "1", ")", "\n", "}" ]
// ByteRange returns a HTTP Byte-Range header value that should be used by the // client to request the chunk's range.
[ "ByteRange", "returns", "a", "HTTP", "Byte", "-", "Range", "header", "value", "that", "should", "be", "used", "by", "the", "client", "to", "request", "the", "chunk", "s", "range", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/download.go#L549-L555
3,216
aws/aws-sdk-go
service/kafka/api.go
SetBrokerAZDistribution
func (s *BrokerNodeGroupInfo) SetBrokerAZDistribution(v string) *BrokerNodeGroupInfo { s.BrokerAZDistribution = &v return s }
go
func (s *BrokerNodeGroupInfo) SetBrokerAZDistribution(v string) *BrokerNodeGroupInfo { s.BrokerAZDistribution = &v return s }
[ "func", "(", "s", "*", "BrokerNodeGroupInfo", ")", "SetBrokerAZDistribution", "(", "v", "string", ")", "*", "BrokerNodeGroupInfo", "{", "s", ".", "BrokerAZDistribution", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetBrokerAZDistribution sets the BrokerAZDistribution field's value.
[ "SetBrokerAZDistribution", "sets", "the", "BrokerAZDistribution", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kafka/api.go#L883-L886
3,217
aws/aws-sdk-go
service/kafka/api.go
SetClientSubnets
func (s *BrokerNodeGroupInfo) SetClientSubnets(v []*string) *BrokerNodeGroupInfo { s.ClientSubnets = v return s }
go
func (s *BrokerNodeGroupInfo) SetClientSubnets(v []*string) *BrokerNodeGroupInfo { s.ClientSubnets = v return s }
[ "func", "(", "s", "*", "BrokerNodeGroupInfo", ")", "SetClientSubnets", "(", "v", "[", "]", "*", "string", ")", "*", "BrokerNodeGroupInfo", "{", "s", ".", "ClientSubnets", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetClientSubnets sets the ClientSubnets field's value.
[ "SetClientSubnets", "sets", "the", "ClientSubnets", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kafka/api.go#L889-L892
3,218
aws/aws-sdk-go
service/kafka/api.go
SetStorageInfo
func (s *BrokerNodeGroupInfo) SetStorageInfo(v *StorageInfo) *BrokerNodeGroupInfo { s.StorageInfo = v return s }
go
func (s *BrokerNodeGroupInfo) SetStorageInfo(v *StorageInfo) *BrokerNodeGroupInfo { s.StorageInfo = v return s }
[ "func", "(", "s", "*", "BrokerNodeGroupInfo", ")", "SetStorageInfo", "(", "v", "*", "StorageInfo", ")", "*", "BrokerNodeGroupInfo", "{", "s", ".", "StorageInfo", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetStorageInfo sets the StorageInfo field's value.
[ "SetStorageInfo", "sets", "the", "StorageInfo", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kafka/api.go#L907-L910
3,219
aws/aws-sdk-go
service/kafka/api.go
SetClientSubnet
func (s *BrokerNodeInfo) SetClientSubnet(v string) *BrokerNodeInfo { s.ClientSubnet = &v return s }
go
func (s *BrokerNodeInfo) SetClientSubnet(v string) *BrokerNodeInfo { s.ClientSubnet = &v return s }
[ "func", "(", "s", "*", "BrokerNodeInfo", ")", "SetClientSubnet", "(", "v", "string", ")", "*", "BrokerNodeInfo", "{", "s", ".", "ClientSubnet", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetClientSubnet sets the ClientSubnet field's value.
[ "SetClientSubnet", "sets", "the", "ClientSubnet", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kafka/api.go#L956-L959
3,220
aws/aws-sdk-go
service/kafka/api.go
SetConfigurationArn
func (s *BrokerSoftwareInfo) SetConfigurationArn(v string) *BrokerSoftwareInfo { s.ConfigurationArn = &v return s }
go
func (s *BrokerSoftwareInfo) SetConfigurationArn(v string) *BrokerSoftwareInfo { s.ConfigurationArn = &v return s }
[ "func", "(", "s", "*", "BrokerSoftwareInfo", ")", "SetConfigurationArn", "(", "v", "string", ")", "*", "BrokerSoftwareInfo", "{", "s", ".", "ConfigurationArn", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetConfigurationArn sets the ConfigurationArn field's value.
[ "SetConfigurationArn", "sets", "the", "ConfigurationArn", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kafka/api.go#L998-L1001
3,221
aws/aws-sdk-go
service/kafka/api.go
SetZookeeperConnectString
func (s *ClusterInfo) SetZookeeperConnectString(v string) *ClusterInfo { s.ZookeeperConnectString = &v return s }
go
func (s *ClusterInfo) SetZookeeperConnectString(v string) *ClusterInfo { s.ZookeeperConnectString = &v return s }
[ "func", "(", "s", "*", "ClusterInfo", ")", "SetZookeeperConnectString", "(", "v", "string", ")", "*", "ClusterInfo", "{", "s", ".", "ZookeeperConnectString", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetZookeeperConnectString sets the ZookeeperConnectString field's value.
[ "SetZookeeperConnectString", "sets", "the", "ZookeeperConnectString", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kafka/api.go#L1126-L1129
3,222
aws/aws-sdk-go
service/kafka/api.go
SetClusterInfo
func (s *DescribeClusterOutput) SetClusterInfo(v *ClusterInfo) *DescribeClusterOutput { s.ClusterInfo = v return s }
go
func (s *DescribeClusterOutput) SetClusterInfo(v *ClusterInfo) *DescribeClusterOutput { s.ClusterInfo = v return s }
[ "func", "(", "s", "*", "DescribeClusterOutput", ")", "SetClusterInfo", "(", "v", "*", "ClusterInfo", ")", "*", "DescribeClusterOutput", "{", "s", ".", "ClusterInfo", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetClusterInfo sets the ClusterInfo field's value.
[ "SetClusterInfo", "sets", "the", "ClusterInfo", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kafka/api.go#L1430-L1433
3,223
aws/aws-sdk-go
service/kafka/api.go
SetDataVolumeKMSKeyId
func (s *EncryptionAtRest) SetDataVolumeKMSKeyId(v string) *EncryptionAtRest { s.DataVolumeKMSKeyId = &v return s }
go
func (s *EncryptionAtRest) SetDataVolumeKMSKeyId(v string) *EncryptionAtRest { s.DataVolumeKMSKeyId = &v return s }
[ "func", "(", "s", "*", "EncryptionAtRest", ")", "SetDataVolumeKMSKeyId", "(", "v", "string", ")", "*", "EncryptionAtRest", "{", "s", ".", "DataVolumeKMSKeyId", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDataVolumeKMSKeyId sets the DataVolumeKMSKeyId field's value.
[ "SetDataVolumeKMSKeyId", "sets", "the", "DataVolumeKMSKeyId", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kafka/api.go#L1507-L1510
3,224
aws/aws-sdk-go
service/kafka/api.go
SetBootstrapBrokerString
func (s *GetBootstrapBrokersOutput) SetBootstrapBrokerString(v string) *GetBootstrapBrokersOutput { s.BootstrapBrokerString = &v return s }
go
func (s *GetBootstrapBrokersOutput) SetBootstrapBrokerString(v string) *GetBootstrapBrokersOutput { s.BootstrapBrokerString = &v return s }
[ "func", "(", "s", "*", "GetBootstrapBrokersOutput", ")", "SetBootstrapBrokerString", "(", "v", "string", ")", "*", "GetBootstrapBrokersOutput", "{", "s", ".", "BootstrapBrokerString", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetBootstrapBrokerString sets the BootstrapBrokerString field's value.
[ "SetBootstrapBrokerString", "sets", "the", "BootstrapBrokerString", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kafka/api.go#L1610-L1613
3,225
aws/aws-sdk-go
service/kafka/api.go
SetClusterNameFilter
func (s *ListClustersInput) SetClusterNameFilter(v string) *ListClustersInput { s.ClusterNameFilter = &v return s }
go
func (s *ListClustersInput) SetClusterNameFilter(v string) *ListClustersInput { s.ClusterNameFilter = &v return s }
[ "func", "(", "s", "*", "ListClustersInput", ")", "SetClusterNameFilter", "(", "v", "string", ")", "*", "ListClustersInput", "{", "s", ".", "ClusterNameFilter", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetClusterNameFilter sets the ClusterNameFilter field's value.
[ "SetClusterNameFilter", "sets", "the", "ClusterNameFilter", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kafka/api.go#L1649-L1652
3,226
aws/aws-sdk-go
service/kafka/api.go
SetClusterInfoList
func (s *ListClustersOutput) SetClusterInfoList(v []*ClusterInfo) *ListClustersOutput { s.ClusterInfoList = v return s }
go
func (s *ListClustersOutput) SetClusterInfoList(v []*ClusterInfo) *ListClustersOutput { s.ClusterInfoList = v return s }
[ "func", "(", "s", "*", "ListClustersOutput", ")", "SetClusterInfoList", "(", "v", "[", "]", "*", "ClusterInfo", ")", "*", "ListClustersOutput", "{", "s", ".", "ClusterInfoList", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetClusterInfoList sets the ClusterInfoList field's value.
[ "SetClusterInfoList", "sets", "the", "ClusterInfoList", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kafka/api.go#L1691-L1694
3,227
aws/aws-sdk-go
service/kafka/api.go
SetNodeInfoList
func (s *ListNodesOutput) SetNodeInfoList(v []*NodeInfo) *ListNodesOutput { s.NodeInfoList = v return s }
go
func (s *ListNodesOutput) SetNodeInfoList(v []*NodeInfo) *ListNodesOutput { s.NodeInfoList = v return s }
[ "func", "(", "s", "*", "ListNodesOutput", ")", "SetNodeInfoList", "(", "v", "[", "]", "*", "NodeInfo", ")", "*", "ListNodesOutput", "{", "s", ".", "NodeInfoList", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetNodeInfoList sets the NodeInfoList field's value.
[ "SetNodeInfoList", "sets", "the", "NodeInfoList", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kafka/api.go#L1790-L1793
3,228
aws/aws-sdk-go
service/kafka/api.go
SetAddedToClusterTime
func (s *NodeInfo) SetAddedToClusterTime(v string) *NodeInfo { s.AddedToClusterTime = &v return s }
go
func (s *NodeInfo) SetAddedToClusterTime(v string) *NodeInfo { s.AddedToClusterTime = &v return s }
[ "func", "(", "s", "*", "NodeInfo", ")", "SetAddedToClusterTime", "(", "v", "string", ")", "*", "NodeInfo", "{", "s", ".", "AddedToClusterTime", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetAddedToClusterTime sets the AddedToClusterTime field's value.
[ "SetAddedToClusterTime", "sets", "the", "AddedToClusterTime", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kafka/api.go#L1892-L1895
3,229
aws/aws-sdk-go
service/kafka/api.go
SetBrokerNodeInfo
func (s *NodeInfo) SetBrokerNodeInfo(v *BrokerNodeInfo) *NodeInfo { s.BrokerNodeInfo = v return s }
go
func (s *NodeInfo) SetBrokerNodeInfo(v *BrokerNodeInfo) *NodeInfo { s.BrokerNodeInfo = v return s }
[ "func", "(", "s", "*", "NodeInfo", ")", "SetBrokerNodeInfo", "(", "v", "*", "BrokerNodeInfo", ")", "*", "NodeInfo", "{", "s", ".", "BrokerNodeInfo", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetBrokerNodeInfo sets the BrokerNodeInfo field's value.
[ "SetBrokerNodeInfo", "sets", "the", "BrokerNodeInfo", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kafka/api.go#L1898-L1901
3,230
aws/aws-sdk-go
service/kafka/api.go
SetNodeARN
func (s *NodeInfo) SetNodeARN(v string) *NodeInfo { s.NodeARN = &v return s }
go
func (s *NodeInfo) SetNodeARN(v string) *NodeInfo { s.NodeARN = &v return s }
[ "func", "(", "s", "*", "NodeInfo", ")", "SetNodeARN", "(", "v", "string", ")", "*", "NodeInfo", "{", "s", ".", "NodeARN", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetNodeARN sets the NodeARN field's value.
[ "SetNodeARN", "sets", "the", "NodeARN", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kafka/api.go#L1910-L1913
3,231
aws/aws-sdk-go
service/kafka/api.go
SetZookeeperNodeInfo
func (s *NodeInfo) SetZookeeperNodeInfo(v *ZookeeperNodeInfo) *NodeInfo { s.ZookeeperNodeInfo = v return s }
go
func (s *NodeInfo) SetZookeeperNodeInfo(v *ZookeeperNodeInfo) *NodeInfo { s.ZookeeperNodeInfo = v return s }
[ "func", "(", "s", "*", "NodeInfo", ")", "SetZookeeperNodeInfo", "(", "v", "*", "ZookeeperNodeInfo", ")", "*", "NodeInfo", "{", "s", ".", "ZookeeperNodeInfo", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetZookeeperNodeInfo sets the ZookeeperNodeInfo field's value.
[ "SetZookeeperNodeInfo", "sets", "the", "ZookeeperNodeInfo", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kafka/api.go#L1922-L1925
3,232
aws/aws-sdk-go
service/kafka/api.go
SetEbsStorageInfo
func (s *StorageInfo) SetEbsStorageInfo(v *EBSStorageInfo) *StorageInfo { s.EbsStorageInfo = v return s }
go
func (s *StorageInfo) SetEbsStorageInfo(v *EBSStorageInfo) *StorageInfo { s.EbsStorageInfo = v return s }
[ "func", "(", "s", "*", "StorageInfo", ")", "SetEbsStorageInfo", "(", "v", "*", "EBSStorageInfo", ")", "*", "StorageInfo", "{", "s", ".", "EbsStorageInfo", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetEbsStorageInfo sets the EbsStorageInfo field's value.
[ "SetEbsStorageInfo", "sets", "the", "EbsStorageInfo", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kafka/api.go#L1961-L1964
3,233
aws/aws-sdk-go
service/kafka/api.go
SetZookeeperId
func (s *ZookeeperNodeInfo) SetZookeeperId(v float64) *ZookeeperNodeInfo { s.ZookeeperId = &v return s }
go
func (s *ZookeeperNodeInfo) SetZookeeperId(v float64) *ZookeeperNodeInfo { s.ZookeeperId = &v return s }
[ "func", "(", "s", "*", "ZookeeperNodeInfo", ")", "SetZookeeperId", "(", "v", "float64", ")", "*", "ZookeeperNodeInfo", "{", "s", ".", "ZookeeperId", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetZookeeperId sets the ZookeeperId field's value.
[ "SetZookeeperId", "sets", "the", "ZookeeperId", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kafka/api.go#L2139-L2142
3,234
aws/aws-sdk-go
service/kafka/api.go
SetZookeeperVersion
func (s *ZookeeperNodeInfo) SetZookeeperVersion(v string) *ZookeeperNodeInfo { s.ZookeeperVersion = &v return s }
go
func (s *ZookeeperNodeInfo) SetZookeeperVersion(v string) *ZookeeperNodeInfo { s.ZookeeperVersion = &v return s }
[ "func", "(", "s", "*", "ZookeeperNodeInfo", ")", "SetZookeeperVersion", "(", "v", "string", ")", "*", "ZookeeperNodeInfo", "{", "s", ".", "ZookeeperVersion", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetZookeeperVersion sets the ZookeeperVersion field's value.
[ "SetZookeeperVersion", "sets", "the", "ZookeeperVersion", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kafka/api.go#L2145-L2148
3,235
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetDeliveryTime
func (s *BusinessReport) SetDeliveryTime(v time.Time) *BusinessReport { s.DeliveryTime = &v return s }
go
func (s *BusinessReport) SetDeliveryTime(v time.Time) *BusinessReport { s.DeliveryTime = &v return s }
[ "func", "(", "s", "*", "BusinessReport", ")", "SetDeliveryTime", "(", "v", "time", ".", "Time", ")", "*", "BusinessReport", "{", "s", ".", "DeliveryTime", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDeliveryTime sets the DeliveryTime field's value.
[ "SetDeliveryTime", "sets", "the", "DeliveryTime", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L8434-L8437
3,236
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetLastBusinessReport
func (s *BusinessReportSchedule) SetLastBusinessReport(v *BusinessReport) *BusinessReportSchedule { s.LastBusinessReport = v return s }
go
func (s *BusinessReportSchedule) SetLastBusinessReport(v *BusinessReport) *BusinessReportSchedule { s.LastBusinessReport = v return s }
[ "func", "(", "s", "*", "BusinessReportSchedule", ")", "SetLastBusinessReport", "(", "v", "*", "BusinessReport", ")", "*", "BusinessReportSchedule", "{", "s", ".", "LastBusinessReport", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetLastBusinessReport sets the LastBusinessReport field's value.
[ "SetLastBusinessReport", "sets", "the", "LastBusinessReport", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L8597-L8600
3,237
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetCategoryName
func (s *Category) SetCategoryName(v string) *Category { s.CategoryName = &v return s }
go
func (s *Category) SetCategoryName(v string) *Category { s.CategoryName = &v return s }
[ "func", "(", "s", "*", "Category", ")", "SetCategoryName", "(", "v", "string", ")", "*", "Category", "{", "s", ".", "CategoryName", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetCategoryName sets the CategoryName field's value.
[ "SetCategoryName", "sets", "the", "CategoryName", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L8661-L8664
3,238
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetDefaultConferenceProviderArn
func (s *ConferencePreference) SetDefaultConferenceProviderArn(v string) *ConferencePreference { s.DefaultConferenceProviderArn = &v return s }
go
func (s *ConferencePreference) SetDefaultConferenceProviderArn(v string) *ConferencePreference { s.DefaultConferenceProviderArn = &v return s }
[ "func", "(", "s", "*", "ConferencePreference", ")", "SetDefaultConferenceProviderArn", "(", "v", "string", ")", "*", "ConferencePreference", "{", "s", ".", "DefaultConferenceProviderArn", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDefaultConferenceProviderArn sets the DefaultConferenceProviderArn field's value.
[ "SetDefaultConferenceProviderArn", "sets", "the", "DefaultConferenceProviderArn", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L8686-L8689
3,239
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetAudioList
func (s *Content) SetAudioList(v []*Audio) *Content { s.AudioList = v return s }
go
func (s *Content) SetAudioList(v []*Audio) *Content { s.AudioList = v return s }
[ "func", "(", "s", "*", "Content", ")", "SetAudioList", "(", "v", "[", "]", "*", "Audio", ")", "*", "Content", "{", "s", ".", "AudioList", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetAudioList sets the AudioList field's value.
[ "SetAudioList", "sets", "the", "AudioList", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L8949-L8952
3,240
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetSsmlList
func (s *Content) SetSsmlList(v []*Ssml) *Content { s.SsmlList = v return s }
go
func (s *Content) SetSsmlList(v []*Ssml) *Content { s.SsmlList = v return s }
[ "func", "(", "s", "*", "Content", ")", "SetSsmlList", "(", "v", "[", "]", "*", "Ssml", ")", "*", "Content", "{", "s", ".", "SsmlList", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSsmlList sets the SsmlList field's value.
[ "SetSsmlList", "sets", "the", "SsmlList", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L8955-L8958
3,241
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetConferenceProviderName
func (s *CreateConferenceProviderInput) SetConferenceProviderName(v string) *CreateConferenceProviderInput { s.ConferenceProviderName = &v return s }
go
func (s *CreateConferenceProviderInput) SetConferenceProviderName(v string) *CreateConferenceProviderInput { s.ConferenceProviderName = &v return s }
[ "func", "(", "s", "*", "CreateConferenceProviderInput", ")", "SetConferenceProviderName", "(", "v", "string", ")", "*", "CreateConferenceProviderInput", "{", "s", ".", "ConferenceProviderName", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetConferenceProviderName sets the ConferenceProviderName field's value.
[ "SetConferenceProviderName", "sets", "the", "ConferenceProviderName", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L9265-L9268
3,242
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetDeveloperName
func (s *DeveloperInfo) SetDeveloperName(v string) *DeveloperInfo { s.DeveloperName = &v return s }
go
func (s *DeveloperInfo) SetDeveloperName(v string) *DeveloperInfo { s.DeveloperName = &v return s }
[ "func", "(", "s", "*", "DeveloperInfo", ")", "SetDeveloperName", "(", "v", "string", ")", "*", "DeveloperInfo", "{", "s", ".", "DeveloperName", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDeveloperName sets the DeveloperName field's value.
[ "SetDeveloperName", "sets", "the", "DeveloperName", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L10679-L10682
3,243
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetPrivacyPolicy
func (s *DeveloperInfo) SetPrivacyPolicy(v string) *DeveloperInfo { s.PrivacyPolicy = &v return s }
go
func (s *DeveloperInfo) SetPrivacyPolicy(v string) *DeveloperInfo { s.PrivacyPolicy = &v return s }
[ "func", "(", "s", "*", "DeveloperInfo", ")", "SetPrivacyPolicy", "(", "v", "string", ")", "*", "DeveloperInfo", "{", "s", ".", "PrivacyPolicy", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetPrivacyPolicy sets the PrivacyPolicy field's value.
[ "SetPrivacyPolicy", "sets", "the", "PrivacyPolicy", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L10691-L10694
3,244
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetConnectionStatus
func (s *DeviceStatusInfo) SetConnectionStatus(v string) *DeviceStatusInfo { s.ConnectionStatus = &v return s }
go
func (s *DeviceStatusInfo) SetConnectionStatus(v string) *DeviceStatusInfo { s.ConnectionStatus = &v return s }
[ "func", "(", "s", "*", "DeviceStatusInfo", ")", "SetConnectionStatus", "(", "v", "string", ")", "*", "DeviceStatusInfo", "{", "s", ".", "ConnectionStatus", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetConnectionStatus sets the ConnectionStatus field's value.
[ "SetConnectionStatus", "sets", "the", "ConnectionStatus", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L10992-L10995
3,245
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetDeviceStatusDetails
func (s *DeviceStatusInfo) SetDeviceStatusDetails(v []*DeviceStatusDetail) *DeviceStatusInfo { s.DeviceStatusDetails = v return s }
go
func (s *DeviceStatusInfo) SetDeviceStatusDetails(v []*DeviceStatusDetail) *DeviceStatusInfo { s.DeviceStatusDetails = v return s }
[ "func", "(", "s", "*", "DeviceStatusInfo", ")", "SetDeviceStatusDetails", "(", "v", "[", "]", "*", "DeviceStatusDetail", ")", "*", "DeviceStatusInfo", "{", "s", ".", "DeviceStatusDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetDeviceStatusDetails sets the DeviceStatusDetails field's value.
[ "SetDeviceStatusDetails", "sets", "the", "DeviceStatusDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L10998-L11001
3,246
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetAddressBook
func (s *GetAddressBookOutput) SetAddressBook(v *AddressBook) *GetAddressBookOutput { s.AddressBook = v return s }
go
func (s *GetAddressBookOutput) SetAddressBook(v *AddressBook) *GetAddressBookOutput { s.AddressBook = v return s }
[ "func", "(", "s", "*", "GetAddressBookOutput", ")", "SetAddressBook", "(", "v", "*", "AddressBook", ")", "*", "GetAddressBookOutput", "{", "s", ".", "AddressBook", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetAddressBook sets the AddressBook field's value.
[ "SetAddressBook", "sets", "the", "AddressBook", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L11636-L11639
3,247
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetPreference
func (s *GetConferencePreferenceOutput) SetPreference(v *ConferencePreference) *GetConferencePreferenceOutput { s.Preference = v return s }
go
func (s *GetConferencePreferenceOutput) SetPreference(v *ConferencePreference) *GetConferencePreferenceOutput { s.Preference = v return s }
[ "func", "(", "s", "*", "GetConferencePreferenceOutput", ")", "SetPreference", "(", "v", "*", "ConferencePreference", ")", "*", "GetConferencePreferenceOutput", "{", "s", ".", "Preference", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetPreference sets the Preference field's value.
[ "SetPreference", "sets", "the", "Preference", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L11673-L11676
3,248
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetConferenceProvider
func (s *GetConferenceProviderOutput) SetConferenceProvider(v *ConferenceProvider) *GetConferenceProviderOutput { s.ConferenceProvider = v return s }
go
func (s *GetConferenceProviderOutput) SetConferenceProvider(v *ConferenceProvider) *GetConferenceProviderOutput { s.ConferenceProvider = v return s }
[ "func", "(", "s", "*", "GetConferenceProviderOutput", ")", "SetConferenceProvider", "(", "v", "*", "ConferenceProvider", ")", "*", "GetConferenceProviderOutput", "{", "s", ".", "ConferenceProvider", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetConferenceProvider sets the ConferenceProvider field's value.
[ "SetConferenceProvider", "sets", "the", "ConferenceProvider", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L11734-L11737
3,249
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetContact
func (s *GetContactOutput) SetContact(v *Contact) *GetContactOutput { s.Contact = v return s }
go
func (s *GetContactOutput) SetContact(v *Contact) *GetContactOutput { s.Contact = v return s }
[ "func", "(", "s", "*", "GetContactOutput", ")", "SetContact", "(", "v", "*", "Contact", ")", "*", "GetContactOutput", "{", "s", ".", "Contact", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetContact sets the Contact field's value.
[ "SetContact", "sets", "the", "Contact", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L11795-L11798
3,250
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetGatewayGroup
func (s *GetGatewayGroupOutput) SetGatewayGroup(v *GatewayGroup) *GetGatewayGroupOutput { s.GatewayGroup = v return s }
go
func (s *GetGatewayGroupOutput) SetGatewayGroup(v *GatewayGroup) *GetGatewayGroupOutput { s.GatewayGroup = v return s }
[ "func", "(", "s", "*", "GetGatewayGroupOutput", ")", "SetGatewayGroup", "(", "v", "*", "GatewayGroup", ")", "*", "GetGatewayGroupOutput", "{", "s", ".", "GatewayGroup", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetGatewayGroup sets the GatewayGroup field's value.
[ "SetGatewayGroup", "sets", "the", "GatewayGroup", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L11902-L11905
3,251
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetGateway
func (s *GetGatewayOutput) SetGateway(v *Gateway) *GetGatewayOutput { s.Gateway = v return s }
go
func (s *GetGatewayOutput) SetGateway(v *Gateway) *GetGatewayOutput { s.Gateway = v return s }
[ "func", "(", "s", "*", "GetGatewayOutput", ")", "SetGateway", "(", "v", "*", "Gateway", ")", "*", "GetGatewayOutput", "{", "s", ".", "Gateway", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetGateway sets the Gateway field's value.
[ "SetGateway", "sets", "the", "Gateway", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L11963-L11966
3,252
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetRoom
func (s *GetRoomOutput) SetRoom(v *Room) *GetRoomOutput { s.Room = v return s }
go
func (s *GetRoomOutput) SetRoom(v *Room) *GetRoomOutput { s.Room = v return s }
[ "func", "(", "s", "*", "GetRoomOutput", ")", "SetRoom", "(", "v", "*", "Room", ")", "*", "GetRoomOutput", "{", "s", ".", "Room", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetRoom sets the Room field's value.
[ "SetRoom", "sets", "the", "Room", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L12112-L12115
3,253
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetSkillGroup
func (s *GetSkillGroupOutput) SetSkillGroup(v *SkillGroup) *GetSkillGroupOutput { s.SkillGroup = v return s }
go
func (s *GetSkillGroupOutput) SetSkillGroup(v *SkillGroup) *GetSkillGroupOutput { s.SkillGroup = v return s }
[ "func", "(", "s", "*", "GetSkillGroupOutput", ")", "SetSkillGroup", "(", "v", "*", "SkillGroup", ")", "*", "GetSkillGroupOutput", "{", "s", ".", "SkillGroup", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSkillGroup sets the SkillGroup field's value.
[ "SetSkillGroup", "sets", "the", "SkillGroup", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L12246-L12249
3,254
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetCommsProtocol
func (s *IPDialIn) SetCommsProtocol(v string) *IPDialIn { s.CommsProtocol = &v return s }
go
func (s *IPDialIn) SetCommsProtocol(v string) *IPDialIn { s.CommsProtocol = &v return s }
[ "func", "(", "s", "*", "IPDialIn", ")", "SetCommsProtocol", "(", "v", "string", ")", "*", "IPDialIn", "{", "s", ".", "CommsProtocol", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetCommsProtocol sets the CommsProtocol field's value.
[ "SetCommsProtocol", "sets", "the", "CommsProtocol", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L12296-L12299
3,255
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetBusinessReportSchedules
func (s *ListBusinessReportSchedulesOutput) SetBusinessReportSchedules(v []*BusinessReportSchedule) *ListBusinessReportSchedulesOutput { s.BusinessReportSchedules = v return s }
go
func (s *ListBusinessReportSchedulesOutput) SetBusinessReportSchedules(v []*BusinessReportSchedule) *ListBusinessReportSchedulesOutput { s.BusinessReportSchedules = v return s }
[ "func", "(", "s", "*", "ListBusinessReportSchedulesOutput", ")", "SetBusinessReportSchedules", "(", "v", "[", "]", "*", "BusinessReportSchedule", ")", "*", "ListBusinessReportSchedulesOutput", "{", "s", ".", "BusinessReportSchedules", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetBusinessReportSchedules sets the BusinessReportSchedules field's value.
[ "SetBusinessReportSchedules", "sets", "the", "BusinessReportSchedules", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L12376-L12379
3,256
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetConferenceProviders
func (s *ListConferenceProvidersOutput) SetConferenceProviders(v []*ConferenceProvider) *ListConferenceProvidersOutput { s.ConferenceProviders = v return s }
go
func (s *ListConferenceProvidersOutput) SetConferenceProviders(v []*ConferenceProvider) *ListConferenceProvidersOutput { s.ConferenceProviders = v return s }
[ "func", "(", "s", "*", "ListConferenceProvidersOutput", ")", "SetConferenceProviders", "(", "v", "[", "]", "*", "ConferenceProvider", ")", "*", "ListConferenceProvidersOutput", "{", "s", ".", "ConferenceProviders", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetConferenceProviders sets the ConferenceProviders field's value.
[ "SetConferenceProviders", "sets", "the", "ConferenceProviders", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L12457-L12460
3,257
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetDeviceEvents
func (s *ListDeviceEventsOutput) SetDeviceEvents(v []*DeviceEvent) *ListDeviceEventsOutput { s.DeviceEvents = v return s }
go
func (s *ListDeviceEventsOutput) SetDeviceEvents(v []*DeviceEvent) *ListDeviceEventsOutput { s.DeviceEvents = v return s }
[ "func", "(", "s", "*", "ListDeviceEventsOutput", ")", "SetDeviceEvents", "(", "v", "[", "]", "*", "DeviceEvent", ")", "*", "ListDeviceEventsOutput", "{", "s", ".", "DeviceEvents", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetDeviceEvents sets the DeviceEvents field's value.
[ "SetDeviceEvents", "sets", "the", "DeviceEvents", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L12568-L12571
3,258
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetGatewayGroups
func (s *ListGatewayGroupsOutput) SetGatewayGroups(v []*GatewayGroupSummary) *ListGatewayGroupsOutput { s.GatewayGroups = v return s }
go
func (s *ListGatewayGroupsOutput) SetGatewayGroups(v []*GatewayGroupSummary) *ListGatewayGroupsOutput { s.GatewayGroups = v return s }
[ "func", "(", "s", "*", "ListGatewayGroupsOutput", ")", "SetGatewayGroups", "(", "v", "[", "]", "*", "GatewayGroupSummary", ")", "*", "ListGatewayGroupsOutput", "{", "s", ".", "GatewayGroups", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetGatewayGroups sets the GatewayGroups field's value.
[ "SetGatewayGroups", "sets", "the", "GatewayGroups", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L12648-L12651
3,259
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetSkillSummaries
func (s *ListSkillsOutput) SetSkillSummaries(v []*SkillSummary) *ListSkillsOutput { s.SkillSummaries = v return s }
go
func (s *ListSkillsOutput) SetSkillSummaries(v []*SkillSummary) *ListSkillsOutput { s.SkillSummaries = v return s }
[ "func", "(", "s", "*", "ListSkillsOutput", ")", "SetSkillSummaries", "(", "v", "[", "]", "*", "SkillSummary", ")", "*", "ListSkillsOutput", "{", "s", ".", "SkillSummaries", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSkillSummaries sets the SkillSummaries field's value.
[ "SetSkillSummaries", "sets", "the", "SkillSummaries", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L12856-L12859
3,260
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetCategoryList
func (s *ListSkillsStoreCategoriesOutput) SetCategoryList(v []*Category) *ListSkillsStoreCategoriesOutput { s.CategoryList = v return s }
go
func (s *ListSkillsStoreCategoriesOutput) SetCategoryList(v []*Category) *ListSkillsStoreCategoriesOutput { s.CategoryList = v return s }
[ "func", "(", "s", "*", "ListSkillsStoreCategoriesOutput", ")", "SetCategoryList", "(", "v", "[", "]", "*", "Category", ")", "*", "ListSkillsStoreCategoriesOutput", "{", "s", ".", "CategoryList", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetCategoryList sets the CategoryList field's value.
[ "SetCategoryList", "sets", "the", "CategoryList", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L12930-L12933
3,261
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetSkillsStoreSkills
func (s *ListSkillsStoreSkillsByCategoryOutput) SetSkillsStoreSkills(v []*SkillsStoreSkill) *ListSkillsStoreSkillsByCategoryOutput { s.SkillsStoreSkills = v return s }
go
func (s *ListSkillsStoreSkillsByCategoryOutput) SetSkillsStoreSkills(v []*SkillsStoreSkill) *ListSkillsStoreSkillsByCategoryOutput { s.SkillsStoreSkills = v return s }
[ "func", "(", "s", "*", "ListSkillsStoreSkillsByCategoryOutput", ")", "SetSkillsStoreSkills", "(", "v", "[", "]", "*", "SkillsStoreSkill", ")", "*", "ListSkillsStoreSkillsByCategoryOutput", "{", "s", ".", "SkillsStoreSkills", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSkillsStoreSkills sets the SkillsStoreSkills field's value.
[ "SetSkillsStoreSkills", "sets", "the", "SkillsStoreSkills", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L13033-L13036
3,262
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetSmartHomeAppliances
func (s *ListSmartHomeAppliancesOutput) SetSmartHomeAppliances(v []*SmartHomeAppliance) *ListSmartHomeAppliancesOutput { s.SmartHomeAppliances = v return s }
go
func (s *ListSmartHomeAppliancesOutput) SetSmartHomeAppliances(v []*SmartHomeAppliance) *ListSmartHomeAppliancesOutput { s.SmartHomeAppliances = v return s }
[ "func", "(", "s", "*", "ListSmartHomeAppliancesOutput", ")", "SetSmartHomeAppliances", "(", "v", "[", "]", "*", "SmartHomeAppliance", ")", "*", "ListSmartHomeAppliancesOutput", "{", "s", ".", "SmartHomeAppliances", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSmartHomeAppliances sets the SmartHomeAppliances field's value.
[ "SetSmartHomeAppliances", "sets", "the", "SmartHomeAppliances", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L13127-L13130
3,263
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetRequirePin
func (s *MeetingSetting) SetRequirePin(v string) *MeetingSetting { s.RequirePin = &v return s }
go
func (s *MeetingSetting) SetRequirePin(v string) *MeetingSetting { s.RequirePin = &v return s }
[ "func", "(", "s", "*", "MeetingSetting", ")", "SetRequirePin", "(", "v", "string", ")", "*", "MeetingSetting", "{", "s", ".", "RequirePin", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetRequirePin sets the RequirePin field's value.
[ "SetRequirePin", "sets", "the", "RequirePin", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L13272-L13275
3,264
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetOneClickIdDelay
func (s *PSTNDialIn) SetOneClickIdDelay(v string) *PSTNDialIn { s.OneClickIdDelay = &v return s }
go
func (s *PSTNDialIn) SetOneClickIdDelay(v string) *PSTNDialIn { s.OneClickIdDelay = &v return s }
[ "func", "(", "s", "*", "PSTNDialIn", ")", "SetOneClickIdDelay", "(", "v", "string", ")", "*", "PSTNDialIn", "{", "s", ".", "OneClickIdDelay", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetOneClickIdDelay sets the OneClickIdDelay field's value.
[ "SetOneClickIdDelay", "sets", "the", "OneClickIdDelay", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L13351-L13354
3,265
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetOneClickPinDelay
func (s *PSTNDialIn) SetOneClickPinDelay(v string) *PSTNDialIn { s.OneClickPinDelay = &v return s }
go
func (s *PSTNDialIn) SetOneClickPinDelay(v string) *PSTNDialIn { s.OneClickPinDelay = &v return s }
[ "func", "(", "s", "*", "PSTNDialIn", ")", "SetOneClickPinDelay", "(", "v", "string", ")", "*", "PSTNDialIn", "{", "s", ".", "OneClickPinDelay", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetOneClickPinDelay sets the OneClickPinDelay field's value.
[ "SetOneClickPinDelay", "sets", "the", "OneClickPinDelay", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L13357-L13360
3,266
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetConferencePreference
func (s *PutConferencePreferenceInput) SetConferencePreference(v *ConferencePreference) *PutConferencePreferenceInput { s.ConferencePreference = v return s }
go
func (s *PutConferencePreferenceInput) SetConferencePreference(v *ConferencePreference) *PutConferencePreferenceInput { s.ConferencePreference = v return s }
[ "func", "(", "s", "*", "PutConferencePreferenceInput", ")", "SetConferencePreference", "(", "v", "*", "ConferencePreference", ")", "*", "PutConferencePreferenceInput", "{", "s", ".", "ConferencePreference", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetConferencePreference sets the ConferencePreference field's value.
[ "SetConferencePreference", "sets", "the", "ConferencePreference", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L13611-L13614
3,267
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetAuthorizationResult
func (s *PutSkillAuthorizationInput) SetAuthorizationResult(v map[string]*string) *PutSkillAuthorizationInput { s.AuthorizationResult = v return s }
go
func (s *PutSkillAuthorizationInput) SetAuthorizationResult(v map[string]*string) *PutSkillAuthorizationInput { s.AuthorizationResult = v return s }
[ "func", "(", "s", "*", "PutSkillAuthorizationInput", ")", "SetAuthorizationResult", "(", "v", "map", "[", "string", "]", "*", "string", ")", "*", "PutSkillAuthorizationInput", "{", "s", ".", "AuthorizationResult", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetAuthorizationResult sets the AuthorizationResult field's value.
[ "SetAuthorizationResult", "sets", "the", "AuthorizationResult", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L13833-L13836
3,268
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetAmazonId
func (s *RegisterAVSDeviceInput) SetAmazonId(v string) *RegisterAVSDeviceInput { s.AmazonId = &v return s }
go
func (s *RegisterAVSDeviceInput) SetAmazonId(v string) *RegisterAVSDeviceInput { s.AmazonId = &v return s }
[ "func", "(", "s", "*", "RegisterAVSDeviceInput", ")", "SetAmazonId", "(", "v", "string", ")", "*", "RegisterAVSDeviceInput", "{", "s", ".", "AmazonId", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetAmazonId sets the AmazonId field's value.
[ "SetAmazonId", "sets", "the", "AmazonId", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L13937-L13940
3,269
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetRoomSkillParameters
func (s *ResolveRoomOutput) SetRoomSkillParameters(v []*RoomSkillParameter) *ResolveRoomOutput { s.RoomSkillParameters = v return s }
go
func (s *ResolveRoomOutput) SetRoomSkillParameters(v []*RoomSkillParameter) *ResolveRoomOutput { s.RoomSkillParameters = v return s }
[ "func", "(", "s", "*", "ResolveRoomOutput", ")", "SetRoomSkillParameters", "(", "v", "[", "]", "*", "RoomSkillParameter", ")", "*", "ResolveRoomOutput", "{", "s", ".", "RoomSkillParameters", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetRoomSkillParameters sets the RoomSkillParameters field's value.
[ "SetRoomSkillParameters", "sets", "the", "RoomSkillParameters", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L14129-L14132
3,270
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetAddressBooks
func (s *SearchAddressBooksOutput) SetAddressBooks(v []*AddressBookData) *SearchAddressBooksOutput { s.AddressBooks = v return s }
go
func (s *SearchAddressBooksOutput) SetAddressBooks(v []*AddressBookData) *SearchAddressBooksOutput { s.AddressBooks = v return s }
[ "func", "(", "s", "*", "SearchAddressBooksOutput", ")", "SetAddressBooks", "(", "v", "[", "]", "*", "AddressBookData", ")", "*", "SearchAddressBooksOutput", "{", "s", ".", "AddressBooks", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetAddressBooks sets the AddressBooks field's value.
[ "SetAddressBooks", "sets", "the", "AddressBooks", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L14486-L14489
3,271
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetContacts
func (s *SearchContactsOutput) SetContacts(v []*ContactData) *SearchContactsOutput { s.Contacts = v return s }
go
func (s *SearchContactsOutput) SetContacts(v []*ContactData) *SearchContactsOutput { s.Contacts = v return s }
[ "func", "(", "s", "*", "SearchContactsOutput", ")", "SetContacts", "(", "v", "[", "]", "*", "ContactData", ")", "*", "SearchContactsOutput", "{", "s", ".", "Contacts", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetContacts sets the Contacts field's value.
[ "SetContacts", "sets", "the", "Contacts", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L14619-L14622
3,272
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetRooms
func (s *SearchRoomsOutput) SetRooms(v []*RoomData) *SearchRoomsOutput { s.Rooms = v return s }
go
func (s *SearchRoomsOutput) SetRooms(v []*RoomData) *SearchRoomsOutput { s.Rooms = v return s }
[ "func", "(", "s", "*", "SearchRoomsOutput", ")", "SetRooms", "(", "v", "[", "]", "*", "RoomData", ")", "*", "SearchRoomsOutput", "{", "s", ".", "Rooms", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetRooms sets the Rooms field's value.
[ "SetRooms", "sets", "the", "Rooms", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L15026-L15029
3,273
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetSkillGroups
func (s *SearchSkillGroupsOutput) SetSkillGroups(v []*SkillGroupData) *SearchSkillGroupsOutput { s.SkillGroups = v return s }
go
func (s *SearchSkillGroupsOutput) SetSkillGroups(v []*SkillGroupData) *SearchSkillGroupsOutput { s.SkillGroups = v return s }
[ "func", "(", "s", "*", "SearchSkillGroupsOutput", ")", "SetSkillGroups", "(", "v", "[", "]", "*", "SkillGroupData", ")", "*", "SearchSkillGroupsOutput", "{", "s", ".", "SkillGroups", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSkillGroups sets the SkillGroups field's value.
[ "SetSkillGroups", "sets", "the", "SkillGroups", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L15160-L15163
3,274
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetRoomFilters
func (s *SendAnnouncementInput) SetRoomFilters(v []*Filter) *SendAnnouncementInput { s.RoomFilters = v return s }
go
func (s *SendAnnouncementInput) SetRoomFilters(v []*Filter) *SendAnnouncementInput { s.RoomFilters = v return s }
[ "func", "(", "s", "*", "SendAnnouncementInput", ")", "SetRoomFilters", "(", "v", "[", "]", "*", "Filter", ")", "*", "SendAnnouncementInput", "{", "s", ".", "RoomFilters", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetRoomFilters sets the RoomFilters field's value.
[ "SetRoomFilters", "sets", "the", "RoomFilters", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L15389-L15392
3,275
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetTimeToLiveInSeconds
func (s *SendAnnouncementInput) SetTimeToLiveInSeconds(v int64) *SendAnnouncementInput { s.TimeToLiveInSeconds = &v return s }
go
func (s *SendAnnouncementInput) SetTimeToLiveInSeconds(v int64) *SendAnnouncementInput { s.TimeToLiveInSeconds = &v return s }
[ "func", "(", "s", "*", "SendAnnouncementInput", ")", "SetTimeToLiveInSeconds", "(", "v", "int64", ")", "*", "SendAnnouncementInput", "{", "s", ".", "TimeToLiveInSeconds", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetTimeToLiveInSeconds sets the TimeToLiveInSeconds field's value.
[ "SetTimeToLiveInSeconds", "sets", "the", "TimeToLiveInSeconds", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L15395-L15398
3,276
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetAnnouncementArn
func (s *SendAnnouncementOutput) SetAnnouncementArn(v string) *SendAnnouncementOutput { s.AnnouncementArn = &v return s }
go
func (s *SendAnnouncementOutput) SetAnnouncementArn(v string) *SendAnnouncementOutput { s.AnnouncementArn = &v return s }
[ "func", "(", "s", "*", "SendAnnouncementOutput", ")", "SetAnnouncementArn", "(", "v", "string", ")", "*", "SendAnnouncementOutput", "{", "s", ".", "AnnouncementArn", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetAnnouncementArn sets the AnnouncementArn field's value.
[ "SetAnnouncementArn", "sets", "the", "AnnouncementArn", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L15418-L15421
3,277
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetBulletPoints
func (s *SkillDetails) SetBulletPoints(v []*string) *SkillDetails { s.BulletPoints = v return s }
go
func (s *SkillDetails) SetBulletPoints(v []*string) *SkillDetails { s.BulletPoints = v return s }
[ "func", "(", "s", "*", "SkillDetails", ")", "SetBulletPoints", "(", "v", "[", "]", "*", "string", ")", "*", "SkillDetails", "{", "s", ".", "BulletPoints", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetBulletPoints sets the BulletPoints field's value.
[ "SetBulletPoints", "sets", "the", "BulletPoints", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L15507-L15510
3,278
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetDeveloperInfo
func (s *SkillDetails) SetDeveloperInfo(v *DeveloperInfo) *SkillDetails { s.DeveloperInfo = v return s }
go
func (s *SkillDetails) SetDeveloperInfo(v *DeveloperInfo) *SkillDetails { s.DeveloperInfo = v return s }
[ "func", "(", "s", "*", "SkillDetails", ")", "SetDeveloperInfo", "(", "v", "*", "DeveloperInfo", ")", "*", "SkillDetails", "{", "s", ".", "DeveloperInfo", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetDeveloperInfo sets the DeveloperInfo field's value.
[ "SetDeveloperInfo", "sets", "the", "DeveloperInfo", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L15513-L15516
3,279
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetEndUserLicenseAgreement
func (s *SkillDetails) SetEndUserLicenseAgreement(v string) *SkillDetails { s.EndUserLicenseAgreement = &v return s }
go
func (s *SkillDetails) SetEndUserLicenseAgreement(v string) *SkillDetails { s.EndUserLicenseAgreement = &v return s }
[ "func", "(", "s", "*", "SkillDetails", ")", "SetEndUserLicenseAgreement", "(", "v", "string", ")", "*", "SkillDetails", "{", "s", ".", "EndUserLicenseAgreement", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetEndUserLicenseAgreement sets the EndUserLicenseAgreement field's value.
[ "SetEndUserLicenseAgreement", "sets", "the", "EndUserLicenseAgreement", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L15519-L15522
3,280
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetGenericKeywords
func (s *SkillDetails) SetGenericKeywords(v []*string) *SkillDetails { s.GenericKeywords = v return s }
go
func (s *SkillDetails) SetGenericKeywords(v []*string) *SkillDetails { s.GenericKeywords = v return s }
[ "func", "(", "s", "*", "SkillDetails", ")", "SetGenericKeywords", "(", "v", "[", "]", "*", "string", ")", "*", "SkillDetails", "{", "s", ".", "GenericKeywords", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetGenericKeywords sets the GenericKeywords field's value.
[ "SetGenericKeywords", "sets", "the", "GenericKeywords", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L15525-L15528
3,281
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetInvocationPhrase
func (s *SkillDetails) SetInvocationPhrase(v string) *SkillDetails { s.InvocationPhrase = &v return s }
go
func (s *SkillDetails) SetInvocationPhrase(v string) *SkillDetails { s.InvocationPhrase = &v return s }
[ "func", "(", "s", "*", "SkillDetails", ")", "SetInvocationPhrase", "(", "v", "string", ")", "*", "SkillDetails", "{", "s", ".", "InvocationPhrase", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetInvocationPhrase sets the InvocationPhrase field's value.
[ "SetInvocationPhrase", "sets", "the", "InvocationPhrase", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L15531-L15534
3,282
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetNewInThisVersionBulletPoints
func (s *SkillDetails) SetNewInThisVersionBulletPoints(v []*string) *SkillDetails { s.NewInThisVersionBulletPoints = v return s }
go
func (s *SkillDetails) SetNewInThisVersionBulletPoints(v []*string) *SkillDetails { s.NewInThisVersionBulletPoints = v return s }
[ "func", "(", "s", "*", "SkillDetails", ")", "SetNewInThisVersionBulletPoints", "(", "v", "[", "]", "*", "string", ")", "*", "SkillDetails", "{", "s", ".", "NewInThisVersionBulletPoints", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetNewInThisVersionBulletPoints sets the NewInThisVersionBulletPoints field's value.
[ "SetNewInThisVersionBulletPoints", "sets", "the", "NewInThisVersionBulletPoints", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L15537-L15540
3,283
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetReviews
func (s *SkillDetails) SetReviews(v map[string]*string) *SkillDetails { s.Reviews = v return s }
go
func (s *SkillDetails) SetReviews(v map[string]*string) *SkillDetails { s.Reviews = v return s }
[ "func", "(", "s", "*", "SkillDetails", ")", "SetReviews", "(", "v", "map", "[", "string", "]", "*", "string", ")", "*", "SkillDetails", "{", "s", ".", "Reviews", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetReviews sets the Reviews field's value.
[ "SetReviews", "sets", "the", "Reviews", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L15555-L15558
3,284
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetSkillTypes
func (s *SkillDetails) SetSkillTypes(v []*string) *SkillDetails { s.SkillTypes = v return s }
go
func (s *SkillDetails) SetSkillTypes(v []*string) *SkillDetails { s.SkillTypes = v return s }
[ "func", "(", "s", "*", "SkillDetails", ")", "SetSkillTypes", "(", "v", "[", "]", "*", "string", ")", "*", "SkillDetails", "{", "s", ".", "SkillTypes", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSkillTypes sets the SkillTypes field's value.
[ "SetSkillTypes", "sets", "the", "SkillTypes", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L15561-L15564
3,285
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetSkillDetails
func (s *SkillsStoreSkill) SetSkillDetails(v *SkillDetails) *SkillsStoreSkill { s.SkillDetails = v return s }
go
func (s *SkillsStoreSkill) SetSkillDetails(v *SkillDetails) *SkillsStoreSkill { s.SkillDetails = v return s }
[ "func", "(", "s", "*", "SkillsStoreSkill", ")", "SetSkillDetails", "(", "v", "*", "SkillDetails", ")", "*", "SkillsStoreSkill", "{", "s", ".", "SkillDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSkillDetails sets the SkillDetails field's value.
[ "SetSkillDetails", "sets", "the", "SkillDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L15766-L15769
3,286
aws/aws-sdk-go
service/alexaforbusiness/api.go
SetManufacturerName
func (s *SmartHomeAppliance) SetManufacturerName(v string) *SmartHomeAppliance { s.ManufacturerName = &v return s }
go
func (s *SmartHomeAppliance) SetManufacturerName(v string) *SmartHomeAppliance { s.ManufacturerName = &v return s }
[ "func", "(", "s", "*", "SmartHomeAppliance", ")", "SetManufacturerName", "(", "v", "string", ")", "*", "SmartHomeAppliance", "{", "s", ".", "ManufacturerName", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetManufacturerName sets the ManufacturerName field's value.
[ "SetManufacturerName", "sets", "the", "ManufacturerName", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L15827-L15830
3,287
juju/juju
api/application/client.go
DestroyApplications
func (c *Client) DestroyApplications(in DestroyApplicationsParams) ([]params.DestroyApplicationResult, error) { argsV5 := params.DestroyApplicationsParams{ Applications: make([]params.DestroyApplicationParams, 0, len(in.Applications)), } allResults := make([]params.DestroyApplicationResult, len(in.Applications)) index := make([]int, 0, len(in.Applications)) for i, name := range in.Applications { if !names.IsValidApplication(name) { allResults[i].Error = &params.Error{ Message: errors.NotValidf("application name %q", name).Error(), } continue } index = append(index, i) argsV5.Applications = append(argsV5.Applications, params.DestroyApplicationParams{ ApplicationTag: names.NewApplicationTag(name).String(), DestroyStorage: in.DestroyStorage, Force: in.Force, MaxWait: in.MaxWait, }) } if len(argsV5.Applications) == 0 { return allResults, nil } args := interface{}(argsV5) if c.BestAPIVersion() < 5 { if in.DestroyStorage { return nil, errors.New("this controller does not support --destroy-storage") } argsV4 := params.Entities{ Entities: make([]params.Entity, len(argsV5.Applications)), } for i, arg := range argsV5.Applications { argsV4.Entities[i].Tag = arg.ApplicationTag } args = argsV4 } var result params.DestroyApplicationResults if err := c.facade.FacadeCall("DestroyApplication", args, &result); err != nil { return nil, errors.Trace(err) } if n := len(result.Results); n != len(argsV5.Applications) { return nil, errors.Errorf("expected %d result(s), got %d", len(argsV5.Applications), n) } for i, result := range result.Results { allResults[index[i]] = result } return allResults, nil }
go
func (c *Client) DestroyApplications(in DestroyApplicationsParams) ([]params.DestroyApplicationResult, error) { argsV5 := params.DestroyApplicationsParams{ Applications: make([]params.DestroyApplicationParams, 0, len(in.Applications)), } allResults := make([]params.DestroyApplicationResult, len(in.Applications)) index := make([]int, 0, len(in.Applications)) for i, name := range in.Applications { if !names.IsValidApplication(name) { allResults[i].Error = &params.Error{ Message: errors.NotValidf("application name %q", name).Error(), } continue } index = append(index, i) argsV5.Applications = append(argsV5.Applications, params.DestroyApplicationParams{ ApplicationTag: names.NewApplicationTag(name).String(), DestroyStorage: in.DestroyStorage, Force: in.Force, MaxWait: in.MaxWait, }) } if len(argsV5.Applications) == 0 { return allResults, nil } args := interface{}(argsV5) if c.BestAPIVersion() < 5 { if in.DestroyStorage { return nil, errors.New("this controller does not support --destroy-storage") } argsV4 := params.Entities{ Entities: make([]params.Entity, len(argsV5.Applications)), } for i, arg := range argsV5.Applications { argsV4.Entities[i].Tag = arg.ApplicationTag } args = argsV4 } var result params.DestroyApplicationResults if err := c.facade.FacadeCall("DestroyApplication", args, &result); err != nil { return nil, errors.Trace(err) } if n := len(result.Results); n != len(argsV5.Applications) { return nil, errors.Errorf("expected %d result(s), got %d", len(argsV5.Applications), n) } for i, result := range result.Results { allResults[index[i]] = result } return allResults, nil }
[ "func", "(", "c", "*", "Client", ")", "DestroyApplications", "(", "in", "DestroyApplicationsParams", ")", "(", "[", "]", "params", ".", "DestroyApplicationResult", ",", "error", ")", "{", "argsV5", ":=", "params", ".", "DestroyApplicationsParams", "{", "Applications", ":", "make", "(", "[", "]", "params", ".", "DestroyApplicationParams", ",", "0", ",", "len", "(", "in", ".", "Applications", ")", ")", ",", "}", "\n", "allResults", ":=", "make", "(", "[", "]", "params", ".", "DestroyApplicationResult", ",", "len", "(", "in", ".", "Applications", ")", ")", "\n", "index", ":=", "make", "(", "[", "]", "int", ",", "0", ",", "len", "(", "in", ".", "Applications", ")", ")", "\n", "for", "i", ",", "name", ":=", "range", "in", ".", "Applications", "{", "if", "!", "names", ".", "IsValidApplication", "(", "name", ")", "{", "allResults", "[", "i", "]", ".", "Error", "=", "&", "params", ".", "Error", "{", "Message", ":", "errors", ".", "NotValidf", "(", "\"", "\"", ",", "name", ")", ".", "Error", "(", ")", ",", "}", "\n", "continue", "\n", "}", "\n", "index", "=", "append", "(", "index", ",", "i", ")", "\n", "argsV5", ".", "Applications", "=", "append", "(", "argsV5", ".", "Applications", ",", "params", ".", "DestroyApplicationParams", "{", "ApplicationTag", ":", "names", ".", "NewApplicationTag", "(", "name", ")", ".", "String", "(", ")", ",", "DestroyStorage", ":", "in", ".", "DestroyStorage", ",", "Force", ":", "in", ".", "Force", ",", "MaxWait", ":", "in", ".", "MaxWait", ",", "}", ")", "\n", "}", "\n", "if", "len", "(", "argsV5", ".", "Applications", ")", "==", "0", "{", "return", "allResults", ",", "nil", "\n", "}", "\n\n", "args", ":=", "interface", "{", "}", "(", "argsV5", ")", "\n", "if", "c", ".", "BestAPIVersion", "(", ")", "<", "5", "{", "if", "in", ".", "DestroyStorage", "{", "return", "nil", ",", "errors", ".", "New", "(", "\"", "\"", ")", "\n", "}", "\n", "argsV4", ":=", "params", ".", "Entities", "{", "Entities", ":", "make", "(", "[", "]", "params", ".", "Entity", ",", "len", "(", "argsV5", ".", "Applications", ")", ")", ",", "}", "\n", "for", "i", ",", "arg", ":=", "range", "argsV5", ".", "Applications", "{", "argsV4", ".", "Entities", "[", "i", "]", ".", "Tag", "=", "arg", ".", "ApplicationTag", "\n", "}", "\n", "args", "=", "argsV4", "\n", "}", "\n\n", "var", "result", "params", ".", "DestroyApplicationResults", "\n", "if", "err", ":=", "c", ".", "facade", ".", "FacadeCall", "(", "\"", "\"", ",", "args", ",", "&", "result", ")", ";", "err", "!=", "nil", "{", "return", "nil", ",", "errors", ".", "Trace", "(", "err", ")", "\n", "}", "\n", "if", "n", ":=", "len", "(", "result", ".", "Results", ")", ";", "n", "!=", "len", "(", "argsV5", ".", "Applications", ")", "{", "return", "nil", ",", "errors", ".", "Errorf", "(", "\"", "\"", ",", "len", "(", "argsV5", ".", "Applications", ")", ",", "n", ")", "\n", "}", "\n", "for", "i", ",", "result", ":=", "range", "result", ".", "Results", "{", "allResults", "[", "index", "[", "i", "]", "]", "=", "result", "\n", "}", "\n", "return", "allResults", ",", "nil", "\n", "}" ]
// DestroyApplications destroys the given applications.
[ "DestroyApplications", "destroys", "the", "given", "applications", "." ]
ba728eedb1e44937c7bdc59f374b06400d0c7133
https://github.com/juju/juju/blob/ba728eedb1e44937c7bdc59f374b06400d0c7133/api/application/client.go#L555-L605
3,288
juju/juju
api/application/client.go
ScaleApplication
func (c *Client) ScaleApplication(in ScaleApplicationParams) (params.ScaleApplicationResult, error) { if !names.IsValidApplication(in.ApplicationName) { return params.ScaleApplicationResult{}, errors.NotValidf("application %q", in.ApplicationName) } if err := validateApplicationScale(in.Scale, in.ScaleChange); err != nil { return params.ScaleApplicationResult{}, errors.Trace(err) } args := params.ScaleApplicationsParams{ Applications: []params.ScaleApplicationParams{{ ApplicationTag: names.NewApplicationTag(in.ApplicationName).String(), Scale: in.Scale, ScaleChange: in.ScaleChange, Force: in.Force, }}, } var results params.ScaleApplicationResults if err := c.facade.FacadeCall("ScaleApplications", args, &results); err != nil { return params.ScaleApplicationResult{}, errors.Trace(err) } if n := len(results.Results); n != 1 { return params.ScaleApplicationResult{}, errors.Errorf("expected 1 result, got %d", n) } result := results.Results[0] if err := result.Error; err != nil { return params.ScaleApplicationResult{}, err } return results.Results[0], nil }
go
func (c *Client) ScaleApplication(in ScaleApplicationParams) (params.ScaleApplicationResult, error) { if !names.IsValidApplication(in.ApplicationName) { return params.ScaleApplicationResult{}, errors.NotValidf("application %q", in.ApplicationName) } if err := validateApplicationScale(in.Scale, in.ScaleChange); err != nil { return params.ScaleApplicationResult{}, errors.Trace(err) } args := params.ScaleApplicationsParams{ Applications: []params.ScaleApplicationParams{{ ApplicationTag: names.NewApplicationTag(in.ApplicationName).String(), Scale: in.Scale, ScaleChange: in.ScaleChange, Force: in.Force, }}, } var results params.ScaleApplicationResults if err := c.facade.FacadeCall("ScaleApplications", args, &results); err != nil { return params.ScaleApplicationResult{}, errors.Trace(err) } if n := len(results.Results); n != 1 { return params.ScaleApplicationResult{}, errors.Errorf("expected 1 result, got %d", n) } result := results.Results[0] if err := result.Error; err != nil { return params.ScaleApplicationResult{}, err } return results.Results[0], nil }
[ "func", "(", "c", "*", "Client", ")", "ScaleApplication", "(", "in", "ScaleApplicationParams", ")", "(", "params", ".", "ScaleApplicationResult", ",", "error", ")", "{", "if", "!", "names", ".", "IsValidApplication", "(", "in", ".", "ApplicationName", ")", "{", "return", "params", ".", "ScaleApplicationResult", "{", "}", ",", "errors", ".", "NotValidf", "(", "\"", "\"", ",", "in", ".", "ApplicationName", ")", "\n", "}", "\n\n", "if", "err", ":=", "validateApplicationScale", "(", "in", ".", "Scale", ",", "in", ".", "ScaleChange", ")", ";", "err", "!=", "nil", "{", "return", "params", ".", "ScaleApplicationResult", "{", "}", ",", "errors", ".", "Trace", "(", "err", ")", "\n", "}", "\n\n", "args", ":=", "params", ".", "ScaleApplicationsParams", "{", "Applications", ":", "[", "]", "params", ".", "ScaleApplicationParams", "{", "{", "ApplicationTag", ":", "names", ".", "NewApplicationTag", "(", "in", ".", "ApplicationName", ")", ".", "String", "(", ")", ",", "Scale", ":", "in", ".", "Scale", ",", "ScaleChange", ":", "in", ".", "ScaleChange", ",", "Force", ":", "in", ".", "Force", ",", "}", "}", ",", "}", "\n", "var", "results", "params", ".", "ScaleApplicationResults", "\n", "if", "err", ":=", "c", ".", "facade", ".", "FacadeCall", "(", "\"", "\"", ",", "args", ",", "&", "results", ")", ";", "err", "!=", "nil", "{", "return", "params", ".", "ScaleApplicationResult", "{", "}", ",", "errors", ".", "Trace", "(", "err", ")", "\n", "}", "\n", "if", "n", ":=", "len", "(", "results", ".", "Results", ")", ";", "n", "!=", "1", "{", "return", "params", ".", "ScaleApplicationResult", "{", "}", ",", "errors", ".", "Errorf", "(", "\"", "\"", ",", "n", ")", "\n", "}", "\n", "result", ":=", "results", ".", "Results", "[", "0", "]", "\n", "if", "err", ":=", "result", ".", "Error", ";", "err", "!=", "nil", "{", "return", "params", ".", "ScaleApplicationResult", "{", "}", ",", "err", "\n", "}", "\n", "return", "results", ".", "Results", "[", "0", "]", ",", "nil", "\n", "}" ]
// ScaleApplication sets the desired unit count for one or more applications.
[ "ScaleApplication", "sets", "the", "desired", "unit", "count", "for", "one", "or", "more", "applications", "." ]
ba728eedb1e44937c7bdc59f374b06400d0c7133
https://github.com/juju/juju/blob/ba728eedb1e44937c7bdc59f374b06400d0c7133/api/application/client.go#L657-L686
3,289
juju/juju
api/application/client.go
GetConstraints
func (c *Client) GetConstraints(applications ...string) ([]constraints.Value, error) { var allConstraints []constraints.Value if c.BestAPIVersion() < 5 { for _, application := range applications { var result params.GetConstraintsResults err := c.facade.FacadeCall( "GetConstraints", params.GetApplicationConstraints{ApplicationName: application}, &result) if err != nil { return nil, errors.Trace(err) } allConstraints = append(allConstraints, result.Constraints) } return allConstraints, nil } // Make a single call to get all the constraints. var results params.ApplicationGetConstraintsResults var args params.Entities for _, application := range applications { args.Entities = append(args.Entities, params.Entity{Tag: names.NewApplicationTag(application).String()}) } err := c.facade.FacadeCall("GetConstraints", args, &results) if err != nil { return nil, errors.Trace(err) } for i, result := range results.Results { if result.Error != nil { return nil, errors.Annotatef(result.Error, "unable to get constraints for %q", applications[i]) } allConstraints = append(allConstraints, result.Constraints) } return allConstraints, nil }
go
func (c *Client) GetConstraints(applications ...string) ([]constraints.Value, error) { var allConstraints []constraints.Value if c.BestAPIVersion() < 5 { for _, application := range applications { var result params.GetConstraintsResults err := c.facade.FacadeCall( "GetConstraints", params.GetApplicationConstraints{ApplicationName: application}, &result) if err != nil { return nil, errors.Trace(err) } allConstraints = append(allConstraints, result.Constraints) } return allConstraints, nil } // Make a single call to get all the constraints. var results params.ApplicationGetConstraintsResults var args params.Entities for _, application := range applications { args.Entities = append(args.Entities, params.Entity{Tag: names.NewApplicationTag(application).String()}) } err := c.facade.FacadeCall("GetConstraints", args, &results) if err != nil { return nil, errors.Trace(err) } for i, result := range results.Results { if result.Error != nil { return nil, errors.Annotatef(result.Error, "unable to get constraints for %q", applications[i]) } allConstraints = append(allConstraints, result.Constraints) } return allConstraints, nil }
[ "func", "(", "c", "*", "Client", ")", "GetConstraints", "(", "applications", "...", "string", ")", "(", "[", "]", "constraints", ".", "Value", ",", "error", ")", "{", "var", "allConstraints", "[", "]", "constraints", ".", "Value", "\n", "if", "c", ".", "BestAPIVersion", "(", ")", "<", "5", "{", "for", "_", ",", "application", ":=", "range", "applications", "{", "var", "result", "params", ".", "GetConstraintsResults", "\n", "err", ":=", "c", ".", "facade", ".", "FacadeCall", "(", "\"", "\"", ",", "params", ".", "GetApplicationConstraints", "{", "ApplicationName", ":", "application", "}", ",", "&", "result", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "errors", ".", "Trace", "(", "err", ")", "\n", "}", "\n", "allConstraints", "=", "append", "(", "allConstraints", ",", "result", ".", "Constraints", ")", "\n", "}", "\n", "return", "allConstraints", ",", "nil", "\n", "}", "\n\n", "// Make a single call to get all the constraints.", "var", "results", "params", ".", "ApplicationGetConstraintsResults", "\n", "var", "args", "params", ".", "Entities", "\n", "for", "_", ",", "application", ":=", "range", "applications", "{", "args", ".", "Entities", "=", "append", "(", "args", ".", "Entities", ",", "params", ".", "Entity", "{", "Tag", ":", "names", ".", "NewApplicationTag", "(", "application", ")", ".", "String", "(", ")", "}", ")", "\n", "}", "\n", "err", ":=", "c", ".", "facade", ".", "FacadeCall", "(", "\"", "\"", ",", "args", ",", "&", "results", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "errors", ".", "Trace", "(", "err", ")", "\n", "}", "\n", "for", "i", ",", "result", ":=", "range", "results", ".", "Results", "{", "if", "result", ".", "Error", "!=", "nil", "{", "return", "nil", ",", "errors", ".", "Annotatef", "(", "result", ".", "Error", ",", "\"", "\"", ",", "applications", "[", "i", "]", ")", "\n", "}", "\n", "allConstraints", "=", "append", "(", "allConstraints", ",", "result", ".", "Constraints", ")", "\n", "}", "\n", "return", "allConstraints", ",", "nil", "\n", "}" ]
// GetConstraints returns the constraints for the given applications.
[ "GetConstraints", "returns", "the", "constraints", "for", "the", "given", "applications", "." ]
ba728eedb1e44937c7bdc59f374b06400d0c7133
https://github.com/juju/juju/blob/ba728eedb1e44937c7bdc59f374b06400d0c7133/api/application/client.go#L689-L722
3,290
juju/juju
api/application/client.go
SetConstraints
func (c *Client) SetConstraints(application string, constraints constraints.Value) error { args := params.SetConstraints{ ApplicationName: application, Constraints: constraints, } return c.facade.FacadeCall("SetConstraints", args, nil) }
go
func (c *Client) SetConstraints(application string, constraints constraints.Value) error { args := params.SetConstraints{ ApplicationName: application, Constraints: constraints, } return c.facade.FacadeCall("SetConstraints", args, nil) }
[ "func", "(", "c", "*", "Client", ")", "SetConstraints", "(", "application", "string", ",", "constraints", "constraints", ".", "Value", ")", "error", "{", "args", ":=", "params", ".", "SetConstraints", "{", "ApplicationName", ":", "application", ",", "Constraints", ":", "constraints", ",", "}", "\n", "return", "c", ".", "facade", ".", "FacadeCall", "(", "\"", "\"", ",", "args", ",", "nil", ")", "\n", "}" ]
// SetConstraints specifies the constraints for the given application.
[ "SetConstraints", "specifies", "the", "constraints", "for", "the", "given", "application", "." ]
ba728eedb1e44937c7bdc59f374b06400d0c7133
https://github.com/juju/juju/blob/ba728eedb1e44937c7bdc59f374b06400d0c7133/api/application/client.go#L725-L731
3,291
juju/juju
api/application/client.go
Get
func (c *Client) Get(branchName, application string) (*params.ApplicationGetResults, error) { var results params.ApplicationGetResults args := params.ApplicationGet{ ApplicationName: application, BranchName: branchName, } err := c.facade.FacadeCall("Get", args, &results) return &results, err }
go
func (c *Client) Get(branchName, application string) (*params.ApplicationGetResults, error) { var results params.ApplicationGetResults args := params.ApplicationGet{ ApplicationName: application, BranchName: branchName, } err := c.facade.FacadeCall("Get", args, &results) return &results, err }
[ "func", "(", "c", "*", "Client", ")", "Get", "(", "branchName", ",", "application", "string", ")", "(", "*", "params", ".", "ApplicationGetResults", ",", "error", ")", "{", "var", "results", "params", ".", "ApplicationGetResults", "\n", "args", ":=", "params", ".", "ApplicationGet", "{", "ApplicationName", ":", "application", ",", "BranchName", ":", "branchName", ",", "}", "\n", "err", ":=", "c", ".", "facade", ".", "FacadeCall", "(", "\"", "\"", ",", "args", ",", "&", "results", ")", "\n", "return", "&", "results", ",", "err", "\n", "}" ]
// Get returns the configuration for the named application.
[ "Get", "returns", "the", "configuration", "for", "the", "named", "application", "." ]
ba728eedb1e44937c7bdc59f374b06400d0c7133
https://github.com/juju/juju/blob/ba728eedb1e44937c7bdc59f374b06400d0c7133/api/application/client.go#L748-L756
3,292
juju/juju
api/application/client.go
Set
func (c *Client) Set(application string, options map[string]string) error { p := params.ApplicationSet{ ApplicationName: application, Options: options, } return c.facade.FacadeCall("Set", p, nil) }
go
func (c *Client) Set(application string, options map[string]string) error { p := params.ApplicationSet{ ApplicationName: application, Options: options, } return c.facade.FacadeCall("Set", p, nil) }
[ "func", "(", "c", "*", "Client", ")", "Set", "(", "application", "string", ",", "options", "map", "[", "string", "]", "string", ")", "error", "{", "p", ":=", "params", ".", "ApplicationSet", "{", "ApplicationName", ":", "application", ",", "Options", ":", "options", ",", "}", "\n", "return", "c", ".", "facade", ".", "FacadeCall", "(", "\"", "\"", ",", "p", ",", "nil", ")", "\n", "}" ]
// Set sets configuration options on an application.
[ "Set", "sets", "configuration", "options", "on", "an", "application", "." ]
ba728eedb1e44937c7bdc59f374b06400d0c7133
https://github.com/juju/juju/blob/ba728eedb1e44937c7bdc59f374b06400d0c7133/api/application/client.go#L759-L765
3,293
juju/juju
api/application/client.go
Unset
func (c *Client) Unset(application string, options []string) error { p := params.ApplicationUnset{ ApplicationName: application, Options: options, } return c.facade.FacadeCall("Unset", p, nil) }
go
func (c *Client) Unset(application string, options []string) error { p := params.ApplicationUnset{ ApplicationName: application, Options: options, } return c.facade.FacadeCall("Unset", p, nil) }
[ "func", "(", "c", "*", "Client", ")", "Unset", "(", "application", "string", ",", "options", "[", "]", "string", ")", "error", "{", "p", ":=", "params", ".", "ApplicationUnset", "{", "ApplicationName", ":", "application", ",", "Options", ":", "options", ",", "}", "\n", "return", "c", ".", "facade", ".", "FacadeCall", "(", "\"", "\"", ",", "p", ",", "nil", ")", "\n", "}" ]
// Unset resets configuration options on an application.
[ "Unset", "resets", "configuration", "options", "on", "an", "application", "." ]
ba728eedb1e44937c7bdc59f374b06400d0c7133
https://github.com/juju/juju/blob/ba728eedb1e44937c7bdc59f374b06400d0c7133/api/application/client.go#L768-L774
3,294
juju/juju
api/application/client.go
CharmRelations
func (c *Client) CharmRelations(application string) ([]string, error) { var results params.ApplicationCharmRelationsResults args := params.ApplicationCharmRelations{ApplicationName: application} err := c.facade.FacadeCall("CharmRelations", args, &results) return results.CharmRelations, err }
go
func (c *Client) CharmRelations(application string) ([]string, error) { var results params.ApplicationCharmRelationsResults args := params.ApplicationCharmRelations{ApplicationName: application} err := c.facade.FacadeCall("CharmRelations", args, &results) return results.CharmRelations, err }
[ "func", "(", "c", "*", "Client", ")", "CharmRelations", "(", "application", "string", ")", "(", "[", "]", "string", ",", "error", ")", "{", "var", "results", "params", ".", "ApplicationCharmRelationsResults", "\n", "args", ":=", "params", ".", "ApplicationCharmRelations", "{", "ApplicationName", ":", "application", "}", "\n", "err", ":=", "c", ".", "facade", ".", "FacadeCall", "(", "\"", "\"", ",", "args", ",", "&", "results", ")", "\n", "return", "results", ".", "CharmRelations", ",", "err", "\n", "}" ]
// CharmRelations returns the application's charms relation names.
[ "CharmRelations", "returns", "the", "application", "s", "charms", "relation", "names", "." ]
ba728eedb1e44937c7bdc59f374b06400d0c7133
https://github.com/juju/juju/blob/ba728eedb1e44937c7bdc59f374b06400d0c7133/api/application/client.go#L777-L782
3,295
juju/juju
api/application/client.go
DestroyRelation
func (c *Client) DestroyRelation(force *bool, maxWait *time.Duration, endpoints ...string) error { args := params.DestroyRelation{ Endpoints: endpoints, Force: force, MaxWait: maxWait, } return c.facade.FacadeCall("DestroyRelation", args, nil) }
go
func (c *Client) DestroyRelation(force *bool, maxWait *time.Duration, endpoints ...string) error { args := params.DestroyRelation{ Endpoints: endpoints, Force: force, MaxWait: maxWait, } return c.facade.FacadeCall("DestroyRelation", args, nil) }
[ "func", "(", "c", "*", "Client", ")", "DestroyRelation", "(", "force", "*", "bool", ",", "maxWait", "*", "time", ".", "Duration", ",", "endpoints", "...", "string", ")", "error", "{", "args", ":=", "params", ".", "DestroyRelation", "{", "Endpoints", ":", "endpoints", ",", "Force", ":", "force", ",", "MaxWait", ":", "maxWait", ",", "}", "\n", "return", "c", ".", "facade", ".", "FacadeCall", "(", "\"", "\"", ",", "args", ",", "nil", ")", "\n", "}" ]
// DestroyRelation removes the relation between the specified endpoints.
[ "DestroyRelation", "removes", "the", "relation", "between", "the", "specified", "endpoints", "." ]
ba728eedb1e44937c7bdc59f374b06400d0c7133
https://github.com/juju/juju/blob/ba728eedb1e44937c7bdc59f374b06400d0c7133/api/application/client.go#L793-L800
3,296
juju/juju
api/application/client.go
DestroyRelationId
func (c *Client) DestroyRelationId(relationId int, force *bool, maxWait *time.Duration) error { args := params.DestroyRelation{ RelationId: relationId, Force: force, MaxWait: maxWait, } return c.facade.FacadeCall("DestroyRelation", args, nil) }
go
func (c *Client) DestroyRelationId(relationId int, force *bool, maxWait *time.Duration) error { args := params.DestroyRelation{ RelationId: relationId, Force: force, MaxWait: maxWait, } return c.facade.FacadeCall("DestroyRelation", args, nil) }
[ "func", "(", "c", "*", "Client", ")", "DestroyRelationId", "(", "relationId", "int", ",", "force", "*", "bool", ",", "maxWait", "*", "time", ".", "Duration", ")", "error", "{", "args", ":=", "params", ".", "DestroyRelation", "{", "RelationId", ":", "relationId", ",", "Force", ":", "force", ",", "MaxWait", ":", "maxWait", ",", "}", "\n", "return", "c", ".", "facade", ".", "FacadeCall", "(", "\"", "\"", ",", "args", ",", "nil", ")", "\n", "}" ]
// DestroyRelationId removes the relation with the specified id.
[ "DestroyRelationId", "removes", "the", "relation", "with", "the", "specified", "id", "." ]
ba728eedb1e44937c7bdc59f374b06400d0c7133
https://github.com/juju/juju/blob/ba728eedb1e44937c7bdc59f374b06400d0c7133/api/application/client.go#L803-L810
3,297
juju/juju
api/application/client.go
SetRelationSuspended
func (c *Client) SetRelationSuspended(relationIds []int, suspended bool, message string) error { var args params.RelationSuspendedArgs for _, relId := range relationIds { args.Args = append(args.Args, params.RelationSuspendedArg{ RelationId: relId, Suspended: suspended, Message: message, }) } var results params.ErrorResults if err := c.facade.FacadeCall("SetRelationsSuspended", args, &results); err != nil { return errors.Trace(err) } if len(results.Results) != len(args.Args) { return errors.Errorf("expected %d results, got %d", len(args.Args), len(results.Results)) } return results.Combine() }
go
func (c *Client) SetRelationSuspended(relationIds []int, suspended bool, message string) error { var args params.RelationSuspendedArgs for _, relId := range relationIds { args.Args = append(args.Args, params.RelationSuspendedArg{ RelationId: relId, Suspended: suspended, Message: message, }) } var results params.ErrorResults if err := c.facade.FacadeCall("SetRelationsSuspended", args, &results); err != nil { return errors.Trace(err) } if len(results.Results) != len(args.Args) { return errors.Errorf("expected %d results, got %d", len(args.Args), len(results.Results)) } return results.Combine() }
[ "func", "(", "c", "*", "Client", ")", "SetRelationSuspended", "(", "relationIds", "[", "]", "int", ",", "suspended", "bool", ",", "message", "string", ")", "error", "{", "var", "args", "params", ".", "RelationSuspendedArgs", "\n", "for", "_", ",", "relId", ":=", "range", "relationIds", "{", "args", ".", "Args", "=", "append", "(", "args", ".", "Args", ",", "params", ".", "RelationSuspendedArg", "{", "RelationId", ":", "relId", ",", "Suspended", ":", "suspended", ",", "Message", ":", "message", ",", "}", ")", "\n", "}", "\n", "var", "results", "params", ".", "ErrorResults", "\n", "if", "err", ":=", "c", ".", "facade", ".", "FacadeCall", "(", "\"", "\"", ",", "args", ",", "&", "results", ")", ";", "err", "!=", "nil", "{", "return", "errors", ".", "Trace", "(", "err", ")", "\n", "}", "\n", "if", "len", "(", "results", ".", "Results", ")", "!=", "len", "(", "args", ".", "Args", ")", "{", "return", "errors", ".", "Errorf", "(", "\"", "\"", ",", "len", "(", "args", ".", "Args", ")", ",", "len", "(", "results", ".", "Results", ")", ")", "\n", "}", "\n", "return", "results", ".", "Combine", "(", ")", "\n", "}" ]
// SetRelationSuspended updates the suspended status of the relation with the specified id.
[ "SetRelationSuspended", "updates", "the", "suspended", "status", "of", "the", "relation", "with", "the", "specified", "id", "." ]
ba728eedb1e44937c7bdc59f374b06400d0c7133
https://github.com/juju/juju/blob/ba728eedb1e44937c7bdc59f374b06400d0c7133/api/application/client.go#L813-L830
3,298
juju/juju
api/application/client.go
Consume
func (c *Client) Consume(arg crossmodel.ConsumeApplicationArgs) (string, error) { var consumeRes params.ErrorResults args := params.ConsumeApplicationArgs{ Args: []params.ConsumeApplicationArg{{ ApplicationOfferDetails: arg.Offer, ApplicationAlias: arg.ApplicationAlias, Macaroon: arg.Macaroon, }}, } if arg.ControllerInfo != nil { args.Args[0].ControllerInfo = &params.ExternalControllerInfo{ ControllerTag: arg.ControllerInfo.ControllerTag.String(), Alias: arg.ControllerInfo.Alias, Addrs: arg.ControllerInfo.Addrs, CACert: arg.ControllerInfo.CACert, } } err := c.facade.FacadeCall("Consume", args, &consumeRes) if err != nil { return "", errors.Trace(err) } if resultLen := len(consumeRes.Results); resultLen != 1 { return "", errors.Errorf("expected 1 result, got %d", resultLen) } if err := consumeRes.Results[0].Error; err != nil { return "", errors.Trace(err) } localName := arg.Offer.OfferName if arg.ApplicationAlias != "" { localName = arg.ApplicationAlias } return localName, nil }
go
func (c *Client) Consume(arg crossmodel.ConsumeApplicationArgs) (string, error) { var consumeRes params.ErrorResults args := params.ConsumeApplicationArgs{ Args: []params.ConsumeApplicationArg{{ ApplicationOfferDetails: arg.Offer, ApplicationAlias: arg.ApplicationAlias, Macaroon: arg.Macaroon, }}, } if arg.ControllerInfo != nil { args.Args[0].ControllerInfo = &params.ExternalControllerInfo{ ControllerTag: arg.ControllerInfo.ControllerTag.String(), Alias: arg.ControllerInfo.Alias, Addrs: arg.ControllerInfo.Addrs, CACert: arg.ControllerInfo.CACert, } } err := c.facade.FacadeCall("Consume", args, &consumeRes) if err != nil { return "", errors.Trace(err) } if resultLen := len(consumeRes.Results); resultLen != 1 { return "", errors.Errorf("expected 1 result, got %d", resultLen) } if err := consumeRes.Results[0].Error; err != nil { return "", errors.Trace(err) } localName := arg.Offer.OfferName if arg.ApplicationAlias != "" { localName = arg.ApplicationAlias } return localName, nil }
[ "func", "(", "c", "*", "Client", ")", "Consume", "(", "arg", "crossmodel", ".", "ConsumeApplicationArgs", ")", "(", "string", ",", "error", ")", "{", "var", "consumeRes", "params", ".", "ErrorResults", "\n", "args", ":=", "params", ".", "ConsumeApplicationArgs", "{", "Args", ":", "[", "]", "params", ".", "ConsumeApplicationArg", "{", "{", "ApplicationOfferDetails", ":", "arg", ".", "Offer", ",", "ApplicationAlias", ":", "arg", ".", "ApplicationAlias", ",", "Macaroon", ":", "arg", ".", "Macaroon", ",", "}", "}", ",", "}", "\n", "if", "arg", ".", "ControllerInfo", "!=", "nil", "{", "args", ".", "Args", "[", "0", "]", ".", "ControllerInfo", "=", "&", "params", ".", "ExternalControllerInfo", "{", "ControllerTag", ":", "arg", ".", "ControllerInfo", ".", "ControllerTag", ".", "String", "(", ")", ",", "Alias", ":", "arg", ".", "ControllerInfo", ".", "Alias", ",", "Addrs", ":", "arg", ".", "ControllerInfo", ".", "Addrs", ",", "CACert", ":", "arg", ".", "ControllerInfo", ".", "CACert", ",", "}", "\n", "}", "\n", "err", ":=", "c", ".", "facade", ".", "FacadeCall", "(", "\"", "\"", ",", "args", ",", "&", "consumeRes", ")", "\n", "if", "err", "!=", "nil", "{", "return", "\"", "\"", ",", "errors", ".", "Trace", "(", "err", ")", "\n", "}", "\n", "if", "resultLen", ":=", "len", "(", "consumeRes", ".", "Results", ")", ";", "resultLen", "!=", "1", "{", "return", "\"", "\"", ",", "errors", ".", "Errorf", "(", "\"", "\"", ",", "resultLen", ")", "\n", "}", "\n", "if", "err", ":=", "consumeRes", ".", "Results", "[", "0", "]", ".", "Error", ";", "err", "!=", "nil", "{", "return", "\"", "\"", ",", "errors", ".", "Trace", "(", "err", ")", "\n", "}", "\n", "localName", ":=", "arg", ".", "Offer", ".", "OfferName", "\n", "if", "arg", ".", "ApplicationAlias", "!=", "\"", "\"", "{", "localName", "=", "arg", ".", "ApplicationAlias", "\n", "}", "\n", "return", "localName", ",", "nil", "\n", "}" ]
// Consume adds a remote application to the model.
[ "Consume", "adds", "a", "remote", "application", "to", "the", "model", "." ]
ba728eedb1e44937c7bdc59f374b06400d0c7133
https://github.com/juju/juju/blob/ba728eedb1e44937c7bdc59f374b06400d0c7133/api/application/client.go#L833-L865
3,299
juju/juju
api/application/client.go
SetApplicationConfig
func (c *Client) SetApplicationConfig(branchName, application string, config map[string]string) error { if c.BestAPIVersion() < 6 { return errors.NotSupportedf("SetApplicationsConfig not supported by this version of Juju") } args := params.ApplicationConfigSetArgs{ Args: []params.ApplicationConfigSet{{ ApplicationName: application, Generation: branchName, Config: config, }}, } var results params.ErrorResults err := c.facade.FacadeCall("SetApplicationsConfig", args, &results) if err != nil { return errors.Trace(err) } return results.OneError() }
go
func (c *Client) SetApplicationConfig(branchName, application string, config map[string]string) error { if c.BestAPIVersion() < 6 { return errors.NotSupportedf("SetApplicationsConfig not supported by this version of Juju") } args := params.ApplicationConfigSetArgs{ Args: []params.ApplicationConfigSet{{ ApplicationName: application, Generation: branchName, Config: config, }}, } var results params.ErrorResults err := c.facade.FacadeCall("SetApplicationsConfig", args, &results) if err != nil { return errors.Trace(err) } return results.OneError() }
[ "func", "(", "c", "*", "Client", ")", "SetApplicationConfig", "(", "branchName", ",", "application", "string", ",", "config", "map", "[", "string", "]", "string", ")", "error", "{", "if", "c", ".", "BestAPIVersion", "(", ")", "<", "6", "{", "return", "errors", ".", "NotSupportedf", "(", "\"", "\"", ")", "\n", "}", "\n", "args", ":=", "params", ".", "ApplicationConfigSetArgs", "{", "Args", ":", "[", "]", "params", ".", "ApplicationConfigSet", "{", "{", "ApplicationName", ":", "application", ",", "Generation", ":", "branchName", ",", "Config", ":", "config", ",", "}", "}", ",", "}", "\n", "var", "results", "params", ".", "ErrorResults", "\n", "err", ":=", "c", ".", "facade", ".", "FacadeCall", "(", "\"", "\"", ",", "args", ",", "&", "results", ")", "\n", "if", "err", "!=", "nil", "{", "return", "errors", ".", "Trace", "(", "err", ")", "\n", "}", "\n", "return", "results", ".", "OneError", "(", ")", "\n", "}" ]
// SetApplicationConfig sets configuration options on an application.
[ "SetApplicationConfig", "sets", "configuration", "options", "on", "an", "application", "." ]
ba728eedb1e44937c7bdc59f374b06400d0c7133
https://github.com/juju/juju/blob/ba728eedb1e44937c7bdc59f374b06400d0c7133/api/application/client.go#L868-L885