3232/** CreateAccessKeyResponse */
3333@ javax .annotation .Generated (
3434 value = "org.openapitools.codegen.languages.JavaClientCodegen" ,
35- comments = "Generator version: 7.15 .0" )
35+ comments = "Generator version: 7.19 .0" )
3636public class CreateAccessKeyResponse {
3737 public static final String SERIALIZED_NAME_ACCESS_KEY = "accessKey" ;
3838
@@ -271,6 +271,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
271271 .isEmpty ()) { // has required fields but JSON element is null
272272 throw new IllegalArgumentException (
273273 String .format (
274+ java .util .Locale .ROOT ,
274275 "The required field(s) %s in CreateAccessKeyResponse is not found in the empty JSON string" ,
275276 CreateAccessKeyResponse .openapiRequiredFields .toString ()));
276277 }
@@ -282,8 +283,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
282283 if (!CreateAccessKeyResponse .openapiFields .contains (entry .getKey ())) {
283284 throw new IllegalArgumentException (
284285 String .format (
286+ java .util .Locale .ROOT ,
285287 "The field `%s` in the JSON string is not defined in the `CreateAccessKeyResponse` properties. JSON: %s" ,
286- entry .getKey (), jsonElement .toString ()));
288+ entry .getKey (),
289+ jsonElement .toString ()));
287290 }
288291 }
289292
@@ -292,45 +295,53 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
292295 if (jsonElement .getAsJsonObject ().get (requiredField ) == null ) {
293296 throw new IllegalArgumentException (
294297 String .format (
298+ java .util .Locale .ROOT ,
295299 "The required field `%s` is not found in the JSON string: %s" ,
296- requiredField , jsonElement .toString ()));
300+ requiredField ,
301+ jsonElement .toString ()));
297302 }
298303 }
299304 JsonObject jsonObj = jsonElement .getAsJsonObject ();
300305 if (!jsonObj .get ("accessKey" ).isJsonPrimitive ()) {
301306 throw new IllegalArgumentException (
302307 String .format (
308+ java .util .Locale .ROOT ,
303309 "Expected the field `accessKey` to be a primitive type in the JSON string but got `%s`" ,
304310 jsonObj .get ("accessKey" ).toString ()));
305311 }
306312 if (!jsonObj .get ("displayName" ).isJsonPrimitive ()) {
307313 throw new IllegalArgumentException (
308314 String .format (
315+ java .util .Locale .ROOT ,
309316 "Expected the field `displayName` to be a primitive type in the JSON string but got `%s`" ,
310317 jsonObj .get ("displayName" ).toString ()));
311318 }
312319 if ((jsonObj .get ("expires" ) != null && !jsonObj .get ("expires" ).isJsonNull ())
313320 && !jsonObj .get ("expires" ).isJsonPrimitive ()) {
314321 throw new IllegalArgumentException (
315322 String .format (
323+ java .util .Locale .ROOT ,
316324 "Expected the field `expires` to be a primitive type in the JSON string but got `%s`" ,
317325 jsonObj .get ("expires" ).toString ()));
318326 }
319327 if (!jsonObj .get ("keyId" ).isJsonPrimitive ()) {
320328 throw new IllegalArgumentException (
321329 String .format (
330+ java .util .Locale .ROOT ,
322331 "Expected the field `keyId` to be a primitive type in the JSON string but got `%s`" ,
323332 jsonObj .get ("keyId" ).toString ()));
324333 }
325334 if (!jsonObj .get ("project" ).isJsonPrimitive ()) {
326335 throw new IllegalArgumentException (
327336 String .format (
337+ java .util .Locale .ROOT ,
328338 "Expected the field `project` to be a primitive type in the JSON string but got `%s`" ,
329339 jsonObj .get ("project" ).toString ()));
330340 }
331341 if (!jsonObj .get ("secretAccessKey" ).isJsonPrimitive ()) {
332342 throw new IllegalArgumentException (
333343 String .format (
344+ java .util .Locale .ROOT ,
334345 "Expected the field `secretAccessKey` to be a primitive type in the JSON string but got `%s`" ,
335346 jsonObj .get ("secretAccessKey" ).toString ()));
336347 }
0 commit comments