3232/** Set this to customize active health checks for targets in this pool. */
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 ActiveHealthCheck {
3737 public static final String SERIALIZED_NAME_HEALTHY_THRESHOLD = "healthyThreshold" ;
3838
@@ -262,6 +262,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
262262 .isEmpty ()) { // has required fields but JSON element is null
263263 throw new IllegalArgumentException (
264264 String .format (
265+ java .util .Locale .ROOT ,
265266 "The required field(s) %s in ActiveHealthCheck is not found in the empty JSON string" ,
266267 ActiveHealthCheck .openapiRequiredFields .toString ()));
267268 }
@@ -273,8 +274,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
273274 if (!ActiveHealthCheck .openapiFields .contains (entry .getKey ())) {
274275 throw new IllegalArgumentException (
275276 String .format (
277+ java .util .Locale .ROOT ,
276278 "The field `%s` in the JSON string is not defined in the `ActiveHealthCheck` properties. JSON: %s" ,
277- entry .getKey (), jsonElement .toString ()));
279+ entry .getKey (),
280+ jsonElement .toString ()));
278281 }
279282 }
280283 JsonObject jsonObj = jsonElement .getAsJsonObject ();
@@ -287,20 +290,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
287290 && !jsonObj .get ("interval" ).isJsonPrimitive ()) {
288291 throw new IllegalArgumentException (
289292 String .format (
293+ java .util .Locale .ROOT ,
290294 "Expected the field `interval` to be a primitive type in the JSON string but got `%s`" ,
291295 jsonObj .get ("interval" ).toString ()));
292296 }
293297 if ((jsonObj .get ("intervalJitter" ) != null && !jsonObj .get ("intervalJitter" ).isJsonNull ())
294298 && !jsonObj .get ("intervalJitter" ).isJsonPrimitive ()) {
295299 throw new IllegalArgumentException (
296300 String .format (
301+ java .util .Locale .ROOT ,
297302 "Expected the field `intervalJitter` to be a primitive type in the JSON string but got `%s`" ,
298303 jsonObj .get ("intervalJitter" ).toString ()));
299304 }
300305 if ((jsonObj .get ("timeout" ) != null && !jsonObj .get ("timeout" ).isJsonNull ())
301306 && !jsonObj .get ("timeout" ).isJsonPrimitive ()) {
302307 throw new IllegalArgumentException (
303308 String .format (
309+ java .util .Locale .ROOT ,
304310 "Expected the field `timeout` to be a primitive type in the JSON string but got `%s`" ,
305311 jsonObj .get ("timeout" ).toString ()));
306312 }
0 commit comments