5555 */
5656@ javax .annotation .Generated (value = "org.openapitools.codegen.languages.JavaClientCodegen" )
5757public class SpendingPlansResponseBody {
58- public static final String SERIALIZED_NAME_ITERATION_ITEMS = "iteration_items " ;
59- @ SerializedName (SERIALIZED_NAME_ITERATION_ITEMS )
60- private List <SpendingPlanResponse > iterationItems ;
58+ public static final String SERIALIZED_NAME_SPENDING_PLANS = "spending_plans " ;
59+ @ SerializedName (SERIALIZED_NAME_SPENDING_PLANS )
60+ private List <SpendingPlanResponse > spendingPlans ;
6161
6262 public static final String SERIALIZED_NAME_PAGINATION = "pagination" ;
6363 @ SerializedName (SERIALIZED_NAME_PAGINATION )
@@ -66,32 +66,32 @@ public class SpendingPlansResponseBody {
6666 public SpendingPlansResponseBody () {
6767 }
6868
69- public SpendingPlansResponseBody iterationItems (List <SpendingPlanResponse > iterationItems ) {
69+ public SpendingPlansResponseBody spendingPlans (List <SpendingPlanResponse > spendingPlans ) {
7070
71- this .iterationItems = iterationItems ;
71+ this .spendingPlans = spendingPlans ;
7272 return this ;
7373 }
7474
75- public SpendingPlansResponseBody addIterationItemsItem (SpendingPlanResponse iterationItemsItem ) {
76- if (this .iterationItems == null ) {
77- this .iterationItems = new ArrayList <>();
75+ public SpendingPlansResponseBody addSpendingPlansItem (SpendingPlanResponse spendingPlansItem ) {
76+ if (this .spendingPlans == null ) {
77+ this .spendingPlans = new ArrayList <>();
7878 }
79- this .iterationItems .add (iterationItemsItem );
79+ this .spendingPlans .add (spendingPlansItem );
8080 return this ;
8181 }
8282
8383 /**
84- * Get iterationItems
85- * @return iterationItems
84+ * Get spendingPlans
85+ * @return spendingPlans
8686 **/
8787 @ javax .annotation .Nullable
88- public List <SpendingPlanResponse > getIterationItems () {
89- return iterationItems ;
88+ public List <SpendingPlanResponse > getSpendingPlans () {
89+ return spendingPlans ;
9090 }
9191
9292
93- public void setIterationItems (List <SpendingPlanResponse > iterationItems ) {
94- this .iterationItems = iterationItems ;
93+ public void setSpendingPlans (List <SpendingPlanResponse > spendingPlans ) {
94+ this .spendingPlans = spendingPlans ;
9595 }
9696
9797
@@ -126,20 +126,20 @@ public boolean equals(Object o) {
126126 return false ;
127127 }
128128 SpendingPlansResponseBody spendingPlansResponseBody = (SpendingPlansResponseBody ) o ;
129- return Objects .equals (this .iterationItems , spendingPlansResponseBody .iterationItems ) &&
129+ return Objects .equals (this .spendingPlans , spendingPlansResponseBody .spendingPlans ) &&
130130 Objects .equals (this .pagination , spendingPlansResponseBody .pagination );
131131 }
132132
133133 @ Override
134134 public int hashCode () {
135- return Objects .hash (iterationItems , pagination );
135+ return Objects .hash (spendingPlans , pagination );
136136 }
137137
138138 @ Override
139139 public String toString () {
140140 StringBuilder sb = new StringBuilder ();
141141 sb .append ("class SpendingPlansResponseBody {\n " );
142- sb .append (" iterationItems : " ).append (toIndentedString (iterationItems )).append ("\n " );
142+ sb .append (" spendingPlans : " ).append (toIndentedString (spendingPlans )).append ("\n " );
143143 sb .append (" pagination: " ).append (toIndentedString (pagination )).append ("\n " );
144144 sb .append ("}" );
145145 return sb .toString ();
@@ -163,7 +163,7 @@ private String toIndentedString(Object o) {
163163 static {
164164 // a set of all properties/fields (JSON key names)
165165 openapiFields = new HashSet <String >();
166- openapiFields .add ("iteration_items " );
166+ openapiFields .add ("spending_plans " );
167167 openapiFields .add ("pagination" );
168168
169169 // a set of required properties/fields (JSON key names)
@@ -191,17 +191,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
191191 }
192192 }
193193 JsonObject jsonObj = jsonElement .getAsJsonObject ();
194- if (jsonObj .get ("iteration_items " ) != null && !jsonObj .get ("iteration_items " ).isJsonNull ()) {
195- JsonArray jsonArrayiterationItems = jsonObj .getAsJsonArray ("iteration_items " );
196- if (jsonArrayiterationItems != null ) {
194+ if (jsonObj .get ("spending_plans " ) != null && !jsonObj .get ("spending_plans " ).isJsonNull ()) {
195+ JsonArray jsonArrayspendingPlans = jsonObj .getAsJsonArray ("spending_plans " );
196+ if (jsonArrayspendingPlans != null ) {
197197 // ensure the json data is an array
198- if (!jsonObj .get ("iteration_items " ).isJsonArray ()) {
199- throw new IllegalArgumentException (String .format ("Expected the field `iteration_items ` to be an array in the JSON string but got `%s`" , jsonObj .get ("iteration_items " ).toString ()));
198+ if (!jsonObj .get ("spending_plans " ).isJsonArray ()) {
199+ throw new IllegalArgumentException (String .format ("Expected the field `spending_plans ` to be an array in the JSON string but got `%s`" , jsonObj .get ("spending_plans " ).toString ()));
200200 }
201201
202- // validate the optional field `iteration_items ` (array)
203- for (int i = 0 ; i < jsonArrayiterationItems .size (); i ++) {
204- SpendingPlanResponse .validateJsonElement (jsonArrayiterationItems .get (i ));
202+ // validate the optional field `spending_plans ` (array)
203+ for (int i = 0 ; i < jsonArrayspendingPlans .size (); i ++) {
204+ SpendingPlanResponse .validateJsonElement (jsonArrayspendingPlans .get (i ));
205205 };
206206 }
207207 }
0 commit comments