io.fabric8.kubernetes.api.model.CephFSPersistentVolumeSourceBuilder 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 CephFSPersistentVolumeSourceBuilder extends CephFSPersistentVolumeSourceFluentImpl implements VisitableBuilder{
CephFSPersistentVolumeSourceFluent> fluent;
Boolean validationEnabled;
public CephFSPersistentVolumeSourceBuilder(){
this(true);
}
public CephFSPersistentVolumeSourceBuilder(Boolean validationEnabled){
this(new CephFSPersistentVolumeSource(), validationEnabled);
}
public CephFSPersistentVolumeSourceBuilder(CephFSPersistentVolumeSourceFluent> fluent){
this(fluent, true);
}
public CephFSPersistentVolumeSourceBuilder(CephFSPersistentVolumeSourceFluent> fluent,Boolean validationEnabled){
this(fluent, new CephFSPersistentVolumeSource(), validationEnabled);
}
public CephFSPersistentVolumeSourceBuilder(CephFSPersistentVolumeSourceFluent> fluent,CephFSPersistentVolumeSource instance){
this(fluent, instance, true);
}
public CephFSPersistentVolumeSourceBuilder(CephFSPersistentVolumeSourceFluent> fluent,CephFSPersistentVolumeSource instance,Boolean validationEnabled){
this.fluent = fluent;
fluent.withMonitors(instance.getMonitors());
fluent.withPath(instance.getPath());
fluent.withReadOnly(instance.getReadOnly());
fluent.withSecretFile(instance.getSecretFile());
fluent.withSecretRef(instance.getSecretRef());
fluent.withUser(instance.getUser());
this.validationEnabled = validationEnabled;
}
public CephFSPersistentVolumeSourceBuilder(CephFSPersistentVolumeSource instance){
this(instance,true);
}
public CephFSPersistentVolumeSourceBuilder(CephFSPersistentVolumeSource instance,Boolean validationEnabled){
this.fluent = this;
this.withMonitors(instance.getMonitors());
this.withPath(instance.getPath());
this.withReadOnly(instance.getReadOnly());
this.withSecretFile(instance.getSecretFile());
this.withSecretRef(instance.getSecretRef());
this.withUser(instance.getUser());
this.validationEnabled = validationEnabled;
}
public CephFSPersistentVolumeSource build(){
CephFSPersistentVolumeSource buildable = new CephFSPersistentVolumeSource(fluent.getMonitors(),fluent.getPath(),fluent.isReadOnly(),fluent.getSecretFile(),fluent.getSecretRef(),fluent.getUser());
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;
CephFSPersistentVolumeSourceBuilder that = (CephFSPersistentVolumeSourceBuilder) 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