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

io.fabric8.kubernetes.api.model.storage.VolumeAttachmentStatusBuilder Maven / Gradle / Ivy

package io.fabric8.kubernetes.api.model.storage;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;

public class VolumeAttachmentStatusBuilder extends io.fabric8.kubernetes.api.model.storage.VolumeAttachmentStatusFluentImpl implements io.fabric8.kubernetes.api.builder.VisitableBuilder {

    io.fabric8.kubernetes.api.model.storage.VolumeAttachmentStatusFluent fluent;
    java.lang.Boolean validationEnabled;

    public VolumeAttachmentStatusBuilder() {
        this(true);
    }

    public VolumeAttachmentStatusBuilder(java.lang.Boolean validationEnabled) {
        this(new VolumeAttachmentStatus(), validationEnabled);
    }

    public VolumeAttachmentStatusBuilder(io.fabric8.kubernetes.api.model.storage.VolumeAttachmentStatusFluent fluent) {
        this(fluent, true);
    }

    public VolumeAttachmentStatusBuilder(io.fabric8.kubernetes.api.model.storage.VolumeAttachmentStatusFluent fluent,java.lang.Boolean validationEnabled) {
        this(fluent, new VolumeAttachmentStatus(), validationEnabled);
    }

    public VolumeAttachmentStatusBuilder(io.fabric8.kubernetes.api.model.storage.VolumeAttachmentStatusFluent fluent,io.fabric8.kubernetes.api.model.storage.VolumeAttachmentStatus instance) {
        this(fluent, instance, true);
    }

    public VolumeAttachmentStatusBuilder(io.fabric8.kubernetes.api.model.storage.VolumeAttachmentStatusFluent fluent,io.fabric8.kubernetes.api.model.storage.VolumeAttachmentStatus instance,java.lang.Boolean validationEnabled) {
        this.fluent = fluent; 
        fluent.withAttachError(instance.getAttachError()); 
        fluent.withAttached(instance.getAttached()); 
        fluent.withAttachmentMetadata(instance.getAttachmentMetadata()); 
        fluent.withDetachError(instance.getDetachError()); 
        this.validationEnabled = validationEnabled; 
    }

    public VolumeAttachmentStatusBuilder(io.fabric8.kubernetes.api.model.storage.VolumeAttachmentStatus instance) {
        this(instance,true);
    }

    public VolumeAttachmentStatusBuilder(io.fabric8.kubernetes.api.model.storage.VolumeAttachmentStatus instance,java.lang.Boolean validationEnabled) {
        this.fluent = this; 
        this.withAttachError(instance.getAttachError()); 
        this.withAttached(instance.getAttached()); 
        this.withAttachmentMetadata(instance.getAttachmentMetadata()); 
        this.withDetachError(instance.getDetachError()); 
        this.validationEnabled = validationEnabled; 
    }

    public io.fabric8.kubernetes.api.model.storage.VolumeAttachmentStatus build() {
        VolumeAttachmentStatus buildable = new VolumeAttachmentStatus(fluent.getAttachError(),fluent.getAttached(),fluent.getAttachmentMetadata(),fluent.getDetachError());
        return buildable;
    }

    public boolean equals(java.lang.Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        VolumeAttachmentStatusBuilder that = (VolumeAttachmentStatusBuilder) 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;
    }

    public int hashCode() {
        return java.util.Objects.hash(fluent,  validationEnabled,  super.hashCode());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy