3737/** CreateLoadBalancerPayload */
3838@ javax .annotation .Generated (
3939 value = "org.openapitools.codegen.languages.JavaClientCodegen" ,
40- comments = "Generator version: 7.15 .0" )
40+ comments = "Generator version: 7.19 .0" )
4141public class CreateLoadBalancerPayload {
4242 public static final String SERIALIZED_NAME_DISABLE_TARGET_SECURITY_GROUP_ASSIGNMENT =
4343 "disableTargetSecurityGroupAssignment" ;
@@ -638,6 +638,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
638638 .isEmpty ()) { // has required fields but JSON element is null
639639 throw new IllegalArgumentException (
640640 String .format (
641+ java .util .Locale .ROOT ,
641642 "The required field(s) %s in CreateLoadBalancerPayload is not found in the empty JSON string" ,
642643 CreateLoadBalancerPayload .openapiRequiredFields .toString ()));
643644 }
@@ -649,8 +650,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
649650 if (!CreateLoadBalancerPayload .openapiFields .contains (entry .getKey ())) {
650651 throw new IllegalArgumentException (
651652 String .format (
653+ java .util .Locale .ROOT ,
652654 "The field `%s` in the JSON string is not defined in the `CreateLoadBalancerPayload` properties. JSON: %s" ,
653- entry .getKey (), jsonElement .toString ()));
655+ entry .getKey (),
656+ jsonElement .toString ()));
654657 }
655658 }
656659 JsonObject jsonObj = jsonElement .getAsJsonObject ();
@@ -661,6 +664,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
661664 if (!jsonObj .get ("errors" ).isJsonArray ()) {
662665 throw new IllegalArgumentException (
663666 String .format (
667+ java .util .Locale .ROOT ,
664668 "Expected the field `errors` to be an array in the JSON string but got `%s`" ,
665669 jsonObj .get ("errors" ).toString ()));
666670 }
@@ -676,6 +680,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
676680 && !jsonObj .get ("externalAddress" ).isJsonPrimitive ()) {
677681 throw new IllegalArgumentException (
678682 String .format (
683+ java .util .Locale .ROOT ,
679684 "Expected the field `externalAddress` to be a primitive type in the JSON string but got `%s`" ,
680685 jsonObj .get ("externalAddress" ).toString ()));
681686 }
@@ -686,6 +691,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
686691 if (!jsonObj .get ("listeners" ).isJsonArray ()) {
687692 throw new IllegalArgumentException (
688693 String .format (
694+ java .util .Locale .ROOT ,
689695 "Expected the field `listeners` to be an array in the JSON string but got `%s`" ,
690696 jsonObj .get ("listeners" ).toString ()));
691697 }
@@ -706,6 +712,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
706712 && !jsonObj .get ("name" ).isJsonPrimitive ()) {
707713 throw new IllegalArgumentException (
708714 String .format (
715+ java .util .Locale .ROOT ,
709716 "Expected the field `name` to be a primitive type in the JSON string but got `%s`" ,
710717 jsonObj .get ("name" ).toString ()));
711718 }
@@ -716,6 +723,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
716723 if (!jsonObj .get ("networks" ).isJsonArray ()) {
717724 throw new IllegalArgumentException (
718725 String .format (
726+ java .util .Locale .ROOT ,
719727 "Expected the field `networks` to be an array in the JSON string but got `%s`" ,
720728 jsonObj .get ("networks" ).toString ()));
721729 }
@@ -735,27 +743,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
735743 && !jsonObj .get ("planId" ).isJsonPrimitive ()) {
736744 throw new IllegalArgumentException (
737745 String .format (
746+ java .util .Locale .ROOT ,
738747 "Expected the field `planId` to be a primitive type in the JSON string but got `%s`" ,
739748 jsonObj .get ("planId" ).toString ()));
740749 }
741750 if ((jsonObj .get ("privateAddress" ) != null && !jsonObj .get ("privateAddress" ).isJsonNull ())
742751 && !jsonObj .get ("privateAddress" ).isJsonPrimitive ()) {
743752 throw new IllegalArgumentException (
744753 String .format (
754+ java .util .Locale .ROOT ,
745755 "Expected the field `privateAddress` to be a primitive type in the JSON string but got `%s`" ,
746756 jsonObj .get ("privateAddress" ).toString ()));
747757 }
748758 if ((jsonObj .get ("region" ) != null && !jsonObj .get ("region" ).isJsonNull ())
749759 && !jsonObj .get ("region" ).isJsonPrimitive ()) {
750760 throw new IllegalArgumentException (
751761 String .format (
762+ java .util .Locale .ROOT ,
752763 "Expected the field `region` to be a primitive type in the JSON string but got `%s`" ,
753764 jsonObj .get ("region" ).toString ()));
754765 }
755766 if ((jsonObj .get ("status" ) != null && !jsonObj .get ("status" ).isJsonNull ())
756767 && !jsonObj .get ("status" ).isJsonPrimitive ()) {
757768 throw new IllegalArgumentException (
758769 String .format (
770+ java .util .Locale .ROOT ,
759771 "Expected the field `status` to be a primitive type in the JSON string but got `%s`" ,
760772 jsonObj .get ("status" ).toString ()));
761773 }
@@ -770,6 +782,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
770782 if (!jsonObj .get ("targetPools" ).isJsonArray ()) {
771783 throw new IllegalArgumentException (
772784 String .format (
785+ java .util .Locale .ROOT ,
773786 "Expected the field `targetPools` to be an array in the JSON string but got `%s`" ,
774787 jsonObj .get ("targetPools" ).toString ()));
775788 }
@@ -790,6 +803,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
790803 && !jsonObj .get ("version" ).isJsonPrimitive ()) {
791804 throw new IllegalArgumentException (
792805 String .format (
806+ java .util .Locale .ROOT ,
793807 "Expected the field `version` to be a primitive type in the JSON string but got `%s`" ,
794808 jsonObj .get ("version" ).toString ()));
795809 }
0 commit comments