All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.kubernetes.client.models.V1beta1JSONSchemaPropsBuilder Maven / Gradle / Ivy

package io.kubernetes.client.models;

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;

public class V1beta1JSONSchemaPropsBuilder extends V1beta1JSONSchemaPropsFluentImpl implements VisitableBuilder{

    V1beta1JSONSchemaPropsFluent fluent;
    Boolean validationEnabled;

    public V1beta1JSONSchemaPropsBuilder(){
            this(true);
    }
    public V1beta1JSONSchemaPropsBuilder(Boolean validationEnabled){
            this(new V1beta1JSONSchemaProps(), validationEnabled);
    }
    public V1beta1JSONSchemaPropsBuilder(V1beta1JSONSchemaPropsFluent fluent){
            this(fluent, true);
    }
    public V1beta1JSONSchemaPropsBuilder(V1beta1JSONSchemaPropsFluent fluent,Boolean validationEnabled){
            this(fluent, new V1beta1JSONSchemaProps(), validationEnabled);
    }
    public V1beta1JSONSchemaPropsBuilder(V1beta1JSONSchemaPropsFluent fluent,V1beta1JSONSchemaProps instance){
            this(fluent, instance, true);
    }
    public V1beta1JSONSchemaPropsBuilder(V1beta1JSONSchemaPropsFluent fluent,V1beta1JSONSchemaProps instance,Boolean validationEnabled){
            this.fluent = fluent; 
            fluent.withRef(instance.getRef());

            fluent.withSchema(instance.getSchema());

            fluent.withAdditionalItems(instance.getAdditionalItems());

            fluent.withAdditionalProperties(instance.getAdditionalProperties());

            fluent.withAllOf(instance.getAllOf());

            fluent.withAnyOf(instance.getAnyOf());

            fluent.withDefault(instance.getDefault());

            fluent.withDefinitions(instance.getDefinitions());

            fluent.withDependencies(instance.getDependencies());

            fluent.withDescription(instance.getDescription());

            fluent.withEnum(instance.getEnum());

            fluent.withExample(instance.getExample());

            fluent.withExclusiveMaximum(instance.isExclusiveMaximum());

            fluent.withExclusiveMinimum(instance.isExclusiveMinimum());

            fluent.withExternalDocs(instance.getExternalDocs());

            fluent.withFormat(instance.getFormat());

            fluent.withId(instance.getId());

            fluent.withItems(instance.getItems());

            fluent.withMaxItems(instance.getMaxItems());

            fluent.withMaxLength(instance.getMaxLength());

            fluent.withMaxProperties(instance.getMaxProperties());

            fluent.withMaximum(instance.getMaximum());

            fluent.withMinItems(instance.getMinItems());

            fluent.withMinLength(instance.getMinLength());

            fluent.withMinProperties(instance.getMinProperties());

            fluent.withMinimum(instance.getMinimum());

            fluent.withMultipleOf(instance.getMultipleOf());

            fluent.withNot(instance.getNot());

            fluent.withOneOf(instance.getOneOf());

            fluent.withPattern(instance.getPattern());

            fluent.withPatternProperties(instance.getPatternProperties());

            fluent.withProperties(instance.getProperties());

            fluent.withRequired(instance.getRequired());

            fluent.withTitle(instance.getTitle());

            fluent.withType(instance.getType());

            fluent.withUniqueItems(instance.isUniqueItems());

            this.validationEnabled = validationEnabled; 
    }
    public V1beta1JSONSchemaPropsBuilder(V1beta1JSONSchemaProps instance){
            this(instance,true);
    }
    public V1beta1JSONSchemaPropsBuilder(V1beta1JSONSchemaProps instance,Boolean validationEnabled){
            this.fluent = this; 
            this.withRef(instance.getRef());

            this.withSchema(instance.getSchema());

            this.withAdditionalItems(instance.getAdditionalItems());

            this.withAdditionalProperties(instance.getAdditionalProperties());

            this.withAllOf(instance.getAllOf());

            this.withAnyOf(instance.getAnyOf());

            this.withDefault(instance.getDefault());

            this.withDefinitions(instance.getDefinitions());

            this.withDependencies(instance.getDependencies());

            this.withDescription(instance.getDescription());

            this.withEnum(instance.getEnum());

            this.withExample(instance.getExample());

            this.withExclusiveMaximum(instance.isExclusiveMaximum());

            this.withExclusiveMinimum(instance.isExclusiveMinimum());

            this.withExternalDocs(instance.getExternalDocs());

            this.withFormat(instance.getFormat());

            this.withId(instance.getId());

            this.withItems(instance.getItems());

            this.withMaxItems(instance.getMaxItems());

            this.withMaxLength(instance.getMaxLength());

            this.withMaxProperties(instance.getMaxProperties());

            this.withMaximum(instance.getMaximum());

            this.withMinItems(instance.getMinItems());

            this.withMinLength(instance.getMinLength());

            this.withMinProperties(instance.getMinProperties());

            this.withMinimum(instance.getMinimum());

            this.withMultipleOf(instance.getMultipleOf());

            this.withNot(instance.getNot());

            this.withOneOf(instance.getOneOf());

            this.withPattern(instance.getPattern());

            this.withPatternProperties(instance.getPatternProperties());

            this.withProperties(instance.getProperties());

            this.withRequired(instance.getRequired());

            this.withTitle(instance.getTitle());

            this.withType(instance.getType());

            this.withUniqueItems(instance.isUniqueItems());

            this.validationEnabled = validationEnabled; 
    }

