@@ -43,16 +43,32 @@ public final class NestedOptions implements SdkPojo, Serializable, ToCopyableBui
4343 .memberName ("pageSize" ).getter (getter (NestedOptions ::pageSize )).setter (setter (Builder ::pageSize ))
4444 .traits (LocationTrait .builder ().location (MarshallLocation .PAYLOAD ).locationName ("pageSize" ).build ()).build ();
4545
46- private static final List <SdkField <?>> SDK_FIELDS = Collections .unmodifiableList (Arrays .asList (PAGE_SIZE_FIELD ));
46+ private static final SdkField <String > HEADER_PARAM_FIELD = SdkField .<String > builder (MarshallingType .STRING )
47+ .memberName ("headerParam" ).getter (getter (NestedOptions ::headerParam )).setter (setter (Builder ::headerParam ))
48+ .traits (LocationTrait .builder ().location (MarshallLocation .PAYLOAD ).locationName ("x-amz-nested-header" ).build ())
49+ .build ();
50+
51+ private static final SdkField <String > QUERY_PARAM_FIELD = SdkField .<String > builder (MarshallingType .STRING )
52+ .memberName ("queryParam" ).getter (getter (NestedOptions ::queryParam )).setter (setter (Builder ::queryParam ))
53+ .traits (LocationTrait .builder ().location (MarshallLocation .PAYLOAD ).locationName ("nestedQuery" ).build ()).build ();
54+
55+ private static final List <SdkField <?>> SDK_FIELDS = Collections .unmodifiableList (Arrays .asList (PAGE_SIZE_FIELD ,
56+ HEADER_PARAM_FIELD , QUERY_PARAM_FIELD ));
4757
4858 private static final Map <String , SdkField <?>> SDK_NAME_TO_FIELD = memberNameToFieldInitializer ();
4959
5060 private static final long serialVersionUID = 1L ;
5161
5262 private final String pageSize ;
5363
64+ private final String headerParam ;
65+
66+ private final String queryParam ;
67+
5468 private NestedOptions (BuilderImpl builder ) {
5569 this .pageSize = builder .pageSize ;
70+ this .headerParam = builder .headerParam ;
71+ this .queryParam = builder .queryParam ;
5672 }
5773
5874 /**
@@ -64,6 +80,24 @@ public final String pageSize() {
6480 return pageSize ;
6581 }
6682
83+ /**
84+ * Returns the value of the HeaderParam property for this object.
85+ *
86+ * @return The value of the HeaderParam property for this object.
87+ */
88+ public final String headerParam () {
89+ return headerParam ;
90+ }
91+
92+ /**
93+ * Returns the value of the QueryParam property for this object.
94+ *
95+ * @return The value of the QueryParam property for this object.
96+ */
97+ public final String queryParam () {
98+ return queryParam ;
99+ }
100+
67101 @ Override
68102 public Builder toBuilder () {
69103 return new BuilderImpl (this );
@@ -81,6 +115,8 @@ public static Class<? extends Builder> serializableBuilderClass() {
81115 public final int hashCode () {
82116 int hashCode = 1 ;
83117 hashCode = 31 * hashCode + Objects .hashCode (pageSize ());
118+ hashCode = 31 * hashCode + Objects .hashCode (headerParam ());
119+ hashCode = 31 * hashCode + Objects .hashCode (queryParam ());
84120 return hashCode ;
85121 }
86122
@@ -101,7 +137,8 @@ public final boolean equalsBySdkFields(Object obj) {
101137 return false ;
102138 }
103139 NestedOptions other = (NestedOptions ) obj ;
104- return Objects .equals (pageSize (), other .pageSize ());
140+ return Objects .equals (pageSize (), other .pageSize ()) && Objects .equals (headerParam (), other .headerParam ())
141+ && Objects .equals (queryParam (), other .queryParam ());
105142 }
106143
107144 /**
@@ -110,13 +147,18 @@ public final boolean equalsBySdkFields(Object obj) {
110147 */
111148 @ Override
112149 public final String toString () {
113- return ToString .builder ("NestedOptions" ).add ("PageSize" , pageSize ()).build ();
150+ return ToString .builder ("NestedOptions" ).add ("PageSize" , pageSize ()).add ("HeaderParam" , headerParam ())
151+ .add ("QueryParam" , queryParam ()).build ();
114152 }
115153
116154 public final <T > Optional <T > getValueForField (String fieldName , Class <T > clazz ) {
117155 switch (fieldName ) {
118156 case "pageSize" :
119157 return Optional .ofNullable (clazz .cast (pageSize ()));
158+ case "headerParam" :
159+ return Optional .ofNullable (clazz .cast (headerParam ()));
160+ case "queryParam" :
161+ return Optional .ofNullable (clazz .cast (queryParam ()));
120162 default :
121163 return Optional .empty ();
122164 }
@@ -135,6 +177,8 @@ public final Map<String, SdkField<?>> sdkFieldNameToField() {
135177 private static Map <String , SdkField <?>> memberNameToFieldInitializer () {
136178 Map <String , SdkField <?>> map = new HashMap <>();
137179 map .put ("pageSize" , PAGE_SIZE_FIELD );
180+ map .put ("x-amz-nested-header" , HEADER_PARAM_FIELD );
181+ map .put ("nestedQuery" , QUERY_PARAM_FIELD );
138182 return Collections .unmodifiableMap (map );
139183 }
140184
@@ -157,16 +201,40 @@ public interface Builder extends SdkPojo, CopyableBuilder<Builder, NestedOptions
157201 * @return Returns a reference to this object so that method calls can be chained together.
158202 */
159203 Builder pageSize (String pageSize );
204+
205+ /**
206+ * Sets the value of the HeaderParam property for this object.
207+ *
208+ * @param headerParam
209+ * The new value for the HeaderParam property for this object.
210+ * @return Returns a reference to this object so that method calls can be chained together.
211+ */
212+ Builder headerParam (String headerParam );
213+
214+ /**
215+ * Sets the value of the QueryParam property for this object.
216+ *
217+ * @param queryParam
218+ * The new value for the QueryParam property for this object.
219+ * @return Returns a reference to this object so that method calls can be chained together.
220+ */
221+ Builder queryParam (String queryParam );
160222 }
161223
162224 static final class BuilderImpl implements Builder {
163225 private String pageSize ;
164226
227+ private String headerParam ;
228+
229+ private String queryParam ;
230+
165231 private BuilderImpl () {
166232 }
167233
168234 private BuilderImpl (NestedOptions model ) {
169235 pageSize (model .pageSize );
236+ headerParam (model .headerParam );
237+ queryParam (model .queryParam );
170238 }
171239
172240 public final String getPageSize () {
@@ -183,6 +251,34 @@ public final Builder pageSize(String pageSize) {
183251 return this ;
184252 }
185253
254+ public final String getHeaderParam () {
255+ return headerParam ;
256+ }
257+
258+ public final void setHeaderParam (String headerParam ) {
259+ this .headerParam = headerParam ;
260+ }
261+
262+ @ Override
263+ public final Builder headerParam (String headerParam ) {
264+ this .headerParam = headerParam ;
265+ return this ;
266+ }
267+
268+ public final String getQueryParam () {
269+ return queryParam ;
270+ }
271+
272+ public final void setQueryParam (String queryParam ) {
273+ this .queryParam = queryParam ;
274+ }
275+
276+ @ Override
277+ public final Builder queryParam (String queryParam ) {
278+ this .queryParam = queryParam ;
279+ return this ;
280+ }
281+
186282 @ Override
187283 public NestedOptions build () {
188284 return new NestedOptions (this );
0 commit comments