Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions private/model/api/shape.go
Original file line number Diff line number Diff line change
Expand Up @@ -615,16 +615,6 @@ func (s {{ .ShapeName }}) SDKResponseMetadata() aws.Response {
{{ range $_, $name := $context.MemberNames -}}
{{ $elem := index $context.MemberRefs $name -}}

// Set{{ $name }} sets the {{ $name }} field's value.
func (s *{{ $builderShapeName }}) Set{{ $name }}(v {{ $context.GoStructValueType $name $elem }}) *{{ $builderShapeName }} {
{{ if $elem.UseIndirection -}}
s.{{ $name }} = &v
{{ else -}}
s.{{ $name }} = v
{{ end -}}
return s
}

{{ if $elem.GenerateGetter -}}
func (s *{{ $builderShapeName }}) get{{ $name }}() (v {{ $context.GoStructValueType $name $elem }}) {
{{ if $elem.UseIndirection -}}
Expand Down
108 changes: 0 additions & 108 deletions private/protocol/ec2query/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,18 +150,6 @@ type InputService1TestShapeInputService1TestCaseOperation1Input struct {
Foo *string `type:"string"`
}

// SetBar sets the Bar field's value.
func (s *InputService1TestShapeInputService1TestCaseOperation1Input) SetBar(v string) *InputService1TestShapeInputService1TestCaseOperation1Input {
s.Bar = &v
return s
}

// SetFoo sets the Foo field's value.
func (s *InputService1TestShapeInputService1TestCaseOperation1Input) SetFoo(v string) *InputService1TestShapeInputService1TestCaseOperation1Input {
s.Foo = &v
return s
}

type InputService1TestShapeInputService1TestCaseOperation1Output struct {
_ struct{} `type:"structure"`

Expand Down Expand Up @@ -284,24 +272,6 @@ type InputService2TestShapeInputService2TestCaseOperation1Input struct {
Yuck *string `locationName:"yuckLocationName" queryName:"yuckQueryName" type:"string"`
}

// SetBar sets the Bar field's value.
func (s *InputService2TestShapeInputService2TestCaseOperation1Input) SetBar(v string) *InputService2TestShapeInputService2TestCaseOperation1Input {
s.Bar = &v
return s
}

// SetFoo sets the Foo field's value.
func (s *InputService2TestShapeInputService2TestCaseOperation1Input) SetFoo(v string) *InputService2TestShapeInputService2TestCaseOperation1Input {
s.Foo = &v
return s
}

// SetYuck sets the Yuck field's value.
func (s *InputService2TestShapeInputService2TestCaseOperation1Input) SetYuck(v string) *InputService2TestShapeInputService2TestCaseOperation1Input {
s.Yuck = &v
return s
}

type InputService2TestShapeInputService2TestCaseOperation1Output struct {
_ struct{} `type:"structure"`

Expand Down Expand Up @@ -420,12 +390,6 @@ type InputService3TestShapeInputService3TestCaseOperation1Input struct {
StructArg *InputService3TestShapeStructType `locationName:"Struct" type:"structure"`
}

// SetStructArg sets the StructArg field's value.
func (s *InputService3TestShapeInputService3TestCaseOperation1Input) SetStructArg(v *InputService3TestShapeStructType) *InputService3TestShapeInputService3TestCaseOperation1Input {
s.StructArg = v
return s
}

type InputService3TestShapeInputService3TestCaseOperation1Output struct {
_ struct{} `type:"structure"`

Expand All @@ -443,12 +407,6 @@ type InputService3TestShapeStructType struct {
ScalarArg *string `locationName:"Scalar" type:"string"`
}

// SetScalarArg sets the ScalarArg field's value.
func (s *InputService3TestShapeStructType) SetScalarArg(v string) *InputService3TestShapeStructType {
s.ScalarArg = &v
return s
}

// InputService4ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
Expand Down Expand Up @@ -562,30 +520,6 @@ type InputService4TestShapeInputService4TestCaseOperation1Input struct {
ListStrings []string `type:"list"`
}

// SetListBools sets the ListBools field's value.
func (s *InputService4TestShapeInputService4TestCaseOperation1Input) SetListBools(v []bool) *InputService4TestShapeInputService4TestCaseOperation1Input {
s.ListBools = v
return s
}

// SetListFloats sets the ListFloats field's value.
func (s *InputService4TestShapeInputService4TestCaseOperation1Input) SetListFloats(v []float64) *InputService4TestShapeInputService4TestCaseOperation1Input {
s.ListFloats = v
return s
}

// SetListIntegers sets the ListIntegers field's value.
func (s *InputService4TestShapeInputService4TestCaseOperation1Input) SetListIntegers(v []int64) *InputService4TestShapeInputService4TestCaseOperation1Input {
s.ListIntegers = v
return s
}

// SetListStrings sets the ListStrings field's value.
func (s *InputService4TestShapeInputService4TestCaseOperation1Input) SetListStrings(v []string) *InputService4TestShapeInputService4TestCaseOperation1Input {
s.ListStrings = v
return s
}

type InputService4TestShapeInputService4TestCaseOperation1Output struct {
_ struct{} `type:"structure"`

Expand Down Expand Up @@ -704,12 +638,6 @@ type InputService5TestShapeInputService5TestCaseOperation1Input struct {
ListArg []string `locationName:"ListMemberName" locationNameList:"item" type:"list"`
}

// SetListArg sets the ListArg field's value.
func (s *InputService5TestShapeInputService5TestCaseOperation1Input) SetListArg(v []string) *InputService5TestShapeInputService5TestCaseOperation1Input {
s.ListArg = v
return s
}

type InputService5TestShapeInputService5TestCaseOperation1Output struct {
_ struct{} `type:"structure"`

Expand Down Expand Up @@ -828,12 +756,6 @@ type InputService6TestShapeInputService6TestCaseOperation1Input struct {
ListArg []string `locationName:"ListMemberName" queryName:"ListQueryName" locationNameList:"item" type:"list"`
}

// SetListArg sets the ListArg field's value.
func (s *InputService6TestShapeInputService6TestCaseOperation1Input) SetListArg(v []string) *InputService6TestShapeInputService6TestCaseOperation1Input {
s.ListArg = v
return s
}

type InputService6TestShapeInputService6TestCaseOperation1Output struct {
_ struct{} `type:"structure"`

Expand Down Expand Up @@ -953,12 +875,6 @@ type InputService7TestShapeInputService7TestCaseOperation1Input struct {
BlobArg []byte `type:"blob"`
}

// SetBlobArg sets the BlobArg field's value.
func (s *InputService7TestShapeInputService7TestCaseOperation1Input) SetBlobArg(v []byte) *InputService7TestShapeInputService7TestCaseOperation1Input {
s.BlobArg = v
return s
}

type InputService7TestShapeInputService7TestCaseOperation1Output struct {
_ struct{} `type:"structure"`

Expand Down Expand Up @@ -1077,12 +993,6 @@ type InputService8TestShapeInputService8TestCaseOperation1Input struct {
TimeArg *time.Time `type:"timestamp" timestampFormat:"iso8601"`
}

// SetTimeArg sets the TimeArg field's value.
func (s *InputService8TestShapeInputService8TestCaseOperation1Input) SetTimeArg(v time.Time) *InputService8TestShapeInputService8TestCaseOperation1Input {
s.TimeArg = &v
return s
}

type InputService8TestShapeInputService8TestCaseOperation1Output struct {
_ struct{} `type:"structure"`

Expand Down Expand Up @@ -1259,12 +1169,6 @@ type InputService9TestShapeInputService9TestCaseOperation2Input struct {
Token *string `type:"string" idempotencyToken:"true"`
}

// SetToken sets the Token field's value.
func (s *InputService9TestShapeInputService9TestCaseOperation2Input) SetToken(v string) *InputService9TestShapeInputService9TestCaseOperation2Input {
s.Token = &v
return s
}

type InputService9TestShapeInputService9TestCaseOperation2Output struct {
_ struct{} `type:"structure"`

Expand Down Expand Up @@ -1443,18 +1347,6 @@ type InputService10TestShapeInputService10TestCaseOperation2Input struct {
ListEnums []InputService10TestShapeEnumType `type:"list"`
}

// SetFooEnum sets the FooEnum field's value.
func (s *InputService10TestShapeInputService10TestCaseOperation2Input) SetFooEnum(v InputService10TestShapeEnumType) *InputService10TestShapeInputService10TestCaseOperation2Input {
s.FooEnum = v
return s
}

// SetListEnums sets the ListEnums field's value.
func (s *InputService10TestShapeInputService10TestCaseOperation2Input) SetListEnums(v []InputService10TestShapeEnumType) *InputService10TestShapeInputService10TestCaseOperation2Input {
s.ListEnums = v
return s
}

type InputService10TestShapeInputService10TestCaseOperation2Output struct {
_ struct{} `type:"structure"`

Expand Down
114 changes: 0 additions & 114 deletions private/protocol/ec2query/unmarshal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,54 +171,6 @@ func (s OutputService1TestShapeOutputService1TestCaseOperation1Output) SDKRespon
return s.responseMetadata
}

// SetChar sets the Char field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetChar(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Char = &v
return s
}

// SetDouble sets the Double field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetDouble(v float64) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Double = &v
return s
}

// SetFalseBool sets the FalseBool field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetFalseBool(v bool) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.FalseBool = &v
return s
}

// SetFloat sets the Float field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetFloat(v float64) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Float = &v
return s
}

// SetLong sets the Long field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetLong(v int64) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Long = &v
return s
}

// SetNum sets the Num field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetNum(v int64) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Num = &v
return s
}

// SetStr sets the Str field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetStr(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Str = &v
return s
}

// SetTrueBool sets the TrueBool field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetTrueBool(v bool) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.TrueBool = &v
return s
}

// OutputService2ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
Expand Down Expand Up @@ -336,12 +288,6 @@ func (s OutputService2TestShapeOutputService2TestCaseOperation1Output) SDKRespon
return s.responseMetadata
}

// SetBlob sets the Blob field's value.
func (s *OutputService2TestShapeOutputService2TestCaseOperation1Output) SetBlob(v []byte) *OutputService2TestShapeOutputService2TestCaseOperation1Output {
s.Blob = v
return s
}

// OutputService3ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
Expand Down Expand Up @@ -458,12 +404,6 @@ func (s OutputService3TestShapeOutputService3TestCaseOperation1Output) SDKRespon
return s.responseMetadata
}

// SetListMember sets the ListMember field's value.
func (s *OutputService3TestShapeOutputService3TestCaseOperation1Output) SetListMember(v []string) *OutputService3TestShapeOutputService3TestCaseOperation1Output {
s.ListMember = v
return s
}

// OutputService4ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
Expand Down Expand Up @@ -580,12 +520,6 @@ func (s OutputService4TestShapeOutputService4TestCaseOperation1Output) SDKRespon
return s.responseMetadata
}

