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

io.kubernetes.client.openapi.models.V1FlockerVolumeSourceBuilder Maven / Gradle / Ivy

There is a newer version: 22.0.0
Show newest version
package io.kubernetes.client.openapi.models;

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

public class V1FlockerVolumeSourceBuilder extends V1FlockerVolumeSourceFluentImpl implements VisitableBuilder {

    V1FlockerVolumeSourceFluent fluent;
    Boolean validationEnabled;

    public V1FlockerVolumeSourceBuilder() { 
        this(true);
    }


    public V1FlockerVolumeSourceBuilder(Boolean validationEnabled) { 
        this(new V1FlockerVolumeSource(), validationEnabled);
    }


    public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSourceFluent fluent) { 
        this(fluent, true);
    }


    public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSourceFluent fluent,Boolean validationEnabled) { 
        this(fluent, new V1FlockerVolumeSource(), validationEnabled);
    }


    public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSourceFluent fluent,V1FlockerVolumeSource instance) { 
        this(fluent, instance, true);
    }


    public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSourceFluent fluent,V1FlockerVolumeSource instance,Boolean validationEnabled) { 
        this.fluent = fluent; 
        fluent.withDatasetName(instance.getDatasetName());

        fluent.withDatasetUUID(instance.getDatasetUUID());

        this.validationEnabled = validationEnabled; 
    }


    public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSource instance) { 
        this(instance,true);
    }


    public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSource instance,Boolean validationEnabled) { 
        this.fluent = this; 
        this.withDatasetName(instance.getDatasetName());

        this.withDatasetUUID(instance.getDatasetUUID());

        this.validationEnabled = validationEnabled; 
    }


    public V1FlockerVolumeSource build() {
        V1FlockerVolumeSource buildable = new V1FlockerVolumeSource();
        buildable.setDatasetName(fluent.getDatasetName());
        buildable.setDatasetUUID(fluent.getDatasetUUID());
        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;
        V1FlockerVolumeSourceBuilder that = (V1FlockerVolumeSourceBuilder) 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 - 2024 Weber Informatics LLC | Privacy Policy