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

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

There is a newer version: 7.0.1
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 FlexPersistentVolumeSourceBuilder extends FlexPersistentVolumeSourceFluentImpl implements VisitableBuilder{

    FlexPersistentVolumeSourceFluent fluent;
    Boolean validationEnabled;

    public FlexPersistentVolumeSourceBuilder(){
            this(true);
    }
    public FlexPersistentVolumeSourceBuilder(Boolean validationEnabled){
            this(new FlexPersistentVolumeSource(), validationEnabled);
    }
    public FlexPersistentVolumeSourceBuilder(FlexPersistentVolumeSourceFluent fluent){
            this(fluent, true);
    }
    public FlexPersistentVolumeSourceBuilder(FlexPersistentVolumeSourceFluent fluent,Boolean validationEnabled){
            this(fluent, new FlexPersistentVolumeSource(), validationEnabled);
    }
    public FlexPersistentVolumeSourceBuilder(FlexPersistentVolumeSourceFluent fluent,FlexPersistentVolumeSource instance){
            this(fluent, instance, true);
    }
    public FlexPersistentVolumeSourceBuilder(FlexPersistentVolumeSourceFluent fluent,FlexPersistentVolumeSource instance,Boolean validationEnabled){
            this.fluent = fluent; 
            fluent.withDriver(instance.getDriver()); 
            fluent.withFsType(instance.getFsType()); 
            fluent.withOptions(instance.getOptions()); 
            fluent.withReadOnly(instance.getReadOnly()); 
            fluent.withSecretRef(instance.getSecretRef()); 
            this.validationEnabled = validationEnabled; 
    }
    public FlexPersistentVolumeSourceBuilder(FlexPersistentVolumeSource instance){
            this(instance,true);
    }
    public FlexPersistentVolumeSourceBuilder(FlexPersistentVolumeSource instance,Boolean validationEnabled){
            this.fluent = this; 
            this.withDriver(instance.getDriver()); 
            this.withFsType(instance.getFsType()); 
            this.withOptions(instance.getOptions()); 
            this.withReadOnly(instance.getReadOnly()); 
            this.withSecretRef(instance.getSecretRef()); 
            this.validationEnabled = validationEnabled; 
    }

    public FlexPersistentVolumeSource build(){
            FlexPersistentVolumeSource buildable = new FlexPersistentVolumeSource(fluent.getDriver(),fluent.getFsType(),fluent.getOptions(),fluent.isReadOnly(),fluent.getSecretRef());
            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;
            FlexPersistentVolumeSourceBuilder that = (FlexPersistentVolumeSourceBuilder) 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