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

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

package io.kubernetes.client.models;

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

public class V1beta2StatefulSetStatusBuilder extends V1beta2StatefulSetStatusFluentImpl implements VisitableBuilder{

    V1beta2StatefulSetStatusFluent fluent;
    Boolean validationEnabled;

    public V1beta2StatefulSetStatusBuilder(){
            this(true);
    }
    public V1beta2StatefulSetStatusBuilder(Boolean validationEnabled){
            this(new V1beta2StatefulSetStatus(), validationEnabled);
    }
    public V1beta2StatefulSetStatusBuilder(V1beta2StatefulSetStatusFluent fluent){
            this(fluent, true);
    }
    public V1beta2StatefulSetStatusBuilder(V1beta2StatefulSetStatusFluent fluent,Boolean validationEnabled){
            this(fluent, new V1beta2StatefulSetStatus(), validationEnabled);
    }
    public V1beta2StatefulSetStatusBuilder(V1beta2StatefulSetStatusFluent fluent,V1beta2StatefulSetStatus instance){
            this(fluent, instance, true);
    }
    public V1beta2StatefulSetStatusBuilder(V1beta2StatefulSetStatusFluent fluent,V1beta2StatefulSetStatus instance,Boolean validationEnabled){
            this.fluent = fluent; 
            fluent.withCollisionCount(instance.getCollisionCount());

            fluent.withConditions(instance.getConditions());

            fluent.withCurrentReplicas(instance.getCurrentReplicas());

            fluent.withCurrentRevision(instance.getCurrentRevision());

            fluent.withObservedGeneration(instance.getObservedGeneration());

            fluent.withReadyReplicas(instance.getReadyReplicas());

            fluent.withReplicas(instance.getReplicas());

            fluent.withUpdateRevision(instance.getUpdateRevision());

            fluent.withUpdatedReplicas(instance.getUpdatedReplicas());

            this.validationEnabled = validationEnabled; 
    }
    public V1beta2StatefulSetStatusBuilder(V1beta2StatefulSetStatus instance){
            this(instance,true);
    }
    public V1beta2StatefulSetStatusBuilder(V1beta2StatefulSetStatus instance,Boolean validationEnabled){
            this.fluent = this; 
            this.withCollisionCount(instance.getCollisionCount());

            this.withConditions(instance.getConditions());

            this.withCurrentReplicas(instance.getCurrentReplicas());

            this.withCurrentRevision(instance.getCurrentRevision());

            this.withObservedGeneration(instance.getObservedGeneration());

            this.withReadyReplicas(instance.getReadyReplicas());

            this.withReplicas(instance.getReplicas());

            this.withUpdateRevision(instance.getUpdateRevision());

            this.withUpdatedReplicas(instance.getUpdatedReplicas());

            this.validationEnabled = validationEnabled; 
    }

    public V1beta2StatefulSetStatus build(){
            V1beta2StatefulSetStatus buildable = new V1beta2StatefulSetStatus();
            buildable.setCollisionCount(fluent.getCollisionCount());
            buildable.setConditions(fluent.getConditions());
            buildable.setCurrentReplicas(fluent.getCurrentReplicas());
            buildable.setCurrentRevision(fluent.getCurrentRevision());
            buildable.setObservedGeneration(fluent.getObservedGeneration());
            buildable.setReadyReplicas(fluent.getReadyReplicas());
            buildable.setReplicas(fluent.getReplicas());
            buildable.setUpdateRevision(fluent.getUpdateRevision());
            buildable.setUpdatedReplicas(fluent.getUpdatedReplicas());
            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;
            V1beta2StatefulSetStatusBuilder that = (V1beta2StatefulSetStatusBuilder) 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