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

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

package io.kubernetes.client.models;

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

public class V1NodeConfigStatusBuilder extends V1NodeConfigStatusFluentImpl implements VisitableBuilder{

    V1NodeConfigStatusFluent fluent;
    Boolean validationEnabled;

    public V1NodeConfigStatusBuilder(){
            this(true);
    }
    public V1NodeConfigStatusBuilder(Boolean validationEnabled){
            this(new V1NodeConfigStatus(), validationEnabled);
    }
    public V1NodeConfigStatusBuilder(V1NodeConfigStatusFluent fluent){
            this(fluent, true);
    }
    public V1NodeConfigStatusBuilder(V1NodeConfigStatusFluent fluent,Boolean validationEnabled){
            this(fluent, new V1NodeConfigStatus(), validationEnabled);
    }
    public V1NodeConfigStatusBuilder(V1NodeConfigStatusFluent fluent,V1NodeConfigStatus instance){
            this(fluent, instance, true);
    }
    public V1NodeConfigStatusBuilder(V1NodeConfigStatusFluent fluent,V1NodeConfigStatus instance,Boolean validationEnabled){
            this.fluent = fluent; 
            fluent.withActive(instance.getActive());

            fluent.withAssigned(instance.getAssigned());

            fluent.withError(instance.getError());

            fluent.withLastKnownGood(instance.getLastKnownGood());

            this.validationEnabled = validationEnabled; 
    }
    public V1NodeConfigStatusBuilder(V1NodeConfigStatus instance){
            this(instance,true);
    }
    public V1NodeConfigStatusBuilder(V1NodeConfigStatus instance,Boolean validationEnabled){
            this.fluent = this; 
            this.withActive(instance.getActive());

            this.withAssigned(instance.getAssigned());

            this.withError(instance.getError());

            this.withLastKnownGood(instance.getLastKnownGood());

            this.validationEnabled = validationEnabled; 
    }

    public V1NodeConfigStatus build(){
            V1NodeConfigStatus buildable = new V1NodeConfigStatus();
            buildable.setActive(fluent.getActive());
            buildable.setAssigned(fluent.getAssigned());
            buildable.setError(fluent.getError());
            buildable.setLastKnownGood(fluent.getLastKnownGood());
            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;
            V1NodeConfigStatusBuilder that = (V1NodeConfigStatusBuilder) 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