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

io.fabric8.kubernetes.api.model.CinderPersistentVolumeSourceBuilder 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 CinderPersistentVolumeSourceBuilder extends CinderPersistentVolumeSourceFluentImpl implements VisitableBuilder{

    CinderPersistentVolumeSourceFluent fluent;
    Boolean validationEnabled;

    public CinderPersistentVolumeSourceBuilder(){
            this(true);
    }
    public CinderPersistentVolumeSourceBuilder(Boolean validationEnabled){
            this(new CinderPersistentVolumeSource(), validationEnabled);
    }
    public CinderPersistentVolumeSourceBuilder(CinderPersistentVolumeSourceFluent fluent){
            this(fluent, true);
    }
    public CinderPersistentVolumeSourceBuilder(CinderPersistentVolumeSourceFluent fluent,Boolean validationEnabled){
            this(fluent, new CinderPersistentVolumeSource(), validationEnabled);
    }
    public CinderPersistentVolumeSourceBuilder(CinderPersistentVolumeSourceFluent fluent,CinderPersistentVolumeSource instance){
            this(fluent, instance, true);
    }
    public CinderPersistentVolumeSourceBuilder(CinderPersistentVolumeSourceFluent fluent,CinderPersistentVolumeSource instance,Boolean validationEnabled){
            this.fluent = fluent; 
            fluent.withFsType(instance.getFsType()); 
            fluent.withReadOnly(instance.getReadOnly()); 
            fluent.withSecretRef(instance.getSecretRef()); 
            fluent.withVolumeID(instance.getVolumeID()); 
            this.validationEnabled = validationEnabled; 
    }
    public CinderPersistentVolumeSourceBuilder(CinderPersistentVolumeSource instance){
            this(instance,true);
    }
    public CinderPersistentVolumeSourceBuilder(CinderPersistentVolumeSource instance,Boolean validationEnabled){
            this.fluent = this; 
            this.withFsType(instance.getFsType()); 
            this.withReadOnly(instance.getReadOnly()); 
            this.withSecretRef(instance.getSecretRef()); 
            this.withVolumeID(instance.getVolumeID()); 
            this.validationEnabled = validationEnabled; 
    }

    public CinderPersistentVolumeSource build(){
            CinderPersistentVolumeSource buildable = new CinderPersistentVolumeSource(fluent.getFsType(),fluent.isReadOnly(),fluent.getSecretRef(),fluent.getVolumeID());
            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;
            CinderPersistentVolumeSourceBuilder that = (CinderPersistentVolumeSourceBuilder) 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