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

io.fabric8.kubernetes.api.model.GlusterfsPersistentVolumeSourceBuilder Maven / Gradle / Ivy

There is a newer version: 7.1.0
Show newest version
package io.fabric8.kubernetes.api.model;

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

public class GlusterfsPersistentVolumeSourceBuilder extends GlusterfsPersistentVolumeSourceFluentImpl implements VisitableBuilder{

    GlusterfsPersistentVolumeSourceFluent fluent;
    Boolean validationEnabled;

    public GlusterfsPersistentVolumeSourceBuilder(){
            this(true);
    }
    public GlusterfsPersistentVolumeSourceBuilder(Boolean validationEnabled){
            this(new GlusterfsPersistentVolumeSource(), validationEnabled);
    }
    public GlusterfsPersistentVolumeSourceBuilder(GlusterfsPersistentVolumeSourceFluent fluent){
            this(fluent, true);
    }
    public GlusterfsPersistentVolumeSourceBuilder(GlusterfsPersistentVolumeSourceFluent fluent,Boolean validationEnabled){
            this(fluent, new GlusterfsPersistentVolumeSource(), validationEnabled);
    }
    public GlusterfsPersistentVolumeSourceBuilder(GlusterfsPersistentVolumeSourceFluent fluent,GlusterfsPersistentVolumeSource instance){
            this(fluent, instance, true);
    }
    public GlusterfsPersistentVolumeSourceBuilder(GlusterfsPersistentVolumeSourceFluent fluent,GlusterfsPersistentVolumeSource instance,Boolean validationEnabled){
            this.fluent = fluent; 
            fluent.withEndpoints(instance.getEndpoints()); 
            fluent.withEndpointsNamespace(instance.getEndpointsNamespace()); 
            fluent.withPath(instance.getPath()); 
            fluent.withReadOnly(instance.getReadOnly()); 
            this.validationEnabled = validationEnabled; 
    }
    public GlusterfsPersistentVolumeSourceBuilder(GlusterfsPersistentVolumeSource instance){
            this(instance,true);
    }
    public GlusterfsPersistentVolumeSourceBuilder(GlusterfsPersistentVolumeSource instance,Boolean validationEnabled){
            this.fluent = this; 
            this.withEndpoints(instance.getEndpoints()); 
            this.withEndpointsNamespace(instance.getEndpointsNamespace()); 
            this.withPath(instance.getPath()); 
            this.withReadOnly(instance.getReadOnly()); 
            this.validationEnabled = validationEnabled; 
    }

    public GlusterfsPersistentVolumeSource build(){
            GlusterfsPersistentVolumeSource buildable = new GlusterfsPersistentVolumeSource(fluent.getEndpoints(),fluent.getEndpointsNamespace(),fluent.getPath(),fluent.isReadOnly());
            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;
            GlusterfsPersistentVolumeSourceBuilder that = (GlusterfsPersistentVolumeSourceBuilder) 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