// SetListMember sets the ListMember field's value.
func (s *OutputService4TestShapeOutputService4TestCaseOperation1Output) SetListMember(v []string) *OutputService4TestShapeOutputService4TestCaseOperation1Output {
s.ListMember = v
return s
}

// OutputService5ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
Expand Down Expand Up @@ -702,12 +636,6 @@ func (s OutputService5TestShapeOutputService5TestCaseOperation1Output) SDKRespon
return s.responseMetadata
}

// SetListMember sets the ListMember field's value.
func (s *OutputService5TestShapeOutputService5TestCaseOperation1Output) SetListMember(v []string) *OutputService5TestShapeOutputService5TestCaseOperation1Output {
s.ListMember = v
return s
}

// OutputService6ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
Expand Down Expand Up @@ -824,24 +752,12 @@ func (s OutputService6TestShapeOutputService6TestCaseOperation1Output) SDKRespon
return s.responseMetadata
}

// SetMap sets the Map field's value.
func (s *OutputService6TestShapeOutputService6TestCaseOperation1Output) SetMap(v map[string]OutputService6TestShapeStructureType) *OutputService6TestShapeOutputService6TestCaseOperation1Output {
s.Map = v
return s
}

type OutputService6TestShapeStructureType struct {
_ struct{} `type:"structure"`

Foo *string `locationName:"foo" type:"string"`
}

