id
int32
0
167k
repo
stringlengths
5
54
path
stringlengths
4
155
func_name
stringlengths
1
118
original_string
stringlengths
52
85.5k
language
stringclasses
1 value
code
stringlengths
52
85.5k
code_tokens
sequencelengths
21
1.41k
docstring
stringlengths
6
2.61k
docstring_tokens
sequencelengths
3
215
sha
stringlengths
40
40
url
stringlengths
85
252
166,700
aws/aws-sdk-go
service/kinesis/api.go
SetConsumers
func (s *ListStreamConsumersOutput) SetConsumers(v []*Consumer) *ListStreamConsumersOutput { s.Consumers = v return s }
go
func (s *ListStreamConsumersOutput) SetConsumers(v []*Consumer) *ListStreamConsumersOutput { s.Consumers = v return s }
[ "func", "(", "s", "*", "ListStreamConsumersOutput", ")", "SetConsumers", "(", "v", "[", "]", "*", "Consumer", ")", "*", "ListStreamConsumersOutput", "{", "s", ".", "Consumers", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetConsumers sets the Consumers field's value.
[ "SetConsumers", "sets", "the", "Consumers", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesis/api.go#L5458-L5461
166,701
aws/aws-sdk-go
service/kinesis/api.go
SetExclusiveStartStreamName
func (s *ListStreamsInput) SetExclusiveStartStreamName(v string) *ListStreamsInput { s.ExclusiveStartStreamName = &v return s }
go
func (s *ListStreamsInput) SetExclusiveStartStreamName(v string) *ListStreamsInput { s.ExclusiveStartStreamName = &v return s }
[ "func", "(", "s", "*", "ListStreamsInput", ")", "SetExclusiveStartStreamName", "(", "v", "string", ")", "*", "ListStreamsInput", "{", "s", ".", "ExclusiveStartStreamName", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetExclusiveStartStreamName sets the ExclusiveStartStreamName field's value.
[ "SetExclusiveStartStreamName", "sets", "the", "ExclusiveStartStreamName", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesis/api.go#L5507-L5510
166,702
aws/aws-sdk-go
service/kinesis/api.go
SetHasMoreStreams
func (s *ListStreamsOutput) SetHasMoreStreams(v bool) *ListStreamsOutput { s.HasMoreStreams = &v return s }
go
func (s *ListStreamsOutput) SetHasMoreStreams(v bool) *ListStreamsOutput { s.HasMoreStreams = &v return s }
[ "func", "(", "s", "*", "ListStreamsOutput", ")", "SetHasMoreStreams", "(", "v", "bool", ")", "*", "ListStreamsOutput", "{", "s", ".", "HasMoreStreams", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetHasMoreStreams sets the HasMoreStreams field's value.
[ "SetHasMoreStreams", "sets", "the", "HasMoreStreams", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesis/api.go#L5545-L5548
166,703
aws/aws-sdk-go
service/kinesis/api.go
SetStreamNames
func (s *ListStreamsOutput) SetStreamNames(v []*string) *ListStreamsOutput { s.StreamNames = v return s }
go
func (s *ListStreamsOutput) SetStreamNames(v []*string) *ListStreamsOutput { s.StreamNames = v return s }
[ "func", "(", "s", "*", "ListStreamsOutput", ")", "SetStreamNames", "(", "v", "[", "]", "*", "string", ")", "*", "ListStreamsOutput", "{", "s", ".", "StreamNames", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetStreamNames sets the StreamNames field's value.
[ "SetStreamNames", "sets", "the", "StreamNames", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesis/api.go#L5551-L5554
166,704
aws/aws-sdk-go
service/kinesis/api.go
SetAdjacentShardToMerge
func (s *MergeShardsInput) SetAdjacentShardToMerge(v string) *MergeShardsInput { s.AdjacentShardToMerge = &v return s }
go
func (s *MergeShardsInput) SetAdjacentShardToMerge(v string) *MergeShardsInput { s.AdjacentShardToMerge = &v return s }
[ "func", "(", "s", "*", "MergeShardsInput", ")", "SetAdjacentShardToMerge", "(", "v", "string", ")", "*", "MergeShardsInput", "{", "s", ".", "AdjacentShardToMerge", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetAdjacentShardToMerge sets the AdjacentShardToMerge field's value.
[ "SetAdjacentShardToMerge", "sets", "the", "AdjacentShardToMerge", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesis/api.go#L5723-L5726
166,705
aws/aws-sdk-go
service/kinesis/api.go
SetShardToMerge
func (s *MergeShardsInput) SetShardToMerge(v string) *MergeShardsInput { s.ShardToMerge = &v return s }
go
func (s *MergeShardsInput) SetShardToMerge(v string) *MergeShardsInput { s.ShardToMerge = &v return s }
[ "func", "(", "s", "*", "MergeShardsInput", ")", "SetShardToMerge", "(", "v", "string", ")", "*", "MergeShardsInput", "{", "s", ".", "ShardToMerge", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetShardToMerge sets the ShardToMerge field's value.
[ "SetShardToMerge", "sets", "the", "ShardToMerge", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesis/api.go#L5729-L5732
166,706
aws/aws-sdk-go
service/kinesis/api.go
SetSequenceNumberForOrdering
func (s *PutRecordInput) SetSequenceNumberForOrdering(v string) *PutRecordInput { s.SequenceNumberForOrdering = &v return s }
go
func (s *PutRecordInput) SetSequenceNumberForOrdering(v string) *PutRecordInput { s.SequenceNumberForOrdering = &v return s }
[ "func", "(", "s", "*", "PutRecordInput", ")", "SetSequenceNumberForOrdering", "(", "v", "string", ")", "*", "PutRecordInput", "{", "s", ".", "SequenceNumberForOrdering", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetSequenceNumberForOrdering sets the SequenceNumberForOrdering field's value.
[ "SetSequenceNumberForOrdering", "sets", "the", "SequenceNumberForOrdering", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesis/api.go#L5851-L5854
166,707
aws/aws-sdk-go
service/kinesis/api.go
SetFailedRecordCount
func (s *PutRecordsOutput) SetFailedRecordCount(v int64) *PutRecordsOutput { s.FailedRecordCount = &v return s }
go
func (s *PutRecordsOutput) SetFailedRecordCount(v int64) *PutRecordsOutput { s.FailedRecordCount = &v return s }
[ "func", "(", "s", "*", "PutRecordsOutput", ")", "SetFailedRecordCount", "(", "v", "int64", ")", "*", "PutRecordsOutput", "{", "s", ".", "FailedRecordCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetFailedRecordCount sets the FailedRecordCount field's value.
[ "SetFailedRecordCount", "sets", "the", "FailedRecordCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesis/api.go#L6029-L6032
166,708
aws/aws-sdk-go
service/kinesis/api.go
SetApproximateArrivalTimestamp
func (s *Record) SetApproximateArrivalTimestamp(v time.Time) *Record { s.ApproximateArrivalTimestamp = &v return s }
go
func (s *Record) SetApproximateArrivalTimestamp(v time.Time) *Record { s.ApproximateArrivalTimestamp = &v return s }
[ "func", "(", "s", "*", "Record", ")", "SetApproximateArrivalTimestamp", "(", "v", "time", ".", "Time", ")", "*", "Record", "{", "s", ".", "ApproximateArrivalTimestamp", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetApproximateArrivalTimestamp sets the ApproximateArrivalTimestamp field's value.
[ "SetApproximateArrivalTimestamp", "sets", "the", "ApproximateArrivalTimestamp", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesis/api.go#L6226-L6229
166,709
aws/aws-sdk-go
service/kinesis/api.go
SetConsumer
func (s *RegisterStreamConsumerOutput) SetConsumer(v *Consumer) *RegisterStreamConsumerOutput { s.Consumer = v return s }
go
func (s *RegisterStreamConsumerOutput) SetConsumer(v *Consumer) *RegisterStreamConsumerOutput { s.Consumer = v return s }
[ "func", "(", "s", "*", "RegisterStreamConsumerOutput", ")", "SetConsumer", "(", "v", "*", "Consumer", ")", "*", "RegisterStreamConsumerOutput", "{", "s", ".", "Consumer", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetConsumer sets the Consumer field's value.
[ "SetConsumer", "sets", "the", "Consumer", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesis/api.go#L6338-L6341
166,710
aws/aws-sdk-go
service/kinesis/api.go
UnmarshalEvent
func (s *ResourceNotFoundException) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error { if err := payloadUnmarshaler.UnmarshalPayload( bytes.NewReader(msg.Payload), s, ); err != nil { return err } return nil }
go
func (s *ResourceNotFoundException) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error { if err := payloadUnmarshaler.UnmarshalPayload( bytes.NewReader(msg.Payload), s, ); err != nil { return err } return nil }
[ "func", "(", "s", "*", "ResourceNotFoundException", ")", "UnmarshalEvent", "(", "payloadUnmarshaler", "protocol", ".", "PayloadUnmarshaler", ",", "msg", "eventstream", ".", "Message", ",", ")", "error", "{", "if", "err", ":=", "payloadUnmarshaler", ".", "UnmarshalPayload", "(", "bytes", ".", "NewReader", "(", "msg", ".", "Payload", ")", ",", "s", ",", ")", ";", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n", "return", "nil", "\n", "}" ]
// UnmarshalEvent unmarshals the EventStream Message into the ResourceNotFoundException value. // This method is only used internally within the SDK's EventStream handling.
[ "UnmarshalEvent", "unmarshals", "the", "EventStream", "Message", "into", "the", "ResourceNotFoundException", "value", ".", "This", "method", "is", "only", "used", "internally", "within", "the", "SDK", "s", "EventStream", "handling", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesis/api.go#L6495-L6505
166,711
aws/aws-sdk-go
service/kinesis/api.go
SetAdjacentParentShardId
func (s *Shard) SetAdjacentParentShardId(v string) *Shard { s.AdjacentParentShardId = &v return s }
go
func (s *Shard) SetAdjacentParentShardId(v string) *Shard { s.AdjacentParentShardId = &v return s }
[ "func", "(", "s", "*", "Shard", ")", "SetAdjacentParentShardId", "(", "v", "string", ")", "*", "Shard", "{", "s", ".", "AdjacentParentShardId", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetAdjacentParentShardId sets the AdjacentParentShardId field's value.
[ "SetAdjacentParentShardId", "sets", "the", "AdjacentParentShardId", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesis/api.go#L6600-L6603
166,712
aws/aws-sdk-go
service/kinesis/api.go
SetHashKeyRange
func (s *Shard) SetHashKeyRange(v *HashKeyRange) *Shard { s.HashKeyRange = v return s }
go
func (s *Shard) SetHashKeyRange(v *HashKeyRange) *Shard { s.HashKeyRange = v return s }
[ "func", "(", "s", "*", "Shard", ")", "SetHashKeyRange", "(", "v", "*", "HashKeyRange", ")", "*", "Shard", "{", "s", ".", "HashKeyRange", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetHashKeyRange sets the HashKeyRange field's value.
[ "SetHashKeyRange", "sets", "the", "HashKeyRange", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesis/api.go#L6606-L6609
166,713
aws/aws-sdk-go
service/kinesis/api.go
SetNewStartingHashKey
func (s *SplitShardInput) SetNewStartingHashKey(v string) *SplitShardInput { s.NewStartingHashKey = &v return s }
go
func (s *SplitShardInput) SetNewStartingHashKey(v string) *SplitShardInput { s.NewStartingHashKey = &v return s }
[ "func", "(", "s", "*", "SplitShardInput", ")", "SetNewStartingHashKey", "(", "v", "string", ")", "*", "SplitShardInput", "{", "s", ".", "NewStartingHashKey", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetNewStartingHashKey sets the NewStartingHashKey field's value.
[ "SetNewStartingHashKey", "sets", "the", "NewStartingHashKey", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesis/api.go#L6691-L6694
166,714
aws/aws-sdk-go
service/kinesis/api.go
SetShardToSplit
func (s *SplitShardInput) SetShardToSplit(v string) *SplitShardInput { s.ShardToSplit = &v return s }
go
func (s *SplitShardInput) SetShardToSplit(v string) *SplitShardInput { s.ShardToSplit = &v return s }
[ "func", "(", "s", "*", "SplitShardInput", ")", "SetShardToSplit", "(", "v", "string", ")", "*", "SplitShardInput", "{", "s", ".", "ShardToSplit", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetShardToSplit sets the ShardToSplit field's value.
[ "SetShardToSplit", "sets", "the", "ShardToSplit", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesis/api.go#L6697-L6700
166,715
aws/aws-sdk-go
service/kinesis/api.go
SetHasMoreShards
func (s *StreamDescription) SetHasMoreShards(v bool) *StreamDescription { s.HasMoreShards = &v return s }
go
func (s *StreamDescription) SetHasMoreShards(v bool) *StreamDescription { s.HasMoreShards = &v return s }
[ "func", "(", "s", "*", "StreamDescription", ")", "SetHasMoreShards", "(", "v", "bool", ")", "*", "StreamDescription", "{", "s", ".", "HasMoreShards", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetHasMoreShards sets the HasMoreShards field's value.
[ "SetHasMoreShards", "sets", "the", "HasMoreShards", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesis/api.go#L7082-L7085
166,716
aws/aws-sdk-go
service/kinesis/api.go
SetConsumerCount
func (s *StreamDescriptionSummary) SetConsumerCount(v int64) *StreamDescriptionSummary { s.ConsumerCount = &v return s }
go
func (s *StreamDescriptionSummary) SetConsumerCount(v int64) *StreamDescriptionSummary { s.ConsumerCount = &v return s }
[ "func", "(", "s", "*", "StreamDescriptionSummary", ")", "SetConsumerCount", "(", "v", "int64", ")", "*", "StreamDescriptionSummary", "{", "s", ".", "ConsumerCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetConsumerCount sets the ConsumerCount field's value.
[ "SetConsumerCount", "sets", "the", "ConsumerCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesis/api.go#L7221-L7224
166,717
aws/aws-sdk-go
service/kinesis/api.go
SetContinuationSequenceNumber
func (s *SubscribeToShardEvent) SetContinuationSequenceNumber(v string) *SubscribeToShardEvent { s.ContinuationSequenceNumber = &v return s }
go
func (s *SubscribeToShardEvent) SetContinuationSequenceNumber(v string) *SubscribeToShardEvent { s.ContinuationSequenceNumber = &v return s }
[ "func", "(", "s", "*", "SubscribeToShardEvent", ")", "SetContinuationSequenceNumber", "(", "v", "string", ")", "*", "SubscribeToShardEvent", "{", "s", ".", "ContinuationSequenceNumber", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetContinuationSequenceNumber sets the ContinuationSequenceNumber field's value.
[ "SetContinuationSequenceNumber", "sets", "the", "ContinuationSequenceNumber", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesis/api.go#L7313-L7316
166,718
aws/aws-sdk-go
service/kinesis/api.go
Err
func (es *SubscribeToShardEventStream) Err() error { if err := es.Reader.Err(); err != nil { return err } es.StreamCloser.Close() return nil }
go
func (es *SubscribeToShardEventStream) Err() error { if err := es.Reader.Err(); err != nil { return err } es.StreamCloser.Close() return nil }
[ "func", "(", "es", "*", "SubscribeToShardEventStream", ")", "Err", "(", ")", "error", "{", "if", "err", ":=", "es", ".", "Reader", ".", "Err", "(", ")", ";", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n", "es", ".", "StreamCloser", ".", "Close", "(", ")", "\n\n", "return", "nil", "\n", "}" ]
// Err returns any error that occurred while reading EventStream Events from // the service API's response. Returns nil if there were no errors.
[ "Err", "returns", "any", "error", "that", "occurred", "while", "reading", "EventStream", "Events", "from", "the", "service", "API", "s", "response", ".", "Returns", "nil", "if", "there", "were", "no", "errors", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesis/api.go#L7387-L7394
166,719
aws/aws-sdk-go
service/kinesis/api.go
SetCurrentShardCount
func (s *UpdateShardCountOutput) SetCurrentShardCount(v int64) *UpdateShardCountOutput { s.CurrentShardCount = &v return s }
go
func (s *UpdateShardCountOutput) SetCurrentShardCount(v int64) *UpdateShardCountOutput { s.CurrentShardCount = &v return s }
[ "func", "(", "s", "*", "UpdateShardCountOutput", ")", "SetCurrentShardCount", "(", "v", "int64", ")", "*", "UpdateShardCountOutput", "{", "s", ".", "CurrentShardCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetCurrentShardCount sets the CurrentShardCount field's value.
[ "SetCurrentShardCount", "sets", "the", "CurrentShardCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/kinesis/api.go#L7868-L7871
166,720
aws/aws-sdk-go
service/textract/api.go
SetBlockType
func (s *Block) SetBlockType(v string) *Block { s.BlockType = &v return s }
go
func (s *Block) SetBlockType(v string) *Block { s.BlockType = &v return s }
[ "func", "(", "s", "*", "Block", ")", "SetBlockType", "(", "v", "string", ")", "*", "Block", "{", "s", ".", "BlockType", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetBlockType sets the BlockType field's value.
[ "SetBlockType", "sets", "the", "BlockType", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/textract/api.go#L1045-L1048
166,721
aws/aws-sdk-go
service/textract/api.go
SetColumnIndex
func (s *Block) SetColumnIndex(v int64) *Block { s.ColumnIndex = &v return s }
go
func (s *Block) SetColumnIndex(v int64) *Block { s.ColumnIndex = &v return s }
[ "func", "(", "s", "*", "Block", ")", "SetColumnIndex", "(", "v", "int64", ")", "*", "Block", "{", "s", ".", "ColumnIndex", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetColumnIndex sets the ColumnIndex field's value.
[ "SetColumnIndex", "sets", "the", "ColumnIndex", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/textract/api.go#L1051-L1054
166,722
aws/aws-sdk-go
service/textract/api.go
SetColumnSpan
func (s *Block) SetColumnSpan(v int64) *Block { s.ColumnSpan = &v return s }
go
func (s *Block) SetColumnSpan(v int64) *Block { s.ColumnSpan = &v return s }
[ "func", "(", "s", "*", "Block", ")", "SetColumnSpan", "(", "v", "int64", ")", "*", "Block", "{", "s", ".", "ColumnSpan", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetColumnSpan sets the ColumnSpan field's value.
[ "SetColumnSpan", "sets", "the", "ColumnSpan", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/textract/api.go#L1057-L1060
166,723
aws/aws-sdk-go
service/textract/api.go
SetPage
func (s *Block) SetPage(v int64) *Block { s.Page = &v return s }
go
func (s *Block) SetPage(v int64) *Block { s.Page = &v return s }
[ "func", "(", "s", "*", "Block", ")", "SetPage", "(", "v", "int64", ")", "*", "Block", "{", "s", ".", "Page", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetPage sets the Page field's value.
[ "SetPage", "sets", "the", "Page", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/textract/api.go#L1087-L1090
166,724
aws/aws-sdk-go
service/textract/api.go
SetRowIndex
func (s *Block) SetRowIndex(v int64) *Block { s.RowIndex = &v return s }
go
func (s *Block) SetRowIndex(v int64) *Block { s.RowIndex = &v return s }
[ "func", "(", "s", "*", "Block", ")", "SetRowIndex", "(", "v", "int64", ")", "*", "Block", "{", "s", ".", "RowIndex", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetRowIndex sets the RowIndex field's value.
[ "SetRowIndex", "sets", "the", "RowIndex", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/textract/api.go#L1099-L1102
166,725
aws/aws-sdk-go
service/textract/api.go
SetRowSpan
func (s *Block) SetRowSpan(v int64) *Block { s.RowSpan = &v return s }
go
func (s *Block) SetRowSpan(v int64) *Block { s.RowSpan = &v return s }
[ "func", "(", "s", "*", "Block", ")", "SetRowSpan", "(", "v", "int64", ")", "*", "Block", "{", "s", ".", "RowSpan", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetRowSpan sets the RowSpan field's value.
[ "SetRowSpan", "sets", "the", "RowSpan", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/textract/api.go#L1105-L1108
166,726
aws/aws-sdk-go
service/textract/api.go
SetSelectionStatus
func (s *Block) SetSelectionStatus(v string) *Block { s.SelectionStatus = &v return s }
go
func (s *Block) SetSelectionStatus(v string) *Block { s.SelectionStatus = &v return s }
[ "func", "(", "s", "*", "Block", ")", "SetSelectionStatus", "(", "v", "string", ")", "*", "Block", "{", "s", ".", "SelectionStatus", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetSelectionStatus sets the SelectionStatus field's value.
[ "SetSelectionStatus", "sets", "the", "SelectionStatus", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/textract/api.go#L1111-L1114
166,727
aws/aws-sdk-go
private/model/api/service_name.go
ServiceName
func ServiceName(a *API) string { if oldName, ok := oldServiceNames[a.PackageName()]; ok { return oldName } return ServiceID(a) }
go
func ServiceName(a *API) string { if oldName, ok := oldServiceNames[a.PackageName()]; ok { return oldName } return ServiceID(a) }
[ "func", "ServiceName", "(", "a", "*", "API", ")", "string", "{", "if", "oldName", ",", "ok", ":=", "oldServiceNames", "[", "a", ".", "PackageName", "(", ")", "]", ";", "ok", "{", "return", "oldName", "\n", "}", "\n\n", "return", "ServiceID", "(", "a", ")", "\n", "}" ]
// ServiceName returns the SDK's naming of the service. Has // backwards compatibility built in for services that were // incorrectly named with the service's endpoint prefix.
[ "ServiceName", "returns", "the", "SDK", "s", "naming", "of", "the", "service", ".", "Has", "backwards", "compatibility", "built", "in", "for", "services", "that", "were", "incorrectly", "named", "with", "the", "service", "s", "endpoint", "prefix", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/service_name.go#L8-L14
166,728
aws/aws-sdk-go
aws/session/shared_config.go
loadSharedConfig
func loadSharedConfig(profile string, filenames []string) (sharedConfig, error) { if len(profile) == 0 { profile = DefaultSharedConfigProfile } files, err := loadSharedConfigIniFiles(filenames) if err != nil { return sharedConfig{}, err } cfg := sharedConfig{} if err = cfg.setFromIniFiles(profile, files); err != nil { return sharedConfig{}, err } if len(cfg.AssumeRole.SourceProfile) > 0 { if err := cfg.setAssumeRoleSource(profile, files); err != nil { return sharedConfig{}, err } } return cfg, nil }
go
func loadSharedConfig(profile string, filenames []string) (sharedConfig, error) { if len(profile) == 0 { profile = DefaultSharedConfigProfile } files, err := loadSharedConfigIniFiles(filenames) if err != nil { return sharedConfig{}, err } cfg := sharedConfig{} if err = cfg.setFromIniFiles(profile, files); err != nil { return sharedConfig{}, err } if len(cfg.AssumeRole.SourceProfile) > 0 { if err := cfg.setAssumeRoleSource(profile, files); err != nil { return sharedConfig{}, err } } return cfg, nil }
[ "func", "loadSharedConfig", "(", "profile", "string", ",", "filenames", "[", "]", "string", ")", "(", "sharedConfig", ",", "error", ")", "{", "if", "len", "(", "profile", ")", "==", "0", "{", "profile", "=", "DefaultSharedConfigProfile", "\n", "}", "\n\n", "files", ",", "err", ":=", "loadSharedConfigIniFiles", "(", "filenames", ")", "\n", "if", "err", "!=", "nil", "{", "return", "sharedConfig", "{", "}", ",", "err", "\n", "}", "\n\n", "cfg", ":=", "sharedConfig", "{", "}", "\n", "if", "err", "=", "cfg", ".", "setFromIniFiles", "(", "profile", ",", "files", ")", ";", "err", "!=", "nil", "{", "return", "sharedConfig", "{", "}", ",", "err", "\n", "}", "\n\n", "if", "len", "(", "cfg", ".", "AssumeRole", ".", "SourceProfile", ")", ">", "0", "{", "if", "err", ":=", "cfg", ".", "setAssumeRoleSource", "(", "profile", ",", "files", ")", ";", "err", "!=", "nil", "{", "return", "sharedConfig", "{", "}", ",", "err", "\n", "}", "\n", "}", "\n\n", "return", "cfg", ",", "nil", "\n", "}" ]
// loadSharedConfig retrieves the configuration from the list of files // using the profile provided. The order the files are listed will determine // precedence. Values in subsequent files will overwrite values defined in // earlier files. // // For example, given two files A and B. Both define credentials. If the order // of the files are A then B, B's credential values will be used instead of A's. // // See sharedConfig.setFromFile for information how the config files // will be loaded.
[ "loadSharedConfig", "retrieves", "the", "configuration", "from", "the", "list", "of", "files", "using", "the", "profile", "provided", ".", "The", "order", "the", "files", "are", "listed", "will", "determine", "precedence", ".", "Values", "in", "subsequent", "files", "will", "overwrite", "values", "defined", "in", "earlier", "files", ".", "For", "example", "given", "two", "files", "A", "and", "B", ".", "Both", "define", "credentials", ".", "If", "the", "order", "of", "the", "files", "are", "A", "then", "B", "B", "s", "credential", "values", "will", "be", "used", "instead", "of", "A", "s", ".", "See", "sharedConfig", ".", "setFromFile", "for", "information", "how", "the", "config", "files", "will", "be", "loaded", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/session/shared_config.go#L96-L118
166,729
aws/aws-sdk-go
aws/session/shared_config.go
setFromIniFile
func (cfg *sharedConfig) setFromIniFile(profile string, file sharedConfigFile) error { section, ok := file.IniData.GetSection(profile) if !ok { // Fallback to to alternate profile name: profile <name> section, ok = file.IniData.GetSection(fmt.Sprintf("profile %s", profile)) if !ok { return SharedConfigProfileNotExistsError{Profile: profile, Err: nil} } } // Shared Credentials akid := section.String(accessKeyIDKey) secret := section.String(secretAccessKey) if len(akid) > 0 && len(secret) > 0 { cfg.Creds = credentials.Value{ AccessKeyID: akid, SecretAccessKey: secret, SessionToken: section.String(sessionTokenKey), ProviderName: fmt.Sprintf("SharedConfigCredentials: %s", file.Filename), } } // Assume Role roleArn := section.String(roleArnKey) srcProfile := section.String(sourceProfileKey) credentialSource := section.String(credentialSourceKey) hasSource := len(srcProfile) > 0 || len(credentialSource) > 0 if len(roleArn) > 0 && hasSource { cfg.AssumeRole = assumeRoleConfig{ RoleARN: roleArn, SourceProfile: srcProfile, CredentialSource: credentialSource, ExternalID: section.String(externalIDKey), MFASerial: section.String(mfaSerialKey), RoleSessionName: section.String(roleSessionNameKey), } } // `credential_process` if credProc := section.String(credentialProcessKey); len(credProc) > 0 { cfg.CredentialProcess = credProc } // Region if v := section.String(regionKey); len(v) > 0 { cfg.Region = v } // Endpoint discovery if section.Has(enableEndpointDiscoveryKey) { v := section.Bool(enableEndpointDiscoveryKey) cfg.EnableEndpointDiscovery = &v } return nil }
go
func (cfg *sharedConfig) setFromIniFile(profile string, file sharedConfigFile) error { section, ok := file.IniData.GetSection(profile) if !ok { // Fallback to to alternate profile name: profile <name> section, ok = file.IniData.GetSection(fmt.Sprintf("profile %s", profile)) if !ok { return SharedConfigProfileNotExistsError{Profile: profile, Err: nil} } } // Shared Credentials akid := section.String(accessKeyIDKey) secret := section.String(secretAccessKey) if len(akid) > 0 && len(secret) > 0 { cfg.Creds = credentials.Value{ AccessKeyID: akid, SecretAccessKey: secret, SessionToken: section.String(sessionTokenKey), ProviderName: fmt.Sprintf("SharedConfigCredentials: %s", file.Filename), } } // Assume Role roleArn := section.String(roleArnKey) srcProfile := section.String(sourceProfileKey) credentialSource := section.String(credentialSourceKey) hasSource := len(srcProfile) > 0 || len(credentialSource) > 0 if len(roleArn) > 0 && hasSource { cfg.AssumeRole = assumeRoleConfig{ RoleARN: roleArn, SourceProfile: srcProfile, CredentialSource: credentialSource, ExternalID: section.String(externalIDKey), MFASerial: section.String(mfaSerialKey), RoleSessionName: section.String(roleSessionNameKey), } } // `credential_process` if credProc := section.String(credentialProcessKey); len(credProc) > 0 { cfg.CredentialProcess = credProc } // Region if v := section.String(regionKey); len(v) > 0 { cfg.Region = v } // Endpoint discovery if section.Has(enableEndpointDiscoveryKey) { v := section.Bool(enableEndpointDiscoveryKey) cfg.EnableEndpointDiscovery = &v } return nil }
[ "func", "(", "cfg", "*", "sharedConfig", ")", "setFromIniFile", "(", "profile", "string", ",", "file", "sharedConfigFile", ")", "error", "{", "section", ",", "ok", ":=", "file", ".", "IniData", ".", "GetSection", "(", "profile", ")", "\n", "if", "!", "ok", "{", "// Fallback to to alternate profile name: profile <name>", "section", ",", "ok", "=", "file", ".", "IniData", ".", "GetSection", "(", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "profile", ")", ")", "\n", "if", "!", "ok", "{", "return", "SharedConfigProfileNotExistsError", "{", "Profile", ":", "profile", ",", "Err", ":", "nil", "}", "\n", "}", "\n", "}", "\n\n", "// Shared Credentials", "akid", ":=", "section", ".", "String", "(", "accessKeyIDKey", ")", "\n", "secret", ":=", "section", ".", "String", "(", "secretAccessKey", ")", "\n", "if", "len", "(", "akid", ")", ">", "0", "&&", "len", "(", "secret", ")", ">", "0", "{", "cfg", ".", "Creds", "=", "credentials", ".", "Value", "{", "AccessKeyID", ":", "akid", ",", "SecretAccessKey", ":", "secret", ",", "SessionToken", ":", "section", ".", "String", "(", "sessionTokenKey", ")", ",", "ProviderName", ":", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "file", ".", "Filename", ")", ",", "}", "\n", "}", "\n\n", "// Assume Role", "roleArn", ":=", "section", ".", "String", "(", "roleArnKey", ")", "\n", "srcProfile", ":=", "section", ".", "String", "(", "sourceProfileKey", ")", "\n", "credentialSource", ":=", "section", ".", "String", "(", "credentialSourceKey", ")", "\n", "hasSource", ":=", "len", "(", "srcProfile", ")", ">", "0", "||", "len", "(", "credentialSource", ")", ">", "0", "\n", "if", "len", "(", "roleArn", ")", ">", "0", "&&", "hasSource", "{", "cfg", ".", "AssumeRole", "=", "assumeRoleConfig", "{", "RoleARN", ":", "roleArn", ",", "SourceProfile", ":", "srcProfile", ",", "CredentialSource", ":", "credentialSource", ",", "ExternalID", ":", "section", ".", "String", "(", "externalIDKey", ")", ",", "MFASerial", ":", "section", ".", "String", "(", "mfaSerialKey", ")", ",", "RoleSessionName", ":", "section", ".", "String", "(", "roleSessionNameKey", ")", ",", "}", "\n", "}", "\n\n", "// `credential_process`", "if", "credProc", ":=", "section", ".", "String", "(", "credentialProcessKey", ")", ";", "len", "(", "credProc", ")", ">", "0", "{", "cfg", ".", "CredentialProcess", "=", "credProc", "\n", "}", "\n\n", "// Region", "if", "v", ":=", "section", ".", "String", "(", "regionKey", ")", ";", "len", "(", "v", ")", ">", "0", "{", "cfg", ".", "Region", "=", "v", "\n", "}", "\n\n", "// Endpoint discovery", "if", "section", ".", "Has", "(", "enableEndpointDiscoveryKey", ")", "{", "v", ":=", "section", ".", "Bool", "(", "enableEndpointDiscoveryKey", ")", "\n", "cfg", ".", "EnableEndpointDiscovery", "=", "&", "v", "\n", "}", "\n\n", "return", "nil", "\n", "}" ]
// setFromFile loads the configuration from the file using // the profile provided. A sharedConfig pointer type value is used so that // multiple config file loadings can be chained. // // Only loads complete logically grouped values, and will not set fields in cfg // for incomplete grouped values in the config. Such as credentials. For example // if a config file only includes aws_access_key_id but no aws_secret_access_key // the aws_access_key_id will be ignored.
[ "setFromFile", "loads", "the", "configuration", "from", "the", "file", "using", "the", "profile", "provided", ".", "A", "sharedConfig", "pointer", "type", "value", "is", "used", "so", "that", "multiple", "config", "file", "loadings", "can", "be", "chained", ".", "Only", "loads", "complete", "logically", "grouped", "values", "and", "will", "not", "set", "fields", "in", "cfg", "for", "incomplete", "grouped", "values", "in", "the", "config", ".", "Such", "as", "credentials", ".", "For", "example", "if", "a", "config", "file", "only", "includes", "aws_access_key_id", "but", "no", "aws_secret_access_key", "the", "aws_access_key_id", "will", "be", "ignored", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/session/shared_config.go#L193-L248
166,730
aws/aws-sdk-go
service/s3/s3crypto/pkcs7_padder.go
Pad
func (padder pkcs7Padder) Pad(buf []byte, n int) ([]byte, error) { if padder.blockSize < 1 || padder.blockSize > pkcs7MaxPaddingSize { return nil, awserr.New("InvalidBlockSize", "block size must be between 1 and 255", nil) } size := padder.blockSize - (n % padder.blockSize) pad := bytes.Repeat([]byte{byte(size)}, size) buf = append(buf, pad...) return buf, nil }
go
func (padder pkcs7Padder) Pad(buf []byte, n int) ([]byte, error) { if padder.blockSize < 1 || padder.blockSize > pkcs7MaxPaddingSize { return nil, awserr.New("InvalidBlockSize", "block size must be between 1 and 255", nil) } size := padder.blockSize - (n % padder.blockSize) pad := bytes.Repeat([]byte{byte(size)}, size) buf = append(buf, pad...) return buf, nil }
[ "func", "(", "padder", "pkcs7Padder", ")", "Pad", "(", "buf", "[", "]", "byte", ",", "n", "int", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "if", "padder", ".", "blockSize", "<", "1", "||", "padder", ".", "blockSize", ">", "pkcs7MaxPaddingSize", "{", "return", "nil", ",", "awserr", ".", "New", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ")", "\n", "}", "\n", "size", ":=", "padder", ".", "blockSize", "-", "(", "n", "%", "padder", ".", "blockSize", ")", "\n", "pad", ":=", "bytes", ".", "Repeat", "(", "[", "]", "byte", "{", "byte", "(", "size", ")", "}", ",", "size", ")", "\n", "buf", "=", "append", "(", "buf", ",", "pad", "...", ")", "\n", "return", "buf", ",", "nil", "\n", "}" ]
// Pad will pad the data relative to how many bytes have been read. // Pad follows the PKCS7 standard.
[ "Pad", "will", "pad", "the", "data", "relative", "to", "how", "many", "bytes", "have", "been", "read", ".", "Pad", "follows", "the", "PKCS7", "standard", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3crypto/pkcs7_padder.go#L33-L41
166,731
aws/aws-sdk-go
service/s3/s3crypto/pkcs7_padder.go
Unpad
func (padder pkcs7Padder) Unpad(buf []byte) ([]byte, error) { if len(buf) == 0 { return nil, errPKCS7Padding } // Here be dragons. We're attempting to check the padding in constant // time. The only piece of information here which is public is len(buf). // This code is modeled loosely after tls1_cbc_remove_padding from // OpenSSL. padLen := buf[len(buf)-1] toCheck := pkcs7MaxPaddingSize good := 1 if toCheck > len(buf) { toCheck = len(buf) } for i := 0; i < toCheck; i++ { b := buf[len(buf)-1-i] outOfRange := subtle.ConstantTimeLessOrEq(int(padLen), i) equal := subtle.ConstantTimeByteEq(padLen, b) good &= subtle.ConstantTimeSelect(outOfRange, 1, equal) } good &= subtle.ConstantTimeLessOrEq(1, int(padLen)) good &= subtle.ConstantTimeLessOrEq(int(padLen), len(buf)) if good != 1 { return nil, errPKCS7Padding } return buf[:len(buf)-int(padLen)], nil }
go
func (padder pkcs7Padder) Unpad(buf []byte) ([]byte, error) { if len(buf) == 0 { return nil, errPKCS7Padding } // Here be dragons. We're attempting to check the padding in constant // time. The only piece of information here which is public is len(buf). // This code is modeled loosely after tls1_cbc_remove_padding from // OpenSSL. padLen := buf[len(buf)-1] toCheck := pkcs7MaxPaddingSize good := 1 if toCheck > len(buf) { toCheck = len(buf) } for i := 0; i < toCheck; i++ { b := buf[len(buf)-1-i] outOfRange := subtle.ConstantTimeLessOrEq(int(padLen), i) equal := subtle.ConstantTimeByteEq(padLen, b) good &= subtle.ConstantTimeSelect(outOfRange, 1, equal) } good &= subtle.ConstantTimeLessOrEq(1, int(padLen)) good &= subtle.ConstantTimeLessOrEq(int(padLen), len(buf)) if good != 1 { return nil, errPKCS7Padding } return buf[:len(buf)-int(padLen)], nil }
[ "func", "(", "padder", "pkcs7Padder", ")", "Unpad", "(", "buf", "[", "]", "byte", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "if", "len", "(", "buf", ")", "==", "0", "{", "return", "nil", ",", "errPKCS7Padding", "\n", "}", "\n\n", "// Here be dragons. We're attempting to check the padding in constant", "// time. The only piece of information here which is public is len(buf).", "// This code is modeled loosely after tls1_cbc_remove_padding from", "// OpenSSL.", "padLen", ":=", "buf", "[", "len", "(", "buf", ")", "-", "1", "]", "\n", "toCheck", ":=", "pkcs7MaxPaddingSize", "\n", "good", ":=", "1", "\n", "if", "toCheck", ">", "len", "(", "buf", ")", "{", "toCheck", "=", "len", "(", "buf", ")", "\n", "}", "\n", "for", "i", ":=", "0", ";", "i", "<", "toCheck", ";", "i", "++", "{", "b", ":=", "buf", "[", "len", "(", "buf", ")", "-", "1", "-", "i", "]", "\n\n", "outOfRange", ":=", "subtle", ".", "ConstantTimeLessOrEq", "(", "int", "(", "padLen", ")", ",", "i", ")", "\n", "equal", ":=", "subtle", ".", "ConstantTimeByteEq", "(", "padLen", ",", "b", ")", "\n", "good", "&=", "subtle", ".", "ConstantTimeSelect", "(", "outOfRange", ",", "1", ",", "equal", ")", "\n", "}", "\n\n", "good", "&=", "subtle", ".", "ConstantTimeLessOrEq", "(", "1", ",", "int", "(", "padLen", ")", ")", "\n", "good", "&=", "subtle", ".", "ConstantTimeLessOrEq", "(", "int", "(", "padLen", ")", ",", "len", "(", "buf", ")", ")", "\n\n", "if", "good", "!=", "1", "{", "return", "nil", ",", "errPKCS7Padding", "\n", "}", "\n\n", "return", "buf", "[", ":", "len", "(", "buf", ")", "-", "int", "(", "padLen", ")", "]", ",", "nil", "\n", "}" ]
// Unpad will unpad the correct amount of bytes based off // of the PKCS7 standard
[ "Unpad", "will", "unpad", "the", "correct", "amount", "of", "bytes", "based", "off", "of", "the", "PKCS7", "standard" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3crypto/pkcs7_padder.go#L45-L76
166,732
aws/aws-sdk-go
service/dynamodb/dynamodbattribute/decode.go
UnmarshalMap
func UnmarshalMap(m map[string]*dynamodb.AttributeValue, out interface{}) error { return NewDecoder().Decode(&dynamodb.AttributeValue{M: m}, out) }
go
func UnmarshalMap(m map[string]*dynamodb.AttributeValue, out interface{}) error { return NewDecoder().Decode(&dynamodb.AttributeValue{M: m}, out) }
[ "func", "UnmarshalMap", "(", "m", "map", "[", "string", "]", "*", "dynamodb", ".", "AttributeValue", ",", "out", "interface", "{", "}", ")", "error", "{", "return", "NewDecoder", "(", ")", ".", "Decode", "(", "&", "dynamodb", ".", "AttributeValue", "{", "M", ":", "m", "}", ",", "out", ")", "\n", "}" ]
// UnmarshalMap is an alias for Unmarshal which unmarshals from // a map of AttributeValues. // // The output value provided must be a non-nil pointer
[ "UnmarshalMap", "is", "an", "alias", "for", "Unmarshal", "which", "unmarshals", "from", "a", "map", "of", "AttributeValues", ".", "The", "output", "value", "provided", "must", "be", "a", "non", "-", "nil", "pointer" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/dynamodbattribute/decode.go#L86-L88
166,733
aws/aws-sdk-go
service/dynamodb/dynamodbattribute/decode.go
UnmarshalList
func UnmarshalList(l []*dynamodb.AttributeValue, out interface{}) error { return NewDecoder().Decode(&dynamodb.AttributeValue{L: l}, out) }
go
func UnmarshalList(l []*dynamodb.AttributeValue, out interface{}) error { return NewDecoder().Decode(&dynamodb.AttributeValue{L: l}, out) }
[ "func", "UnmarshalList", "(", "l", "[", "]", "*", "dynamodb", ".", "AttributeValue", ",", "out", "interface", "{", "}", ")", "error", "{", "return", "NewDecoder", "(", ")", ".", "Decode", "(", "&", "dynamodb", ".", "AttributeValue", "{", "L", ":", "l", "}", ",", "out", ")", "\n", "}" ]
// UnmarshalList is an alias for Unmarshal func which unmarshals // a slice of AttributeValues. // // The output value provided must be a non-nil pointer
[ "UnmarshalList", "is", "an", "alias", "for", "Unmarshal", "func", "which", "unmarshals", "a", "slice", "of", "AttributeValues", ".", "The", "output", "value", "provided", "must", "be", "a", "non", "-", "nil", "pointer" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/dynamodbattribute/decode.go#L94-L96
166,734
aws/aws-sdk-go
service/dynamodb/dynamodbattribute/decode.go
UnmarshalListOfMaps
func UnmarshalListOfMaps(l []map[string]*dynamodb.AttributeValue, out interface{}) error { items := make([]*dynamodb.AttributeValue, len(l)) for i, m := range l { items[i] = &dynamodb.AttributeValue{M: m} } return UnmarshalList(items, out) }
go
func UnmarshalListOfMaps(l []map[string]*dynamodb.AttributeValue, out interface{}) error { items := make([]*dynamodb.AttributeValue, len(l)) for i, m := range l { items[i] = &dynamodb.AttributeValue{M: m} } return UnmarshalList(items, out) }
[ "func", "UnmarshalListOfMaps", "(", "l", "[", "]", "map", "[", "string", "]", "*", "dynamodb", ".", "AttributeValue", ",", "out", "interface", "{", "}", ")", "error", "{", "items", ":=", "make", "(", "[", "]", "*", "dynamodb", ".", "AttributeValue", ",", "len", "(", "l", ")", ")", "\n", "for", "i", ",", "m", ":=", "range", "l", "{", "items", "[", "i", "]", "=", "&", "dynamodb", ".", "AttributeValue", "{", "M", ":", "m", "}", "\n", "}", "\n\n", "return", "UnmarshalList", "(", "items", ",", "out", ")", "\n", "}" ]
// UnmarshalListOfMaps is an alias for Unmarshal func which unmarshals a // slice of maps of attribute values. // // This is useful for when you need to unmarshal the Items from a DynamoDB // Query API call. // // The output value provided must be a non-nil pointer
[ "UnmarshalListOfMaps", "is", "an", "alias", "for", "Unmarshal", "func", "which", "unmarshals", "a", "slice", "of", "maps", "of", "attribute", "values", ".", "This", "is", "useful", "for", "when", "you", "need", "to", "unmarshal", "the", "Items", "from", "a", "DynamoDB", "Query", "API", "call", ".", "The", "output", "value", "provided", "must", "be", "a", "non", "-", "nil", "pointer" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/dynamodbattribute/decode.go#L105-L112
166,735
aws/aws-sdk-go
service/dynamodb/dynamodbattribute/decode.go
NewDecoder
func NewDecoder(opts ...func(*Decoder)) *Decoder { d := &Decoder{ MarshalOptions: MarshalOptions{ SupportJSONTags: true, }, } for _, o := range opts { o(d) } return d }
go
func NewDecoder(opts ...func(*Decoder)) *Decoder { d := &Decoder{ MarshalOptions: MarshalOptions{ SupportJSONTags: true, }, } for _, o := range opts { o(d) } return d }
[ "func", "NewDecoder", "(", "opts", "...", "func", "(", "*", "Decoder", ")", ")", "*", "Decoder", "{", "d", ":=", "&", "Decoder", "{", "MarshalOptions", ":", "MarshalOptions", "{", "SupportJSONTags", ":", "true", ",", "}", ",", "}", "\n", "for", "_", ",", "o", ":=", "range", "opts", "{", "o", "(", "d", ")", "\n", "}", "\n\n", "return", "d", "\n", "}" ]
// NewDecoder creates a new Decoder with default configuration. Use // the `opts` functional options to override the default configuration.
[ "NewDecoder", "creates", "a", "new", "Decoder", "with", "default", "configuration", ".", "Use", "the", "opts", "functional", "options", "to", "override", "the", "default", "configuration", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/dynamodbattribute/decode.go#L126-L137
166,736
aws/aws-sdk-go
service/dynamodb/dynamodbattribute/decode.go
Decode
func (d *Decoder) Decode(av *dynamodb.AttributeValue, out interface{}, opts ...func(*Decoder)) error { v := reflect.ValueOf(out) if v.Kind() != reflect.Ptr || v.IsNil() || !v.IsValid() { return &InvalidUnmarshalError{Type: reflect.TypeOf(out)} } return d.decode(av, v, tag{}) }
go
func (d *Decoder) Decode(av *dynamodb.AttributeValue, out interface{}, opts ...func(*Decoder)) error { v := reflect.ValueOf(out) if v.Kind() != reflect.Ptr || v.IsNil() || !v.IsValid() { return &InvalidUnmarshalError{Type: reflect.TypeOf(out)} } return d.decode(av, v, tag{}) }
[ "func", "(", "d", "*", "Decoder", ")", "Decode", "(", "av", "*", "dynamodb", ".", "AttributeValue", ",", "out", "interface", "{", "}", ",", "opts", "...", "func", "(", "*", "Decoder", ")", ")", "error", "{", "v", ":=", "reflect", ".", "ValueOf", "(", "out", ")", "\n", "if", "v", ".", "Kind", "(", ")", "!=", "reflect", ".", "Ptr", "||", "v", ".", "IsNil", "(", ")", "||", "!", "v", ".", "IsValid", "(", ")", "{", "return", "&", "InvalidUnmarshalError", "{", "Type", ":", "reflect", ".", "TypeOf", "(", "out", ")", "}", "\n", "}", "\n\n", "return", "d", ".", "decode", "(", "av", ",", "v", ",", "tag", "{", "}", ")", "\n", "}" ]
// Decode will unmarshal an AttributeValue into a Go value type. An error // will be return if the decoder is unable to unmarshal the AttributeValue // to the provide Go value type. // // The output value provided must be a non-nil pointer
[ "Decode", "will", "unmarshal", "an", "AttributeValue", "into", "a", "Go", "value", "type", ".", "An", "error", "will", "be", "return", "if", "the", "decoder", "is", "unable", "to", "unmarshal", "the", "AttributeValue", "to", "the", "provide", "Go", "value", "type", ".", "The", "output", "value", "provided", "must", "be", "a", "non", "-", "nil", "pointer" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/dynamodbattribute/decode.go#L144-L151
166,737
aws/aws-sdk-go
service/dynamodb/dynamodbattribute/decode.go
Error
func (e *UnmarshalError) Error() string { return fmt.Sprintf("%s: %s\ncaused by: %v", e.Code(), e.Message(), e.Err) }
go
func (e *UnmarshalError) Error() string { return fmt.Sprintf("%s: %s\ncaused by: %v", e.Code(), e.Message(), e.Err) }
[ "func", "(", "e", "*", "UnmarshalError", ")", "Error", "(", ")", "string", "{", "return", "fmt", ".", "Sprintf", "(", "\"", "\\n", "\"", ",", "e", ".", "Code", "(", ")", ",", "e", ".", "Message", "(", ")", ",", "e", ".", "Err", ")", "\n", "}" ]
// Error returns the string representation of the error. // satisfying the error interface.
[ "Error", "returns", "the", "string", "representation", "of", "the", "error", ".", "satisfying", "the", "error", "interface", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/dynamodbattribute/decode.go#L752-L754
166,738
aws/aws-sdk-go
service/dynamodb/dynamodbattribute/decode.go
Message
func (e *UnmarshalError) Message() string { return fmt.Sprintf("cannot unmarshal %q into %s.", e.Value, e.Type.String()) }
go
func (e *UnmarshalError) Message() string { return fmt.Sprintf("cannot unmarshal %q into %s.", e.Value, e.Type.String()) }
[ "func", "(", "e", "*", "UnmarshalError", ")", "Message", "(", ")", "string", "{", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "e", ".", "Value", ",", "e", ".", "Type", ".", "String", "(", ")", ")", "\n", "}" ]
// Message returns the detailed message of the error, satisfying // the awserr.Error interface.
[ "Message", "returns", "the", "detailed", "message", "of", "the", "error", "satisfying", "the", "awserr", ".", "Error", "interface", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/dynamodbattribute/decode.go#L769-L772
166,739
aws/aws-sdk-go
service/dax/api.go
SetActiveNodes
func (s *Cluster) SetActiveNodes(v int64) *Cluster { s.ActiveNodes = &v return s }
go
func (s *Cluster) SetActiveNodes(v int64) *Cluster { s.ActiveNodes = &v return s }
[ "func", "(", "s", "*", "Cluster", ")", "SetActiveNodes", "(", "v", "int64", ")", "*", "Cluster", "{", "s", ".", "ActiveNodes", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetActiveNodes sets the ActiveNodes field's value.
[ "SetActiveNodes", "sets", "the", "ActiveNodes", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dax/api.go#L2062-L2065
166,740
aws/aws-sdk-go
service/dax/api.go
SetClusterDiscoveryEndpoint
func (s *Cluster) SetClusterDiscoveryEndpoint(v *Endpoint) *Cluster { s.ClusterDiscoveryEndpoint = v return s }
go
func (s *Cluster) SetClusterDiscoveryEndpoint(v *Endpoint) *Cluster { s.ClusterDiscoveryEndpoint = v return s }
[ "func", "(", "s", "*", "Cluster", ")", "SetClusterDiscoveryEndpoint", "(", "v", "*", "Endpoint", ")", "*", "Cluster", "{", "s", ".", "ClusterDiscoveryEndpoint", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetClusterDiscoveryEndpoint sets the ClusterDiscoveryEndpoint field's value.
[ "SetClusterDiscoveryEndpoint", "sets", "the", "ClusterDiscoveryEndpoint", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dax/api.go#L2074-L2077
166,741
aws/aws-sdk-go
service/dax/api.go
SetTotalNodes
func (s *Cluster) SetTotalNodes(v int64) *Cluster { s.TotalNodes = &v return s }
go
func (s *Cluster) SetTotalNodes(v int64) *Cluster { s.TotalNodes = &v return s }
[ "func", "(", "s", "*", "Cluster", ")", "SetTotalNodes", "(", "v", "int64", ")", "*", "Cluster", "{", "s", ".", "TotalNodes", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetTotalNodes sets the TotalNodes field's value.
[ "SetTotalNodes", "sets", "the", "TotalNodes", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dax/api.go#L2158-L2161
166,742
aws/aws-sdk-go
service/dax/api.go
SetReplicationFactor
func (s *CreateClusterInput) SetReplicationFactor(v int64) *CreateClusterInput { s.ReplicationFactor = &v return s }
go
func (s *CreateClusterInput) SetReplicationFactor(v int64) *CreateClusterInput { s.ReplicationFactor = &v return s }
[ "func", "(", "s", "*", "CreateClusterInput", ")", "SetReplicationFactor", "(", "v", "int64", ")", "*", "CreateClusterInput", "{", "s", ".", "ReplicationFactor", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetReplicationFactor sets the ReplicationFactor field's value.
[ "SetReplicationFactor", "sets", "the", "ReplicationFactor", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dax/api.go#L2350-L2353
166,743
aws/aws-sdk-go
service/dax/api.go
SetClusterNames
func (s *DescribeClustersInput) SetClusterNames(v []*string) *DescribeClustersInput { s.ClusterNames = v return s }
go
func (s *DescribeClustersInput) SetClusterNames(v []*string) *DescribeClustersInput { s.ClusterNames = v return s }
[ "func", "(", "s", "*", "DescribeClustersInput", ")", "SetClusterNames", "(", "v", "[", "]", "*", "string", ")", "*", "DescribeClustersInput", "{", "s", ".", "ClusterNames", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetClusterNames sets the ClusterNames field's value.
[ "SetClusterNames", "sets", "the", "ClusterNames", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dax/api.go#L2866-L2869
166,744
aws/aws-sdk-go
service/dax/api.go
SetParameterGroupNames
func (s *DescribeParameterGroupsInput) SetParameterGroupNames(v []*string) *DescribeParameterGroupsInput { s.ParameterGroupNames = v return s }
go
func (s *DescribeParameterGroupsInput) SetParameterGroupNames(v []*string) *DescribeParameterGroupsInput { s.ParameterGroupNames = v return s }
[ "func", "(", "s", "*", "DescribeParameterGroupsInput", ")", "SetParameterGroupNames", "(", "v", "[", "]", "*", "string", ")", "*", "DescribeParameterGroupsInput", "{", "s", ".", "ParameterGroupNames", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetParameterGroupNames sets the ParameterGroupNames field's value.
[ "SetParameterGroupNames", "sets", "the", "ParameterGroupNames", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dax/api.go#L3147-L3150
166,745
aws/aws-sdk-go
service/dax/api.go
SetSubnetGroupNames
func (s *DescribeSubnetGroupsInput) SetSubnetGroupNames(v []*string) *DescribeSubnetGroupsInput { s.SubnetGroupNames = v return s }
go
func (s *DescribeSubnetGroupsInput) SetSubnetGroupNames(v []*string) *DescribeSubnetGroupsInput { s.SubnetGroupNames = v return s }
[ "func", "(", "s", "*", "DescribeSubnetGroupsInput", ")", "SetSubnetGroupNames", "(", "v", "[", "]", "*", "string", ")", "*", "DescribeSubnetGroupsInput", "{", "s", ".", "SubnetGroupNames", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSubnetGroupNames sets the SubnetGroupNames field's value.
[ "SetSubnetGroupNames", "sets", "the", "SubnetGroupNames", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dax/api.go#L3332-L3335
166,746
aws/aws-sdk-go
service/dax/api.go
SetSubnetGroups
func (s *DescribeSubnetGroupsOutput) SetSubnetGroups(v []*SubnetGroup) *DescribeSubnetGroupsOutput { s.SubnetGroups = v return s }
go
func (s *DescribeSubnetGroupsOutput) SetSubnetGroups(v []*SubnetGroup) *DescribeSubnetGroupsOutput { s.SubnetGroups = v return s }
[ "func", "(", "s", "*", "DescribeSubnetGroupsOutput", ")", "SetSubnetGroups", "(", "v", "[", "]", "*", "SubnetGroup", ")", "*", "DescribeSubnetGroupsOutput", "{", "s", ".", "SubnetGroups", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSubnetGroups sets the SubnetGroups field's value.
[ "SetSubnetGroups", "sets", "the", "SubnetGroups", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dax/api.go#L3365-L3368
166,747
aws/aws-sdk-go
service/dax/api.go
SetNodeCreateTime
func (s *Node) SetNodeCreateTime(v time.Time) *Node { s.NodeCreateTime = &v return s }
go
func (s *Node) SetNodeCreateTime(v time.Time) *Node { s.NodeCreateTime = &v return s }
[ "func", "(", "s", "*", "Node", ")", "SetNodeCreateTime", "(", "v", "time", ".", "Time", ")", "*", "Node", "{", "s", ".", "NodeCreateTime", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetNodeCreateTime sets the NodeCreateTime field's value.
[ "SetNodeCreateTime", "sets", "the", "NodeCreateTime", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dax/api.go#L3678-L3681
166,748
aws/aws-sdk-go
service/dax/api.go
SetNodeStatus
func (s *Node) SetNodeStatus(v string) *Node { s.NodeStatus = &v return s }
go
func (s *Node) SetNodeStatus(v string) *Node { s.NodeStatus = &v return s }
[ "func", "(", "s", "*", "Node", ")", "SetNodeStatus", "(", "v", "string", ")", "*", "Node", "{", "s", ".", "NodeStatus", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetNodeStatus sets the NodeStatus field's value.
[ "SetNodeStatus", "sets", "the", "NodeStatus", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dax/api.go#L3690-L3693
166,749
aws/aws-sdk-go
service/dax/api.go
SetTopicStatus
func (s *NotificationConfiguration) SetTopicStatus(v string) *NotificationConfiguration { s.TopicStatus = &v return s }
go
func (s *NotificationConfiguration) SetTopicStatus(v string) *NotificationConfiguration { s.TopicStatus = &v return s }
[ "func", "(", "s", "*", "NotificationConfiguration", ")", "SetTopicStatus", "(", "v", "string", ")", "*", "NotificationConfiguration", "{", "s", ".", "TopicStatus", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetTopicStatus sets the TopicStatus field's value.
[ "SetTopicStatus", "sets", "the", "TopicStatus", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dax/api.go#L3764-L3767
166,750
aws/aws-sdk-go
service/dax/api.go
SetNodeTypeSpecificValues
func (s *Parameter) SetNodeTypeSpecificValues(v []*NodeTypeSpecificValue) *Parameter { s.NodeTypeSpecificValues = v return s }
go
func (s *Parameter) SetNodeTypeSpecificValues(v []*NodeTypeSpecificValue) *Parameter { s.NodeTypeSpecificValues = v return s }
[ "func", "(", "s", "*", "Parameter", ")", "SetNodeTypeSpecificValues", "(", "v", "[", "]", "*", "NodeTypeSpecificValue", ")", "*", "Parameter", "{", "s", ".", "NodeTypeSpecificValues", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetNodeTypeSpecificValues sets the NodeTypeSpecificValues field's value.
[ "SetNodeTypeSpecificValues", "sets", "the", "NodeTypeSpecificValues", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dax/api.go#L3849-L3852
166,751
aws/aws-sdk-go
service/dax/api.go
SetNodeIdsToReboot
func (s *ParameterGroupStatus) SetNodeIdsToReboot(v []*string) *ParameterGroupStatus { s.NodeIdsToReboot = v return s }
go
func (s *ParameterGroupStatus) SetNodeIdsToReboot(v []*string) *ParameterGroupStatus { s.NodeIdsToReboot = v return s }
[ "func", "(", "s", "*", "ParameterGroupStatus", ")", "SetNodeIdsToReboot", "(", "v", "[", "]", "*", "string", ")", "*", "ParameterGroupStatus", "{", "s", ".", "NodeIdsToReboot", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetNodeIdsToReboot sets the NodeIdsToReboot field's value.
[ "SetNodeIdsToReboot", "sets", "the", "NodeIdsToReboot", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dax/api.go#L3936-L3939
166,752
aws/aws-sdk-go
service/dax/api.go
SetSecurityGroupIdentifier
func (s *SecurityGroupMembership) SetSecurityGroupIdentifier(v string) *SecurityGroupMembership { s.SecurityGroupIdentifier = &v return s }
go
func (s *SecurityGroupMembership) SetSecurityGroupIdentifier(v string) *SecurityGroupMembership { s.SecurityGroupIdentifier = &v return s }
[ "func", "(", "s", "*", "SecurityGroupMembership", ")", "SetSecurityGroupIdentifier", "(", "v", "string", ")", "*", "SecurityGroupMembership", "{", "s", ".", "SecurityGroupIdentifier", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetSecurityGroupIdentifier sets the SecurityGroupIdentifier field's value.
[ "SetSecurityGroupIdentifier", "sets", "the", "SecurityGroupIdentifier", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dax/api.go#L4156-L4159
166,753
aws/aws-sdk-go
aws/credentials/shared_credentials_provider.go
NewSharedCredentials
func NewSharedCredentials(filename, profile string) *Credentials { return NewCredentials(&SharedCredentialsProvider{ Filename: filename, Profile: profile, }) }
go
func NewSharedCredentials(filename, profile string) *Credentials { return NewCredentials(&SharedCredentialsProvider{ Filename: filename, Profile: profile, }) }
[ "func", "NewSharedCredentials", "(", "filename", ",", "profile", "string", ")", "*", "Credentials", "{", "return", "NewCredentials", "(", "&", "SharedCredentialsProvider", "{", "Filename", ":", "filename", ",", "Profile", ":", "profile", ",", "}", ")", "\n", "}" ]
// NewSharedCredentials returns a pointer to a new Credentials object // wrapping the Profile file provider.
[ "NewSharedCredentials", "returns", "a", "pointer", "to", "a", "new", "Credentials", "object", "wrapping", "the", "Profile", "file", "provider", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/credentials/shared_credentials_provider.go#L44-L49
166,754
aws/aws-sdk-go
aws/credentials/shared_credentials_provider.go
filename
func (p *SharedCredentialsProvider) filename() (string, error) { if len(p.Filename) != 0 { return p.Filename, nil } if p.Filename = os.Getenv("AWS_SHARED_CREDENTIALS_FILE"); len(p.Filename) != 0 { return p.Filename, nil } if home := shareddefaults.UserHomeDir(); len(home) == 0 { // Backwards compatibility of home directly not found error being returned. // This error is too verbose, failure when opening the file would of been // a better error to return. return "", ErrSharedCredentialsHomeNotFound } p.Filename = shareddefaults.SharedCredentialsFilename() return p.Filename, nil }
go
func (p *SharedCredentialsProvider) filename() (string, error) { if len(p.Filename) != 0 { return p.Filename, nil } if p.Filename = os.Getenv("AWS_SHARED_CREDENTIALS_FILE"); len(p.Filename) != 0 { return p.Filename, nil } if home := shareddefaults.UserHomeDir(); len(home) == 0 { // Backwards compatibility of home directly not found error being returned. // This error is too verbose, failure when opening the file would of been // a better error to return. return "", ErrSharedCredentialsHomeNotFound } p.Filename = shareddefaults.SharedCredentialsFilename() return p.Filename, nil }
[ "func", "(", "p", "*", "SharedCredentialsProvider", ")", "filename", "(", ")", "(", "string", ",", "error", ")", "{", "if", "len", "(", "p", ".", "Filename", ")", "!=", "0", "{", "return", "p", ".", "Filename", ",", "nil", "\n", "}", "\n\n", "if", "p", ".", "Filename", "=", "os", ".", "Getenv", "(", "\"", "\"", ")", ";", "len", "(", "p", ".", "Filename", ")", "!=", "0", "{", "return", "p", ".", "Filename", ",", "nil", "\n", "}", "\n\n", "if", "home", ":=", "shareddefaults", ".", "UserHomeDir", "(", ")", ";", "len", "(", "home", ")", "==", "0", "{", "// Backwards compatibility of home directly not found error being returned.", "// This error is too verbose, failure when opening the file would of been", "// a better error to return.", "return", "\"", "\"", ",", "ErrSharedCredentialsHomeNotFound", "\n", "}", "\n\n", "p", ".", "Filename", "=", "shareddefaults", ".", "SharedCredentialsFilename", "(", ")", "\n\n", "return", "p", ".", "Filename", ",", "nil", "\n", "}" ]
// filename returns the filename to use to read AWS shared credentials. // // Will return an error if the user's home directory path cannot be found.
[ "filename", "returns", "the", "filename", "to", "use", "to", "read", "AWS", "shared", "credentials", ".", "Will", "return", "an", "error", "if", "the", "user", "s", "home", "directory", "path", "cannot", "be", "found", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/credentials/shared_credentials_provider.go#L117-L136
166,755
aws/aws-sdk-go
aws/credentials/shared_credentials_provider.go
profile
func (p *SharedCredentialsProvider) profile() string { if p.Profile == "" { p.Profile = os.Getenv("AWS_PROFILE") } if p.Profile == "" { p.Profile = "default" } return p.Profile }
go
func (p *SharedCredentialsProvider) profile() string { if p.Profile == "" { p.Profile = os.Getenv("AWS_PROFILE") } if p.Profile == "" { p.Profile = "default" } return p.Profile }
[ "func", "(", "p", "*", "SharedCredentialsProvider", ")", "profile", "(", ")", "string", "{", "if", "p", ".", "Profile", "==", "\"", "\"", "{", "p", ".", "Profile", "=", "os", ".", "Getenv", "(", "\"", "\"", ")", "\n", "}", "\n", "if", "p", ".", "Profile", "==", "\"", "\"", "{", "p", ".", "Profile", "=", "\"", "\"", "\n", "}", "\n\n", "return", "p", ".", "Profile", "\n", "}" ]
// profile returns the AWS shared credentials profile. If empty will read // environment variable "AWS_PROFILE". If that is not set profile will // return "default".
[ "profile", "returns", "the", "AWS", "shared", "credentials", "profile", ".", "If", "empty", "will", "read", "environment", "variable", "AWS_PROFILE", ".", "If", "that", "is", "not", "set", "profile", "will", "return", "default", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/credentials/shared_credentials_provider.go#L141-L150
166,756
aws/aws-sdk-go
private/protocol/eventstream/decode.go
Decode
func (d *Decoder) Decode(payloadBuf []byte) (m Message, err error) { reader := d.r if d.logger != nil { debugMsgBuf := bytes.NewBuffer(nil) reader = io.TeeReader(reader, debugMsgBuf) defer func() { logMessageDecode(d.logger, debugMsgBuf, m, err) }() } crc := crc32.New(crc32IEEETable) hashReader := io.TeeReader(reader, crc) prelude, err := decodePrelude(hashReader, crc) if err != nil { return Message{}, err } if prelude.HeadersLen > 0 { lr := io.LimitReader(hashReader, int64(prelude.HeadersLen)) m.Headers, err = decodeHeaders(lr) if err != nil { return Message{}, err } } if payloadLen := prelude.PayloadLen(); payloadLen > 0 { buf, err := decodePayload(payloadBuf, io.LimitReader(hashReader, int64(payloadLen))) if err != nil { return Message{}, err } m.Payload = buf } msgCRC := crc.Sum32() if err := validateCRC(reader, msgCRC); err != nil { return Message{}, err } return m, nil }
go
func (d *Decoder) Decode(payloadBuf []byte) (m Message, err error) { reader := d.r if d.logger != nil { debugMsgBuf := bytes.NewBuffer(nil) reader = io.TeeReader(reader, debugMsgBuf) defer func() { logMessageDecode(d.logger, debugMsgBuf, m, err) }() } crc := crc32.New(crc32IEEETable) hashReader := io.TeeReader(reader, crc) prelude, err := decodePrelude(hashReader, crc) if err != nil { return Message{}, err } if prelude.HeadersLen > 0 { lr := io.LimitReader(hashReader, int64(prelude.HeadersLen)) m.Headers, err = decodeHeaders(lr) if err != nil { return Message{}, err } } if payloadLen := prelude.PayloadLen(); payloadLen > 0 { buf, err := decodePayload(payloadBuf, io.LimitReader(hashReader, int64(payloadLen))) if err != nil { return Message{}, err } m.Payload = buf } msgCRC := crc.Sum32() if err := validateCRC(reader, msgCRC); err != nil { return Message{}, err } return m, nil }
[ "func", "(", "d", "*", "Decoder", ")", "Decode", "(", "payloadBuf", "[", "]", "byte", ")", "(", "m", "Message", ",", "err", "error", ")", "{", "reader", ":=", "d", ".", "r", "\n", "if", "d", ".", "logger", "!=", "nil", "{", "debugMsgBuf", ":=", "bytes", ".", "NewBuffer", "(", "nil", ")", "\n", "reader", "=", "io", ".", "TeeReader", "(", "reader", ",", "debugMsgBuf", ")", "\n", "defer", "func", "(", ")", "{", "logMessageDecode", "(", "d", ".", "logger", ",", "debugMsgBuf", ",", "m", ",", "err", ")", "\n", "}", "(", ")", "\n", "}", "\n\n", "crc", ":=", "crc32", ".", "New", "(", "crc32IEEETable", ")", "\n", "hashReader", ":=", "io", ".", "TeeReader", "(", "reader", ",", "crc", ")", "\n\n", "prelude", ",", "err", ":=", "decodePrelude", "(", "hashReader", ",", "crc", ")", "\n", "if", "err", "!=", "nil", "{", "return", "Message", "{", "}", ",", "err", "\n", "}", "\n\n", "if", "prelude", ".", "HeadersLen", ">", "0", "{", "lr", ":=", "io", ".", "LimitReader", "(", "hashReader", ",", "int64", "(", "prelude", ".", "HeadersLen", ")", ")", "\n", "m", ".", "Headers", ",", "err", "=", "decodeHeaders", "(", "lr", ")", "\n", "if", "err", "!=", "nil", "{", "return", "Message", "{", "}", ",", "err", "\n", "}", "\n", "}", "\n\n", "if", "payloadLen", ":=", "prelude", ".", "PayloadLen", "(", ")", ";", "payloadLen", ">", "0", "{", "buf", ",", "err", ":=", "decodePayload", "(", "payloadBuf", ",", "io", ".", "LimitReader", "(", "hashReader", ",", "int64", "(", "payloadLen", ")", ")", ")", "\n", "if", "err", "!=", "nil", "{", "return", "Message", "{", "}", ",", "err", "\n", "}", "\n", "m", ".", "Payload", "=", "buf", "\n", "}", "\n\n", "msgCRC", ":=", "crc", ".", "Sum32", "(", ")", "\n", "if", "err", ":=", "validateCRC", "(", "reader", ",", "msgCRC", ")", ";", "err", "!=", "nil", "{", "return", "Message", "{", "}", ",", "err", "\n", "}", "\n\n", "return", "m", ",", "nil", "\n", "}" ]
// Decode attempts to decode a single message from the event stream reader. // Will return the event stream message, or error if Decode fails to read // the message from the stream.
[ "Decode", "attempts", "to", "decode", "a", "single", "message", "from", "the", "event", "stream", "reader", ".", "Will", "return", "the", "event", "stream", "message", "or", "error", "if", "Decode", "fails", "to", "read", "the", "message", "from", "the", "stream", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/eventstream/decode.go#L33-L73
166,757
aws/aws-sdk-go
service/sns/api.go
SetIsOptedOut
func (s *CheckIfPhoneNumberIsOptedOutOutput) SetIsOptedOut(v bool) *CheckIfPhoneNumberIsOptedOutOutput { s.IsOptedOut = &v return s }
go
func (s *CheckIfPhoneNumberIsOptedOutOutput) SetIsOptedOut(v bool) *CheckIfPhoneNumberIsOptedOutOutput { s.IsOptedOut = &v return s }
[ "func", "(", "s", "*", "CheckIfPhoneNumberIsOptedOutOutput", ")", "SetIsOptedOut", "(", "v", "bool", ")", "*", "CheckIfPhoneNumberIsOptedOutOutput", "{", "s", ".", "IsOptedOut", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetIsOptedOut sets the IsOptedOut field's value.
[ "SetIsOptedOut", "sets", "the", "IsOptedOut", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sns/api.go#L3675-L3678
166,758
aws/aws-sdk-go
service/sns/api.go
SetAuthenticateOnUnsubscribe
func (s *ConfirmSubscriptionInput) SetAuthenticateOnUnsubscribe(v string) *ConfirmSubscriptionInput { s.AuthenticateOnUnsubscribe = &v return s }
go
func (s *ConfirmSubscriptionInput) SetAuthenticateOnUnsubscribe(v string) *ConfirmSubscriptionInput { s.AuthenticateOnUnsubscribe = &v return s }
[ "func", "(", "s", "*", "ConfirmSubscriptionInput", ")", "SetAuthenticateOnUnsubscribe", "(", "v", "string", ")", "*", "ConfirmSubscriptionInput", "{", "s", ".", "AuthenticateOnUnsubscribe", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetAuthenticateOnUnsubscribe sets the AuthenticateOnUnsubscribe field's value.
[ "SetAuthenticateOnUnsubscribe", "sets", "the", "AuthenticateOnUnsubscribe", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sns/api.go#L3728-L3731
166,759
aws/aws-sdk-go
service/sns/api.go
SetCustomUserData
func (s *CreatePlatformEndpointInput) SetCustomUserData(v string) *CreatePlatformEndpointInput { s.CustomUserData = &v return s }
go
func (s *CreatePlatformEndpointInput) SetCustomUserData(v string) *CreatePlatformEndpointInput { s.CustomUserData = &v return s }
[ "func", "(", "s", "*", "CreatePlatformEndpointInput", ")", "SetCustomUserData", "(", "v", "string", ")", "*", "CreatePlatformEndpointInput", "{", "s", ".", "CustomUserData", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetCustomUserData sets the CustomUserData field's value.
[ "SetCustomUserData", "sets", "the", "CustomUserData", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sns/api.go#L3923-L3926
166,760
aws/aws-sdk-go
service/sns/api.go
SetPlatformApplications
func (s *ListPlatformApplicationsOutput) SetPlatformApplications(v []*PlatformApplication) *ListPlatformApplicationsOutput { s.PlatformApplications = v return s }
go
func (s *ListPlatformApplicationsOutput) SetPlatformApplications(v []*PlatformApplication) *ListPlatformApplicationsOutput { s.PlatformApplications = v return s }
[ "func", "(", "s", "*", "ListPlatformApplicationsOutput", ")", "SetPlatformApplications", "(", "v", "[", "]", "*", "PlatformApplication", ")", "*", "ListPlatformApplicationsOutput", "{", "s", ".", "PlatformApplications", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetPlatformApplications sets the PlatformApplications field's value.
[ "SetPlatformApplications", "sets", "the", "PlatformApplications", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sns/api.go#L4847-L4850
166,761
aws/aws-sdk-go
service/sns/api.go
SetMessageStructure
func (s *PublishInput) SetMessageStructure(v string) *PublishInput { s.MessageStructure = &v return s }
go
func (s *PublishInput) SetMessageStructure(v string) *PublishInput { s.MessageStructure = &v return s }
[ "func", "(", "s", "*", "PublishInput", ")", "SetMessageStructure", "(", "v", "string", ")", "*", "PublishInput", "{", "s", ".", "MessageStructure", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetMessageStructure sets the MessageStructure field's value.
[ "SetMessageStructure", "sets", "the", "MessageStructure", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sns/api.go#L5425-L5428
166,762
aws/aws-sdk-go
service/sns/api.go
SetReturnSubscriptionArn
func (s *SubscribeInput) SetReturnSubscriptionArn(v bool) *SubscribeInput { s.ReturnSubscriptionArn = &v return s }
go
func (s *SubscribeInput) SetReturnSubscriptionArn(v bool) *SubscribeInput { s.ReturnSubscriptionArn = &v return s }
[ "func", "(", "s", "*", "SubscribeInput", ")", "SetReturnSubscriptionArn", "(", "v", "bool", ")", "*", "SubscribeInput", "{", "s", ".", "ReturnSubscriptionArn", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetReturnSubscriptionArn sets the ReturnSubscriptionArn field's value.
[ "SetReturnSubscriptionArn", "sets", "the", "ReturnSubscriptionArn", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/sns/api.go#L6169-L6172
166,763
aws/aws-sdk-go
service/cognitosync/api.go
SetStreamingStatus
func (s *CognitoStreams) SetStreamingStatus(v string) *CognitoStreams { s.StreamingStatus = &v return s }
go
func (s *CognitoStreams) SetStreamingStatus(v string) *CognitoStreams { s.StreamingStatus = &v return s }
[ "func", "(", "s", "*", "CognitoStreams", ")", "SetStreamingStatus", "(", "v", "string", ")", "*", "CognitoStreams", "{", "s", ".", "StreamingStatus", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetStreamingStatus sets the StreamingStatus field's value.
[ "SetStreamingStatus", "sets", "the", "StreamingStatus", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cognitosync/api.go#L1801-L1804
166,764
aws/aws-sdk-go
service/cognitosync/api.go
SetNumRecords
func (s *Dataset) SetNumRecords(v int64) *Dataset { s.NumRecords = &v return s }
go
func (s *Dataset) SetNumRecords(v int64) *Dataset { s.NumRecords = &v return s }
[ "func", "(", "s", "*", "Dataset", ")", "SetNumRecords", "(", "v", "int64", ")", "*", "Dataset", "{", "s", ".", "NumRecords", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetNumRecords sets the NumRecords field's value.
[ "SetNumRecords", "sets", "the", "NumRecords", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cognitosync/api.go#L1885-L1888
166,765
aws/aws-sdk-go
service/cognitosync/api.go
SetIdentityPoolUsage
func (s *DescribeIdentityPoolUsageOutput) SetIdentityPoolUsage(v *IdentityPoolUsage) *DescribeIdentityPoolUsageOutput { s.IdentityPoolUsage = v return s }
go
func (s *DescribeIdentityPoolUsageOutput) SetIdentityPoolUsage(v *IdentityPoolUsage) *DescribeIdentityPoolUsageOutput { s.IdentityPoolUsage = v return s }
[ "func", "(", "s", "*", "DescribeIdentityPoolUsageOutput", ")", "SetIdentityPoolUsage", "(", "v", "*", "IdentityPoolUsage", ")", "*", "DescribeIdentityPoolUsageOutput", "{", "s", ".", "IdentityPoolUsage", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetIdentityPoolUsage sets the IdentityPoolUsage field's value.
[ "SetIdentityPoolUsage", "sets", "the", "IdentityPoolUsage", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cognitosync/api.go#L2167-L2170
166,766
aws/aws-sdk-go
service/cognitosync/api.go
SetIdentityUsage
func (s *DescribeIdentityUsageOutput) SetIdentityUsage(v *IdentityUsage) *DescribeIdentityUsageOutput { s.IdentityUsage = v return s }
go
func (s *DescribeIdentityUsageOutput) SetIdentityUsage(v *IdentityUsage) *DescribeIdentityUsageOutput { s.IdentityUsage = v return s }
[ "func", "(", "s", "*", "DescribeIdentityUsageOutput", ")", "SetIdentityUsage", "(", "v", "*", "IdentityUsage", ")", "*", "DescribeIdentityUsageOutput", "{", "s", ".", "IdentityUsage", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetIdentityUsage sets the IdentityUsage field's value.
[ "SetIdentityUsage", "sets", "the", "IdentityUsage", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cognitosync/api.go#L2252-L2255
166,767
aws/aws-sdk-go
service/cognitosync/api.go
SetBulkPublishCompleteTime
func (s *GetBulkPublishDetailsOutput) SetBulkPublishCompleteTime(v time.Time) *GetBulkPublishDetailsOutput { s.BulkPublishCompleteTime = &v return s }
go
func (s *GetBulkPublishDetailsOutput) SetBulkPublishCompleteTime(v time.Time) *GetBulkPublishDetailsOutput { s.BulkPublishCompleteTime = &v return s }
[ "func", "(", "s", "*", "GetBulkPublishDetailsOutput", ")", "SetBulkPublishCompleteTime", "(", "v", "time", ".", "Time", ")", "*", "GetBulkPublishDetailsOutput", "{", "s", ".", "BulkPublishCompleteTime", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetBulkPublishCompleteTime sets the BulkPublishCompleteTime field's value.
[ "SetBulkPublishCompleteTime", "sets", "the", "BulkPublishCompleteTime", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cognitosync/api.go#L2343-L2346
166,768
aws/aws-sdk-go
service/cognitosync/api.go
SetBulkPublishStartTime
func (s *GetBulkPublishDetailsOutput) SetBulkPublishStartTime(v time.Time) *GetBulkPublishDetailsOutput { s.BulkPublishStartTime = &v return s }
go
func (s *GetBulkPublishDetailsOutput) SetBulkPublishStartTime(v time.Time) *GetBulkPublishDetailsOutput { s.BulkPublishStartTime = &v return s }
[ "func", "(", "s", "*", "GetBulkPublishDetailsOutput", ")", "SetBulkPublishStartTime", "(", "v", "time", ".", "Time", ")", "*", "GetBulkPublishDetailsOutput", "{", "s", ".", "BulkPublishStartTime", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetBulkPublishStartTime sets the BulkPublishStartTime field's value.
[ "SetBulkPublishStartTime", "sets", "the", "BulkPublishStartTime", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cognitosync/api.go#L2349-L2352
166,769
aws/aws-sdk-go
service/cognitosync/api.go
SetBulkPublishStatus
func (s *GetBulkPublishDetailsOutput) SetBulkPublishStatus(v string) *GetBulkPublishDetailsOutput { s.BulkPublishStatus = &v return s }
go
func (s *GetBulkPublishDetailsOutput) SetBulkPublishStatus(v string) *GetBulkPublishDetailsOutput { s.BulkPublishStatus = &v return s }
[ "func", "(", "s", "*", "GetBulkPublishDetailsOutput", ")", "SetBulkPublishStatus", "(", "v", "string", ")", "*", "GetBulkPublishDetailsOutput", "{", "s", ".", "BulkPublishStatus", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetBulkPublishStatus sets the BulkPublishStatus field's value.
[ "SetBulkPublishStatus", "sets", "the", "BulkPublishStatus", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cognitosync/api.go#L2355-L2358
166,770
aws/aws-sdk-go
service/cognitosync/api.go
SetSyncSessionsCount
func (s *IdentityPoolUsage) SetSyncSessionsCount(v int64) *IdentityPoolUsage { s.SyncSessionsCount = &v return s }
go
func (s *IdentityPoolUsage) SetSyncSessionsCount(v int64) *IdentityPoolUsage { s.SyncSessionsCount = &v return s }
[ "func", "(", "s", "*", "IdentityPoolUsage", ")", "SetSyncSessionsCount", "(", "v", "int64", ")", "*", "IdentityPoolUsage", "{", "s", ".", "SyncSessionsCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetSyncSessionsCount sets the SyncSessionsCount field's value.
[ "SetSyncSessionsCount", "sets", "the", "SyncSessionsCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cognitosync/api.go#L2572-L2575
166,771
aws/aws-sdk-go
service/cognitosync/api.go
SetDatasetCount
func (s *IdentityUsage) SetDatasetCount(v int64) *IdentityUsage { s.DatasetCount = &v return s }
go
func (s *IdentityUsage) SetDatasetCount(v int64) *IdentityUsage { s.DatasetCount = &v return s }
[ "func", "(", "s", "*", "IdentityUsage", ")", "SetDatasetCount", "(", "v", "int64", ")", "*", "IdentityUsage", "{", "s", ".", "DatasetCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDatasetCount sets the DatasetCount field's value.
[ "SetDatasetCount", "sets", "the", "DatasetCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cognitosync/api.go#L2616-L2619
166,772
aws/aws-sdk-go
service/cognitosync/api.go
SetDatasets
func (s *ListDatasetsOutput) SetDatasets(v []*Dataset) *ListDatasetsOutput { s.Datasets = v return s }
go
func (s *ListDatasetsOutput) SetDatasets(v []*Dataset) *ListDatasetsOutput { s.Datasets = v return s }
[ "func", "(", "s", "*", "ListDatasetsOutput", ")", "SetDatasets", "(", "v", "[", "]", "*", "Dataset", ")", "*", "ListDatasetsOutput", "{", "s", ".", "Datasets", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetDatasets sets the Datasets field's value.
[ "SetDatasets", "sets", "the", "Datasets", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cognitosync/api.go#L2749-L2752
166,773
aws/aws-sdk-go
service/cognitosync/api.go
SetIdentityPoolUsages
func (s *ListIdentityPoolUsageOutput) SetIdentityPoolUsages(v []*IdentityPoolUsage) *ListIdentityPoolUsageOutput { s.IdentityPoolUsages = v return s }
go
func (s *ListIdentityPoolUsageOutput) SetIdentityPoolUsages(v []*IdentityPoolUsage) *ListIdentityPoolUsageOutput { s.IdentityPoolUsages = v return s }
[ "func", "(", "s", "*", "ListIdentityPoolUsageOutput", ")", "SetIdentityPoolUsages", "(", "v", "[", "]", "*", "IdentityPoolUsage", ")", "*", "ListIdentityPoolUsageOutput", "{", "s", ".", "IdentityPoolUsages", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetIdentityPoolUsages sets the IdentityPoolUsages field's value.
[ "SetIdentityPoolUsages", "sets", "the", "IdentityPoolUsages", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cognitosync/api.go#L2827-L2830
166,774
aws/aws-sdk-go
service/cognitosync/api.go
SetLastSyncCount
func (s *ListRecordsInput) SetLastSyncCount(v int64) *ListRecordsInput { s.LastSyncCount = &v return s }
go
func (s *ListRecordsInput) SetLastSyncCount(v int64) *ListRecordsInput { s.LastSyncCount = &v return s }
[ "func", "(", "s", "*", "ListRecordsInput", ")", "SetLastSyncCount", "(", "v", "int64", ")", "*", "ListRecordsInput", "{", "s", ".", "LastSyncCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetLastSyncCount sets the LastSyncCount field's value.
[ "SetLastSyncCount", "sets", "the", "LastSyncCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cognitosync/api.go#L2936-L2939
166,775
aws/aws-sdk-go
service/cognitosync/api.go
SetDatasetDeletedAfterRequestedSyncCount
func (s *ListRecordsOutput) SetDatasetDeletedAfterRequestedSyncCount(v bool) *ListRecordsOutput { s.DatasetDeletedAfterRequestedSyncCount = &v return s }
go
func (s *ListRecordsOutput) SetDatasetDeletedAfterRequestedSyncCount(v bool) *ListRecordsOutput { s.DatasetDeletedAfterRequestedSyncCount = &v return s }
[ "func", "(", "s", "*", "ListRecordsOutput", ")", "SetDatasetDeletedAfterRequestedSyncCount", "(", "v", "bool", ")", "*", "ListRecordsOutput", "{", "s", ".", "DatasetDeletedAfterRequestedSyncCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDatasetDeletedAfterRequestedSyncCount sets the DatasetDeletedAfterRequestedSyncCount field's value.
[ "SetDatasetDeletedAfterRequestedSyncCount", "sets", "the", "DatasetDeletedAfterRequestedSyncCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cognitosync/api.go#L3008-L3011
166,776
aws/aws-sdk-go
service/cognitosync/api.go
SetDatasetExists
func (s *ListRecordsOutput) SetDatasetExists(v bool) *ListRecordsOutput { s.DatasetExists = &v return s }
go
func (s *ListRecordsOutput) SetDatasetExists(v bool) *ListRecordsOutput { s.DatasetExists = &v return s }
[ "func", "(", "s", "*", "ListRecordsOutput", ")", "SetDatasetExists", "(", "v", "bool", ")", "*", "ListRecordsOutput", "{", "s", ".", "DatasetExists", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDatasetExists sets the DatasetExists field's value.
[ "SetDatasetExists", "sets", "the", "DatasetExists", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cognitosync/api.go#L3014-L3017
166,777
aws/aws-sdk-go
service/cognitosync/api.go
SetDatasetSyncCount
func (s *ListRecordsOutput) SetDatasetSyncCount(v int64) *ListRecordsOutput { s.DatasetSyncCount = &v return s }
go
func (s *ListRecordsOutput) SetDatasetSyncCount(v int64) *ListRecordsOutput { s.DatasetSyncCount = &v return s }
[ "func", "(", "s", "*", "ListRecordsOutput", ")", "SetDatasetSyncCount", "(", "v", "int64", ")", "*", "ListRecordsOutput", "{", "s", ".", "DatasetSyncCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDatasetSyncCount sets the DatasetSyncCount field's value.
[ "SetDatasetSyncCount", "sets", "the", "DatasetSyncCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cognitosync/api.go#L3020-L3023
166,778
aws/aws-sdk-go
service/cognitosync/api.go
SetMergedDatasetNames
func (s *ListRecordsOutput) SetMergedDatasetNames(v []*string) *ListRecordsOutput { s.MergedDatasetNames = v return s }
go
func (s *ListRecordsOutput) SetMergedDatasetNames(v []*string) *ListRecordsOutput { s.MergedDatasetNames = v return s }
[ "func", "(", "s", "*", "ListRecordsOutput", ")", "SetMergedDatasetNames", "(", "v", "[", "]", "*", "string", ")", "*", "ListRecordsOutput", "{", "s", ".", "MergedDatasetNames", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetMergedDatasetNames sets the MergedDatasetNames field's value.
[ "SetMergedDatasetNames", "sets", "the", "MergedDatasetNames", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cognitosync/api.go#L3032-L3035
166,779
aws/aws-sdk-go
service/cognitosync/api.go
SetApplicationArns
func (s *PushSync) SetApplicationArns(v []*string) *PushSync { s.ApplicationArns = v return s }
go
func (s *PushSync) SetApplicationArns(v []*string) *PushSync { s.ApplicationArns = v return s }
[ "func", "(", "s", "*", "PushSync", ")", "SetApplicationArns", "(", "v", "[", "]", "*", "string", ")", "*", "PushSync", "{", "s", ".", "ApplicationArns", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetApplicationArns sets the ApplicationArns field's value.
[ "SetApplicationArns", "sets", "the", "ApplicationArns", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cognitosync/api.go#L3090-L3093
166,780
aws/aws-sdk-go
service/cognitosync/api.go
SetRecordPatches
func (s *UpdateRecordsInput) SetRecordPatches(v []*RecordPatch) *UpdateRecordsInput { s.RecordPatches = v return s }
go
func (s *UpdateRecordsInput) SetRecordPatches(v []*RecordPatch) *UpdateRecordsInput { s.RecordPatches = v return s }
[ "func", "(", "s", "*", "UpdateRecordsInput", ")", "SetRecordPatches", "(", "v", "[", "]", "*", "RecordPatch", ")", "*", "UpdateRecordsInput", "{", "s", ".", "RecordPatches", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetRecordPatches sets the RecordPatches field's value.
[ "SetRecordPatches", "sets", "the", "RecordPatches", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cognitosync/api.go#L3898-L3901
166,781
aws/aws-sdk-go
service/dynamodb/api.go
SetB
func (s *AttributeValue) SetB(v []byte) *AttributeValue { s.B = v return s }
go
func (s *AttributeValue) SetB(v []byte) *AttributeValue { s.B = v return s }
[ "func", "(", "s", "*", "AttributeValue", ")", "SetB", "(", "v", "[", "]", "byte", ")", "*", "AttributeValue", "{", "s", ".", "B", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetB sets the B field's value.
[ "SetB", "sets", "the", "B", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/api.go#L5282-L5285
166,782
aws/aws-sdk-go
service/dynamodb/api.go
SetBOOL
func (s *AttributeValue) SetBOOL(v bool) *AttributeValue { s.BOOL = &v return s }
go
func (s *AttributeValue) SetBOOL(v bool) *AttributeValue { s.BOOL = &v return s }
[ "func", "(", "s", "*", "AttributeValue", ")", "SetBOOL", "(", "v", "bool", ")", "*", "AttributeValue", "{", "s", ".", "BOOL", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetBOOL sets the BOOL field's value.
[ "SetBOOL", "sets", "the", "BOOL", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/api.go#L5288-L5291
166,783
aws/aws-sdk-go
service/dynamodb/api.go
SetBS
func (s *AttributeValue) SetBS(v [][]byte) *AttributeValue { s.BS = v return s }
go
func (s *AttributeValue) SetBS(v [][]byte) *AttributeValue { s.BS = v return s }
[ "func", "(", "s", "*", "AttributeValue", ")", "SetBS", "(", "v", "[", "]", "[", "]", "byte", ")", "*", "AttributeValue", "{", "s", ".", "BS", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetBS sets the BS field's value.
[ "SetBS", "sets", "the", "BS", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/api.go#L5294-L5297
166,784
aws/aws-sdk-go
service/dynamodb/api.go
SetL
func (s *AttributeValue) SetL(v []*AttributeValue) *AttributeValue { s.L = v return s }
go
func (s *AttributeValue) SetL(v []*AttributeValue) *AttributeValue { s.L = v return s }
[ "func", "(", "s", "*", "AttributeValue", ")", "SetL", "(", "v", "[", "]", "*", "AttributeValue", ")", "*", "AttributeValue", "{", "s", ".", "L", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetL sets the L field's value.
[ "SetL", "sets", "the", "L", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/api.go#L5300-L5303
166,785
aws/aws-sdk-go
service/dynamodb/api.go
SetM
func (s *AttributeValue) SetM(v map[string]*AttributeValue) *AttributeValue { s.M = v return s }
go
func (s *AttributeValue) SetM(v map[string]*AttributeValue) *AttributeValue { s.M = v return s }
[ "func", "(", "s", "*", "AttributeValue", ")", "SetM", "(", "v", "map", "[", "string", "]", "*", "AttributeValue", ")", "*", "AttributeValue", "{", "s", ".", "M", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetM sets the M field's value.
[ "SetM", "sets", "the", "M", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/api.go#L5306-L5309
166,786
aws/aws-sdk-go
service/dynamodb/api.go
SetNS
func (s *AttributeValue) SetNS(v []*string) *AttributeValue { s.NS = v return s }
go
func (s *AttributeValue) SetNS(v []*string) *AttributeValue { s.NS = v return s }
[ "func", "(", "s", "*", "AttributeValue", ")", "SetNS", "(", "v", "[", "]", "*", "string", ")", "*", "AttributeValue", "{", "s", ".", "NS", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetNS sets the NS field's value.
[ "SetNS", "sets", "the", "NS", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/api.go#L5318-L5321
166,787
aws/aws-sdk-go
service/dynamodb/api.go
SetNULL
func (s *AttributeValue) SetNULL(v bool) *AttributeValue { s.NULL = &v return s }
go
func (s *AttributeValue) SetNULL(v bool) *AttributeValue { s.NULL = &v return s }
[ "func", "(", "s", "*", "AttributeValue", ")", "SetNULL", "(", "v", "bool", ")", "*", "AttributeValue", "{", "s", ".", "NULL", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetNULL sets the NULL field's value.
[ "SetNULL", "sets", "the", "NULL", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/api.go#L5324-L5327
166,788
aws/aws-sdk-go
service/dynamodb/api.go
SetS
func (s *AttributeValue) SetS(v string) *AttributeValue { s.S = &v return s }
go
func (s *AttributeValue) SetS(v string) *AttributeValue { s.S = &v return s }
[ "func", "(", "s", "*", "AttributeValue", ")", "SetS", "(", "v", "string", ")", "*", "AttributeValue", "{", "s", ".", "S", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetS sets the S field's value.
[ "SetS", "sets", "the", "S", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/api.go#L5330-L5333
166,789
aws/aws-sdk-go
service/dynamodb/api.go
SetSS
func (s *AttributeValue) SetSS(v []*string) *AttributeValue { s.SS = v return s }
go
func (s *AttributeValue) SetSS(v []*string) *AttributeValue { s.SS = v return s }
[ "func", "(", "s", "*", "AttributeValue", ")", "SetSS", "(", "v", "[", "]", "*", "string", ")", "*", "AttributeValue", "{", "s", ".", "SS", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSS sets the SS field's value.
[ "SetSS", "sets", "the", "SS", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/api.go#L5336-L5339
166,790
aws/aws-sdk-go
service/dynamodb/api.go
SetScalingPolicyUpdate
func (s *AutoScalingSettingsUpdate) SetScalingPolicyUpdate(v *AutoScalingPolicyUpdate) *AutoScalingSettingsUpdate { s.ScalingPolicyUpdate = v return s }
go
func (s *AutoScalingSettingsUpdate) SetScalingPolicyUpdate(v *AutoScalingPolicyUpdate) *AutoScalingSettingsUpdate { s.ScalingPolicyUpdate = v return s }
[ "func", "(", "s", "*", "AutoScalingSettingsUpdate", ")", "SetScalingPolicyUpdate", "(", "v", "*", "AutoScalingPolicyUpdate", ")", "*", "AutoScalingSettingsUpdate", "{", "s", ".", "ScalingPolicyUpdate", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetScalingPolicyUpdate sets the ScalingPolicyUpdate field's value.
[ "SetScalingPolicyUpdate", "sets", "the", "ScalingPolicyUpdate", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/api.go#L5686-L5689
166,791
aws/aws-sdk-go
service/dynamodb/api.go
SetSourceTableDetails
func (s *BackupDescription) SetSourceTableDetails(v *SourceTableDetails) *BackupDescription { s.SourceTableDetails = v return s }
go
func (s *BackupDescription) SetSourceTableDetails(v *SourceTableDetails) *BackupDescription { s.SourceTableDetails = v return s }
[ "func", "(", "s", "*", "BackupDescription", ")", "SetSourceTableDetails", "(", "v", "*", "SourceTableDetails", ")", "*", "BackupDescription", "{", "s", ".", "SourceTableDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSourceTableDetails sets the SourceTableDetails field's value.
[ "SetSourceTableDetails", "sets", "the", "SourceTableDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/api.go#L5871-L5874
166,792
aws/aws-sdk-go
service/dynamodb/api.go
SetSourceTableFeatureDetails
func (s *BackupDescription) SetSourceTableFeatureDetails(v *SourceTableFeatureDetails) *BackupDescription { s.SourceTableFeatureDetails = v return s }
go
func (s *BackupDescription) SetSourceTableFeatureDetails(v *SourceTableFeatureDetails) *BackupDescription { s.SourceTableFeatureDetails = v return s }
[ "func", "(", "s", "*", "BackupDescription", ")", "SetSourceTableFeatureDetails", "(", "v", "*", "SourceTableFeatureDetails", ")", "*", "BackupDescription", "{", "s", ".", "SourceTableFeatureDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSourceTableFeatureDetails sets the SourceTableFeatureDetails field's value.
[ "SetSourceTableFeatureDetails", "sets", "the", "SourceTableFeatureDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/api.go#L5877-L5880
166,793
aws/aws-sdk-go
service/dynamodb/api.go
SetUnprocessedItems
func (s *BatchWriteItemOutput) SetUnprocessedItems(v map[string][]*WriteRequest) *BatchWriteItemOutput { s.UnprocessedItems = v return s }
go
func (s *BatchWriteItemOutput) SetUnprocessedItems(v map[string][]*WriteRequest) *BatchWriteItemOutput { s.UnprocessedItems = v return s }
[ "func", "(", "s", "*", "BatchWriteItemOutput", ")", "SetUnprocessedItems", "(", "v", "map", "[", "string", "]", "[", "]", "*", "WriteRequest", ")", "*", "BatchWriteItemOutput", "{", "s", ".", "UnprocessedItems", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetUnprocessedItems sets the UnprocessedItems field's value.
[ "SetUnprocessedItems", "sets", "the", "UnprocessedItems", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/api.go#L6495-L6498
166,794
aws/aws-sdk-go
service/dynamodb/api.go
SetLastUpdateToPayPerRequestDateTime
func (s *BillingModeSummary) SetLastUpdateToPayPerRequestDateTime(v time.Time) *BillingModeSummary { s.LastUpdateToPayPerRequestDateTime = &v return s }
go
func (s *BillingModeSummary) SetLastUpdateToPayPerRequestDateTime(v time.Time) *BillingModeSummary { s.LastUpdateToPayPerRequestDateTime = &v return s }
[ "func", "(", "s", "*", "BillingModeSummary", ")", "SetLastUpdateToPayPerRequestDateTime", "(", "v", "time", ".", "Time", ")", "*", "BillingModeSummary", "{", "s", ".", "LastUpdateToPayPerRequestDateTime", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetLastUpdateToPayPerRequestDateTime sets the LastUpdateToPayPerRequestDateTime field's value.
[ "SetLastUpdateToPayPerRequestDateTime", "sets", "the", "LastUpdateToPayPerRequestDateTime", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/api.go#L6536-L6539
166,795
aws/aws-sdk-go
service/dynamodb/api.go
SetContinuousBackupsStatus
func (s *ContinuousBackupsDescription) SetContinuousBackupsStatus(v string) *ContinuousBackupsDescription { s.ContinuousBackupsStatus = &v return s }
go
func (s *ContinuousBackupsDescription) SetContinuousBackupsStatus(v string) *ContinuousBackupsDescription { s.ContinuousBackupsStatus = &v return s }
[ "func", "(", "s", "*", "ContinuousBackupsDescription", ")", "SetContinuousBackupsStatus", "(", "v", "string", ")", "*", "ContinuousBackupsDescription", "{", "s", ".", "ContinuousBackupsStatus", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetContinuousBackupsStatus sets the ContinuousBackupsStatus field's value.
[ "SetContinuousBackupsStatus", "sets", "the", "ContinuousBackupsStatus", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/api.go#L6949-L6952
166,796
aws/aws-sdk-go
service/dynamodb/api.go
SetPointInTimeRecoveryDescription
func (s *ContinuousBackupsDescription) SetPointInTimeRecoveryDescription(v *PointInTimeRecoveryDescription) *ContinuousBackupsDescription { s.PointInTimeRecoveryDescription = v return s }
go
func (s *ContinuousBackupsDescription) SetPointInTimeRecoveryDescription(v *PointInTimeRecoveryDescription) *ContinuousBackupsDescription { s.PointInTimeRecoveryDescription = v return s }
[ "func", "(", "s", "*", "ContinuousBackupsDescription", ")", "SetPointInTimeRecoveryDescription", "(", "v", "*", "PointInTimeRecoveryDescription", ")", "*", "ContinuousBackupsDescription", "{", "s", ".", "PointInTimeRecoveryDescription", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetPointInTimeRecoveryDescription sets the PointInTimeRecoveryDescription field's value.
[ "SetPointInTimeRecoveryDescription", "sets", "the", "PointInTimeRecoveryDescription", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/api.go#L6955-L6958
166,797
aws/aws-sdk-go
service/dynamodb/api.go
SetAccountMaxReadCapacityUnits
func (s *DescribeLimitsOutput) SetAccountMaxReadCapacityUnits(v int64) *DescribeLimitsOutput { s.AccountMaxReadCapacityUnits = &v return s }
go
func (s *DescribeLimitsOutput) SetAccountMaxReadCapacityUnits(v int64) *DescribeLimitsOutput { s.AccountMaxReadCapacityUnits = &v return s }
[ "func", "(", "s", "*", "DescribeLimitsOutput", ")", "SetAccountMaxReadCapacityUnits", "(", "v", "int64", ")", "*", "DescribeLimitsOutput", "{", "s", ".", "AccountMaxReadCapacityUnits", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetAccountMaxReadCapacityUnits sets the AccountMaxReadCapacityUnits field's value.
[ "SetAccountMaxReadCapacityUnits", "sets", "the", "AccountMaxReadCapacityUnits", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/api.go#L8598-L8601
166,798
aws/aws-sdk-go
service/dynamodb/api.go
SetAccountMaxWriteCapacityUnits
func (s *DescribeLimitsOutput) SetAccountMaxWriteCapacityUnits(v int64) *DescribeLimitsOutput { s.AccountMaxWriteCapacityUnits = &v return s }
go
func (s *DescribeLimitsOutput) SetAccountMaxWriteCapacityUnits(v int64) *DescribeLimitsOutput { s.AccountMaxWriteCapacityUnits = &v return s }
[ "func", "(", "s", "*", "DescribeLimitsOutput", ")", "SetAccountMaxWriteCapacityUnits", "(", "v", "int64", ")", "*", "DescribeLimitsOutput", "{", "s", ".", "AccountMaxWriteCapacityUnits", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetAccountMaxWriteCapacityUnits sets the AccountMaxWriteCapacityUnits field's value.
[ "SetAccountMaxWriteCapacityUnits", "sets", "the", "AccountMaxWriteCapacityUnits", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/api.go#L8604-L8607
166,799
aws/aws-sdk-go
service/dynamodb/api.go
SetTableMaxReadCapacityUnits
func (s *DescribeLimitsOutput) SetTableMaxReadCapacityUnits(v int64) *DescribeLimitsOutput { s.TableMaxReadCapacityUnits = &v return s }
go
func (s *DescribeLimitsOutput) SetTableMaxReadCapacityUnits(v int64) *DescribeLimitsOutput { s.TableMaxReadCapacityUnits = &v return s }
[ "func", "(", "s", "*", "DescribeLimitsOutput", ")", "SetTableMaxReadCapacityUnits", "(", "v", "int64", ")", "*", "DescribeLimitsOutput", "{", "s", ".", "TableMaxReadCapacityUnits", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetTableMaxReadCapacityUnits sets the TableMaxReadCapacityUnits field's value.
[ "SetTableMaxReadCapacityUnits", "sets", "the", "TableMaxReadCapacityUnits", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/dynamodb/api.go#L8610-L8613