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

io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder Maven / Gradle / Ivy

There is a newer version: 22.0.0
Show newest version
package io.kubernetes.client.openapi.models;

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

public class V1CustomResourceColumnDefinitionBuilder extends V1CustomResourceColumnDefinitionFluentImpl implements VisitableBuilder {

    V1CustomResourceColumnDefinitionFluent fluent;
    Boolean validationEnabled;

    public V1CustomResourceColumnDefinitionBuilder() { 
        this(true);
    }


    public V1CustomResourceColumnDefinitionBuilder(Boolean validationEnabled) { 
        this(new V1CustomResourceColumnDefinition(), validationEnabled);
    }


    public V1CustomResourceColumnDefinitionBuilder(V1CustomResourceColumnDefinitionFluent fluent) { 
        this(fluent, true);
    }


    public V1CustomResourceColumnDefinitionBuilder(V1CustomResourceColumnDefinitionFluent fluent,Boolean validationEnabled) { 
        this(fluent, new V1CustomResourceColumnDefinition(), validationEnabled);
    }


    public V1CustomResourceColumnDefinitionBuilder(V1CustomResourceColumnDefinitionFluent fluent,V1CustomResourceColumnDefinition instance) { 
        this(fluent, instance, true);
    }


    public V1CustomResourceColumnDefinitionBuilder(V1CustomResourceColumnDefinitionFluent fluent,V1CustomResourceColumnDefinition instance,Boolean validationEnabled) { 
        this.fluent = fluent; 
        fluent.withDescription(instance.getDescription());

        fluent.withFormat(instance.getFormat());

        fluent.withJsonPath(instance.getJsonPath());

        fluent.withName(instance.getName());

        fluent.withPriority(instance.getPriority());

        fluent.withType(instance.getType());

        this.validationEnabled = validationEnabled; 
    }


    public V1CustomResourceColumnDefinitionBuilder(V1CustomResourceColumnDefinition instance) { 
        this(instance,true);
    }


    public V1CustomResourceColumnDefinitionBuilder(V1CustomResourceColumnDefinition instance,Boolean validationEnabled) { 
        this.fluent = this; 
        this.withDescription(instance.getDescription());

        this.withFormat(instance.getFormat());

        this.withJsonPath(instance.getJsonPath());

        this.withName(instance.getName());

        this.withPriority(instance.getPriority());

        this.withType(instance.getType());

        this.validationEnabled = validationEnabled; 
    }


    public V1CustomResourceColumnDefinition build() {
        V1CustomResourceColumnDefinition buildable = new V1CustomResourceColumnDefinition();
        buildable.setDescription(fluent.getDescription());
        buildable.setFormat(fluent.getFormat());
        buildable.setJsonPath(fluent.getJsonPath());
        buildable.setName(fluent.getName());
        buildable.setPriority(fluent.getPriority());
        buildable.setType(fluent.getType());
        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;
        V1CustomResourceColumnDefinitionBuilder that = (V1CustomResourceColumnDefinitionBuilder) 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;
    }

    public int hashCode() {
        return java.util.Objects.hash(fluent,  validationEnabled,  super.hashCode());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy