code large_stringlengths 52 373k | docstring large_stringlengths 3 47.2k | language large_stringclasses 6
values |
|---|---|---|
func (s *OutputDescription) SetKinesisFirehoseOutputDescription(v *KinesisFirehoseOutputDescription) *OutputDescription {
s.KinesisFirehoseOutputDescription = v
return s
} | // SetKinesisFirehoseOutputDescription sets the KinesisFirehoseOutputDescription field's value. | go |
func (s *OutputDescription) SetKinesisStreamsOutputDescription(v *KinesisStreamsOutputDescription) *OutputDescription {
s.KinesisStreamsOutputDescription = v
return s
} | // SetKinesisStreamsOutputDescription sets the KinesisStreamsOutputDescription field's value. | go |
func (s *OutputDescription) SetLambdaOutputDescription(v *LambdaOutputDescription) *OutputDescription {
s.LambdaOutputDescription = v
return s
} | // SetLambdaOutputDescription sets the LambdaOutputDescription field's value. | go |
func (s *OutputUpdate) SetDestinationSchemaUpdate(v *DestinationSchema) *OutputUpdate {
s.DestinationSchemaUpdate = v
return s
} | // SetDestinationSchemaUpdate sets the DestinationSchemaUpdate field's value. | go |
func (s *OutputUpdate) SetKinesisFirehoseOutputUpdate(v *KinesisFirehoseOutputUpdate) *OutputUpdate {
s.KinesisFirehoseOutputUpdate = v
return s
} | // SetKinesisFirehoseOutputUpdate sets the KinesisFirehoseOutputUpdate field's value. | go |
func (s *OutputUpdate) SetKinesisStreamsOutputUpdate(v *KinesisStreamsOutputUpdate) *OutputUpdate {
s.KinesisStreamsOutputUpdate = v
return s
} | // SetKinesisStreamsOutputUpdate sets the KinesisStreamsOutputUpdate field's value. | go |
func (s *OutputUpdate) SetLambdaOutputUpdate(v *LambdaOutputUpdate) *OutputUpdate {
s.LambdaOutputUpdate = v
return s
} | // SetLambdaOutputUpdate sets the LambdaOutputUpdate field's value. | go |
func (s *OutputUpdate) SetNameUpdate(v string) *OutputUpdate {
s.NameUpdate = &v
return s
} | // SetNameUpdate sets the NameUpdate field's value. | go |
func (s *RecordColumn) SetSqlType(v string) *RecordColumn {
s.SqlType = &v
return s
} | // SetSqlType sets the SqlType field's value. | go |
func (s *RecordFormat) SetMappingParameters(v *MappingParameters) *RecordFormat {
s.MappingParameters = v
return s
} | // SetMappingParameters sets the MappingParameters field's value. | go |
func (s *ReferenceDataSource) SetS3ReferenceDataSource(v *S3ReferenceDataSource) *ReferenceDataSource {
s.S3ReferenceDataSource = v
return s
} | // SetS3ReferenceDataSource sets the S3ReferenceDataSource field's value. | go |
func (s *ReferenceDataSourceDescription) SetS3ReferenceDataSourceDescription(v *S3ReferenceDataSourceDescription) *ReferenceDataSourceDescription {
s.S3ReferenceDataSourceDescription = v
return s
} | // SetS3ReferenceDataSourceDescription sets the S3ReferenceDataSourceDescription field's value. | go |
func (s *ReferenceDataSourceUpdate) SetReferenceSchemaUpdate(v *SourceSchema) *ReferenceDataSourceUpdate {
s.ReferenceSchemaUpdate = v
return s
} | // SetReferenceSchemaUpdate sets the ReferenceSchemaUpdate field's value. | go |
func (s *ReferenceDataSourceUpdate) SetS3ReferenceDataSourceUpdate(v *S3ReferenceDataSourceUpdate) *ReferenceDataSourceUpdate {
s.S3ReferenceDataSourceUpdate = v
return s
} | // SetS3ReferenceDataSourceUpdate sets the S3ReferenceDataSourceUpdate field's value. | go |
func (s *ReferenceDataSourceUpdate) SetTableNameUpdate(v string) *ReferenceDataSourceUpdate {
s.TableNameUpdate = &v
return s
} | // SetTableNameUpdate sets the TableNameUpdate field's value. | go |
func (s *S3ReferenceDataSourceUpdate) SetReferenceRoleARNUpdate(v string) *S3ReferenceDataSourceUpdate {
s.ReferenceRoleARNUpdate = &v
return s
} | // SetReferenceRoleARNUpdate sets the ReferenceRoleARNUpdate field's value. | go |
func (s *SourceSchema) SetRecordColumns(v []*RecordColumn) *SourceSchema {
s.RecordColumns = v
return s
} | // SetRecordColumns sets the RecordColumns field's value. | go |
func (s *SourceSchema) SetRecordEncoding(v string) *SourceSchema {
s.RecordEncoding = &v
return s
} | // SetRecordEncoding sets the RecordEncoding field's value. | go |
func (s *SourceSchema) SetRecordFormat(v *RecordFormat) *SourceSchema {
s.RecordFormat = v
return s
} | // SetRecordFormat sets the RecordFormat field's value. | go |
func (s *StartApplicationInput) SetInputConfigurations(v []*InputConfiguration) *StartApplicationInput {
s.InputConfigurations = v
return s
} | // SetInputConfigurations sets the InputConfigurations field's value. | go |
func (s *UpdateApplicationInput) SetApplicationUpdate(v *ApplicationUpdate) *UpdateApplicationInput {
s.ApplicationUpdate = v
return s
} | // SetApplicationUpdate sets the ApplicationUpdate field's value. | go |
func GetIdempotencyToken() string {
b := make([]byte, 16)
RandReader.Read(b)
return UUIDVersion4(b)
} | // GetIdempotencyToken returns a randomly generated idempotency token. | go |
func SetIdempotencyToken(v reflect.Value) {
if v.Kind() == reflect.Ptr {
if v.IsNil() && v.CanSet() {
v.Set(reflect.New(v.Type().Elem()))
}
v = v.Elem()
}
v = reflect.Indirect(v)
if !v.CanSet() {
panic(fmt.Sprintf("unable to set idempotnecy token %v", v))
}
b := make([]byte, 16)
_, err := rand.Read(... | // SetIdempotencyToken will set the value provided with a Idempotency Token.
// Given that the value can be set. Will panic if value is not setable. | go |
func UUIDVersion4(u []byte) string {
// https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_.28random.29
// 13th character is "4"
u[6] = (u[6] | 0x40) & 0x4F
// 17th character is "8", "9", "a", or "b"
u[8] = (u[8] | 0x80) & 0xBF
return fmt.Sprintf(`%X-%X-%X-%X-%X`, u[0:4], u[4:6], u[6:8], u[8:1... | // UUIDVersion4 returns a Version 4 random UUID from the byte slice provided | go |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.