    public V1beta1JSONSchemaProps build(){
            V1beta1JSONSchemaProps buildable = new V1beta1JSONSchemaProps();
            buildable.setRef(fluent.getRef());
            buildable.setSchema(fluent.getSchema());
            buildable.setAdditionalItems(fluent.getAdditionalItems());
            buildable.setAdditionalProperties(fluent.getAdditionalProperties());
            buildable.setAllOf(fluent.getAllOf());
            buildable.setAnyOf(fluent.getAnyOf());
            buildable.setDefault(fluent.getDefault());
            buildable.setDefinitions(fluent.getDefinitions());
            buildable.setDependencies(fluent.getDependencies());
            buildable.setDescription(fluent.getDescription());
            buildable.setEnum(fluent.getEnum());
            buildable.setExample(fluent.getExample());
            buildable.setExclusiveMaximum(fluent.isExclusiveMaximum());
            buildable.setExclusiveMinimum(fluent.isExclusiveMinimum());
            buildable.setExternalDocs(fluent.getExternalDocs());
            buildable.setFormat(fluent.getFormat());
            buildable.setId(fluent.getId());
            buildable.setItems(fluent.getItems());
            buildable.setMaxItems(fluent.getMaxItems());
            buildable.setMaxLength(fluent.getMaxLength());
            buildable.setMaxProperties(fluent.getMaxProperties());
            buildable.setMaximum(fluent.getMaximum());
            buildable.setMinItems(fluent.getMinItems());
            buildable.setMinLength(fluent.getMinLength());
            buildable.setMinProperties(fluent.getMinProperties());
            buildable.setMinimum(fluent.getMinimum());
            buildable.setMultipleOf(fluent.getMultipleOf());
            buildable.setNot(fluent.getNot());
            buildable.setOneOf(fluent.getOneOf());
            buildable.setPattern(fluent.getPattern());
            buildable.setPatternProperties(fluent.getPatternProperties());
            buildable.setProperties(fluent.getProperties());
            buildable.setRequired(fluent.getRequired());
            buildable.setTitle(fluent.getTitle());
            buildable.setType(fluent.getType());
            buildable.setUniqueItems(fluent.isUniqueItems());
            return buildable;
    }

    public boolean equals(Object o){
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            if (!super.equals(o)) return false;
            V1beta1JSONSchemaPropsBuilder that = (V1beta1JSONSchemaPropsBuilder) o;
            if (fluent != null &&fluent != this ? !fluent.equals(that.fluent) :that.fluent != null &&fluent != this ) return false;

            if (validationEnabled != null ? !validationEnabled.equals(that.validationEnabled) :that.validationEnabled != null) return false;
            return true;
    }




}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy