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

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

package io.kubernetes.client.models;

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

public class V1NodeStatusBuilder extends V1NodeStatusFluentImpl implements VisitableBuilder{

    V1NodeStatusFluent fluent;
    Boolean validationEnabled;

    public V1NodeStatusBuilder(){
            this(true);
    }
    public V1NodeStatusBuilder(Boolean validationEnabled){
            this(new V1NodeStatus(), validationEnabled);
    }
    public V1NodeStatusBuilder(V1NodeStatusFluent fluent){
            this(fluent, true);
    }
    public V1NodeStatusBuilder(V1NodeStatusFluent fluent,Boolean validationEnabled){
            this(fluent, new V1NodeStatus(), validationEnabled);
    }
    public V1NodeStatusBuilder(V1NodeStatusFluent fluent,V1NodeStatus instance){
            this(fluent, instance, true);
    }
    public V1NodeStatusBuilder(V1NodeStatusFluent fluent,V1NodeStatus instance,Boolean validationEnabled){
            this.fluent = fluent; 
            fluent.withAddresses(instance.getAddresses());

            fluent.withAllocatable(instance.getAllocatable());

            fluent.withCapacity(instance.getCapacity());

            fluent.withConditions(instance.getConditions());

            fluent.withConfig(instance.getConfig());

            fluent.withDaemonEndpoints(instance.getDaemonEndpoints());

            fluent.withImages(instance.getImages());

            fluent.withNodeInfo(instance.getNodeInfo());

            fluent.withPhase(instance.getPhase());

            fluent.withVolumesAttached(instance.getVolumesAttached());

            fluent.withVolumesInUse(instance.getVolumesInUse());

            this.validationEnabled = validationEnabled; 
    }
    public V1NodeStatusBuilder(V1NodeStatus instance){
            this(instance,true);
    }
    public V1NodeStatusBuilder(V1NodeStatus instance,Boolean validationEnabled){
            this.fluent = this; 
            this.withAddresses(instance.getAddresses());

            this.withAllocatable(instance.getAllocatable());

            this.withCapacity(instance.getCapacity());

            this.withConditions(instance.getConditions());

            this.withConfig(instance.getConfig());

            this.withDaemonEndpoints(instance.getDaemonEndpoints());

            this.withImages(instance.getImages());

            this.withNodeInfo(instance.getNodeInfo());

            this.withPhase(instance.getPhase());

            this.withVolumesAttached(instance.getVolumesAttached());

            this.withVolumesInUse(instance.getVolumesInUse());

            this.validationEnabled = validationEnabled; 
    }

    public V1NodeStatus build(){
            V1NodeStatus buildable = new V1NodeStatus();
            buildable.setAddresses(fluent.getAddresses());
            buildable.setAllocatable(fluent.getAllocatable());
            buildable.setCapacity(fluent.getCapacity());
            buildable.setConditions(fluent.getConditions());
            buildable.setConfig(fluent.getConfig());
            buildable.setDaemonEndpoints(fluent.getDaemonEndpoints());
            buildable.setImages(fluent.getImages());
            buildable.setNodeInfo(fluent.getNodeInfo());
            buildable.setPhase(fluent.getPhase());
            buildable.setVolumesAttached(fluent.getVolumesAttached());
            buildable.setVolumesInUse(fluent.getVolumesInUse());
            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;
            V1NodeStatusBuilder that = (V1NodeStatusBuilder) 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