// SetFoo sets the Foo field's value.
func (s *OutputService6TestShapeStructureType) SetFoo(v string) *OutputService6TestShapeStructureType {
s.Foo = &v
return s
}

// OutputService7ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
Expand Down Expand Up @@ -958,12 +874,6 @@ func (s OutputService7TestShapeOutputService7TestCaseOperation1Output) SDKRespon
return s.responseMetadata
}

// SetMap sets the Map field's value.
func (s *OutputService7TestShapeOutputService7TestCaseOperation1Output) SetMap(v map[string]string) *OutputService7TestShapeOutputService7TestCaseOperation1Output {
s.Map = v
return s
}

// OutputService8ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
Expand Down Expand Up @@ -1080,12 +990,6 @@ func (s OutputService8TestShapeOutputService8TestCaseOperation1Output) SDKRespon
return s.responseMetadata
}

// SetMap sets the Map field's value.
func (s *OutputService8TestShapeOutputService8TestCaseOperation1Output) SetMap(v map[string]string) *OutputService8TestShapeOutputService8TestCaseOperation1Output {
s.Map = v
return s
}

// OutputService9ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
Expand Down Expand Up @@ -1202,12 +1106,6 @@ func (s OutputService9TestShapeOutputService9TestCaseOperation1Output) SDKRespon
return s.responseMetadata
}

// SetFoo sets the Foo field's value.
func (s *OutputService9TestShapeOutputService9TestCaseOperation1Output) SetFoo(v string) *OutputService9TestShapeOutputService9TestCaseOperation1Output {
s.Foo = &v
return s
}

// OutputService10ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
Expand Down Expand Up @@ -1326,18 +1224,6 @@ func (s OutputService10TestShapeOutputService10TestCaseOperation1Output) SDKResp
return s.responseMetadata
}

// SetFooEnum sets the FooEnum field's value.
func (s *OutputService10TestShapeOutputService10TestCaseOperation1Output) SetFooEnum(v OutputService10TestShapeEC2EnumType) *OutputService10TestShapeOutputService10TestCaseOperation1Output {
s.FooEnum = v
return s
}

// SetListEnums sets the ListEnums field's value.
func (s *OutputService10TestShapeOutputService10TestCaseOperation1Output) SetListEnums(v []OutputService10TestShapeEC2EnumType) *OutputService10TestShapeOutputService10TestCaseOperation1Output {
s.ListEnums = v
return s
}

type OutputService10TestShapeEC2EnumType string

// Enum values for OutputService10TestShapeEC2EnumType
Expand Down
Loading