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
listlengths 21
1.41k
| docstring
stringlengths 6
2.61k
| docstring_tokens
listlengths 3
215
| sha
stringlengths 40
40
| url
stringlengths 85
252
|
---|---|---|---|---|---|---|---|---|---|---|---|
2,100 |
aws/aws-sdk-go
|
service/mediaconvert/api.go
|
SetDropFrameTimecode
|
func (s *VideoDescription) SetDropFrameTimecode(v string) *VideoDescription {
s.DropFrameTimecode = &v
return s
}
|
go
|
func (s *VideoDescription) SetDropFrameTimecode(v string) *VideoDescription {
s.DropFrameTimecode = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"VideoDescription",
")",
"SetDropFrameTimecode",
"(",
"v",
"string",
")",
"*",
"VideoDescription",
"{",
"s",
".",
"DropFrameTimecode",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetDropFrameTimecode sets the DropFrameTimecode field's value.
|
[
"SetDropFrameTimecode",
"sets",
"the",
"DropFrameTimecode",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediaconvert/api.go#L15587-L15590
|
2,101 |
aws/aws-sdk-go
|
service/mediaconvert/api.go
|
SetRespondToAfd
|
func (s *VideoDescription) SetRespondToAfd(v string) *VideoDescription {
s.RespondToAfd = &v
return s
}
|
go
|
func (s *VideoDescription) SetRespondToAfd(v string) *VideoDescription {
s.RespondToAfd = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"VideoDescription",
")",
"SetRespondToAfd",
"(",
"v",
"string",
")",
"*",
"VideoDescription",
"{",
"s",
".",
"RespondToAfd",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetRespondToAfd sets the RespondToAfd field's value.
|
[
"SetRespondToAfd",
"sets",
"the",
"RespondToAfd",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediaconvert/api.go#L15611-L15614
|
2,102 |
aws/aws-sdk-go
|
service/mediaconvert/api.go
|
SetScalingBehavior
|
func (s *VideoDescription) SetScalingBehavior(v string) *VideoDescription {
s.ScalingBehavior = &v
return s
}
|
go
|
func (s *VideoDescription) SetScalingBehavior(v string) *VideoDescription {
s.ScalingBehavior = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"VideoDescription",
")",
"SetScalingBehavior",
"(",
"v",
"string",
")",
"*",
"VideoDescription",
"{",
"s",
".",
"ScalingBehavior",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetScalingBehavior sets the ScalingBehavior field's value.
|
[
"SetScalingBehavior",
"sets",
"the",
"ScalingBehavior",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediaconvert/api.go#L15617-L15620
|
2,103 |
aws/aws-sdk-go
|
service/mediaconvert/api.go
|
SetVideoPreprocessors
|
func (s *VideoDescription) SetVideoPreprocessors(v *VideoPreprocessor) *VideoDescription {
s.VideoPreprocessors = v
return s
}
|
go
|
func (s *VideoDescription) SetVideoPreprocessors(v *VideoPreprocessor) *VideoDescription {
s.VideoPreprocessors = v
return s
}
|
[
"func",
"(",
"s",
"*",
"VideoDescription",
")",
"SetVideoPreprocessors",
"(",
"v",
"*",
"VideoPreprocessor",
")",
"*",
"VideoDescription",
"{",
"s",
".",
"VideoPreprocessors",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetVideoPreprocessors sets the VideoPreprocessors field's value.
|
[
"SetVideoPreprocessors",
"sets",
"the",
"VideoPreprocessors",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediaconvert/api.go#L15635-L15638
|
2,104 |
aws/aws-sdk-go
|
service/mediaconvert/api.go
|
SetHeightInPx
|
func (s *VideoDetail) SetHeightInPx(v int64) *VideoDetail {
s.HeightInPx = &v
return s
}
|
go
|
func (s *VideoDetail) SetHeightInPx(v int64) *VideoDetail {
s.HeightInPx = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"VideoDetail",
")",
"SetHeightInPx",
"(",
"v",
"int64",
")",
"*",
"VideoDetail",
"{",
"s",
".",
"HeightInPx",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetHeightInPx sets the HeightInPx field's value.
|
[
"SetHeightInPx",
"sets",
"the",
"HeightInPx",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediaconvert/api.go#L15668-L15671
|
2,105 |
aws/aws-sdk-go
|
service/mediaconvert/api.go
|
SetWidthInPx
|
func (s *VideoDetail) SetWidthInPx(v int64) *VideoDetail {
s.WidthInPx = &v
return s
}
|
go
|
func (s *VideoDetail) SetWidthInPx(v int64) *VideoDetail {
s.WidthInPx = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"VideoDetail",
")",
"SetWidthInPx",
"(",
"v",
"int64",
")",
"*",
"VideoDetail",
"{",
"s",
".",
"WidthInPx",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetWidthInPx sets the WidthInPx field's value.
|
[
"SetWidthInPx",
"sets",
"the",
"WidthInPx",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediaconvert/api.go#L15674-L15677
|
2,106 |
aws/aws-sdk-go
|
service/mediaconvert/api.go
|
SetColorCorrector
|
func (s *VideoPreprocessor) SetColorCorrector(v *ColorCorrector) *VideoPreprocessor {
s.ColorCorrector = v
return s
}
|
go
|
func (s *VideoPreprocessor) SetColorCorrector(v *ColorCorrector) *VideoPreprocessor {
s.ColorCorrector = v
return s
}
|
[
"func",
"(",
"s",
"*",
"VideoPreprocessor",
")",
"SetColorCorrector",
"(",
"v",
"*",
"ColorCorrector",
")",
"*",
"VideoPreprocessor",
"{",
"s",
".",
"ColorCorrector",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetColorCorrector sets the ColorCorrector field's value.
|
[
"SetColorCorrector",
"sets",
"the",
"ColorCorrector",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediaconvert/api.go#L15750-L15753
|
2,107 |
aws/aws-sdk-go
|
service/mediaconvert/api.go
|
SetDeinterlacer
|
func (s *VideoPreprocessor) SetDeinterlacer(v *Deinterlacer) *VideoPreprocessor {
s.Deinterlacer = v
return s
}
|
go
|
func (s *VideoPreprocessor) SetDeinterlacer(v *Deinterlacer) *VideoPreprocessor {
s.Deinterlacer = v
return s
}
|
[
"func",
"(",
"s",
"*",
"VideoPreprocessor",
")",
"SetDeinterlacer",
"(",
"v",
"*",
"Deinterlacer",
")",
"*",
"VideoPreprocessor",
"{",
"s",
".",
"Deinterlacer",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetDeinterlacer sets the Deinterlacer field's value.
|
[
"SetDeinterlacer",
"sets",
"the",
"Deinterlacer",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediaconvert/api.go#L15756-L15759
|
2,108 |
aws/aws-sdk-go
|
service/mediaconvert/api.go
|
SetNoiseReducer
|
func (s *VideoPreprocessor) SetNoiseReducer(v *NoiseReducer) *VideoPreprocessor {
s.NoiseReducer = v
return s
}
|
go
|
func (s *VideoPreprocessor) SetNoiseReducer(v *NoiseReducer) *VideoPreprocessor {
s.NoiseReducer = v
return s
}
|
[
"func",
"(",
"s",
"*",
"VideoPreprocessor",
")",
"SetNoiseReducer",
"(",
"v",
"*",
"NoiseReducer",
")",
"*",
"VideoPreprocessor",
"{",
"s",
".",
"NoiseReducer",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetNoiseReducer sets the NoiseReducer field's value.
|
[
"SetNoiseReducer",
"sets",
"the",
"NoiseReducer",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediaconvert/api.go#L15768-L15771
|
2,109 |
aws/aws-sdk-go
|
service/mediaconvert/api.go
|
SetTimecodeBurnin
|
func (s *VideoPreprocessor) SetTimecodeBurnin(v *TimecodeBurnin) *VideoPreprocessor {
s.TimecodeBurnin = v
return s
}
|
go
|
func (s *VideoPreprocessor) SetTimecodeBurnin(v *TimecodeBurnin) *VideoPreprocessor {
s.TimecodeBurnin = v
return s
}
|
[
"func",
"(",
"s",
"*",
"VideoPreprocessor",
")",
"SetTimecodeBurnin",
"(",
"v",
"*",
"TimecodeBurnin",
")",
"*",
"VideoPreprocessor",
"{",
"s",
".",
"TimecodeBurnin",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetTimecodeBurnin sets the TimecodeBurnin field's value.
|
[
"SetTimecodeBurnin",
"sets",
"the",
"TimecodeBurnin",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediaconvert/api.go#L15774-L15777
|
2,110 |
aws/aws-sdk-go
|
service/mediaconvert/api.go
|
SetColorSpace
|
func (s *VideoSelector) SetColorSpace(v string) *VideoSelector {
s.ColorSpace = &v
return s
}
|
go
|
func (s *VideoSelector) SetColorSpace(v string) *VideoSelector {
s.ColorSpace = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"VideoSelector",
")",
"SetColorSpace",
"(",
"v",
"string",
")",
"*",
"VideoSelector",
"{",
"s",
".",
"ColorSpace",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetColorSpace sets the ColorSpace field's value.
|
[
"SetColorSpace",
"sets",
"the",
"ColorSpace",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediaconvert/api.go#L15863-L15866
|
2,111 |
aws/aws-sdk-go
|
service/mediaconvert/api.go
|
SetColorSpaceUsage
|
func (s *VideoSelector) SetColorSpaceUsage(v string) *VideoSelector {
s.ColorSpaceUsage = &v
return s
}
|
go
|
func (s *VideoSelector) SetColorSpaceUsage(v string) *VideoSelector {
s.ColorSpaceUsage = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"VideoSelector",
")",
"SetColorSpaceUsage",
"(",
"v",
"string",
")",
"*",
"VideoSelector",
"{",
"s",
".",
"ColorSpaceUsage",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetColorSpaceUsage sets the ColorSpaceUsage field's value.
|
[
"SetColorSpaceUsage",
"sets",
"the",
"ColorSpaceUsage",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mediaconvert/api.go#L15869-L15872
|
2,112 |
aws/aws-sdk-go
|
service/kinesis/waiters.go
|
WaitUntilStreamExists
|
func (c *Kinesis) WaitUntilStreamExists(input *DescribeStreamInput) error {
return c.WaitUntilStreamExistsWithContext(aws.BackgroundContext(), input)
}
|
go
|
func (c *Kinesis) WaitUntilStreamExists(input *DescribeStreamInput) error {
return c.WaitUntilStreamExistsWithContext(aws.BackgroundContext(), input)
}
|
[
"func",
"(",
"c",
"*",
"Kinesis",
")",
"WaitUntilStreamExists",
"(",
"input",
"*",
"DescribeStreamInput",
")",
"error",
"{",
"return",
"c",
".",
"WaitUntilStreamExistsWithContext",
"(",
"aws",
".",
"BackgroundContext",
"(",
")",
",",
"input",
")",
"\n",
"}"
] |
// WaitUntilStreamExists uses the Kinesis API operation
// DescribeStream to wait for a condition to be met before returning.
// If the condition is not met within the max attempt window, an error will
// be returned.
|
[
"WaitUntilStreamExists",
"uses",
"the",
"Kinesis",
"API",
"operation",
"DescribeStream",
"to",
"wait",
"for",
"a",
"condition",
"to",
"be",
"met",
"before",
"returning",
".",
"If",
"the",
"condition",
"is",
"not",
"met",
"within",
"the",
"max",
"attempt",
"window",
"an",
"error",
"will",
"be",
"returned",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesis/waiters.go#L16-L18
|
2,113 |
aws/aws-sdk-go
|
service/kinesis/waiters.go
|
WaitUntilStreamNotExists
|
func (c *Kinesis) WaitUntilStreamNotExists(input *DescribeStreamInput) error {
return c.WaitUntilStreamNotExistsWithContext(aws.BackgroundContext(), input)
}
|
go
|
func (c *Kinesis) WaitUntilStreamNotExists(input *DescribeStreamInput) error {
return c.WaitUntilStreamNotExistsWithContext(aws.BackgroundContext(), input)
}
|
[
"func",
"(",
"c",
"*",
"Kinesis",
")",
"WaitUntilStreamNotExists",
"(",
"input",
"*",
"DescribeStreamInput",
")",
"error",
"{",
"return",
"c",
".",
"WaitUntilStreamNotExistsWithContext",
"(",
"aws",
".",
"BackgroundContext",
"(",
")",
",",
"input",
")",
"\n",
"}"
] |
// WaitUntilStreamNotExists uses the Kinesis API operation
// DescribeStream to wait for a condition to be met before returning.
// If the condition is not met within the max attempt window, an error will
// be returned.
|
[
"WaitUntilStreamNotExists",
"uses",
"the",
"Kinesis",
"API",
"operation",
"DescribeStream",
"to",
"wait",
"for",
"a",
"condition",
"to",
"be",
"met",
"before",
"returning",
".",
"If",
"the",
"condition",
"is",
"not",
"met",
"within",
"the",
"max",
"attempt",
"window",
"an",
"error",
"will",
"be",
"returned",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesis/waiters.go#L62-L64
|
2,114 |
aws/aws-sdk-go
|
aws/request/timeout_read_closer.go
|
Read
|
func (r *timeoutReadCloser) Read(b []byte) (int, error) {
timer := time.NewTimer(r.duration)
c := make(chan readResult, 1)
go func() {
n, err := r.reader.Read(b)
timer.Stop()
c <- readResult{n: n, err: err}
}()
select {
case data := <-c:
return data.n, data.err
case <-timer.C:
return 0, timeoutErr
}
}
|
go
|
func (r *timeoutReadCloser) Read(b []byte) (int, error) {
timer := time.NewTimer(r.duration)
c := make(chan readResult, 1)
go func() {
n, err := r.reader.Read(b)
timer.Stop()
c <- readResult{n: n, err: err}
}()
select {
case data := <-c:
return data.n, data.err
case <-timer.C:
return 0, timeoutErr
}
}
|
[
"func",
"(",
"r",
"*",
"timeoutReadCloser",
")",
"Read",
"(",
"b",
"[",
"]",
"byte",
")",
"(",
"int",
",",
"error",
")",
"{",
"timer",
":=",
"time",
".",
"NewTimer",
"(",
"r",
".",
"duration",
")",
"\n",
"c",
":=",
"make",
"(",
"chan",
"readResult",
",",
"1",
")",
"\n\n",
"go",
"func",
"(",
")",
"{",
"n",
",",
"err",
":=",
"r",
".",
"reader",
".",
"Read",
"(",
"b",
")",
"\n",
"timer",
".",
"Stop",
"(",
")",
"\n",
"c",
"<-",
"readResult",
"{",
"n",
":",
"n",
",",
"err",
":",
"err",
"}",
"\n",
"}",
"(",
")",
"\n\n",
"select",
"{",
"case",
"data",
":=",
"<-",
"c",
":",
"return",
"data",
".",
"n",
",",
"data",
".",
"err",
"\n",
"case",
"<-",
"timer",
".",
"C",
":",
"return",
"0",
",",
"timeoutErr",
"\n",
"}",
"\n",
"}"
] |
// Read will spin off a goroutine to call the reader's Read method. We will
// select on the timer's channel or the read's channel. Whoever completes first
// will be returned.
|
[
"Read",
"will",
"spin",
"off",
"a",
"goroutine",
"to",
"call",
"the",
"reader",
"s",
"Read",
"method",
".",
"We",
"will",
"select",
"on",
"the",
"timer",
"s",
"channel",
"or",
"the",
"read",
"s",
"channel",
".",
"Whoever",
"completes",
"first",
"will",
"be",
"returned",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/timeout_read_closer.go#L31-L47
|
2,115 |
aws/aws-sdk-go
|
aws/request/timeout_read_closer.go
|
adaptToResponseTimeoutError
|
func adaptToResponseTimeoutError(req *Request) {
if err, ok := req.Error.(awserr.Error); ok {
aerr, ok := err.OrigErr().(awserr.Error)
if ok && aerr.Code() == ErrCodeResponseTimeout {
req.Error = aerr
}
}
}
|
go
|
func adaptToResponseTimeoutError(req *Request) {
if err, ok := req.Error.(awserr.Error); ok {
aerr, ok := err.OrigErr().(awserr.Error)
if ok && aerr.Code() == ErrCodeResponseTimeout {
req.Error = aerr
}
}
}
|
[
"func",
"adaptToResponseTimeoutError",
"(",
"req",
"*",
"Request",
")",
"{",
"if",
"err",
",",
"ok",
":=",
"req",
".",
"Error",
".",
"(",
"awserr",
".",
"Error",
")",
";",
"ok",
"{",
"aerr",
",",
"ok",
":=",
"err",
".",
"OrigErr",
"(",
")",
".",
"(",
"awserr",
".",
"Error",
")",
"\n",
"if",
"ok",
"&&",
"aerr",
".",
"Code",
"(",
")",
"==",
"ErrCodeResponseTimeout",
"{",
"req",
".",
"Error",
"=",
"aerr",
"\n",
"}",
"\n",
"}",
"\n",
"}"
] |
// adaptToResponseTimeoutError is a handler that will replace any top level error
// to a ErrCodeResponseTimeout, if its child is that.
|
[
"adaptToResponseTimeoutError",
"is",
"a",
"handler",
"that",
"will",
"replace",
"any",
"top",
"level",
"error",
"to",
"a",
"ErrCodeResponseTimeout",
"if",
"its",
"child",
"is",
"that",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/timeout_read_closer.go#L61-L68
|
2,116 |
aws/aws-sdk-go
|
service/glacier/waiters.go
|
WaitUntilVaultExists
|
func (c *Glacier) WaitUntilVaultExists(input *DescribeVaultInput) error {
return c.WaitUntilVaultExistsWithContext(aws.BackgroundContext(), input)
}
|
go
|
func (c *Glacier) WaitUntilVaultExists(input *DescribeVaultInput) error {
return c.WaitUntilVaultExistsWithContext(aws.BackgroundContext(), input)
}
|
[
"func",
"(",
"c",
"*",
"Glacier",
")",
"WaitUntilVaultExists",
"(",
"input",
"*",
"DescribeVaultInput",
")",
"error",
"{",
"return",
"c",
".",
"WaitUntilVaultExistsWithContext",
"(",
"aws",
".",
"BackgroundContext",
"(",
")",
",",
"input",
")",
"\n",
"}"
] |
// WaitUntilVaultExists uses the Amazon Glacier API operation
// DescribeVault to wait for a condition to be met before returning.
// If the condition is not met within the max attempt window, an error will
// be returned.
|
[
"WaitUntilVaultExists",
"uses",
"the",
"Amazon",
"Glacier",
"API",
"operation",
"DescribeVault",
"to",
"wait",
"for",
"a",
"condition",
"to",
"be",
"met",
"before",
"returning",
".",
"If",
"the",
"condition",
"is",
"not",
"met",
"within",
"the",
"max",
"attempt",
"window",
"an",
"error",
"will",
"be",
"returned",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/waiters.go#L16-L18
|
2,117 |
aws/aws-sdk-go
|
service/glacier/waiters.go
|
WaitUntilVaultNotExists
|
func (c *Glacier) WaitUntilVaultNotExists(input *DescribeVaultInput) error {
return c.WaitUntilVaultNotExistsWithContext(aws.BackgroundContext(), input)
}
|
go
|
func (c *Glacier) WaitUntilVaultNotExists(input *DescribeVaultInput) error {
return c.WaitUntilVaultNotExistsWithContext(aws.BackgroundContext(), input)
}
|
[
"func",
"(",
"c",
"*",
"Glacier",
")",
"WaitUntilVaultNotExists",
"(",
"input",
"*",
"DescribeVaultInput",
")",
"error",
"{",
"return",
"c",
".",
"WaitUntilVaultNotExistsWithContext",
"(",
"aws",
".",
"BackgroundContext",
"(",
")",
",",
"input",
")",
"\n",
"}"
] |
// WaitUntilVaultNotExists uses the Amazon Glacier API operation
// DescribeVault to wait for a condition to be met before returning.
// If the condition is not met within the max attempt window, an error will
// be returned.
|
[
"WaitUntilVaultNotExists",
"uses",
"the",
"Amazon",
"Glacier",
"API",
"operation",
"DescribeVault",
"to",
"wait",
"for",
"a",
"condition",
"to",
"be",
"met",
"before",
"returning",
".",
"If",
"the",
"condition",
"is",
"not",
"met",
"within",
"the",
"max",
"attempt",
"window",
"an",
"error",
"will",
"be",
"returned",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/waiters.go#L67-L69
|
2,118 |
aws/aws-sdk-go
|
internal/ini/expression.go
|
EqualExprKey
|
func EqualExprKey(ast AST) string {
children := ast.GetChildren()
if len(children) == 0 || ast.Kind != ASTKindEqualExpr {
return ""
}
return string(children[0].Root.Raw())
}
|
go
|
func EqualExprKey(ast AST) string {
children := ast.GetChildren()
if len(children) == 0 || ast.Kind != ASTKindEqualExpr {
return ""
}
return string(children[0].Root.Raw())
}
|
[
"func",
"EqualExprKey",
"(",
"ast",
"AST",
")",
"string",
"{",
"children",
":=",
"ast",
".",
"GetChildren",
"(",
")",
"\n",
"if",
"len",
"(",
"children",
")",
"==",
"0",
"||",
"ast",
".",
"Kind",
"!=",
"ASTKindEqualExpr",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n\n",
"return",
"string",
"(",
"children",
"[",
"0",
"]",
".",
"Root",
".",
"Raw",
"(",
")",
")",
"\n",
"}"
] |
// EqualExprKey will return a LHS value in the equal expr
|
[
"EqualExprKey",
"will",
"return",
"a",
"LHS",
"value",
"in",
"the",
"equal",
"expr"
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/internal/ini/expression.go#L17-L24
|
2,119 |
aws/aws-sdk-go
|
service/rds/customizations.go
|
presignURL
|
func presignURL(r *request.Request, sourceRegion *string, newParams interface{}) *string {
cfg := r.Config.Copy(aws.NewConfig().
WithEndpoint("").
WithRegion(aws.StringValue(sourceRegion)))
clientInfo := r.ClientInfo
resolved, err := r.Config.EndpointResolver.EndpointFor(
clientInfo.ServiceName, aws.StringValue(cfg.Region),
func(opt *endpoints.Options) {
opt.DisableSSL = aws.BoolValue(cfg.DisableSSL)
opt.UseDualStack = aws.BoolValue(cfg.UseDualStack)
},
)
if err != nil {
r.Error = err
return nil
}
clientInfo.Endpoint = resolved.URL
clientInfo.SigningRegion = resolved.SigningRegion
// Presign a request with modified params
req := request.New(*cfg, clientInfo, r.Handlers, r.Retryer, r.Operation, newParams, r.Data)
req.Operation.HTTPMethod = "GET"
uri, err := req.Presign(5 * time.Minute) // 5 minutes should be enough.
if err != nil { // bubble error back up to original request
r.Error = err
return nil
}
// We have our URL, set it on params
return &uri
}
|
go
|
func presignURL(r *request.Request, sourceRegion *string, newParams interface{}) *string {
cfg := r.Config.Copy(aws.NewConfig().
WithEndpoint("").
WithRegion(aws.StringValue(sourceRegion)))
clientInfo := r.ClientInfo
resolved, err := r.Config.EndpointResolver.EndpointFor(
clientInfo.ServiceName, aws.StringValue(cfg.Region),
func(opt *endpoints.Options) {
opt.DisableSSL = aws.BoolValue(cfg.DisableSSL)
opt.UseDualStack = aws.BoolValue(cfg.UseDualStack)
},
)
if err != nil {
r.Error = err
return nil
}
clientInfo.Endpoint = resolved.URL
clientInfo.SigningRegion = resolved.SigningRegion
// Presign a request with modified params
req := request.New(*cfg, clientInfo, r.Handlers, r.Retryer, r.Operation, newParams, r.Data)
req.Operation.HTTPMethod = "GET"
uri, err := req.Presign(5 * time.Minute) // 5 minutes should be enough.
if err != nil { // bubble error back up to original request
r.Error = err
return nil
}
// We have our URL, set it on params
return &uri
}
|
[
"func",
"presignURL",
"(",
"r",
"*",
"request",
".",
"Request",
",",
"sourceRegion",
"*",
"string",
",",
"newParams",
"interface",
"{",
"}",
")",
"*",
"string",
"{",
"cfg",
":=",
"r",
".",
"Config",
".",
"Copy",
"(",
"aws",
".",
"NewConfig",
"(",
")",
".",
"WithEndpoint",
"(",
"\"",
"\"",
")",
".",
"WithRegion",
"(",
"aws",
".",
"StringValue",
"(",
"sourceRegion",
")",
")",
")",
"\n\n",
"clientInfo",
":=",
"r",
".",
"ClientInfo",
"\n",
"resolved",
",",
"err",
":=",
"r",
".",
"Config",
".",
"EndpointResolver",
".",
"EndpointFor",
"(",
"clientInfo",
".",
"ServiceName",
",",
"aws",
".",
"StringValue",
"(",
"cfg",
".",
"Region",
")",
",",
"func",
"(",
"opt",
"*",
"endpoints",
".",
"Options",
")",
"{",
"opt",
".",
"DisableSSL",
"=",
"aws",
".",
"BoolValue",
"(",
"cfg",
".",
"DisableSSL",
")",
"\n",
"opt",
".",
"UseDualStack",
"=",
"aws",
".",
"BoolValue",
"(",
"cfg",
".",
"UseDualStack",
")",
"\n",
"}",
",",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"r",
".",
"Error",
"=",
"err",
"\n",
"return",
"nil",
"\n",
"}",
"\n\n",
"clientInfo",
".",
"Endpoint",
"=",
"resolved",
".",
"URL",
"\n",
"clientInfo",
".",
"SigningRegion",
"=",
"resolved",
".",
"SigningRegion",
"\n\n",
"// Presign a request with modified params",
"req",
":=",
"request",
".",
"New",
"(",
"*",
"cfg",
",",
"clientInfo",
",",
"r",
".",
"Handlers",
",",
"r",
".",
"Retryer",
",",
"r",
".",
"Operation",
",",
"newParams",
",",
"r",
".",
"Data",
")",
"\n",
"req",
".",
"Operation",
".",
"HTTPMethod",
"=",
"\"",
"\"",
"\n",
"uri",
",",
"err",
":=",
"req",
".",
"Presign",
"(",
"5",
"*",
"time",
".",
"Minute",
")",
"// 5 minutes should be enough.",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"// bubble error back up to original request",
"r",
".",
"Error",
"=",
"err",
"\n",
"return",
"nil",
"\n",
"}",
"\n\n",
"// We have our URL, set it on params",
"return",
"&",
"uri",
"\n",
"}"
] |
// presignURL will presign the request by using SoureRegion to sign with. SourceRegion is not
// sent to the service, and is only used to not have the SDKs parsing ARNs.
|
[
"presignURL",
"will",
"presign",
"the",
"request",
"by",
"using",
"SoureRegion",
"to",
"sign",
"with",
".",
"SourceRegion",
"is",
"not",
"sent",
"to",
"the",
"service",
"and",
"is",
"only",
"used",
"to",
"not",
"have",
"the",
"SDKs",
"parsing",
"ARNs",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/rds/customizations.go#L93-L125
|
2,120 |
aws/aws-sdk-go
|
private/model/api/logger.go
|
LogDebug
|
func LogDebug(w io.Writer) {
var initialized bool
initDebugLoggerOnce.Do(func() {
debugLogger = &logger{
w: w,
}
initialized = true
})
if !initialized && debugLogger != nil {
panic("LogDebug called multiple times. Can only be called once")
}
}
|
go
|
func LogDebug(w io.Writer) {
var initialized bool
initDebugLoggerOnce.Do(func() {
debugLogger = &logger{
w: w,
}
initialized = true
})
if !initialized && debugLogger != nil {
panic("LogDebug called multiple times. Can only be called once")
}
}
|
[
"func",
"LogDebug",
"(",
"w",
"io",
".",
"Writer",
")",
"{",
"var",
"initialized",
"bool",
"\n",
"initDebugLoggerOnce",
".",
"Do",
"(",
"func",
"(",
")",
"{",
"debugLogger",
"=",
"&",
"logger",
"{",
"w",
":",
"w",
",",
"}",
"\n",
"initialized",
"=",
"true",
"\n",
"}",
")",
"\n\n",
"if",
"!",
"initialized",
"&&",
"debugLogger",
"!=",
"nil",
"{",
"panic",
"(",
"\"",
"\"",
")",
"\n",
"}",
"\n",
"}"
] |
// LogDebug initialize's the debug logger for the components in the api
// package to log debug lines to.
//
// Panics if called multiple times.
//
// Must be used prior to any model loading or code gen.
|
[
"LogDebug",
"initialize",
"s",
"the",
"debug",
"logger",
"for",
"the",
"components",
"in",
"the",
"api",
"package",
"to",
"log",
"debug",
"lines",
"to",
".",
"Panics",
"if",
"called",
"multiple",
"times",
".",
"Must",
"be",
"used",
"prior",
"to",
"any",
"model",
"loading",
"or",
"code",
"gen",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/logger.go#L25-L37
|
2,121 |
aws/aws-sdk-go
|
private/model/api/logger.go
|
Logf
|
func (l *logger) Logf(format string, args ...interface{}) {
if l == nil {
return
}
fmt.Fprintf(l.w, format+"\n", args...)
}
|
go
|
func (l *logger) Logf(format string, args ...interface{}) {
if l == nil {
return
}
fmt.Fprintf(l.w, format+"\n", args...)
}
|
[
"func",
"(",
"l",
"*",
"logger",
")",
"Logf",
"(",
"format",
"string",
",",
"args",
"...",
"interface",
"{",
"}",
")",
"{",
"if",
"l",
"==",
"nil",
"{",
"return",
"\n",
"}",
"\n",
"fmt",
".",
"Fprintf",
"(",
"l",
".",
"w",
",",
"format",
"+",
"\"",
"\\n",
"\"",
",",
"args",
"...",
")",
"\n",
"}"
] |
// Logf logs using the fmt printf pattern. Appends a new line to the end of the
// logged statement.
|
[
"Logf",
"logs",
"using",
"the",
"fmt",
"printf",
"pattern",
".",
"Appends",
"a",
"new",
"line",
"to",
"the",
"end",
"of",
"the",
"logged",
"statement",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/logger.go#L41-L46
|
2,122 |
aws/aws-sdk-go
|
private/model/api/logger.go
|
Logln
|
func (l *logger) Logln(args ...interface{}) {
if l == nil {
return
}
fmt.Fprintln(l.w, args...)
}
|
go
|
func (l *logger) Logln(args ...interface{}) {
if l == nil {
return
}
fmt.Fprintln(l.w, args...)
}
|
[
"func",
"(",
"l",
"*",
"logger",
")",
"Logln",
"(",
"args",
"...",
"interface",
"{",
"}",
")",
"{",
"if",
"l",
"==",
"nil",
"{",
"return",
"\n",
"}",
"\n",
"fmt",
".",
"Fprintln",
"(",
"l",
".",
"w",
",",
"args",
"...",
")",
"\n",
"}"
] |
// Logln logs using the fmt println pattern.
|
[
"Logln",
"logs",
"using",
"the",
"fmt",
"println",
"pattern",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/logger.go#L49-L54
|
2,123 |
aws/aws-sdk-go
|
private/model/api/shape_value_builder.go
|
BuildShape
|
func (b ShapeValueBuilder) BuildShape(ref *ShapeRef, shapes map[string]interface{}, isMap bool) string {
order := make([]string, len(shapes))
for k := range shapes {
order = append(order, k)
}
sort.Strings(order)
ret := ""
for _, name := range order {
if name == "" {
continue
}
shape := shapes[name]
// If the shape isn't a map, we want to export the value, since every field
// defined in our shapes are exported.
if len(name) > 0 && !isMap && strings.ToLower(name[0:1]) == name[0:1] {
name = strings.Title(name)
}
memName := name
passRef := ref.Shape.MemberRefs[name]
if isMap {
memName = fmt.Sprintf("%q", memName)
passRef = &ref.Shape.ValueRef
}
switch v := shape.(type) {
case map[string]interface{}:
ret += b.BuildComplex(name, memName, passRef, v)
case []interface{}:
ret += b.BuildList(name, memName, passRef, v)
default:
ret += b.BuildScalar(name, memName, passRef, v, ref.Shape.Payload == name)
}
}
return ret
}
|
go
|
func (b ShapeValueBuilder) BuildShape(ref *ShapeRef, shapes map[string]interface{}, isMap bool) string {
order := make([]string, len(shapes))
for k := range shapes {
order = append(order, k)
}
sort.Strings(order)
ret := ""
for _, name := range order {
if name == "" {
continue
}
shape := shapes[name]
// If the shape isn't a map, we want to export the value, since every field
// defined in our shapes are exported.
if len(name) > 0 && !isMap && strings.ToLower(name[0:1]) == name[0:1] {
name = strings.Title(name)
}
memName := name
passRef := ref.Shape.MemberRefs[name]
if isMap {
memName = fmt.Sprintf("%q", memName)
passRef = &ref.Shape.ValueRef
}
switch v := shape.(type) {
case map[string]interface{}:
ret += b.BuildComplex(name, memName, passRef, v)
case []interface{}:
ret += b.BuildList(name, memName, passRef, v)
default:
ret += b.BuildScalar(name, memName, passRef, v, ref.Shape.Payload == name)
}
}
return ret
}
|
[
"func",
"(",
"b",
"ShapeValueBuilder",
")",
"BuildShape",
"(",
"ref",
"*",
"ShapeRef",
",",
"shapes",
"map",
"[",
"string",
"]",
"interface",
"{",
"}",
",",
"isMap",
"bool",
")",
"string",
"{",
"order",
":=",
"make",
"(",
"[",
"]",
"string",
",",
"len",
"(",
"shapes",
")",
")",
"\n",
"for",
"k",
":=",
"range",
"shapes",
"{",
"order",
"=",
"append",
"(",
"order",
",",
"k",
")",
"\n",
"}",
"\n",
"sort",
".",
"Strings",
"(",
"order",
")",
"\n\n",
"ret",
":=",
"\"",
"\"",
"\n",
"for",
"_",
",",
"name",
":=",
"range",
"order",
"{",
"if",
"name",
"==",
"\"",
"\"",
"{",
"continue",
"\n",
"}",
"\n",
"shape",
":=",
"shapes",
"[",
"name",
"]",
"\n\n",
"// If the shape isn't a map, we want to export the value, since every field",
"// defined in our shapes are exported.",
"if",
"len",
"(",
"name",
")",
">",
"0",
"&&",
"!",
"isMap",
"&&",
"strings",
".",
"ToLower",
"(",
"name",
"[",
"0",
":",
"1",
"]",
")",
"==",
"name",
"[",
"0",
":",
"1",
"]",
"{",
"name",
"=",
"strings",
".",
"Title",
"(",
"name",
")",
"\n",
"}",
"\n\n",
"memName",
":=",
"name",
"\n",
"passRef",
":=",
"ref",
".",
"Shape",
".",
"MemberRefs",
"[",
"name",
"]",
"\n\n",
"if",
"isMap",
"{",
"memName",
"=",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"memName",
")",
"\n",
"passRef",
"=",
"&",
"ref",
".",
"Shape",
".",
"ValueRef",
"\n",
"}",
"\n\n",
"switch",
"v",
":=",
"shape",
".",
"(",
"type",
")",
"{",
"case",
"map",
"[",
"string",
"]",
"interface",
"{",
"}",
":",
"ret",
"+=",
"b",
".",
"BuildComplex",
"(",
"name",
",",
"memName",
",",
"passRef",
",",
"v",
")",
"\n",
"case",
"[",
"]",
"interface",
"{",
"}",
":",
"ret",
"+=",
"b",
".",
"BuildList",
"(",
"name",
",",
"memName",
",",
"passRef",
",",
"v",
")",
"\n",
"default",
":",
"ret",
"+=",
"b",
".",
"BuildScalar",
"(",
"name",
",",
"memName",
",",
"passRef",
",",
"v",
",",
"ref",
".",
"Shape",
".",
"Payload",
"==",
"name",
")",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"ret",
"\n",
"}"
] |
// BuildShape will recursively build the referenced shape based on the json
// object provided. isMap will dictate how the field name is specified. If
// isMap is true, we will expect the member name to be quotes like "Foo".
|
[
"BuildShape",
"will",
"recursively",
"build",
"the",
"referenced",
"shape",
"based",
"on",
"the",
"json",
"object",
"provided",
".",
"isMap",
"will",
"dictate",
"how",
"the",
"field",
"name",
"is",
"specified",
".",
"If",
"isMap",
"is",
"true",
"we",
"will",
"expect",
"the",
"member",
"name",
"to",
"be",
"quotes",
"like",
"Foo",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/shape_value_builder.go#L18-L56
|
2,124 |
aws/aws-sdk-go
|
private/model/api/shape_value_builder.go
|
BuildList
|
func (b ShapeValueBuilder) BuildList(name, memName string, ref *ShapeRef, v []interface{}) string {
ret := ""
if len(v) == 0 || ref == nil {
return ""
}
passRef := &ref.Shape.MemberRef
ret += fmt.Sprintf("%s: %s {\n", memName, b.GoType(ref, false))
ret += b.buildListElements(passRef, v)
ret += "},\n"
return ret
}
|
go
|
func (b ShapeValueBuilder) BuildList(name, memName string, ref *ShapeRef, v []interface{}) string {
ret := ""
if len(v) == 0 || ref == nil {
return ""
}
passRef := &ref.Shape.MemberRef
ret += fmt.Sprintf("%s: %s {\n", memName, b.GoType(ref, false))
ret += b.buildListElements(passRef, v)
ret += "},\n"
return ret
}
|
[
"func",
"(",
"b",
"ShapeValueBuilder",
")",
"BuildList",
"(",
"name",
",",
"memName",
"string",
",",
"ref",
"*",
"ShapeRef",
",",
"v",
"[",
"]",
"interface",
"{",
"}",
")",
"string",
"{",
"ret",
":=",
"\"",
"\"",
"\n\n",
"if",
"len",
"(",
"v",
")",
"==",
"0",
"||",
"ref",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n\n",
"passRef",
":=",
"&",
"ref",
".",
"Shape",
".",
"MemberRef",
"\n",
"ret",
"+=",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\\n",
"\"",
",",
"memName",
",",
"b",
".",
"GoType",
"(",
"ref",
",",
"false",
")",
")",
"\n",
"ret",
"+=",
"b",
".",
"buildListElements",
"(",
"passRef",
",",
"v",
")",
"\n",
"ret",
"+=",
"\"",
"\\n",
"\"",
"\n",
"return",
"ret",
"\n",
"}"
] |
// BuildList will construct a list shape based off the service's definition of
// that list.
|
[
"BuildList",
"will",
"construct",
"a",
"list",
"shape",
"based",
"off",
"the",
"service",
"s",
"definition",
"of",
"that",
"list",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/shape_value_builder.go#L60-L72
|
2,125 |
aws/aws-sdk-go
|
private/model/api/shape_value_builder.go
|
BuildScalar
|
func (b ShapeValueBuilder) BuildScalar(name, memName string, ref *ShapeRef, shape interface{}, isPayload bool) string {
if ref == nil || ref.Shape == nil {
return ""
}
switch v := shape.(type) {
case bool:
return convertToCorrectType(memName, ref.Shape.Type, fmt.Sprintf("%t", v))
case int:
if ref.Shape.Type == "timestamp" {
return parseTimeString(ref, memName, fmt.Sprintf("%d", v))
}
return convertToCorrectType(memName, ref.Shape.Type, fmt.Sprintf("%d", v))
case float64:
dataType := ref.Shape.Type
if dataType == "integer" || dataType == "int64" || dataType == "long" {
return convertToCorrectType(memName, ref.Shape.Type, fmt.Sprintf("%d", int(shape.(float64))))
}
return convertToCorrectType(memName, ref.Shape.Type, fmt.Sprintf("%f", v))
case string:
t := ref.Shape.Type
switch t {
case "timestamp":
return parseTimeString(ref, memName, fmt.Sprintf("%s", v))
case "blob":
if (ref.Streaming || ref.Shape.Streaming) && isPayload {
return fmt.Sprintf("%s: aws.ReadSeekCloser(strings.NewReader(%q)),\n", memName, v)
}
return fmt.Sprintf("%s: []byte(%q),\n", memName, v)
default:
return convertToCorrectType(memName, t, v)
}
default:
panic(fmt.Errorf("Unsupported scalar type: %v", reflect.TypeOf(v)))
}
}
|
go
|
func (b ShapeValueBuilder) BuildScalar(name, memName string, ref *ShapeRef, shape interface{}, isPayload bool) string {
if ref == nil || ref.Shape == nil {
return ""
}
switch v := shape.(type) {
case bool:
return convertToCorrectType(memName, ref.Shape.Type, fmt.Sprintf("%t", v))
case int:
if ref.Shape.Type == "timestamp" {
return parseTimeString(ref, memName, fmt.Sprintf("%d", v))
}
return convertToCorrectType(memName, ref.Shape.Type, fmt.Sprintf("%d", v))
case float64:
dataType := ref.Shape.Type
if dataType == "integer" || dataType == "int64" || dataType == "long" {
return convertToCorrectType(memName, ref.Shape.Type, fmt.Sprintf("%d", int(shape.(float64))))
}
return convertToCorrectType(memName, ref.Shape.Type, fmt.Sprintf("%f", v))
case string:
t := ref.Shape.Type
switch t {
case "timestamp":
return parseTimeString(ref, memName, fmt.Sprintf("%s", v))
case "blob":
if (ref.Streaming || ref.Shape.Streaming) && isPayload {
return fmt.Sprintf("%s: aws.ReadSeekCloser(strings.NewReader(%q)),\n", memName, v)
}
return fmt.Sprintf("%s: []byte(%q),\n", memName, v)
default:
return convertToCorrectType(memName, t, v)
}
default:
panic(fmt.Errorf("Unsupported scalar type: %v", reflect.TypeOf(v)))
}
}
|
[
"func",
"(",
"b",
"ShapeValueBuilder",
")",
"BuildScalar",
"(",
"name",
",",
"memName",
"string",
",",
"ref",
"*",
"ShapeRef",
",",
"shape",
"interface",
"{",
"}",
",",
"isPayload",
"bool",
")",
"string",
"{",
"if",
"ref",
"==",
"nil",
"||",
"ref",
".",
"Shape",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n\n",
"switch",
"v",
":=",
"shape",
".",
"(",
"type",
")",
"{",
"case",
"bool",
":",
"return",
"convertToCorrectType",
"(",
"memName",
",",
"ref",
".",
"Shape",
".",
"Type",
",",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"v",
")",
")",
"\n",
"case",
"int",
":",
"if",
"ref",
".",
"Shape",
".",
"Type",
"==",
"\"",
"\"",
"{",
"return",
"parseTimeString",
"(",
"ref",
",",
"memName",
",",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"v",
")",
")",
"\n",
"}",
"\n",
"return",
"convertToCorrectType",
"(",
"memName",
",",
"ref",
".",
"Shape",
".",
"Type",
",",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"v",
")",
")",
"\n",
"case",
"float64",
":",
"dataType",
":=",
"ref",
".",
"Shape",
".",
"Type",
"\n",
"if",
"dataType",
"==",
"\"",
"\"",
"||",
"dataType",
"==",
"\"",
"\"",
"||",
"dataType",
"==",
"\"",
"\"",
"{",
"return",
"convertToCorrectType",
"(",
"memName",
",",
"ref",
".",
"Shape",
".",
"Type",
",",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"int",
"(",
"shape",
".",
"(",
"float64",
")",
")",
")",
")",
"\n",
"}",
"\n",
"return",
"convertToCorrectType",
"(",
"memName",
",",
"ref",
".",
"Shape",
".",
"Type",
",",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"v",
")",
")",
"\n",
"case",
"string",
":",
"t",
":=",
"ref",
".",
"Shape",
".",
"Type",
"\n",
"switch",
"t",
"{",
"case",
"\"",
"\"",
":",
"return",
"parseTimeString",
"(",
"ref",
",",
"memName",
",",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"v",
")",
")",
"\n",
"case",
"\"",
"\"",
":",
"if",
"(",
"ref",
".",
"Streaming",
"||",
"ref",
".",
"Shape",
".",
"Streaming",
")",
"&&",
"isPayload",
"{",
"return",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\\n",
"\"",
",",
"memName",
",",
"v",
")",
"\n",
"}",
"\n\n",
"return",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\\n",
"\"",
",",
"memName",
",",
"v",
")",
"\n",
"default",
":",
"return",
"convertToCorrectType",
"(",
"memName",
",",
"t",
",",
"v",
")",
"\n",
"}",
"\n",
"default",
":",
"panic",
"(",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"reflect",
".",
"TypeOf",
"(",
"v",
")",
")",
")",
"\n",
"}",
"\n",
"}"
] |
// BuildScalar will build atomic Go types.
|
[
"BuildScalar",
"will",
"build",
"atomic",
"Go",
"types",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/shape_value_builder.go#L121-L157
|
2,126 |
aws/aws-sdk-go
|
private/model/api/shape_value_builder.go
|
BuildComplex
|
func (b ShapeValueBuilder) BuildComplex(name, memName string, ref *ShapeRef, v map[string]interface{}) string {
switch ref.Shape.Type {
case "structure":
return fmt.Sprintf(`%s: &%s{
%s
},
`, memName, b.GoType(ref, true), b.BuildShape(ref, v, false))
case "map":
return fmt.Sprintf(`%s: %s{
%s
},
`, name, b.GoType(ref, false), b.BuildShape(ref, v, true))
default:
panic(fmt.Sprintf("Expected complex type but received %q", ref.Shape.Type))
}
}
|
go
|
func (b ShapeValueBuilder) BuildComplex(name, memName string, ref *ShapeRef, v map[string]interface{}) string {
switch ref.Shape.Type {
case "structure":
return fmt.Sprintf(`%s: &%s{
%s
},
`, memName, b.GoType(ref, true), b.BuildShape(ref, v, false))
case "map":
return fmt.Sprintf(`%s: %s{
%s
},
`, name, b.GoType(ref, false), b.BuildShape(ref, v, true))
default:
panic(fmt.Sprintf("Expected complex type but received %q", ref.Shape.Type))
}
}
|
[
"func",
"(",
"b",
"ShapeValueBuilder",
")",
"BuildComplex",
"(",
"name",
",",
"memName",
"string",
",",
"ref",
"*",
"ShapeRef",
",",
"v",
"map",
"[",
"string",
"]",
"interface",
"{",
"}",
")",
"string",
"{",
"switch",
"ref",
".",
"Shape",
".",
"Type",
"{",
"case",
"\"",
"\"",
":",
"return",
"fmt",
".",
"Sprintf",
"(",
"`%s: &%s{\n\t\t\t\t%s\n\t\t\t},\n\t\t\t`",
",",
"memName",
",",
"b",
".",
"GoType",
"(",
"ref",
",",
"true",
")",
",",
"b",
".",
"BuildShape",
"(",
"ref",
",",
"v",
",",
"false",
")",
")",
"\n",
"case",
"\"",
"\"",
":",
"return",
"fmt",
".",
"Sprintf",
"(",
"`%s: %s{\n\t\t\t\t%s\n\t\t\t},\n\t\t\t`",
",",
"name",
",",
"b",
".",
"GoType",
"(",
"ref",
",",
"false",
")",
",",
"b",
".",
"BuildShape",
"(",
"ref",
",",
"v",
",",
"true",
")",
")",
"\n",
"default",
":",
"panic",
"(",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"ref",
".",
"Shape",
".",
"Type",
")",
")",
"\n",
"}",
"\n",
"}"
] |
// BuildComplex will build the shape's value for complex types such as structs,
// and maps.
|
[
"BuildComplex",
"will",
"build",
"the",
"shape",
"s",
"value",
"for",
"complex",
"types",
"such",
"as",
"structs",
"and",
"maps",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/shape_value_builder.go#L161-L176
|
2,127 |
aws/aws-sdk-go
|
private/model/api/shape_value_builder.go
|
GoType
|
func (b ShapeValueBuilder) GoType(ref *ShapeRef, elem bool) string {
if ref.Shape.Type != "structure" && ref.Shape.Type != "list" && ref.Shape.Type != "map" {
// Scalars are always pointers.
return ref.GoTypeWithPkgName()
}
prefix := ""
if ref.Shape.Type == "list" {
ref = &ref.Shape.MemberRef
prefix = "[]"
}
if elem {
return prefix + ref.Shape.GoTypeWithPkgNameElem()
}
return prefix + ref.GoTypeWithPkgName()
}
|
go
|
func (b ShapeValueBuilder) GoType(ref *ShapeRef, elem bool) string {
if ref.Shape.Type != "structure" && ref.Shape.Type != "list" && ref.Shape.Type != "map" {
// Scalars are always pointers.
return ref.GoTypeWithPkgName()
}
prefix := ""
if ref.Shape.Type == "list" {
ref = &ref.Shape.MemberRef
prefix = "[]"
}
if elem {
return prefix + ref.Shape.GoTypeWithPkgNameElem()
}
return prefix + ref.GoTypeWithPkgName()
}
|
[
"func",
"(",
"b",
"ShapeValueBuilder",
")",
"GoType",
"(",
"ref",
"*",
"ShapeRef",
",",
"elem",
"bool",
")",
"string",
"{",
"if",
"ref",
".",
"Shape",
".",
"Type",
"!=",
"\"",
"\"",
"&&",
"ref",
".",
"Shape",
".",
"Type",
"!=",
"\"",
"\"",
"&&",
"ref",
".",
"Shape",
".",
"Type",
"!=",
"\"",
"\"",
"{",
"// Scalars are always pointers.",
"return",
"ref",
".",
"GoTypeWithPkgName",
"(",
")",
"\n",
"}",
"\n\n",
"prefix",
":=",
"\"",
"\"",
"\n",
"if",
"ref",
".",
"Shape",
".",
"Type",
"==",
"\"",
"\"",
"{",
"ref",
"=",
"&",
"ref",
".",
"Shape",
".",
"MemberRef",
"\n",
"prefix",
"=",
"\"",
"\"",
"\n",
"}",
"\n\n",
"if",
"elem",
"{",
"return",
"prefix",
"+",
"ref",
".",
"Shape",
".",
"GoTypeWithPkgNameElem",
"(",
")",
"\n",
"}",
"\n",
"return",
"prefix",
"+",
"ref",
".",
"GoTypeWithPkgName",
"(",
")",
"\n",
"}"
] |
// GoType returns the string of the shape's Go type identifier.
|
[
"GoType",
"returns",
"the",
"string",
"of",
"the",
"shape",
"s",
"Go",
"type",
"identifier",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/shape_value_builder.go#L179-L195
|
2,128 |
aws/aws-sdk-go
|
service/kinesisvideoarchivedmedia/api.go
|
SetFragmentLengthInMilliseconds
|
func (s *Fragment) SetFragmentLengthInMilliseconds(v int64) *Fragment {
s.FragmentLengthInMilliseconds = &v
return s
}
|
go
|
func (s *Fragment) SetFragmentLengthInMilliseconds(v int64) *Fragment {
s.FragmentLengthInMilliseconds = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"Fragment",
")",
"SetFragmentLengthInMilliseconds",
"(",
"v",
"int64",
")",
"*",
"Fragment",
"{",
"s",
".",
"FragmentLengthInMilliseconds",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetFragmentLengthInMilliseconds sets the FragmentLengthInMilliseconds field's value.
|
[
"SetFragmentLengthInMilliseconds",
"sets",
"the",
"FragmentLengthInMilliseconds",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesisvideoarchivedmedia/api.go#L506-L509
|
2,129 |
aws/aws-sdk-go
|
service/kinesisvideoarchivedmedia/api.go
|
SetFragmentNumber
|
func (s *Fragment) SetFragmentNumber(v string) *Fragment {
s.FragmentNumber = &v
return s
}
|
go
|
func (s *Fragment) SetFragmentNumber(v string) *Fragment {
s.FragmentNumber = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"Fragment",
")",
"SetFragmentNumber",
"(",
"v",
"string",
")",
"*",
"Fragment",
"{",
"s",
".",
"FragmentNumber",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetFragmentNumber sets the FragmentNumber field's value.
|
[
"SetFragmentNumber",
"sets",
"the",
"FragmentNumber",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesisvideoarchivedmedia/api.go#L512-L515
|
2,130 |
aws/aws-sdk-go
|
service/kinesisvideoarchivedmedia/api.go
|
SetFragmentSizeInBytes
|
func (s *Fragment) SetFragmentSizeInBytes(v int64) *Fragment {
s.FragmentSizeInBytes = &v
return s
}
|
go
|
func (s *Fragment) SetFragmentSizeInBytes(v int64) *Fragment {
s.FragmentSizeInBytes = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"Fragment",
")",
"SetFragmentSizeInBytes",
"(",
"v",
"int64",
")",
"*",
"Fragment",
"{",
"s",
".",
"FragmentSizeInBytes",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetFragmentSizeInBytes sets the FragmentSizeInBytes field's value.
|
[
"SetFragmentSizeInBytes",
"sets",
"the",
"FragmentSizeInBytes",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesisvideoarchivedmedia/api.go#L518-L521
|
2,131 |
aws/aws-sdk-go
|
service/kinesisvideoarchivedmedia/api.go
|
SetProducerTimestamp
|
func (s *Fragment) SetProducerTimestamp(v time.Time) *Fragment {
s.ProducerTimestamp = &v
return s
}
|
go
|
func (s *Fragment) SetProducerTimestamp(v time.Time) *Fragment {
s.ProducerTimestamp = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"Fragment",
")",
"SetProducerTimestamp",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"Fragment",
"{",
"s",
".",
"ProducerTimestamp",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetProducerTimestamp sets the ProducerTimestamp field's value.
|
[
"SetProducerTimestamp",
"sets",
"the",
"ProducerTimestamp",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesisvideoarchivedmedia/api.go#L524-L527
|
2,132 |
aws/aws-sdk-go
|
service/kinesisvideoarchivedmedia/api.go
|
SetServerTimestamp
|
func (s *Fragment) SetServerTimestamp(v time.Time) *Fragment {
s.ServerTimestamp = &v
return s
}
|
go
|
func (s *Fragment) SetServerTimestamp(v time.Time) *Fragment {
s.ServerTimestamp = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"Fragment",
")",
"SetServerTimestamp",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"Fragment",
"{",
"s",
".",
"ServerTimestamp",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetServerTimestamp sets the ServerTimestamp field's value.
|
[
"SetServerTimestamp",
"sets",
"the",
"ServerTimestamp",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesisvideoarchivedmedia/api.go#L530-L533
|
2,133 |
aws/aws-sdk-go
|
service/kinesisvideoarchivedmedia/api.go
|
SetContainerFormat
|
func (s *GetHLSStreamingSessionURLInput) SetContainerFormat(v string) *GetHLSStreamingSessionURLInput {
s.ContainerFormat = &v
return s
}
|
go
|
func (s *GetHLSStreamingSessionURLInput) SetContainerFormat(v string) *GetHLSStreamingSessionURLInput {
s.ContainerFormat = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"GetHLSStreamingSessionURLInput",
")",
"SetContainerFormat",
"(",
"v",
"string",
")",
"*",
"GetHLSStreamingSessionURLInput",
"{",
"s",
".",
"ContainerFormat",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetContainerFormat sets the ContainerFormat field's value.
|
[
"SetContainerFormat",
"sets",
"the",
"ContainerFormat",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesisvideoarchivedmedia/api.go#L773-L776
|
2,134 |
aws/aws-sdk-go
|
service/kinesisvideoarchivedmedia/api.go
|
SetDiscontinuityMode
|
func (s *GetHLSStreamingSessionURLInput) SetDiscontinuityMode(v string) *GetHLSStreamingSessionURLInput {
s.DiscontinuityMode = &v
return s
}
|
go
|
func (s *GetHLSStreamingSessionURLInput) SetDiscontinuityMode(v string) *GetHLSStreamingSessionURLInput {
s.DiscontinuityMode = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"GetHLSStreamingSessionURLInput",
")",
"SetDiscontinuityMode",
"(",
"v",
"string",
")",
"*",
"GetHLSStreamingSessionURLInput",
"{",
"s",
".",
"DiscontinuityMode",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetDiscontinuityMode sets the DiscontinuityMode field's value.
|
[
"SetDiscontinuityMode",
"sets",
"the",
"DiscontinuityMode",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesisvideoarchivedmedia/api.go#L779-L782
|
2,135 |
aws/aws-sdk-go
|
service/kinesisvideoarchivedmedia/api.go
|
SetDisplayFragmentTimestamp
|
func (s *GetHLSStreamingSessionURLInput) SetDisplayFragmentTimestamp(v string) *GetHLSStreamingSessionURLInput {
s.DisplayFragmentTimestamp = &v
return s
}
|
go
|
func (s *GetHLSStreamingSessionURLInput) SetDisplayFragmentTimestamp(v string) *GetHLSStreamingSessionURLInput {
s.DisplayFragmentTimestamp = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"GetHLSStreamingSessionURLInput",
")",
"SetDisplayFragmentTimestamp",
"(",
"v",
"string",
")",
"*",
"GetHLSStreamingSessionURLInput",
"{",
"s",
".",
"DisplayFragmentTimestamp",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetDisplayFragmentTimestamp sets the DisplayFragmentTimestamp field's value.
|
[
"SetDisplayFragmentTimestamp",
"sets",
"the",
"DisplayFragmentTimestamp",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesisvideoarchivedmedia/api.go#L785-L788
|
2,136 |
aws/aws-sdk-go
|
service/kinesisvideoarchivedmedia/api.go
|
SetHLSFragmentSelector
|
func (s *GetHLSStreamingSessionURLInput) SetHLSFragmentSelector(v *HLSFragmentSelector) *GetHLSStreamingSessionURLInput {
s.HLSFragmentSelector = v
return s
}
|
go
|
func (s *GetHLSStreamingSessionURLInput) SetHLSFragmentSelector(v *HLSFragmentSelector) *GetHLSStreamingSessionURLInput {
s.HLSFragmentSelector = v
return s
}
|
[
"func",
"(",
"s",
"*",
"GetHLSStreamingSessionURLInput",
")",
"SetHLSFragmentSelector",
"(",
"v",
"*",
"HLSFragmentSelector",
")",
"*",
"GetHLSStreamingSessionURLInput",
"{",
"s",
".",
"HLSFragmentSelector",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetHLSFragmentSelector sets the HLSFragmentSelector field's value.
|
[
"SetHLSFragmentSelector",
"sets",
"the",
"HLSFragmentSelector",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesisvideoarchivedmedia/api.go#L797-L800
|
2,137 |
aws/aws-sdk-go
|
service/kinesisvideoarchivedmedia/api.go
|
SetMaxMediaPlaylistFragmentResults
|
func (s *GetHLSStreamingSessionURLInput) SetMaxMediaPlaylistFragmentResults(v int64) *GetHLSStreamingSessionURLInput {
s.MaxMediaPlaylistFragmentResults = &v
return s
}
|
go
|
func (s *GetHLSStreamingSessionURLInput) SetMaxMediaPlaylistFragmentResults(v int64) *GetHLSStreamingSessionURLInput {
s.MaxMediaPlaylistFragmentResults = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"GetHLSStreamingSessionURLInput",
")",
"SetMaxMediaPlaylistFragmentResults",
"(",
"v",
"int64",
")",
"*",
"GetHLSStreamingSessionURLInput",
"{",
"s",
".",
"MaxMediaPlaylistFragmentResults",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetMaxMediaPlaylistFragmentResults sets the MaxMediaPlaylistFragmentResults field's value.
|
[
"SetMaxMediaPlaylistFragmentResults",
"sets",
"the",
"MaxMediaPlaylistFragmentResults",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesisvideoarchivedmedia/api.go#L803-L806
|
2,138 |
aws/aws-sdk-go
|
service/kinesisvideoarchivedmedia/api.go
|
SetPlaybackMode
|
func (s *GetHLSStreamingSessionURLInput) SetPlaybackMode(v string) *GetHLSStreamingSessionURLInput {
s.PlaybackMode = &v
return s
}
|
go
|
func (s *GetHLSStreamingSessionURLInput) SetPlaybackMode(v string) *GetHLSStreamingSessionURLInput {
s.PlaybackMode = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"GetHLSStreamingSessionURLInput",
")",
"SetPlaybackMode",
"(",
"v",
"string",
")",
"*",
"GetHLSStreamingSessionURLInput",
"{",
"s",
".",
"PlaybackMode",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetPlaybackMode sets the PlaybackMode field's value.
|
[
"SetPlaybackMode",
"sets",
"the",
"PlaybackMode",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesisvideoarchivedmedia/api.go#L809-L812
|
2,139 |
aws/aws-sdk-go
|
service/kinesisvideoarchivedmedia/api.go
|
SetHLSStreamingSessionURL
|
func (s *GetHLSStreamingSessionURLOutput) SetHLSStreamingSessionURL(v string) *GetHLSStreamingSessionURLOutput {
s.HLSStreamingSessionURL = &v
return s
}
|
go
|
func (s *GetHLSStreamingSessionURLOutput) SetHLSStreamingSessionURL(v string) *GetHLSStreamingSessionURLOutput {
s.HLSStreamingSessionURL = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"GetHLSStreamingSessionURLOutput",
")",
"SetHLSStreamingSessionURL",
"(",
"v",
"string",
")",
"*",
"GetHLSStreamingSessionURLOutput",
"{",
"s",
".",
"HLSStreamingSessionURL",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetHLSStreamingSessionURL sets the HLSStreamingSessionURL field's value.
|
[
"SetHLSStreamingSessionURL",
"sets",
"the",
"HLSStreamingSessionURL",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesisvideoarchivedmedia/api.go#L845-L848
|
2,140 |
aws/aws-sdk-go
|
service/kinesisvideoarchivedmedia/api.go
|
SetFragmentSelector
|
func (s *ListFragmentsInput) SetFragmentSelector(v *FragmentSelector) *ListFragmentsInput {
s.FragmentSelector = v
return s
}
|
go
|
func (s *ListFragmentsInput) SetFragmentSelector(v *FragmentSelector) *ListFragmentsInput {
s.FragmentSelector = v
return s
}
|
[
"func",
"(",
"s",
"*",
"ListFragmentsInput",
")",
"SetFragmentSelector",
"(",
"v",
"*",
"FragmentSelector",
")",
"*",
"ListFragmentsInput",
"{",
"s",
".",
"FragmentSelector",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetFragmentSelector sets the FragmentSelector field's value.
|
[
"SetFragmentSelector",
"sets",
"the",
"FragmentSelector",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesisvideoarchivedmedia/api.go#L1138-L1141
|
2,141 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetBudgetLimit
|
func (s *Budget) SetBudgetLimit(v *Spend) *Budget {
s.BudgetLimit = v
return s
}
|
go
|
func (s *Budget) SetBudgetLimit(v *Spend) *Budget {
s.BudgetLimit = v
return s
}
|
[
"func",
"(",
"s",
"*",
"Budget",
")",
"SetBudgetLimit",
"(",
"v",
"*",
"Spend",
")",
"*",
"Budget",
"{",
"s",
".",
"BudgetLimit",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetBudgetLimit sets the BudgetLimit field's value.
|
[
"SetBudgetLimit",
"sets",
"the",
"BudgetLimit",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L1383-L1386
|
2,142 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetCalculatedSpend
|
func (s *Budget) SetCalculatedSpend(v *CalculatedSpend) *Budget {
s.CalculatedSpend = v
return s
}
|
go
|
func (s *Budget) SetCalculatedSpend(v *CalculatedSpend) *Budget {
s.CalculatedSpend = v
return s
}
|
[
"func",
"(",
"s",
"*",
"Budget",
")",
"SetCalculatedSpend",
"(",
"v",
"*",
"CalculatedSpend",
")",
"*",
"Budget",
"{",
"s",
".",
"CalculatedSpend",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetCalculatedSpend sets the CalculatedSpend field's value.
|
[
"SetCalculatedSpend",
"sets",
"the",
"CalculatedSpend",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L1401-L1404
|
2,143 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetBudgetedAndActualAmountsList
|
func (s *BudgetPerformanceHistory) SetBudgetedAndActualAmountsList(v []*BudgetedAndActualAmounts) *BudgetPerformanceHistory {
s.BudgetedAndActualAmountsList = v
return s
}
|
go
|
func (s *BudgetPerformanceHistory) SetBudgetedAndActualAmountsList(v []*BudgetedAndActualAmounts) *BudgetPerformanceHistory {
s.BudgetedAndActualAmountsList = v
return s
}
|
[
"func",
"(",
"s",
"*",
"BudgetPerformanceHistory",
")",
"SetBudgetedAndActualAmountsList",
"(",
"v",
"[",
"]",
"*",
"BudgetedAndActualAmounts",
")",
"*",
"BudgetPerformanceHistory",
"{",
"s",
".",
"BudgetedAndActualAmountsList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetBudgetedAndActualAmountsList sets the BudgetedAndActualAmountsList field's value.
|
[
"SetBudgetedAndActualAmountsList",
"sets",
"the",
"BudgetedAndActualAmountsList",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L1487-L1490
|
2,144 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetActualAmount
|
func (s *BudgetedAndActualAmounts) SetActualAmount(v *Spend) *BudgetedAndActualAmounts {
s.ActualAmount = v
return s
}
|
go
|
func (s *BudgetedAndActualAmounts) SetActualAmount(v *Spend) *BudgetedAndActualAmounts {
s.ActualAmount = v
return s
}
|
[
"func",
"(",
"s",
"*",
"BudgetedAndActualAmounts",
")",
"SetActualAmount",
"(",
"v",
"*",
"Spend",
")",
"*",
"BudgetedAndActualAmounts",
"{",
"s",
".",
"ActualAmount",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetActualAmount sets the ActualAmount field's value.
|
[
"SetActualAmount",
"sets",
"the",
"ActualAmount",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L1536-L1539
|
2,145 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetBudgetedAmount
|
func (s *BudgetedAndActualAmounts) SetBudgetedAmount(v *Spend) *BudgetedAndActualAmounts {
s.BudgetedAmount = v
return s
}
|
go
|
func (s *BudgetedAndActualAmounts) SetBudgetedAmount(v *Spend) *BudgetedAndActualAmounts {
s.BudgetedAmount = v
return s
}
|
[
"func",
"(",
"s",
"*",
"BudgetedAndActualAmounts",
")",
"SetBudgetedAmount",
"(",
"v",
"*",
"Spend",
")",
"*",
"BudgetedAndActualAmounts",
"{",
"s",
".",
"BudgetedAmount",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetBudgetedAmount sets the BudgetedAmount field's value.
|
[
"SetBudgetedAmount",
"sets",
"the",
"BudgetedAmount",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L1542-L1545
|
2,146 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetActualSpend
|
func (s *CalculatedSpend) SetActualSpend(v *Spend) *CalculatedSpend {
s.ActualSpend = v
return s
}
|
go
|
func (s *CalculatedSpend) SetActualSpend(v *Spend) *CalculatedSpend {
s.ActualSpend = v
return s
}
|
[
"func",
"(",
"s",
"*",
"CalculatedSpend",
")",
"SetActualSpend",
"(",
"v",
"*",
"Spend",
")",
"*",
"CalculatedSpend",
"{",
"s",
".",
"ActualSpend",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetActualSpend sets the ActualSpend field's value.
|
[
"SetActualSpend",
"sets",
"the",
"ActualSpend",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L1606-L1609
|
2,147 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetForecastedSpend
|
func (s *CalculatedSpend) SetForecastedSpend(v *Spend) *CalculatedSpend {
s.ForecastedSpend = v
return s
}
|
go
|
func (s *CalculatedSpend) SetForecastedSpend(v *Spend) *CalculatedSpend {
s.ForecastedSpend = v
return s
}
|
[
"func",
"(",
"s",
"*",
"CalculatedSpend",
")",
"SetForecastedSpend",
"(",
"v",
"*",
"Spend",
")",
"*",
"CalculatedSpend",
"{",
"s",
".",
"ForecastedSpend",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetForecastedSpend sets the ForecastedSpend field's value.
|
[
"SetForecastedSpend",
"sets",
"the",
"ForecastedSpend",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L1612-L1615
|
2,148 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetIncludeCredit
|
func (s *CostTypes) SetIncludeCredit(v bool) *CostTypes {
s.IncludeCredit = &v
return s
}
|
go
|
func (s *CostTypes) SetIncludeCredit(v bool) *CostTypes {
s.IncludeCredit = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"CostTypes",
")",
"SetIncludeCredit",
"(",
"v",
"bool",
")",
"*",
"CostTypes",
"{",
"s",
".",
"IncludeCredit",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetIncludeCredit sets the IncludeCredit field's value.
|
[
"SetIncludeCredit",
"sets",
"the",
"IncludeCredit",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L1690-L1693
|
2,149 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetIncludeDiscount
|
func (s *CostTypes) SetIncludeDiscount(v bool) *CostTypes {
s.IncludeDiscount = &v
return s
}
|
go
|
func (s *CostTypes) SetIncludeDiscount(v bool) *CostTypes {
s.IncludeDiscount = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"CostTypes",
")",
"SetIncludeDiscount",
"(",
"v",
"bool",
")",
"*",
"CostTypes",
"{",
"s",
".",
"IncludeDiscount",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetIncludeDiscount sets the IncludeDiscount field's value.
|
[
"SetIncludeDiscount",
"sets",
"the",
"IncludeDiscount",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L1696-L1699
|
2,150 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetIncludeOtherSubscription
|
func (s *CostTypes) SetIncludeOtherSubscription(v bool) *CostTypes {
s.IncludeOtherSubscription = &v
return s
}
|
go
|
func (s *CostTypes) SetIncludeOtherSubscription(v bool) *CostTypes {
s.IncludeOtherSubscription = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"CostTypes",
")",
"SetIncludeOtherSubscription",
"(",
"v",
"bool",
")",
"*",
"CostTypes",
"{",
"s",
".",
"IncludeOtherSubscription",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetIncludeOtherSubscription sets the IncludeOtherSubscription field's value.
|
[
"SetIncludeOtherSubscription",
"sets",
"the",
"IncludeOtherSubscription",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L1702-L1705
|
2,151 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetIncludeRecurring
|
func (s *CostTypes) SetIncludeRecurring(v bool) *CostTypes {
s.IncludeRecurring = &v
return s
}
|
go
|
func (s *CostTypes) SetIncludeRecurring(v bool) *CostTypes {
s.IncludeRecurring = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"CostTypes",
")",
"SetIncludeRecurring",
"(",
"v",
"bool",
")",
"*",
"CostTypes",
"{",
"s",
".",
"IncludeRecurring",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetIncludeRecurring sets the IncludeRecurring field's value.
|
[
"SetIncludeRecurring",
"sets",
"the",
"IncludeRecurring",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L1708-L1711
|
2,152 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetIncludeRefund
|
func (s *CostTypes) SetIncludeRefund(v bool) *CostTypes {
s.IncludeRefund = &v
return s
}
|
go
|
func (s *CostTypes) SetIncludeRefund(v bool) *CostTypes {
s.IncludeRefund = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"CostTypes",
")",
"SetIncludeRefund",
"(",
"v",
"bool",
")",
"*",
"CostTypes",
"{",
"s",
".",
"IncludeRefund",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetIncludeRefund sets the IncludeRefund field's value.
|
[
"SetIncludeRefund",
"sets",
"the",
"IncludeRefund",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L1714-L1717
|
2,153 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetIncludeSubscription
|
func (s *CostTypes) SetIncludeSubscription(v bool) *CostTypes {
s.IncludeSubscription = &v
return s
}
|
go
|
func (s *CostTypes) SetIncludeSubscription(v bool) *CostTypes {
s.IncludeSubscription = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"CostTypes",
")",
"SetIncludeSubscription",
"(",
"v",
"bool",
")",
"*",
"CostTypes",
"{",
"s",
".",
"IncludeSubscription",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetIncludeSubscription sets the IncludeSubscription field's value.
|
[
"SetIncludeSubscription",
"sets",
"the",
"IncludeSubscription",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L1720-L1723
|
2,154 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetIncludeSupport
|
func (s *CostTypes) SetIncludeSupport(v bool) *CostTypes {
s.IncludeSupport = &v
return s
}
|
go
|
func (s *CostTypes) SetIncludeSupport(v bool) *CostTypes {
s.IncludeSupport = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"CostTypes",
")",
"SetIncludeSupport",
"(",
"v",
"bool",
")",
"*",
"CostTypes",
"{",
"s",
".",
"IncludeSupport",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetIncludeSupport sets the IncludeSupport field's value.
|
[
"SetIncludeSupport",
"sets",
"the",
"IncludeSupport",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L1726-L1729
|
2,155 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetIncludeTax
|
func (s *CostTypes) SetIncludeTax(v bool) *CostTypes {
s.IncludeTax = &v
return s
}
|
go
|
func (s *CostTypes) SetIncludeTax(v bool) *CostTypes {
s.IncludeTax = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"CostTypes",
")",
"SetIncludeTax",
"(",
"v",
"bool",
")",
"*",
"CostTypes",
"{",
"s",
".",
"IncludeTax",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetIncludeTax sets the IncludeTax field's value.
|
[
"SetIncludeTax",
"sets",
"the",
"IncludeTax",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L1732-L1735
|
2,156 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetIncludeUpfront
|
func (s *CostTypes) SetIncludeUpfront(v bool) *CostTypes {
s.IncludeUpfront = &v
return s
}
|
go
|
func (s *CostTypes) SetIncludeUpfront(v bool) *CostTypes {
s.IncludeUpfront = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"CostTypes",
")",
"SetIncludeUpfront",
"(",
"v",
"bool",
")",
"*",
"CostTypes",
"{",
"s",
".",
"IncludeUpfront",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetIncludeUpfront sets the IncludeUpfront field's value.
|
[
"SetIncludeUpfront",
"sets",
"the",
"IncludeUpfront",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L1738-L1741
|
2,157 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetUseAmortized
|
func (s *CostTypes) SetUseAmortized(v bool) *CostTypes {
s.UseAmortized = &v
return s
}
|
go
|
func (s *CostTypes) SetUseAmortized(v bool) *CostTypes {
s.UseAmortized = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"CostTypes",
")",
"SetUseAmortized",
"(",
"v",
"bool",
")",
"*",
"CostTypes",
"{",
"s",
".",
"UseAmortized",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetUseAmortized sets the UseAmortized field's value.
|
[
"SetUseAmortized",
"sets",
"the",
"UseAmortized",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L1744-L1747
|
2,158 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetUseBlended
|
func (s *CostTypes) SetUseBlended(v bool) *CostTypes {
s.UseBlended = &v
return s
}
|
go
|
func (s *CostTypes) SetUseBlended(v bool) *CostTypes {
s.UseBlended = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"CostTypes",
")",
"SetUseBlended",
"(",
"v",
"bool",
")",
"*",
"CostTypes",
"{",
"s",
".",
"UseBlended",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetUseBlended sets the UseBlended field's value.
|
[
"SetUseBlended",
"sets",
"the",
"UseBlended",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L1750-L1753
|
2,159 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetNotificationsWithSubscribers
|
func (s *CreateBudgetInput) SetNotificationsWithSubscribers(v []*NotificationWithSubscribers) *CreateBudgetInput {
s.NotificationsWithSubscribers = v
return s
}
|
go
|
func (s *CreateBudgetInput) SetNotificationsWithSubscribers(v []*NotificationWithSubscribers) *CreateBudgetInput {
s.NotificationsWithSubscribers = v
return s
}
|
[
"func",
"(",
"s",
"*",
"CreateBudgetInput",
")",
"SetNotificationsWithSubscribers",
"(",
"v",
"[",
"]",
"*",
"NotificationWithSubscribers",
")",
"*",
"CreateBudgetInput",
"{",
"s",
".",
"NotificationsWithSubscribers",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetNotificationsWithSubscribers sets the NotificationsWithSubscribers field's value.
|
[
"SetNotificationsWithSubscribers",
"sets",
"the",
"NotificationsWithSubscribers",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L1834-L1837
|
2,160 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetBudgetPerformanceHistory
|
func (s *DescribeBudgetPerformanceHistoryOutput) SetBudgetPerformanceHistory(v *BudgetPerformanceHistory) *DescribeBudgetPerformanceHistoryOutput {
s.BudgetPerformanceHistory = v
return s
}
|
go
|
func (s *DescribeBudgetPerformanceHistoryOutput) SetBudgetPerformanceHistory(v *BudgetPerformanceHistory) *DescribeBudgetPerformanceHistoryOutput {
s.BudgetPerformanceHistory = v
return s
}
|
[
"func",
"(",
"s",
"*",
"DescribeBudgetPerformanceHistoryOutput",
")",
"SetBudgetPerformanceHistory",
"(",
"v",
"*",
"BudgetPerformanceHistory",
")",
"*",
"DescribeBudgetPerformanceHistoryOutput",
"{",
"s",
".",
"BudgetPerformanceHistory",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetBudgetPerformanceHistory sets the BudgetPerformanceHistory field's value.
|
[
"SetBudgetPerformanceHistory",
"sets",
"the",
"BudgetPerformanceHistory",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L2573-L2576
|
2,161 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetNotificationState
|
func (s *Notification) SetNotificationState(v string) *Notification {
s.NotificationState = &v
return s
}
|
go
|
func (s *Notification) SetNotificationState(v string) *Notification {
s.NotificationState = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"Notification",
")",
"SetNotificationState",
"(",
"v",
"string",
")",
"*",
"Notification",
"{",
"s",
".",
"NotificationState",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetNotificationState sets the NotificationState field's value.
|
[
"SetNotificationState",
"sets",
"the",
"NotificationState",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L3022-L3025
|
2,162 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetThresholdType
|
func (s *Notification) SetThresholdType(v string) *Notification {
s.ThresholdType = &v
return s
}
|
go
|
func (s *Notification) SetThresholdType(v string) *Notification {
s.ThresholdType = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"Notification",
")",
"SetThresholdType",
"(",
"v",
"string",
")",
"*",
"Notification",
"{",
"s",
".",
"ThresholdType",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetThresholdType sets the ThresholdType field's value.
|
[
"SetThresholdType",
"sets",
"the",
"ThresholdType",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L3040-L3043
|
2,163 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetNewBudget
|
func (s *UpdateBudgetInput) SetNewBudget(v *Budget) *UpdateBudgetInput {
s.NewBudget = v
return s
}
|
go
|
func (s *UpdateBudgetInput) SetNewBudget(v *Budget) *UpdateBudgetInput {
s.NewBudget = v
return s
}
|
[
"func",
"(",
"s",
"*",
"UpdateBudgetInput",
")",
"SetNewBudget",
"(",
"v",
"*",
"Budget",
")",
"*",
"UpdateBudgetInput",
"{",
"s",
".",
"NewBudget",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetNewBudget sets the NewBudget field's value.
|
[
"SetNewBudget",
"sets",
"the",
"NewBudget",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L3352-L3355
|
2,164 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetNewNotification
|
func (s *UpdateNotificationInput) SetNewNotification(v *Notification) *UpdateNotificationInput {
s.NewNotification = v
return s
}
|
go
|
func (s *UpdateNotificationInput) SetNewNotification(v *Notification) *UpdateNotificationInput {
s.NewNotification = v
return s
}
|
[
"func",
"(",
"s",
"*",
"UpdateNotificationInput",
")",
"SetNewNotification",
"(",
"v",
"*",
"Notification",
")",
"*",
"UpdateNotificationInput",
"{",
"s",
".",
"NewNotification",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetNewNotification sets the NewNotification field's value.
|
[
"SetNewNotification",
"sets",
"the",
"NewNotification",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L3459-L3462
|
2,165 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetOldNotification
|
func (s *UpdateNotificationInput) SetOldNotification(v *Notification) *UpdateNotificationInput {
s.OldNotification = v
return s
}
|
go
|
func (s *UpdateNotificationInput) SetOldNotification(v *Notification) *UpdateNotificationInput {
s.OldNotification = v
return s
}
|
[
"func",
"(",
"s",
"*",
"UpdateNotificationInput",
")",
"SetOldNotification",
"(",
"v",
"*",
"Notification",
")",
"*",
"UpdateNotificationInput",
"{",
"s",
".",
"OldNotification",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetOldNotification sets the OldNotification field's value.
|
[
"SetOldNotification",
"sets",
"the",
"OldNotification",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L3465-L3468
|
2,166 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetNewSubscriber
|
func (s *UpdateSubscriberInput) SetNewSubscriber(v *Subscriber) *UpdateSubscriberInput {
s.NewSubscriber = v
return s
}
|
go
|
func (s *UpdateSubscriberInput) SetNewSubscriber(v *Subscriber) *UpdateSubscriberInput {
s.NewSubscriber = v
return s
}
|
[
"func",
"(",
"s",
"*",
"UpdateSubscriberInput",
")",
"SetNewSubscriber",
"(",
"v",
"*",
"Subscriber",
")",
"*",
"UpdateSubscriberInput",
"{",
"s",
".",
"NewSubscriber",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetNewSubscriber sets the NewSubscriber field's value.
|
[
"SetNewSubscriber",
"sets",
"the",
"NewSubscriber",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L3585-L3588
|
2,167 |
aws/aws-sdk-go
|
service/budgets/api.go
|
SetOldSubscriber
|
func (s *UpdateSubscriberInput) SetOldSubscriber(v *Subscriber) *UpdateSubscriberInput {
s.OldSubscriber = v
return s
}
|
go
|
func (s *UpdateSubscriberInput) SetOldSubscriber(v *Subscriber) *UpdateSubscriberInput {
s.OldSubscriber = v
return s
}
|
[
"func",
"(",
"s",
"*",
"UpdateSubscriberInput",
")",
"SetOldSubscriber",
"(",
"v",
"*",
"Subscriber",
")",
"*",
"UpdateSubscriberInput",
"{",
"s",
".",
"OldSubscriber",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetOldSubscriber sets the OldSubscriber field's value.
|
[
"SetOldSubscriber",
"sets",
"the",
"OldSubscriber",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/budgets/api.go#L3597-L3600
|
2,168 |
aws/aws-sdk-go
|
private/protocol/rest/build.go
|
Build
|
func Build(r *request.Request) {
if r.ParamsFilled() {
v := reflect.ValueOf(r.Params).Elem()
buildLocationElements(r, v, false)
buildBody(r, v)
}
}
|
go
|
func Build(r *request.Request) {
if r.ParamsFilled() {
v := reflect.ValueOf(r.Params).Elem()
buildLocationElements(r, v, false)
buildBody(r, v)
}
}
|
[
"func",
"Build",
"(",
"r",
"*",
"request",
".",
"Request",
")",
"{",
"if",
"r",
".",
"ParamsFilled",
"(",
")",
"{",
"v",
":=",
"reflect",
".",
"ValueOf",
"(",
"r",
".",
"Params",
")",
".",
"Elem",
"(",
")",
"\n",
"buildLocationElements",
"(",
"r",
",",
"v",
",",
"false",
")",
"\n",
"buildBody",
"(",
"r",
",",
"v",
")",
"\n",
"}",
"\n",
"}"
] |
// Build builds the REST component of a service request.
|
[
"Build",
"builds",
"the",
"REST",
"component",
"of",
"a",
"service",
"request",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/rest/build.go#L45-L51
|
2,169 |
aws/aws-sdk-go
|
private/protocol/rest/build.go
|
BuildAsGET
|
func BuildAsGET(r *request.Request) {
if r.ParamsFilled() {
v := reflect.ValueOf(r.Params).Elem()
buildLocationElements(r, v, true)
buildBody(r, v)
}
}
|
go
|
func BuildAsGET(r *request.Request) {
if r.ParamsFilled() {
v := reflect.ValueOf(r.Params).Elem()
buildLocationElements(r, v, true)
buildBody(r, v)
}
}
|
[
"func",
"BuildAsGET",
"(",
"r",
"*",
"request",
".",
"Request",
")",
"{",
"if",
"r",
".",
"ParamsFilled",
"(",
")",
"{",
"v",
":=",
"reflect",
".",
"ValueOf",
"(",
"r",
".",
"Params",
")",
".",
"Elem",
"(",
")",
"\n",
"buildLocationElements",
"(",
"r",
",",
"v",
",",
"true",
")",
"\n",
"buildBody",
"(",
"r",
",",
"v",
")",
"\n",
"}",
"\n",
"}"
] |
// BuildAsGET builds the REST component of a service request with the ability to hoist
// data from the body.
|
[
"BuildAsGET",
"builds",
"the",
"REST",
"component",
"of",
"a",
"service",
"request",
"with",
"the",
"ability",
"to",
"hoist",
"data",
"from",
"the",
"body",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/rest/build.go#L55-L61
|
2,170 |
aws/aws-sdk-go
|
private/protocol/rest/build.go
|
EscapePath
|
func EscapePath(path string, encodeSep bool) string {
var buf bytes.Buffer
for i := 0; i < len(path); i++ {
c := path[i]
if noEscape[c] || (c == '/' && !encodeSep) {
buf.WriteByte(c)
} else {
fmt.Fprintf(&buf, "%%%02X", c)
}
}
return buf.String()
}
|
go
|
func EscapePath(path string, encodeSep bool) string {
var buf bytes.Buffer
for i := 0; i < len(path); i++ {
c := path[i]
if noEscape[c] || (c == '/' && !encodeSep) {
buf.WriteByte(c)
} else {
fmt.Fprintf(&buf, "%%%02X", c)
}
}
return buf.String()
}
|
[
"func",
"EscapePath",
"(",
"path",
"string",
",",
"encodeSep",
"bool",
")",
"string",
"{",
"var",
"buf",
"bytes",
".",
"Buffer",
"\n",
"for",
"i",
":=",
"0",
";",
"i",
"<",
"len",
"(",
"path",
")",
";",
"i",
"++",
"{",
"c",
":=",
"path",
"[",
"i",
"]",
"\n",
"if",
"noEscape",
"[",
"c",
"]",
"||",
"(",
"c",
"==",
"'/'",
"&&",
"!",
"encodeSep",
")",
"{",
"buf",
".",
"WriteByte",
"(",
"c",
")",
"\n",
"}",
"else",
"{",
"fmt",
".",
"Fprintf",
"(",
"&",
"buf",
",",
"\"",
"\"",
",",
"c",
")",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"buf",
".",
"String",
"(",
")",
"\n",
"}"
] |
// EscapePath escapes part of a URL path in Amazon style
|
[
"EscapePath",
"escapes",
"part",
"of",
"a",
"URL",
"path",
"in",
"Amazon",
"style"
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/rest/build.go#L244-L255
|
2,171 |
aws/aws-sdk-go
|
example/service/s3/sync/sync.go
|
NewSyncFolderIterator
|
func NewSyncFolderIterator(path, bucket string) *SyncFolderIterator {
metadata := []fileInfo{}
filepath.Walk(path, func(p string, info os.FileInfo, err error) error {
if !info.IsDir() {
key := strings.TrimPrefix(p, path)
metadata = append(metadata, fileInfo{key, p})
}
return nil
})
return &SyncFolderIterator{
bucket,
metadata,
nil,
}
}
|
go
|
func NewSyncFolderIterator(path, bucket string) *SyncFolderIterator {
metadata := []fileInfo{}
filepath.Walk(path, func(p string, info os.FileInfo, err error) error {
if !info.IsDir() {
key := strings.TrimPrefix(p, path)
metadata = append(metadata, fileInfo{key, p})
}
return nil
})
return &SyncFolderIterator{
bucket,
metadata,
nil,
}
}
|
[
"func",
"NewSyncFolderIterator",
"(",
"path",
",",
"bucket",
"string",
")",
"*",
"SyncFolderIterator",
"{",
"metadata",
":=",
"[",
"]",
"fileInfo",
"{",
"}",
"\n",
"filepath",
".",
"Walk",
"(",
"path",
",",
"func",
"(",
"p",
"string",
",",
"info",
"os",
".",
"FileInfo",
",",
"err",
"error",
")",
"error",
"{",
"if",
"!",
"info",
".",
"IsDir",
"(",
")",
"{",
"key",
":=",
"strings",
".",
"TrimPrefix",
"(",
"p",
",",
"path",
")",
"\n",
"metadata",
"=",
"append",
"(",
"metadata",
",",
"fileInfo",
"{",
"key",
",",
"p",
"}",
")",
"\n",
"}",
"\n\n",
"return",
"nil",
"\n",
"}",
")",
"\n\n",
"return",
"&",
"SyncFolderIterator",
"{",
"bucket",
",",
"metadata",
",",
"nil",
",",
"}",
"\n",
"}"
] |
// NewSyncFolderIterator will walk the path, and store the key and full path
// of the object to be uploaded. This will return a new SyncFolderIterator
// with the data provided from walking the path.
|
[
"NewSyncFolderIterator",
"will",
"walk",
"the",
"path",
"and",
"store",
"the",
"key",
"and",
"full",
"path",
"of",
"the",
"object",
"to",
"be",
"uploaded",
".",
"This",
"will",
"return",
"a",
"new",
"SyncFolderIterator",
"with",
"the",
"data",
"provided",
"from",
"walking",
"the",
"path",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/example/service/s3/sync/sync.go#L34-L50
|
2,172 |
aws/aws-sdk-go
|
example/service/s3/sync/sync.go
|
UploadObject
|
func (iter *SyncFolderIterator) UploadObject() s3manager.BatchUploadObject {
fi := iter.fileInfos[0]
iter.fileInfos = iter.fileInfos[1:]
body, err := os.Open(fi.fullpath)
if err != nil {
iter.err = err
}
extension := filepath.Ext(fi.key)
mimeType := mime.TypeByExtension(extension)
if mimeType == "" {
mimeType = "binary/octet-stream"
}
input := s3manager.UploadInput{
Bucket: &iter.bucket,
Key: &fi.key,
Body: body,
ContentType: &mimeType,
}
return s3manager.BatchUploadObject{
Object: &input,
}
}
|
go
|
func (iter *SyncFolderIterator) UploadObject() s3manager.BatchUploadObject {
fi := iter.fileInfos[0]
iter.fileInfos = iter.fileInfos[1:]
body, err := os.Open(fi.fullpath)
if err != nil {
iter.err = err
}
extension := filepath.Ext(fi.key)
mimeType := mime.TypeByExtension(extension)
if mimeType == "" {
mimeType = "binary/octet-stream"
}
input := s3manager.UploadInput{
Bucket: &iter.bucket,
Key: &fi.key,
Body: body,
ContentType: &mimeType,
}
return s3manager.BatchUploadObject{
Object: &input,
}
}
|
[
"func",
"(",
"iter",
"*",
"SyncFolderIterator",
")",
"UploadObject",
"(",
")",
"s3manager",
".",
"BatchUploadObject",
"{",
"fi",
":=",
"iter",
".",
"fileInfos",
"[",
"0",
"]",
"\n",
"iter",
".",
"fileInfos",
"=",
"iter",
".",
"fileInfos",
"[",
"1",
":",
"]",
"\n",
"body",
",",
"err",
":=",
"os",
".",
"Open",
"(",
"fi",
".",
"fullpath",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"iter",
".",
"err",
"=",
"err",
"\n",
"}",
"\n\n",
"extension",
":=",
"filepath",
".",
"Ext",
"(",
"fi",
".",
"key",
")",
"\n",
"mimeType",
":=",
"mime",
".",
"TypeByExtension",
"(",
"extension",
")",
"\n\n",
"if",
"mimeType",
"==",
"\"",
"\"",
"{",
"mimeType",
"=",
"\"",
"\"",
"\n",
"}",
"\n\n",
"input",
":=",
"s3manager",
".",
"UploadInput",
"{",
"Bucket",
":",
"&",
"iter",
".",
"bucket",
",",
"Key",
":",
"&",
"fi",
".",
"key",
",",
"Body",
":",
"body",
",",
"ContentType",
":",
"&",
"mimeType",
",",
"}",
"\n\n",
"return",
"s3manager",
".",
"BatchUploadObject",
"{",
"Object",
":",
"&",
"input",
",",
"}",
"\n",
"}"
] |
// UploadObject will prep the new upload object by open that file and constructing a new
// s3manager.UploadInput.
|
[
"UploadObject",
"will",
"prep",
"the",
"new",
"upload",
"object",
"by",
"open",
"that",
"file",
"and",
"constructing",
"a",
"new",
"s3manager",
".",
"UploadInput",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/example/service/s3/sync/sync.go#L65-L90
|
2,173 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetIgnorePollAlarmFailure
|
func (s *AlarmConfiguration) SetIgnorePollAlarmFailure(v bool) *AlarmConfiguration {
s.IgnorePollAlarmFailure = &v
return s
}
|
go
|
func (s *AlarmConfiguration) SetIgnorePollAlarmFailure(v bool) *AlarmConfiguration {
s.IgnorePollAlarmFailure = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"AlarmConfiguration",
")",
"SetIgnorePollAlarmFailure",
"(",
"v",
"bool",
")",
"*",
"AlarmConfiguration",
"{",
"s",
".",
"IgnorePollAlarmFailure",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetIgnorePollAlarmFailure sets the IgnorePollAlarmFailure field's value.
|
[
"SetIgnorePollAlarmFailure",
"sets",
"the",
"IgnorePollAlarmFailure",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L4839-L4842
|
2,174 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetGitHubAccountName
|
func (s *ApplicationInfo) SetGitHubAccountName(v string) *ApplicationInfo {
s.GitHubAccountName = &v
return s
}
|
go
|
func (s *ApplicationInfo) SetGitHubAccountName(v string) *ApplicationInfo {
s.GitHubAccountName = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"ApplicationInfo",
")",
"SetGitHubAccountName",
"(",
"v",
"string",
")",
"*",
"ApplicationInfo",
"{",
"s",
".",
"GitHubAccountName",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetGitHubAccountName sets the GitHubAccountName field's value.
|
[
"SetGitHubAccountName",
"sets",
"the",
"GitHubAccountName",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L4951-L4954
|
2,175 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetLinkedToGitHub
|
func (s *ApplicationInfo) SetLinkedToGitHub(v bool) *ApplicationInfo {
s.LinkedToGitHub = &v
return s
}
|
go
|
func (s *ApplicationInfo) SetLinkedToGitHub(v bool) *ApplicationInfo {
s.LinkedToGitHub = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"ApplicationInfo",
")",
"SetLinkedToGitHub",
"(",
"v",
"bool",
")",
"*",
"ApplicationInfo",
"{",
"s",
".",
"LinkedToGitHub",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetLinkedToGitHub sets the LinkedToGitHub field's value.
|
[
"SetLinkedToGitHub",
"sets",
"the",
"LinkedToGitHub",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L4957-L4960
|
2,176 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetApplicationsInfo
|
func (s *BatchGetApplicationsOutput) SetApplicationsInfo(v []*ApplicationInfo) *BatchGetApplicationsOutput {
s.ApplicationsInfo = v
return s
}
|
go
|
func (s *BatchGetApplicationsOutput) SetApplicationsInfo(v []*ApplicationInfo) *BatchGetApplicationsOutput {
s.ApplicationsInfo = v
return s
}
|
[
"func",
"(",
"s",
"*",
"BatchGetApplicationsOutput",
")",
"SetApplicationsInfo",
"(",
"v",
"[",
"]",
"*",
"ApplicationInfo",
")",
"*",
"BatchGetApplicationsOutput",
"{",
"s",
".",
"ApplicationsInfo",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetApplicationsInfo sets the ApplicationsInfo field's value.
|
[
"SetApplicationsInfo",
"sets",
"the",
"ApplicationsInfo",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L5186-L5189
|
2,177 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetDeploymentGroupNames
|
func (s *BatchGetDeploymentGroupsInput) SetDeploymentGroupNames(v []*string) *BatchGetDeploymentGroupsInput {
s.DeploymentGroupNames = v
return s
}
|
go
|
func (s *BatchGetDeploymentGroupsInput) SetDeploymentGroupNames(v []*string) *BatchGetDeploymentGroupsInput {
s.DeploymentGroupNames = v
return s
}
|
[
"func",
"(",
"s",
"*",
"BatchGetDeploymentGroupsInput",
")",
"SetDeploymentGroupNames",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"BatchGetDeploymentGroupsInput",
"{",
"s",
".",
"DeploymentGroupNames",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetDeploymentGroupNames sets the DeploymentGroupNames field's value.
|
[
"SetDeploymentGroupNames",
"sets",
"the",
"DeploymentGroupNames",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L5243-L5246
|
2,178 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetDeploymentGroupsInfo
|
func (s *BatchGetDeploymentGroupsOutput) SetDeploymentGroupsInfo(v []*DeploymentGroupInfo) *BatchGetDeploymentGroupsOutput {
s.DeploymentGroupsInfo = v
return s
}
|
go
|
func (s *BatchGetDeploymentGroupsOutput) SetDeploymentGroupsInfo(v []*DeploymentGroupInfo) *BatchGetDeploymentGroupsOutput {
s.DeploymentGroupsInfo = v
return s
}
|
[
"func",
"(",
"s",
"*",
"BatchGetDeploymentGroupsOutput",
")",
"SetDeploymentGroupsInfo",
"(",
"v",
"[",
"]",
"*",
"DeploymentGroupInfo",
")",
"*",
"BatchGetDeploymentGroupsOutput",
"{",
"s",
".",
"DeploymentGroupsInfo",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetDeploymentGroupsInfo sets the DeploymentGroupsInfo field's value.
|
[
"SetDeploymentGroupsInfo",
"sets",
"the",
"DeploymentGroupsInfo",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L5270-L5273
|
2,179 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetInstancesSummary
|
func (s *BatchGetDeploymentInstancesOutput) SetInstancesSummary(v []*InstanceSummary) *BatchGetDeploymentInstancesOutput {
s.InstancesSummary = v
return s
}
|
go
|
func (s *BatchGetDeploymentInstancesOutput) SetInstancesSummary(v []*InstanceSummary) *BatchGetDeploymentInstancesOutput {
s.InstancesSummary = v
return s
}
|
[
"func",
"(",
"s",
"*",
"BatchGetDeploymentInstancesOutput",
")",
"SetInstancesSummary",
"(",
"v",
"[",
"]",
"*",
"InstanceSummary",
")",
"*",
"BatchGetDeploymentInstancesOutput",
"{",
"s",
".",
"InstancesSummary",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetInstancesSummary sets the InstancesSummary field's value.
|
[
"SetInstancesSummary",
"sets",
"the",
"InstancesSummary",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L5362-L5365
|
2,180 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetDeploymentTargets
|
func (s *BatchGetDeploymentTargetsOutput) SetDeploymentTargets(v []*DeploymentTarget) *BatchGetDeploymentTargetsOutput {
s.DeploymentTargets = v
return s
}
|
go
|
func (s *BatchGetDeploymentTargetsOutput) SetDeploymentTargets(v []*DeploymentTarget) *BatchGetDeploymentTargetsOutput {
s.DeploymentTargets = v
return s
}
|
[
"func",
"(",
"s",
"*",
"BatchGetDeploymentTargetsOutput",
")",
"SetDeploymentTargets",
"(",
"v",
"[",
"]",
"*",
"DeploymentTarget",
")",
"*",
"BatchGetDeploymentTargetsOutput",
"{",
"s",
".",
"DeploymentTargets",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetDeploymentTargets sets the DeploymentTargets field's value.
|
[
"SetDeploymentTargets",
"sets",
"the",
"DeploymentTargets",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L5440-L5443
|
2,181 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetDeploymentsInfo
|
func (s *BatchGetDeploymentsOutput) SetDeploymentsInfo(v []*DeploymentInfo) *BatchGetDeploymentsOutput {
s.DeploymentsInfo = v
return s
}
|
go
|
func (s *BatchGetDeploymentsOutput) SetDeploymentsInfo(v []*DeploymentInfo) *BatchGetDeploymentsOutput {
s.DeploymentsInfo = v
return s
}
|
[
"func",
"(",
"s",
"*",
"BatchGetDeploymentsOutput",
")",
"SetDeploymentsInfo",
"(",
"v",
"[",
"]",
"*",
"DeploymentInfo",
")",
"*",
"BatchGetDeploymentsOutput",
"{",
"s",
".",
"DeploymentsInfo",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetDeploymentsInfo sets the DeploymentsInfo field's value.
|
[
"SetDeploymentsInfo",
"sets",
"the",
"DeploymentsInfo",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L5503-L5506
|
2,182 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetInstanceInfos
|
func (s *BatchGetOnPremisesInstancesOutput) SetInstanceInfos(v []*InstanceInfo) *BatchGetOnPremisesInstancesOutput {
s.InstanceInfos = v
return s
}
|
go
|
func (s *BatchGetOnPremisesInstancesOutput) SetInstanceInfos(v []*InstanceInfo) *BatchGetOnPremisesInstancesOutput {
s.InstanceInfos = v
return s
}
|
[
"func",
"(",
"s",
"*",
"BatchGetOnPremisesInstancesOutput",
")",
"SetInstanceInfos",
"(",
"v",
"[",
"]",
"*",
"InstanceInfo",
")",
"*",
"BatchGetOnPremisesInstancesOutput",
"{",
"s",
".",
"InstanceInfos",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetInstanceInfos sets the InstanceInfos field's value.
|
[
"SetInstanceInfos",
"sets",
"the",
"InstanceInfos",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L5566-L5569
|
2,183 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetDeploymentReadyOption
|
func (s *BlueGreenDeploymentConfiguration) SetDeploymentReadyOption(v *DeploymentReadyOption) *BlueGreenDeploymentConfiguration {
s.DeploymentReadyOption = v
return s
}
|
go
|
func (s *BlueGreenDeploymentConfiguration) SetDeploymentReadyOption(v *DeploymentReadyOption) *BlueGreenDeploymentConfiguration {
s.DeploymentReadyOption = v
return s
}
|
[
"func",
"(",
"s",
"*",
"BlueGreenDeploymentConfiguration",
")",
"SetDeploymentReadyOption",
"(",
"v",
"*",
"DeploymentReadyOption",
")",
"*",
"BlueGreenDeploymentConfiguration",
"{",
"s",
".",
"DeploymentReadyOption",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetDeploymentReadyOption sets the DeploymentReadyOption field's value.
|
[
"SetDeploymentReadyOption",
"sets",
"the",
"DeploymentReadyOption",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L5599-L5602
|
2,184 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetGreenFleetProvisioningOption
|
func (s *BlueGreenDeploymentConfiguration) SetGreenFleetProvisioningOption(v *GreenFleetProvisioningOption) *BlueGreenDeploymentConfiguration {
s.GreenFleetProvisioningOption = v
return s
}
|
go
|
func (s *BlueGreenDeploymentConfiguration) SetGreenFleetProvisioningOption(v *GreenFleetProvisioningOption) *BlueGreenDeploymentConfiguration {
s.GreenFleetProvisioningOption = v
return s
}
|
[
"func",
"(",
"s",
"*",
"BlueGreenDeploymentConfiguration",
")",
"SetGreenFleetProvisioningOption",
"(",
"v",
"*",
"GreenFleetProvisioningOption",
")",
"*",
"BlueGreenDeploymentConfiguration",
"{",
"s",
".",
"GreenFleetProvisioningOption",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetGreenFleetProvisioningOption sets the GreenFleetProvisioningOption field's value.
|
[
"SetGreenFleetProvisioningOption",
"sets",
"the",
"GreenFleetProvisioningOption",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L5605-L5608
|
2,185 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetTerminateBlueInstancesOnDeploymentSuccess
|
func (s *BlueGreenDeploymentConfiguration) SetTerminateBlueInstancesOnDeploymentSuccess(v *BlueInstanceTerminationOption) *BlueGreenDeploymentConfiguration {
s.TerminateBlueInstancesOnDeploymentSuccess = v
return s
}
|
go
|
func (s *BlueGreenDeploymentConfiguration) SetTerminateBlueInstancesOnDeploymentSuccess(v *BlueInstanceTerminationOption) *BlueGreenDeploymentConfiguration {
s.TerminateBlueInstancesOnDeploymentSuccess = v
return s
}
|
[
"func",
"(",
"s",
"*",
"BlueGreenDeploymentConfiguration",
")",
"SetTerminateBlueInstancesOnDeploymentSuccess",
"(",
"v",
"*",
"BlueInstanceTerminationOption",
")",
"*",
"BlueGreenDeploymentConfiguration",
"{",
"s",
".",
"TerminateBlueInstancesOnDeploymentSuccess",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetTerminateBlueInstancesOnDeploymentSuccess sets the TerminateBlueInstancesOnDeploymentSuccess field's value.
|
[
"SetTerminateBlueInstancesOnDeploymentSuccess",
"sets",
"the",
"TerminateBlueInstancesOnDeploymentSuccess",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L5611-L5614
|
2,186 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetTerminationWaitTimeInMinutes
|
func (s *BlueInstanceTerminationOption) SetTerminationWaitTimeInMinutes(v int64) *BlueInstanceTerminationOption {
s.TerminationWaitTimeInMinutes = &v
return s
}
|
go
|
func (s *BlueInstanceTerminationOption) SetTerminationWaitTimeInMinutes(v int64) *BlueInstanceTerminationOption {
s.TerminationWaitTimeInMinutes = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"BlueInstanceTerminationOption",
")",
"SetTerminationWaitTimeInMinutes",
"(",
"v",
"int64",
")",
"*",
"BlueInstanceTerminationOption",
"{",
"s",
".",
"TerminationWaitTimeInMinutes",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetTerminationWaitTimeInMinutes sets the TerminationWaitTimeInMinutes field's value.
|
[
"SetTerminationWaitTimeInMinutes",
"sets",
"the",
"TerminationWaitTimeInMinutes",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L5653-L5656
|
2,187 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetDeploymentWaitType
|
func (s *ContinueDeploymentInput) SetDeploymentWaitType(v string) *ContinueDeploymentInput {
s.DeploymentWaitType = &v
return s
}
|
go
|
func (s *ContinueDeploymentInput) SetDeploymentWaitType(v string) *ContinueDeploymentInput {
s.DeploymentWaitType = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"ContinueDeploymentInput",
")",
"SetDeploymentWaitType",
"(",
"v",
"string",
")",
"*",
"ContinueDeploymentInput",
"{",
"s",
".",
"DeploymentWaitType",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetDeploymentWaitType sets the DeploymentWaitType field's value.
|
[
"SetDeploymentWaitType",
"sets",
"the",
"DeploymentWaitType",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L5688-L5691
|
2,188 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetLastAttemptedDeployment
|
func (s *DeploymentGroupInfo) SetLastAttemptedDeployment(v *LastDeploymentInfo) *DeploymentGroupInfo {
s.LastAttemptedDeployment = v
return s
}
|
go
|
func (s *DeploymentGroupInfo) SetLastAttemptedDeployment(v *LastDeploymentInfo) *DeploymentGroupInfo {
s.LastAttemptedDeployment = v
return s
}
|
[
"func",
"(",
"s",
"*",
"DeploymentGroupInfo",
")",
"SetLastAttemptedDeployment",
"(",
"v",
"*",
"LastDeploymentInfo",
")",
"*",
"DeploymentGroupInfo",
"{",
"s",
".",
"LastAttemptedDeployment",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetLastAttemptedDeployment sets the LastAttemptedDeployment field's value.
|
[
"SetLastAttemptedDeployment",
"sets",
"the",
"LastAttemptedDeployment",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L6829-L6832
|
2,189 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetLastSuccessfulDeployment
|
func (s *DeploymentGroupInfo) SetLastSuccessfulDeployment(v *LastDeploymentInfo) *DeploymentGroupInfo {
s.LastSuccessfulDeployment = v
return s
}
|
go
|
func (s *DeploymentGroupInfo) SetLastSuccessfulDeployment(v *LastDeploymentInfo) *DeploymentGroupInfo {
s.LastSuccessfulDeployment = v
return s
}
|
[
"func",
"(",
"s",
"*",
"DeploymentGroupInfo",
")",
"SetLastSuccessfulDeployment",
"(",
"v",
"*",
"LastDeploymentInfo",
")",
"*",
"DeploymentGroupInfo",
"{",
"s",
".",
"LastSuccessfulDeployment",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetLastSuccessfulDeployment sets the LastSuccessfulDeployment field's value.
|
[
"SetLastSuccessfulDeployment",
"sets",
"the",
"LastSuccessfulDeployment",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L6835-L6838
|
2,190 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetTargetRevision
|
func (s *DeploymentGroupInfo) SetTargetRevision(v *RevisionLocation) *DeploymentGroupInfo {
s.TargetRevision = v
return s
}
|
go
|
func (s *DeploymentGroupInfo) SetTargetRevision(v *RevisionLocation) *DeploymentGroupInfo {
s.TargetRevision = v
return s
}
|
[
"func",
"(",
"s",
"*",
"DeploymentGroupInfo",
")",
"SetTargetRevision",
"(",
"v",
"*",
"RevisionLocation",
")",
"*",
"DeploymentGroupInfo",
"{",
"s",
".",
"TargetRevision",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetTargetRevision sets the TargetRevision field's value.
|
[
"SetTargetRevision",
"sets",
"the",
"TargetRevision",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L6865-L6868
|
2,191 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetAdditionalDeploymentStatusInfo
|
func (s *DeploymentInfo) SetAdditionalDeploymentStatusInfo(v string) *DeploymentInfo {
s.AdditionalDeploymentStatusInfo = &v
return s
}
|
go
|
func (s *DeploymentInfo) SetAdditionalDeploymentStatusInfo(v string) *DeploymentInfo {
s.AdditionalDeploymentStatusInfo = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"DeploymentInfo",
")",
"SetAdditionalDeploymentStatusInfo",
"(",
"v",
"string",
")",
"*",
"DeploymentInfo",
"{",
"s",
".",
"AdditionalDeploymentStatusInfo",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetAdditionalDeploymentStatusInfo sets the AdditionalDeploymentStatusInfo field's value.
|
[
"SetAdditionalDeploymentStatusInfo",
"sets",
"the",
"AdditionalDeploymentStatusInfo",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L7027-L7030
|
2,192 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetCreator
|
func (s *DeploymentInfo) SetCreator(v string) *DeploymentInfo {
s.Creator = &v
return s
}
|
go
|
func (s *DeploymentInfo) SetCreator(v string) *DeploymentInfo {
s.Creator = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"DeploymentInfo",
")",
"SetCreator",
"(",
"v",
"string",
")",
"*",
"DeploymentInfo",
"{",
"s",
".",
"Creator",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetCreator sets the Creator field's value.
|
[
"SetCreator",
"sets",
"the",
"Creator",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L7069-L7072
|
2,193 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetDeploymentOverview
|
func (s *DeploymentInfo) SetDeploymentOverview(v *DeploymentOverview) *DeploymentInfo {
s.DeploymentOverview = v
return s
}
|
go
|
func (s *DeploymentInfo) SetDeploymentOverview(v *DeploymentOverview) *DeploymentInfo {
s.DeploymentOverview = v
return s
}
|
[
"func",
"(",
"s",
"*",
"DeploymentInfo",
")",
"SetDeploymentOverview",
"(",
"v",
"*",
"DeploymentOverview",
")",
"*",
"DeploymentInfo",
"{",
"s",
".",
"DeploymentOverview",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetDeploymentOverview sets the DeploymentOverview field's value.
|
[
"SetDeploymentOverview",
"sets",
"the",
"DeploymentOverview",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L7093-L7096
|
2,194 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetDeploymentStatusMessages
|
func (s *DeploymentInfo) SetDeploymentStatusMessages(v []*string) *DeploymentInfo {
s.DeploymentStatusMessages = v
return s
}
|
go
|
func (s *DeploymentInfo) SetDeploymentStatusMessages(v []*string) *DeploymentInfo {
s.DeploymentStatusMessages = v
return s
}
|
[
"func",
"(",
"s",
"*",
"DeploymentInfo",
")",
"SetDeploymentStatusMessages",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"DeploymentInfo",
"{",
"s",
".",
"DeploymentStatusMessages",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetDeploymentStatusMessages sets the DeploymentStatusMessages field's value.
|
[
"SetDeploymentStatusMessages",
"sets",
"the",
"DeploymentStatusMessages",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L7099-L7102
|
2,195 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetErrorInformation
|
func (s *DeploymentInfo) SetErrorInformation(v *ErrorInformation) *DeploymentInfo {
s.ErrorInformation = v
return s
}
|
go
|
func (s *DeploymentInfo) SetErrorInformation(v *ErrorInformation) *DeploymentInfo {
s.ErrorInformation = v
return s
}
|
[
"func",
"(",
"s",
"*",
"DeploymentInfo",
")",
"SetErrorInformation",
"(",
"v",
"*",
"ErrorInformation",
")",
"*",
"DeploymentInfo",
"{",
"s",
".",
"ErrorInformation",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetErrorInformation sets the ErrorInformation field's value.
|
[
"SetErrorInformation",
"sets",
"the",
"ErrorInformation",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L7117-L7120
|
2,196 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetInstanceTerminationWaitTimeStarted
|
func (s *DeploymentInfo) SetInstanceTerminationWaitTimeStarted(v bool) *DeploymentInfo {
s.InstanceTerminationWaitTimeStarted = &v
return s
}
|
go
|
func (s *DeploymentInfo) SetInstanceTerminationWaitTimeStarted(v bool) *DeploymentInfo {
s.InstanceTerminationWaitTimeStarted = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"DeploymentInfo",
")",
"SetInstanceTerminationWaitTimeStarted",
"(",
"v",
"bool",
")",
"*",
"DeploymentInfo",
"{",
"s",
".",
"InstanceTerminationWaitTimeStarted",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetInstanceTerminationWaitTimeStarted sets the InstanceTerminationWaitTimeStarted field's value.
|
[
"SetInstanceTerminationWaitTimeStarted",
"sets",
"the",
"InstanceTerminationWaitTimeStarted",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L7135-L7138
|
2,197 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetPreviousRevision
|
func (s *DeploymentInfo) SetPreviousRevision(v *RevisionLocation) *DeploymentInfo {
s.PreviousRevision = v
return s
}
|
go
|
func (s *DeploymentInfo) SetPreviousRevision(v *RevisionLocation) *DeploymentInfo {
s.PreviousRevision = v
return s
}
|
[
"func",
"(",
"s",
"*",
"DeploymentInfo",
")",
"SetPreviousRevision",
"(",
"v",
"*",
"RevisionLocation",
")",
"*",
"DeploymentInfo",
"{",
"s",
".",
"PreviousRevision",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetPreviousRevision sets the PreviousRevision field's value.
|
[
"SetPreviousRevision",
"sets",
"the",
"PreviousRevision",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L7147-L7150
|
2,198 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetRollbackInfo
|
func (s *DeploymentInfo) SetRollbackInfo(v *RollbackInfo) *DeploymentInfo {
s.RollbackInfo = v
return s
}
|
go
|
func (s *DeploymentInfo) SetRollbackInfo(v *RollbackInfo) *DeploymentInfo {
s.RollbackInfo = v
return s
}
|
[
"func",
"(",
"s",
"*",
"DeploymentInfo",
")",
"SetRollbackInfo",
"(",
"v",
"*",
"RollbackInfo",
")",
"*",
"DeploymentInfo",
"{",
"s",
".",
"RollbackInfo",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetRollbackInfo sets the RollbackInfo field's value.
|
[
"SetRollbackInfo",
"sets",
"the",
"RollbackInfo",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L7159-L7162
|
2,199 |
aws/aws-sdk-go
|
service/codedeploy/api.go
|
SetReady
|
func (s *DeploymentOverview) SetReady(v int64) *DeploymentOverview {
s.Ready = &v
return s
}
|
go
|
func (s *DeploymentOverview) SetReady(v int64) *DeploymentOverview {
s.Ready = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"DeploymentOverview",
")",
"SetReady",
"(",
"v",
"int64",
")",
"*",
"DeploymentOverview",
"{",
"s",
".",
"Ready",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetReady sets the Ready field's value.
|
[
"SetReady",
"sets",
"the",
"Ready",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/api.go#L7242-L7245
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.