io.yupiik.kubernetes.bindings.v1_23_5.v1.JSONSchemaProps Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2022 - Yupiik SAS - https://www.yupiik.com
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package io.yupiik.kubernetes.bindings.v1_23_5.v1;
import io.yupiik.kubernetes.bindings.v1_23_5.Exportable;
import io.yupiik.kubernetes.bindings.v1_23_5.JsonStrings;
import io.yupiik.kubernetes.bindings.v1_23_5.Validable;
import jakarta.json.JsonObject;
import jakarta.json.JsonValue;
import jakarta.json.bind.annotation.JsonbProperty;
import java.util.List;
import java.util.Objects;
import java.util.stream.Stream;
import static java.util.stream.Collectors.joining;
public class JSONSchemaProps implements Validable, Exportable {
private JsonValue additionalItems;
private JsonValue additionalProperties;
private List allOf;
private List anyOf;
@JsonbProperty("default")
private JsonValue defaultValue;
private JsonObject definitions;
private JsonObject dependencies;
private String description;
@JsonbProperty("enum")
private List enumValue;
private JsonValue example;
private Boolean exclusiveMaximum;
private Boolean exclusiveMinimum;
private ExternalDocumentation externalDocs;
private String format;
private String id;
private JsonValue items;
private Integer maxItems;
private Integer maxLength;
private Integer maxProperties;
private Double maximum;
private Integer minItems;
private Integer minLength;
private Integer minProperties;
private Double minimum;
private Double multipleOf;
private JSONSchemaProps not;
private Boolean nullable;
private List oneOf;
private String pattern;
private JsonObject patternProperties;
private JsonObject properties;
@JsonbProperty("$ref")
private String ref;
private List required;
@JsonbProperty("$schema")
private String schema;
private String title;
private String type;
private Boolean uniqueItems;
@JsonbProperty("x-kubernetes-embedded-resource")
private Boolean xKubernetesEmbeddedResource;
@JsonbProperty("x-kubernetes-int-or-string")
private Boolean xKubernetesIntOrString;
@JsonbProperty("x-kubernetes-list-map-keys")
private List xKubernetesListMapKeys;
@JsonbProperty("x-kubernetes-list-type")
private String xKubernetesListType;
@JsonbProperty("x-kubernetes-map-type")
private String xKubernetesMapType;
@JsonbProperty("x-kubernetes-preserve-unknown-fields")
private Boolean xKubernetesPreserveUnknownFields;
@JsonbProperty("x-kubernetes-validations")
private List xKubernetesValidations;
public JSONSchemaProps() {
// no-op
}
public JSONSchemaProps(final JsonValue additionalItems,
final JsonValue additionalProperties,
final List allOf,
final List anyOf,
final JsonValue defaultValue,
final JsonObject definitions,
final JsonObject dependencies,
final String description,
final List enumValue,
final JsonValue example,
final Boolean exclusiveMaximum,
final Boolean exclusiveMinimum,
final ExternalDocumentation externalDocs,
final String format,
final String id,
final JsonValue items,
final Integer maxItems,
final Integer maxLength,
final Integer maxProperties,
final Double maximum,
final Integer minItems,
final Integer minLength,
final Integer minProperties,
final Double minimum,
final Double multipleOf,
final JSONSchemaProps not,
final Boolean nullable,
final List oneOf,
final String pattern,
final JsonObject patternProperties,
final JsonObject properties,
final String ref,
final List required,
final String schema,
final String title,
final String type,
final Boolean uniqueItems,
final Boolean xKubernetesEmbeddedResource,
final Boolean xKubernetesIntOrString,
final List xKubernetesListMapKeys,
final String xKubernetesListType,
final String xKubernetesMapType,
final Boolean xKubernetesPreserveUnknownFields,
final List xKubernetesValidations) {
this.additionalItems = additionalItems;
this.additionalProperties = additionalProperties;
this.allOf = allOf;
this.anyOf = anyOf;
this.defaultValue = defaultValue;
this.definitions = definitions;
this.dependencies = dependencies;
this.description = description;
this.enumValue = enumValue;
this.example = example;
this.exclusiveMaximum = exclusiveMaximum;
this.exclusiveMinimum = exclusiveMinimum;
this.externalDocs = externalDocs;
this.format = format;
this.id = id;
this.items = items;
this.maxItems = maxItems;
this.maxLength = maxLength;
this.maxProperties = maxProperties;
this.maximum = maximum;
this.minItems = minItems;
this.minLength = minLength;
this.minProperties = minProperties;
this.minimum = minimum;
this.multipleOf = multipleOf;
this.not = not;
this.nullable = nullable;
this.oneOf = oneOf;
this.pattern = pattern;
this.patternProperties = patternProperties;
this.properties = properties;
this.ref = ref;
this.required = required;
this.schema = schema;
this.title = title;
this.type = type;
this.uniqueItems = uniqueItems;
this.xKubernetesEmbeddedResource = xKubernetesEmbeddedResource;
this.xKubernetesIntOrString = xKubernetesIntOrString;
this.xKubernetesListMapKeys = xKubernetesListMapKeys;
this.xKubernetesListType = xKubernetesListType;
this.xKubernetesMapType = xKubernetesMapType;
this.xKubernetesPreserveUnknownFields = xKubernetesPreserveUnknownFields;
this.xKubernetesValidations = xKubernetesValidations;
}
public JsonValue getAdditionalItems() {
return additionalItems;
}
public void setAdditionalItems(final JsonValue additionalItems) {
this.additionalItems = additionalItems;
}
public JsonValue getAdditionalProperties() {
return additionalProperties;
}
public void setAdditionalProperties(final JsonValue additionalProperties) {
this.additionalProperties = additionalProperties;
}
public List getAllOf() {
return allOf;
}
public void setAllOf(final List allOf) {
this.allOf = allOf;
}
public List getAnyOf() {
return anyOf;
}
public void setAnyOf(final List anyOf) {
this.anyOf = anyOf;
}
public JsonValue getDefaultValue() {
return defaultValue;
}
public void setDefaultValue(final JsonValue defaultValue) {
this.defaultValue = defaultValue;
}
public JsonObject getDefinitions() {
return definitions;
}
public void setDefinitions(final JsonObject definitions) {
this.definitions = definitions;
}
public JsonObject getDependencies() {
return dependencies;
}
public void setDependencies(final JsonObject dependencies) {
this.dependencies = dependencies;
}
public String getDescription() {
return description;
}
public void setDescription(final String description) {
this.description = description;
}
public List getEnumValue() {
return enumValue;
}
public void setEnumValue(final List enumValue) {
this.enumValue = enumValue;
}
public JsonValue getExample() {
return example;
}
public void setExample(final JsonValue example) {
this.example = example;
}
public Boolean getExclusiveMaximum() {
return exclusiveMaximum;
}
public void setExclusiveMaximum(final Boolean exclusiveMaximum) {
this.exclusiveMaximum = exclusiveMaximum;
}
public Boolean getExclusiveMinimum() {
return exclusiveMinimum;
}
public void setExclusiveMinimum(final Boolean exclusiveMinimum) {
this.exclusiveMinimum = exclusiveMinimum;
}
public ExternalDocumentation getExternalDocs() {
return externalDocs;
}
public void setExternalDocs(final ExternalDocumentation externalDocs) {
this.externalDocs = externalDocs;
}
public String getFormat() {
return format;
}
public void setFormat(final String format) {
this.format = format;
}
public String getId() {
return id;
}
public void setId(final String id) {
this.id = id;
}
public JsonValue getItems() {
return items;
}
public void setItems(final JsonValue items) {
this.items = items;
}
public Integer getMaxItems() {
return maxItems;
}
public void setMaxItems(final Integer maxItems) {
this.maxItems = maxItems;
}
public Integer getMaxLength() {
return maxLength;
}
public void setMaxLength(final Integer maxLength) {
this.maxLength = maxLength;
}
public Integer getMaxProperties() {
return maxProperties;
}
public void setMaxProperties(final Integer maxProperties) {
this.maxProperties = maxProperties;
}
public Double getMaximum() {
return maximum;
}
public void setMaximum(final Double maximum) {
this.maximum = maximum;
}
public Integer getMinItems() {
return minItems;
}
public void setMinItems(final Integer minItems) {
this.minItems = minItems;
}
public Integer getMinLength() {
return minLength;
}
public void setMinLength(final Integer minLength) {
this.minLength = minLength;
}
public Integer getMinProperties() {
return minProperties;
}
public void setMinProperties(final Integer minProperties) {
this.minProperties = minProperties;
}
public Double getMinimum() {
return minimum;
}
public void setMinimum(final Double minimum) {
this.minimum = minimum;
}
public Double getMultipleOf() {
return multipleOf;
}
public void setMultipleOf(final Double multipleOf) {
this.multipleOf = multipleOf;
}
public JSONSchemaProps getNot() {
return not;
}
public void setNot(final JSONSchemaProps not) {
this.not = not;
}
public Boolean getNullable() {
return nullable;
}
public void setNullable(final Boolean nullable) {
this.nullable = nullable;
}
public List getOneOf() {
return oneOf;
}
public void setOneOf(final List oneOf) {
this.oneOf = oneOf;
}
public String getPattern() {
return pattern;
}
public void setPattern(final String pattern) {
this.pattern = pattern;
}
public JsonObject getPatternProperties() {
return patternProperties;
}
public void setPatternProperties(final JsonObject patternProperties) {
this.patternProperties = patternProperties;
}
public JsonObject getProperties() {
return properties;
}
public void setProperties(final JsonObject properties) {
this.properties = properties;
}
public String getRef() {
return ref;
}
public void setRef(final String ref) {
this.ref = ref;
}
public List getRequired() {
return required;
}
public void setRequired(final List required) {
this.required = required;
}
public String getSchema() {
return schema;
}
public void setSchema(final String schema) {
this.schema = schema;
}
public String getTitle() {
return title;
}
public void setTitle(final String title) {
this.title = title;
}
public String getType() {
return type;
}
public void setType(final String type) {
this.type = type;
}
public Boolean getUniqueItems() {
return uniqueItems;
}
public void setUniqueItems(final Boolean uniqueItems) {
this.uniqueItems = uniqueItems;
}
public Boolean getXKubernetesEmbeddedResource() {
return xKubernetesEmbeddedResource;
}
public void setXKubernetesEmbeddedResource(final Boolean xKubernetesEmbeddedResource) {
this.xKubernetesEmbeddedResource = xKubernetesEmbeddedResource;
}
public Boolean getXKubernetesIntOrString() {
return xKubernetesIntOrString;
}
public void setXKubernetesIntOrString(final Boolean xKubernetesIntOrString) {
this.xKubernetesIntOrString = xKubernetesIntOrString;
}
public List getXKubernetesListMapKeys() {
return xKubernetesListMapKeys;
}
public void setXKubernetesListMapKeys(final List xKubernetesListMapKeys) {
this.xKubernetesListMapKeys = xKubernetesListMapKeys;
}
public String getXKubernetesListType() {
return xKubernetesListType;
}
public void setXKubernetesListType(final String xKubernetesListType) {
this.xKubernetesListType = xKubernetesListType;
}
public String getXKubernetesMapType() {
return xKubernetesMapType;
}
public void setXKubernetesMapType(final String xKubernetesMapType) {
this.xKubernetesMapType = xKubernetesMapType;
}
public Boolean getXKubernetesPreserveUnknownFields() {
return xKubernetesPreserveUnknownFields;
}
public void setXKubernetesPreserveUnknownFields(final Boolean xKubernetesPreserveUnknownFields) {
this.xKubernetesPreserveUnknownFields = xKubernetesPreserveUnknownFields;
}
public List getXKubernetesValidations() {
return xKubernetesValidations;
}
public void setXKubernetesValidations(final List xKubernetesValidations) {
this.xKubernetesValidations = xKubernetesValidations;
}
@Override
public int hashCode() {
return Objects.hash(
additionalItems,
additionalProperties,
allOf,
anyOf,
defaultValue,
definitions,
dependencies,
description,
enumValue,
example,
exclusiveMaximum,
exclusiveMinimum,
externalDocs,
format,
id,
items,
maxItems,
maxLength,
maxProperties,
maximum,
minItems,
minLength,
minProperties,
minimum,
multipleOf,
not,
nullable,
oneOf,
pattern,
patternProperties,
properties,
ref,
required,
schema,
title,
type,
uniqueItems,
xKubernetesEmbeddedResource,
xKubernetesIntOrString,
xKubernetesListMapKeys,
xKubernetesListType,
xKubernetesMapType,
xKubernetesPreserveUnknownFields,
xKubernetesValidations);
}
@Override
public boolean equals(final Object __other) {
if (!(__other instanceof JSONSchemaProps)) {
return false;
}
final JSONSchemaProps __otherCasted = (JSONSchemaProps) __other;
return Objects.equals(additionalItems, __otherCasted.additionalItems) &&
Objects.equals(additionalProperties, __otherCasted.additionalProperties) &&
Objects.equals(allOf, __otherCasted.allOf) &&
Objects.equals(anyOf, __otherCasted.anyOf) &&
Objects.equals(defaultValue, __otherCasted.defaultValue) &&
Objects.equals(definitions, __otherCasted.definitions) &&
Objects.equals(dependencies, __otherCasted.dependencies) &&
Objects.equals(description, __otherCasted.description) &&
Objects.equals(enumValue, __otherCasted.enumValue) &&
Objects.equals(example, __otherCasted.example) &&
Objects.equals(exclusiveMaximum, __otherCasted.exclusiveMaximum) &&
Objects.equals(exclusiveMinimum, __otherCasted.exclusiveMinimum) &&
Objects.equals(externalDocs, __otherCasted.externalDocs) &&
Objects.equals(format, __otherCasted.format) &&
Objects.equals(id, __otherCasted.id) &&
Objects.equals(items, __otherCasted.items) &&
Objects.equals(maxItems, __otherCasted.maxItems) &&
Objects.equals(maxLength, __otherCasted.maxLength) &&
Objects.equals(maxProperties, __otherCasted.maxProperties) &&
Objects.equals(maximum, __otherCasted.maximum) &&
Objects.equals(minItems, __otherCasted.minItems) &&
Objects.equals(minLength, __otherCasted.minLength) &&
Objects.equals(minProperties, __otherCasted.minProperties) &&
Objects.equals(minimum, __otherCasted.minimum) &&
Objects.equals(multipleOf, __otherCasted.multipleOf) &&
Objects.equals(not, __otherCasted.not) &&
Objects.equals(nullable, __otherCasted.nullable) &&
Objects.equals(oneOf, __otherCasted.oneOf) &&
Objects.equals(pattern, __otherCasted.pattern) &&
Objects.equals(patternProperties, __otherCasted.patternProperties) &&
Objects.equals(properties, __otherCasted.properties) &&
Objects.equals(ref, __otherCasted.ref) &&
Objects.equals(required, __otherCasted.required) &&
Objects.equals(schema, __otherCasted.schema) &&
Objects.equals(title, __otherCasted.title) &&
Objects.equals(type, __otherCasted.type) &&
Objects.equals(uniqueItems, __otherCasted.uniqueItems) &&
Objects.equals(xKubernetesEmbeddedResource, __otherCasted.xKubernetesEmbeddedResource) &&
Objects.equals(xKubernetesIntOrString, __otherCasted.xKubernetesIntOrString) &&
Objects.equals(xKubernetesListMapKeys, __otherCasted.xKubernetesListMapKeys) &&
Objects.equals(xKubernetesListType, __otherCasted.xKubernetesListType) &&
Objects.equals(xKubernetesMapType, __otherCasted.xKubernetesMapType) &&
Objects.equals(xKubernetesPreserveUnknownFields, __otherCasted.xKubernetesPreserveUnknownFields) &&
Objects.equals(xKubernetesValidations, __otherCasted.xKubernetesValidations);
}
public JSONSchemaProps additionalItems(final JsonValue additionalItems) {
this.additionalItems = additionalItems;
return this;
}
public JSONSchemaProps additionalProperties(final JsonValue additionalProperties) {
this.additionalProperties = additionalProperties;
return this;
}
public JSONSchemaProps allOf(final List allOf) {
this.allOf = allOf;
return this;
}
public JSONSchemaProps anyOf(final List anyOf) {
this.anyOf = anyOf;
return this;
}
public JSONSchemaProps defaultValue(final JsonValue defaultValue) {
this.defaultValue = defaultValue;
return this;
}
public JSONSchemaProps definitions(final JsonObject definitions) {
this.definitions = definitions;
return this;
}
public JSONSchemaProps dependencies(final JsonObject dependencies) {
this.dependencies = dependencies;
return this;
}
public JSONSchemaProps description(final String description) {
this.description = description;
return this;
}
public JSONSchemaProps enumValue(final List enumValue) {
this.enumValue = enumValue;
return this;
}
public JSONSchemaProps example(final JsonValue example) {
this.example = example;
return this;
}
public JSONSchemaProps exclusiveMaximum(final Boolean exclusiveMaximum) {
this.exclusiveMaximum = exclusiveMaximum;
return this;
}
public JSONSchemaProps exclusiveMinimum(final Boolean exclusiveMinimum) {
this.exclusiveMinimum = exclusiveMinimum;
return this;
}
public JSONSchemaProps externalDocs(final ExternalDocumentation externalDocs) {
this.externalDocs = externalDocs;
return this;
}
public JSONSchemaProps format(final String format) {
this.format = format;
return this;
}
public JSONSchemaProps id(final String id) {
this.id = id;
return this;
}
public JSONSchemaProps items(final JsonValue items) {
this.items = items;
return this;
}
public JSONSchemaProps maxItems(final Integer maxItems) {
this.maxItems = maxItems;
return this;
}
public JSONSchemaProps maxLength(final Integer maxLength) {
this.maxLength = maxLength;
return this;
}
public JSONSchemaProps maxProperties(final Integer maxProperties) {
this.maxProperties = maxProperties;
return this;
}
public JSONSchemaProps maximum(final Double maximum) {
this.maximum = maximum;
return this;
}
public JSONSchemaProps minItems(final Integer minItems) {
this.minItems = minItems;
return this;
}
public JSONSchemaProps minLength(final Integer minLength) {
this.minLength = minLength;
return this;
}
public JSONSchemaProps minProperties(final Integer minProperties) {
this.minProperties = minProperties;
return this;
}
public JSONSchemaProps minimum(final Double minimum) {
this.minimum = minimum;
return this;
}
public JSONSchemaProps multipleOf(final Double multipleOf) {
this.multipleOf = multipleOf;
return this;
}
public JSONSchemaProps not(final JSONSchemaProps not) {
this.not = not;
return this;
}
public JSONSchemaProps nullable(final Boolean nullable) {
this.nullable = nullable;
return this;
}
public JSONSchemaProps oneOf(final List oneOf) {
this.oneOf = oneOf;
return this;
}
public JSONSchemaProps pattern(final String pattern) {
this.pattern = pattern;
return this;
}
public JSONSchemaProps patternProperties(final JsonObject patternProperties) {
this.patternProperties = patternProperties;
return this;
}
public JSONSchemaProps properties(final JsonObject properties) {
this.properties = properties;
return this;
}
public JSONSchemaProps ref(final String ref) {
this.ref = ref;
return this;
}
public JSONSchemaProps required(final List required) {
this.required = required;
return this;
}
public JSONSchemaProps schema(final String schema) {
this.schema = schema;
return this;
}
public JSONSchemaProps title(final String title) {
this.title = title;
return this;
}
public JSONSchemaProps type(final String type) {
this.type = type;
return this;
}
public JSONSchemaProps uniqueItems(final Boolean uniqueItems) {
this.uniqueItems = uniqueItems;
return this;
}
public JSONSchemaProps xKubernetesEmbeddedResource(final Boolean xKubernetesEmbeddedResource) {
this.xKubernetesEmbeddedResource = xKubernetesEmbeddedResource;
return this;
}
public JSONSchemaProps xKubernetesIntOrString(final Boolean xKubernetesIntOrString) {
this.xKubernetesIntOrString = xKubernetesIntOrString;
return this;
}
public JSONSchemaProps xKubernetesListMapKeys(final List xKubernetesListMapKeys) {
this.xKubernetesListMapKeys = xKubernetesListMapKeys;
return this;
}
public JSONSchemaProps xKubernetesListType(final String xKubernetesListType) {
this.xKubernetesListType = xKubernetesListType;
return this;
}
public JSONSchemaProps xKubernetesMapType(final String xKubernetesMapType) {
this.xKubernetesMapType = xKubernetesMapType;
return this;
}
public JSONSchemaProps xKubernetesPreserveUnknownFields(final Boolean xKubernetesPreserveUnknownFields) {
this.xKubernetesPreserveUnknownFields = xKubernetesPreserveUnknownFields;
return this;
}
public JSONSchemaProps xKubernetesValidations(final List xKubernetesValidations) {
this.xKubernetesValidations = xKubernetesValidations;
return this;
}
@Override
public JSONSchemaProps validate() {
return this;
}
@Override
public String asJson() {
return Stream.of(
(additionalItems != null ? "\"additionalItems\":" + additionalItems : ""),
(additionalProperties != null ? "\"additionalProperties\":" + additionalProperties : ""),
(allOf != null ? "\"allOf\":" + allOf.stream().map(__it -> __it == null ? "null" : __it.asJson()).collect(joining(",", "[", "]")) : ""),
(anyOf != null ? "\"anyOf\":" + anyOf.stream().map(__it -> __it == null ? "null" : __it.asJson()).collect(joining(",", "[", "]")) : ""),
(defaultValue != null ? "\"default\":" + defaultValue : ""),
(definitions != null ? "\"definitions\":" + definitions : ""),
(dependencies != null ? "\"dependencies\":" + dependencies : ""),
(description != null ? "\"description\":\"" + JsonStrings.escapeJson(description) + "\"" : ""),
(enumValue != null ? "\"enum\":" + enumValue.stream().map(__it -> __it == null ? "null" : String.valueOf(__it)).collect(joining(",", "[", "]")) : ""),
(example != null ? "\"example\":" + example : ""),
(exclusiveMaximum != null ? "\"exclusiveMaximum\":" + exclusiveMaximum : ""),
(exclusiveMinimum != null ? "\"exclusiveMinimum\":" + exclusiveMinimum : ""),
(externalDocs != null ? "\"externalDocs\":" + externalDocs.asJson() : ""),
(format != null ? "\"format\":\"" + JsonStrings.escapeJson(format) + "\"" : ""),
(id != null ? "\"id\":\"" + JsonStrings.escapeJson(id) + "\"" : ""),
(items != null ? "\"items\":" + items : ""),
(maxItems != null ? "\"maxItems\":" + maxItems : ""),
(maxLength != null ? "\"maxLength\":" + maxLength : ""),
(maxProperties != null ? "\"maxProperties\":" + maxProperties : ""),
(maximum != null ? "\"maximum\":" + maximum : ""),
(minItems != null ? "\"minItems\":" + minItems : ""),
(minLength != null ? "\"minLength\":" + minLength : ""),
(minProperties != null ? "\"minProperties\":" + minProperties : ""),
(minimum != null ? "\"minimum\":" + minimum : ""),
(multipleOf != null ? "\"multipleOf\":" + multipleOf : ""),
(not != null ? "\"not\":" + not.asJson() : ""),
(nullable != null ? "\"nullable\":" + nullable : ""),
(oneOf != null ? "\"oneOf\":" + oneOf.stream().map(__it -> __it == null ? "null" : __it.asJson()).collect(joining(",", "[", "]")) : ""),
(pattern != null ? "\"pattern\":\"" + JsonStrings.escapeJson(pattern) + "\"" : ""),
(patternProperties != null ? "\"patternProperties\":" + patternProperties : ""),
(properties != null ? "\"properties\":" + properties : ""),
(ref != null ? "\"$ref\":\"" + JsonStrings.escapeJson(ref) + "\"" : ""),
(required != null ? "\"required\":" + required.stream().map(__it -> __it == null ? "null" : ("\"" + JsonStrings.escapeJson(__it) + "\"")).collect(joining(",", "[", "]")) : ""),
(schema != null ? "\"$schema\":\"" + JsonStrings.escapeJson(schema) + "\"" : ""),
(title != null ? "\"title\":\"" + JsonStrings.escapeJson(title) + "\"" : ""),
(type != null ? "\"type\":\"" + JsonStrings.escapeJson(type) + "\"" : ""),
(uniqueItems != null ? "\"uniqueItems\":" + uniqueItems : ""),
(xKubernetesEmbeddedResource != null ? "\"x-kubernetes-embedded-resource\":" + xKubernetesEmbeddedResource : ""),
(xKubernetesIntOrString != null ? "\"x-kubernetes-int-or-string\":" + xKubernetesIntOrString : ""),
(xKubernetesListMapKeys != null ? "\"x-kubernetes-list-map-keys\":" + xKubernetesListMapKeys.stream().map(__it -> __it == null ? "null" : ("\"" + JsonStrings.escapeJson(__it) + "\"")).collect(joining(",", "[", "]")) : ""),
(xKubernetesListType != null ? "\"x-kubernetes-list-type\":\"" + JsonStrings.escapeJson(xKubernetesListType) + "\"" : ""),
(xKubernetesMapType != null ? "\"x-kubernetes-map-type\":\"" + JsonStrings.escapeJson(xKubernetesMapType) + "\"" : ""),
(xKubernetesPreserveUnknownFields != null ? "\"x-kubernetes-preserve-unknown-fields\":" + xKubernetesPreserveUnknownFields : ""),
(xKubernetesValidations != null ? "\"x-kubernetes-validations\":" + xKubernetesValidations.stream().map(__it -> __it == null ? "null" : __it.asJson()).collect(joining(",", "[", "]")) : ""))
.filter(__it -> !__it.isBlank())
.collect(joining(",", "{", "}"));
}
}