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

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

package io.kubernetes.client.models;

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

public class V1beta1VolumeAttachmentStatusBuilder extends V1beta1VolumeAttachmentStatusFluentImpl implements VisitableBuilder{

    V1beta1VolumeAttachmentStatusFluent fluent;
    Boolean validationEnabled;

    public V1beta1VolumeAttachmentStatusBuilder(){
            this(true);
    }
    public V1beta1VolumeAttachmentStatusBuilder(Boolean validationEnabled){
            this(new V1beta1VolumeAttachmentStatus(), validationEnabled);
    }
    public V1beta1VolumeAttachmentStatusBuilder(V1beta1VolumeAttachmentStatusFluent fluent){
            this(fluent, true);
    }
    public V1beta1VolumeAttachmentStatusBuilder(V1beta1VolumeAttachmentStatusFluent fluent,Boolean validationEnabled){
            this(fluent, new V1beta1VolumeAttachmentStatus(), validationEnabled);
    }
    public V1beta1VolumeAttachmentStatusBuilder(V1beta1VolumeAttachmentStatusFluent fluent,V1beta1VolumeAttachmentStatus instance){
            this(fluent, instance, true);
    }
    public V1beta1VolumeAttachmentStatusBuilder(V1beta1VolumeAttachmentStatusFluent fluent,V1beta1VolumeAttachmentStatus instance,Boolean validationEnabled){
            this.fluent = fluent; 
            fluent.withAttachError(instance.getAttachError());

            fluent.withAttached(instance.isAttached());

            fluent.withAttachmentMetadata(instance.getAttachmentMetadata());

            fluent.withDetachError(instance.getDetachError());

            this.validationEnabled = validationEnabled; 
    }
    public V1beta1VolumeAttachmentStatusBuilder(V1beta1VolumeAttachmentStatus instance){
            this(instance,true);
    }
    public V1beta1VolumeAttachmentStatusBuilder(V1beta1VolumeAttachmentStatus instance,Boolean validationEnabled){
            this.fluent = this; 
            this.withAttachError(instance.getAttachError());

            this.withAttached(instance.isAttached());

            this.withAttachmentMetadata(instance.getAttachmentMetadata());

            this.withDetachError(instance.getDetachError());

            this.validationEnabled = validationEnabled; 
    }

    public V1beta1VolumeAttachmentStatus build(){
            V1beta1VolumeAttachmentStatus buildable = new V1beta1VolumeAttachmentStatus();
            buildable.setAttachError(fluent.getAttachError());
            buildable.setAttached(fluent.isAttached());
            buildable.setAttachmentMetadata(fluent.getAttachmentMetadata());
            buildable.setDetachError(fluent.getDetachError());
            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;
            V1beta1VolumeAttachmentStatusBuilder that = (V1beta1VolumeAttachmentStatusBuilder) 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