
io.kubernetes.client.models.V1CephFSPersistentVolumeSourceBuilder Maven / Gradle / Ivy
package io.kubernetes.client.models;
import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class V1CephFSPersistentVolumeSourceBuilder extends V1CephFSPersistentVolumeSourceFluentImpl implements VisitableBuilder{
V1CephFSPersistentVolumeSourceFluent> fluent;
Boolean validationEnabled;
public V1CephFSPersistentVolumeSourceBuilder(){
this(true);
}
public V1CephFSPersistentVolumeSourceBuilder(Boolean validationEnabled){
this(new V1CephFSPersistentVolumeSource(), validationEnabled);
}
public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSourceFluent> fluent){
this(fluent, true);
}
public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSourceFluent> fluent,Boolean validationEnabled){
this(fluent, new V1CephFSPersistentVolumeSource(), validationEnabled);
}
public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSourceFluent> fluent,V1CephFSPersistentVolumeSource instance){
this(fluent, instance, true);
}
public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSourceFluent> fluent,V1CephFSPersistentVolumeSource instance,Boolean validationEnabled){
this.fluent = fluent;
fluent.withMonitors(instance.getMonitors());
fluent.withPath(instance.getPath());
fluent.withReadOnly(instance.isReadOnly());
fluent.withSecretFile(instance.getSecretFile());
fluent.withSecretRef(instance.getSecretRef());
fluent.withUser(instance.getUser());
this.validationEnabled = validationEnabled;
}
public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSource instance){
this(instance,true);
}
public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSource instance,Boolean validationEnabled){
this.fluent = this;
this.withMonitors(instance.getMonitors());
this.withPath(instance.getPath());
this.withReadOnly(instance.isReadOnly());
this.withSecretFile(instance.getSecretFile());
this.withSecretRef(instance.getSecretRef());
this.withUser(instance.getUser());
this.validationEnabled = validationEnabled;
}
public V1CephFSPersistentVolumeSource build(){
V1CephFSPersistentVolumeSource buildable = new V1CephFSPersistentVolumeSource();
buildable.setMonitors(fluent.getMonitors());
buildable.setPath(fluent.getPath());
buildable.setReadOnly(fluent.isReadOnly());
buildable.setSecretFile(fluent.getSecretFile());
buildable.setSecretRef(fluent.getSecretRef());
buildable.setUser(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;
V1CephFSPersistentVolumeSourceBuilder that = (V1CephFSPersistentVolumeSourceBuilder) 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