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

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

package io.kubernetes.client.models;

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

public class V1ConfigMapNodeConfigSourceBuilder extends V1ConfigMapNodeConfigSourceFluentImpl implements VisitableBuilder{

    V1ConfigMapNodeConfigSourceFluent fluent;
    Boolean validationEnabled;

    public V1ConfigMapNodeConfigSourceBuilder(){
            this(true);
    }
    public V1ConfigMapNodeConfigSourceBuilder(Boolean validationEnabled){
            this(new V1ConfigMapNodeConfigSource(), validationEnabled);
    }
    public V1ConfigMapNodeConfigSourceBuilder(V1ConfigMapNodeConfigSourceFluent fluent){
            this(fluent, true);
    }
    public V1ConfigMapNodeConfigSourceBuilder(V1ConfigMapNodeConfigSourceFluent fluent,Boolean validationEnabled){
            this(fluent, new V1ConfigMapNodeConfigSource(), validationEnabled);
    }
    public V1ConfigMapNodeConfigSourceBuilder(V1ConfigMapNodeConfigSourceFluent fluent,V1ConfigMapNodeConfigSource instance){
            this(fluent, instance, true);
    }
    public V1ConfigMapNodeConfigSourceBuilder(V1ConfigMapNodeConfigSourceFluent fluent,V1ConfigMapNodeConfigSource instance,Boolean validationEnabled){
            this.fluent = fluent; 
            fluent.withKubeletConfigKey(instance.getKubeletConfigKey());

            fluent.withName(instance.getName());

            fluent.withNamespace(instance.getNamespace());

            fluent.withResourceVersion(instance.getResourceVersion());

            fluent.withUid(instance.getUid());

            this.validationEnabled = validationEnabled; 
    }
    public V1ConfigMapNodeConfigSourceBuilder(V1ConfigMapNodeConfigSource instance){
            this(instance,true);
    }
    public V1ConfigMapNodeConfigSourceBuilder(V1ConfigMapNodeConfigSource instance,Boolean validationEnabled){
            this.fluent = this; 
            this.withKubeletConfigKey(instance.getKubeletConfigKey());

            this.withName(instance.getName());

            this.withNamespace(instance.getNamespace());

            this.withResourceVersion(instance.getResourceVersion());

            this.withUid(instance.getUid());

            this.validationEnabled = validationEnabled; 
    }

    public V1ConfigMapNodeConfigSource build(){
            V1ConfigMapNodeConfigSource buildable = new V1ConfigMapNodeConfigSource();
            buildable.setKubeletConfigKey(fluent.getKubeletConfigKey());
            buildable.setName(fluent.getName());
            buildable.setNamespace(fluent.getNamespace());
            buildable.setResourceVersion(fluent.getResourceVersion());
            buildable.setUid(fluent.getUid());
            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;
            V1ConfigMapNodeConfigSourceBuilder that = (V1ConfigMapNodeConfigSourceBuilder) 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