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

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

package io.fabric8.kubernetes.api.model;

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

public class CSIPersistentVolumeSourceBuilder extends CSIPersistentVolumeSourceFluentImpl implements VisitableBuilder{

    CSIPersistentVolumeSourceFluent fluent;
    Boolean validationEnabled;

    public CSIPersistentVolumeSourceBuilder(){
            this(true);
    }
    public CSIPersistentVolumeSourceBuilder(Boolean validationEnabled){
            this(new CSIPersistentVolumeSource(), validationEnabled);
    }
    public CSIPersistentVolumeSourceBuilder(CSIPersistentVolumeSourceFluent fluent){
            this(fluent, true);
    }
    public CSIPersistentVolumeSourceBuilder(CSIPersistentVolumeSourceFluent fluent,Boolean validationEnabled){
            this(fluent, new CSIPersistentVolumeSource(), validationEnabled);
    }
    public CSIPersistentVolumeSourceBuilder(CSIPersistentVolumeSourceFluent fluent,CSIPersistentVolumeSource instance){
            this(fluent, instance, true);
    }
    public CSIPersistentVolumeSourceBuilder(CSIPersistentVolumeSourceFluent fluent,CSIPersistentVolumeSource instance,Boolean validationEnabled){
            this.fluent = fluent; 
            fluent.withControllerExpandSecretRef(instance.getControllerExpandSecretRef()); 
            fluent.withControllerPublishSecretRef(instance.getControllerPublishSecretRef()); 
            fluent.withDriver(instance.getDriver()); 
            fluent.withFsType(instance.getFsType()); 
            fluent.withNodePublishSecretRef(instance.getNodePublishSecretRef()); 
            fluent.withNodeStageSecretRef(instance.getNodeStageSecretRef()); 
            fluent.withReadOnly(instance.getReadOnly()); 
            fluent.withVolumeAttributes(instance.getVolumeAttributes()); 
            fluent.withVolumeHandle(instance.getVolumeHandle()); 
            this.validationEnabled = validationEnabled; 
    }
    public CSIPersistentVolumeSourceBuilder(CSIPersistentVolumeSource instance){
            this(instance,true);
    }
    public CSIPersistentVolumeSourceBuilder(CSIPersistentVolumeSource instance,Boolean validationEnabled){
            this.fluent = this; 
            this.withControllerExpandSecretRef(instance.getControllerExpandSecretRef()); 
            this.withControllerPublishSecretRef(instance.getControllerPublishSecretRef()); 
            this.withDriver(instance.getDriver()); 
            this.withFsType(instance.getFsType()); 
            this.withNodePublishSecretRef(instance.getNodePublishSecretRef()); 
            this.withNodeStageSecretRef(instance.getNodeStageSecretRef()); 
            this.withReadOnly(instance.getReadOnly()); 
            this.withVolumeAttributes(instance.getVolumeAttributes()); 
            this.withVolumeHandle(instance.getVolumeHandle()); 
            this.validationEnabled = validationEnabled; 
    }

    public CSIPersistentVolumeSource build(){
            CSIPersistentVolumeSource buildable = new CSIPersistentVolumeSource(fluent.getControllerExpandSecretRef(),fluent.getControllerPublishSecretRef(),fluent.getDriver(),fluent.getFsType(),fluent.getNodePublishSecretRef(),fluent.getNodeStageSecretRef(),fluent.isReadOnly(),fluent.getVolumeAttributes(),fluent.getVolumeHandle());
            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;
            CSIPersistentVolumeSourceBuilder that = (CSIPersistentVolumeSourceBuilder) 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