
io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluentImpl Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model;
import io.fabric8.kubernetes.api.builder.Nested;
import java.lang.String;
import java.util.LinkedHashMap;
import java.lang.Deprecated;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.Boolean;
import java.util.Map;
/**
* Generated
*/
public class CSIPersistentVolumeSourceFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent{
public CSIPersistentVolumeSourceFluentImpl() {
}
public CSIPersistentVolumeSourceFluentImpl(io.fabric8.kubernetes.api.model.CSIPersistentVolumeSource instance) {
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.withAdditionalProperties(instance.getAdditionalProperties());
}
private io.fabric8.kubernetes.api.model.SecretReferenceBuilder controllerExpandSecretRef;
private io.fabric8.kubernetes.api.model.SecretReferenceBuilder controllerPublishSecretRef;
private java.lang.String driver;
private java.lang.String fsType;
private io.fabric8.kubernetes.api.model.SecretReferenceBuilder nodePublishSecretRef;
private io.fabric8.kubernetes.api.model.SecretReferenceBuilder nodeStageSecretRef;
private java.lang.Boolean readOnly;
private java.util.Map volumeAttributes;
private java.lang.String volumeHandle;
private java.util.Map additionalProperties;
/**
* This method has been deprecated, please use method buildControllerExpandSecretRef instead.
* @return The buildable object.
*/
@java.lang.Deprecated
public io.fabric8.kubernetes.api.model.SecretReference getControllerExpandSecretRef() {
return this.controllerExpandSecretRef!=null?this.controllerExpandSecretRef.build():null;
}
public io.fabric8.kubernetes.api.model.SecretReference buildControllerExpandSecretRef() {
return this.controllerExpandSecretRef!=null?this.controllerExpandSecretRef.build():null;
}
public A withControllerExpandSecretRef(io.fabric8.kubernetes.api.model.SecretReference controllerExpandSecretRef) {
_visitables.get("controllerExpandSecretRef").remove(this.controllerExpandSecretRef);
if (controllerExpandSecretRef!=null){ this.controllerExpandSecretRef= new io.fabric8.kubernetes.api.model.SecretReferenceBuilder(controllerExpandSecretRef); _visitables.get("controllerExpandSecretRef").add(this.controllerExpandSecretRef);} return (A) this;
}
public java.lang.Boolean hasControllerExpandSecretRef() {
return this.controllerExpandSecretRef != null;
}
public A withNewControllerExpandSecretRef(java.lang.String name,java.lang.String namespace) {
return (A)withControllerExpandSecretRef(new SecretReference(name, namespace));
}
public io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested withNewControllerExpandSecretRef() {
return new io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluentImpl.ControllerExpandSecretRefNestedImpl();
}
public io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested withNewControllerExpandSecretRefLike(io.fabric8.kubernetes.api.model.SecretReference item) {
return new io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluentImpl.ControllerExpandSecretRefNestedImpl(item);
}
public io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested editControllerExpandSecretRef() {
return withNewControllerExpandSecretRefLike(getControllerExpandSecretRef());
}
public io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested editOrNewControllerExpandSecretRef() {
return withNewControllerExpandSecretRefLike(getControllerExpandSecretRef() != null ? getControllerExpandSecretRef(): new io.fabric8.kubernetes.api.model.SecretReferenceBuilder().build());
}
public io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested editOrNewControllerExpandSecretRefLike(io.fabric8.kubernetes.api.model.SecretReference item) {
return withNewControllerExpandSecretRefLike(getControllerExpandSecretRef() != null ? getControllerExpandSecretRef(): item);
}
/**
* This method has been deprecated, please use method buildControllerPublishSecretRef instead.
* @return The buildable object.
*/
@java.lang.Deprecated
public io.fabric8.kubernetes.api.model.SecretReference getControllerPublishSecretRef() {
return this.controllerPublishSecretRef!=null?this.controllerPublishSecretRef.build():null;
}
public io.fabric8.kubernetes.api.model.SecretReference buildControllerPublishSecretRef() {
return this.controllerPublishSecretRef!=null?this.controllerPublishSecretRef.build():null;
}
public A withControllerPublishSecretRef(io.fabric8.kubernetes.api.model.SecretReference controllerPublishSecretRef) {
_visitables.get("controllerPublishSecretRef").remove(this.controllerPublishSecretRef);
if (controllerPublishSecretRef!=null){ this.controllerPublishSecretRef= new io.fabric8.kubernetes.api.model.SecretReferenceBuilder(controllerPublishSecretRef); _visitables.get("controllerPublishSecretRef").add(this.controllerPublishSecretRef);} return (A) this;
}
public java.lang.Boolean hasControllerPublishSecretRef() {
return this.controllerPublishSecretRef != null;
}
public A withNewControllerPublishSecretRef(java.lang.String name,java.lang.String namespace) {
return (A)withControllerPublishSecretRef(new SecretReference(name, namespace));
}
public io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested withNewControllerPublishSecretRef() {
return new io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluentImpl.ControllerPublishSecretRefNestedImpl();
}
public io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested withNewControllerPublishSecretRefLike(io.fabric8.kubernetes.api.model.SecretReference item) {
return new io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluentImpl.ControllerPublishSecretRefNestedImpl(item);
}
public io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested editControllerPublishSecretRef() {
return withNewControllerPublishSecretRefLike(getControllerPublishSecretRef());
}
public io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested editOrNewControllerPublishSecretRef() {
return withNewControllerPublishSecretRefLike(getControllerPublishSecretRef() != null ? getControllerPublishSecretRef(): new io.fabric8.kubernetes.api.model.SecretReferenceBuilder().build());
}
public io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested editOrNewControllerPublishSecretRefLike(io.fabric8.kubernetes.api.model.SecretReference item) {
return withNewControllerPublishSecretRefLike(getControllerPublishSecretRef() != null ? getControllerPublishSecretRef(): item);
}
public java.lang.String getDriver() {
return this.driver;
}
public A withDriver(java.lang.String driver) {
this.driver=driver; return (A) this;
}
public java.lang.Boolean hasDriver() {
return this.driver != null;
}
/**
* Method is deprecated. use withDriver instead.
*/
@java.lang.Deprecated
public A withNewDriver(java.lang.String arg0) {
return (A)withDriver(new String(arg0));
}
public java.lang.String getFsType() {
return this.fsType;
}
public A withFsType(java.lang.String fsType) {
this.fsType=fsType; return (A) this;
}
public java.lang.Boolean hasFsType() {
return this.fsType != null;
}
/**
* Method is deprecated. use withFsType instead.
*/
@java.lang.Deprecated
public A withNewFsType(java.lang.String arg0) {
return (A)withFsType(new String(arg0));
}
/**
* This method has been deprecated, please use method buildNodePublishSecretRef instead.
* @return The buildable object.
*/
@java.lang.Deprecated
public io.fabric8.kubernetes.api.model.SecretReference getNodePublishSecretRef() {
return this.nodePublishSecretRef!=null?this.nodePublishSecretRef.build():null;
}
public io.fabric8.kubernetes.api.model.SecretReference buildNodePublishSecretRef() {
return this.nodePublishSecretRef!=null?this.nodePublishSecretRef.build():null;
}
public A withNodePublishSecretRef(io.fabric8.kubernetes.api.model.SecretReference nodePublishSecretRef) {
_visitables.get("nodePublishSecretRef").remove(this.nodePublishSecretRef);
if (nodePublishSecretRef!=null){ this.nodePublishSecretRef= new io.fabric8.kubernetes.api.model.SecretReferenceBuilder(nodePublishSecretRef); _visitables.get("nodePublishSecretRef").add(this.nodePublishSecretRef);} return (A) this;
}
public java.lang.Boolean hasNodePublishSecretRef() {
return this.nodePublishSecretRef != null;
}
public A withNewNodePublishSecretRef(java.lang.String name,java.lang.String namespace) {
return (A)withNodePublishSecretRef(new SecretReference(name, namespace));
}
public io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested withNewNodePublishSecretRef() {
return new io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluentImpl.NodePublishSecretRefNestedImpl();
}
public io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested withNewNodePublishSecretRefLike(io.fabric8.kubernetes.api.model.SecretReference item) {
return new io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluentImpl.NodePublishSecretRefNestedImpl(item);
}
public io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested editNodePublishSecretRef() {
return withNewNodePublishSecretRefLike(getNodePublishSecretRef());
}
public io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested editOrNewNodePublishSecretRef() {
return withNewNodePublishSecretRefLike(getNodePublishSecretRef() != null ? getNodePublishSecretRef(): new io.fabric8.kubernetes.api.model.SecretReferenceBuilder().build());
}
public io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested editOrNewNodePublishSecretRefLike(io.fabric8.kubernetes.api.model.SecretReference item) {
return withNewNodePublishSecretRefLike(getNodePublishSecretRef() != null ? getNodePublishSecretRef(): item);
}
/**
* This method has been deprecated, please use method buildNodeStageSecretRef instead.
* @return The buildable object.
*/
@java.lang.Deprecated
public io.fabric8.kubernetes.api.model.SecretReference getNodeStageSecretRef() {
return this.nodeStageSecretRef!=null?this.nodeStageSecretRef.build():null;
}
public io.fabric8.kubernetes.api.model.SecretReference buildNodeStageSecretRef() {
return this.nodeStageSecretRef!=null?this.nodeStageSecretRef.build():null;
}
public A withNodeStageSecretRef(io.fabric8.kubernetes.api.model.SecretReference nodeStageSecretRef) {
_visitables.get("nodeStageSecretRef").remove(this.nodeStageSecretRef);
if (nodeStageSecretRef!=null){ this.nodeStageSecretRef= new io.fabric8.kubernetes.api.model.SecretReferenceBuilder(nodeStageSecretRef); _visitables.get("nodeStageSecretRef").add(this.nodeStageSecretRef);} return (A) this;
}
public java.lang.Boolean hasNodeStageSecretRef() {
return this.nodeStageSecretRef != null;
}
public A withNewNodeStageSecretRef(java.lang.String name,java.lang.String namespace) {
return (A)withNodeStageSecretRef(new SecretReference(name, namespace));
}
public io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested withNewNodeStageSecretRef() {
return new io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluentImpl.NodeStageSecretRefNestedImpl();
}
public io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested withNewNodeStageSecretRefLike(io.fabric8.kubernetes.api.model.SecretReference item) {
return new io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluentImpl.NodeStageSecretRefNestedImpl(item);
}
public io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested editNodeStageSecretRef() {
return withNewNodeStageSecretRefLike(getNodeStageSecretRef());
}
public io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested editOrNewNodeStageSecretRef() {
return withNewNodeStageSecretRefLike(getNodeStageSecretRef() != null ? getNodeStageSecretRef(): new io.fabric8.kubernetes.api.model.SecretReferenceBuilder().build());
}
public io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested editOrNewNodeStageSecretRefLike(io.fabric8.kubernetes.api.model.SecretReference item) {
return withNewNodeStageSecretRefLike(getNodeStageSecretRef() != null ? getNodeStageSecretRef(): item);
}
public java.lang.Boolean getReadOnly() {
return this.readOnly;
}
public A withReadOnly(java.lang.Boolean readOnly) {
this.readOnly=readOnly; return (A) this;
}
public java.lang.Boolean hasReadOnly() {
return this.readOnly != null;
}
public A addToVolumeAttributes(java.lang.String key,java.lang.String value) {
if(this.volumeAttributes == null && key != null && value != null) { this.volumeAttributes = new java.util.LinkedHashMap(); }
if(key != null && value != null) {this.volumeAttributes.put(key, value);} return (A)this;
}
public A addToVolumeAttributes(java.util.Map map) {
if(this.volumeAttributes == null && map != null) { this.volumeAttributes = new java.util.LinkedHashMap(); }
if(map != null) { this.volumeAttributes.putAll(map);} return (A)this;
}
public A removeFromVolumeAttributes(java.lang.String key) {
if(this.volumeAttributes == null) { return (A) this; }
if(key != null && this.volumeAttributes != null) {this.volumeAttributes.remove(key);} return (A)this;
}
public A removeFromVolumeAttributes(java.util.Map map) {
if(this.volumeAttributes == null) { return (A) this; }
if(map != null) { for(Object key : map.keySet()) {if (this.volumeAttributes != null){this.volumeAttributes.remove(key);}}} return (A)this;
}
public java.util.Map getVolumeAttributes() {
return this.volumeAttributes;
}
public A withVolumeAttributes(java.util.Map volumeAttributes) {
if (volumeAttributes == null) { this.volumeAttributes = null;} else {this.volumeAttributes = new java.util.LinkedHashMap(volumeAttributes);} return (A) this;
}
public java.lang.Boolean hasVolumeAttributes() {
return this.volumeAttributes != null;
}
public java.lang.String getVolumeHandle() {
return this.volumeHandle;
}
public A withVolumeHandle(java.lang.String volumeHandle) {
this.volumeHandle=volumeHandle; return (A) this;
}
public java.lang.Boolean hasVolumeHandle() {
return this.volumeHandle != null;
}
/**
* Method is deprecated. use withVolumeHandle instead.
*/
@java.lang.Deprecated
public A withNewVolumeHandle(java.lang.String arg0) {
return (A)withVolumeHandle(new String(arg0));
}
public A addToAdditionalProperties(java.lang.String key,java.lang.Object value) {
if(this.additionalProperties == null && key != null && value != null) { this.additionalProperties = new java.util.LinkedHashMap(); }
if(key != null && value != null) {this.additionalProperties.put(key, value);} return (A)this;
}
public A addToAdditionalProperties(java.util.Map map) {
if(this.additionalProperties == null && map != null) { this.additionalProperties = new java.util.LinkedHashMap(); }
if(map != null) { this.additionalProperties.putAll(map);} return (A)this;
}
public A removeFromAdditionalProperties(java.lang.String key) {
if(this.additionalProperties == null) { return (A) this; }
if(key != null && this.additionalProperties != null) {this.additionalProperties.remove(key);} return (A)this;
}
public A removeFromAdditionalProperties(java.util.Map map) {
if(this.additionalProperties == null) { return (A) this; }
if(map != null) { for(Object key : map.keySet()) {if (this.additionalProperties != null){this.additionalProperties.remove(key);}}} return (A)this;
}
public java.util.Map getAdditionalProperties() {
return this.additionalProperties;
}
public A withAdditionalProperties(java.util.Map additionalProperties) {
if (additionalProperties == null) { this.additionalProperties = null;} else {this.additionalProperties = new java.util.LinkedHashMap(additionalProperties);} return (A) this;
}
public java.lang.Boolean hasAdditionalProperties() {
return this.additionalProperties != null;
}
public boolean equals(java.lang.Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CSIPersistentVolumeSourceFluentImpl that = (CSIPersistentVolumeSourceFluentImpl) o;
if (controllerExpandSecretRef != null ? !controllerExpandSecretRef.equals(that.controllerExpandSecretRef) :that.controllerExpandSecretRef != null) return false;
if (controllerPublishSecretRef != null ? !controllerPublishSecretRef.equals(that.controllerPublishSecretRef) :that.controllerPublishSecretRef != null) return false;
if (driver != null ? !driver.equals(that.driver) :that.driver != null) return false;
if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false;
if (nodePublishSecretRef != null ? !nodePublishSecretRef.equals(that.nodePublishSecretRef) :that.nodePublishSecretRef != null) return false;
if (nodeStageSecretRef != null ? !nodeStageSecretRef.equals(that.nodeStageSecretRef) :that.nodeStageSecretRef != null) return false;
if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false;
if (volumeAttributes != null ? !volumeAttributes.equals(that.volumeAttributes) :that.volumeAttributes != null) return false;
if (volumeHandle != null ? !volumeHandle.equals(that.volumeHandle) :that.volumeHandle != null) return false;
if (additionalProperties != null ? !additionalProperties.equals(that.additionalProperties) :that.additionalProperties != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(controllerExpandSecretRef, controllerPublishSecretRef, driver, fsType, nodePublishSecretRef, nodeStageSecretRef, readOnly, volumeAttributes, volumeHandle, additionalProperties, super.hashCode());
}
public class ControllerExpandSecretRefNestedImpl extends io.fabric8.kubernetes.api.model.SecretReferenceFluentImpl> implements io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested,io.fabric8.kubernetes.api.builder.Nested{
ControllerExpandSecretRefNestedImpl(io.fabric8.kubernetes.api.model.SecretReference item) {
this.builder = new io.fabric8.kubernetes.api.model.SecretReferenceBuilder(this, item);
}
ControllerExpandSecretRefNestedImpl() {
this.builder = new io.fabric8.kubernetes.api.model.SecretReferenceBuilder(this);
}
io.fabric8.kubernetes.api.model.SecretReferenceBuilder builder;
public N and() {
return (N) CSIPersistentVolumeSourceFluentImpl.this.withControllerExpandSecretRef(builder.build());
}
public N endControllerExpandSecretRef() {
return and();
}
}
public class ControllerPublishSecretRefNestedImpl extends io.fabric8.kubernetes.api.model.SecretReferenceFluentImpl> implements io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested,io.fabric8.kubernetes.api.builder.Nested{
ControllerPublishSecretRefNestedImpl(io.fabric8.kubernetes.api.model.SecretReference item) {
this.builder = new io.fabric8.kubernetes.api.model.SecretReferenceBuilder(this, item);
}
ControllerPublishSecretRefNestedImpl() {
this.builder = new io.fabric8.kubernetes.api.model.SecretReferenceBuilder(this);
}
io.fabric8.kubernetes.api.model.SecretReferenceBuilder builder;
public N and() {
return (N) CSIPersistentVolumeSourceFluentImpl.this.withControllerPublishSecretRef(builder.build());
}
public N endControllerPublishSecretRef() {
return and();
}
}
public class NodePublishSecretRefNestedImpl extends io.fabric8.kubernetes.api.model.SecretReferenceFluentImpl> implements io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested,io.fabric8.kubernetes.api.builder.Nested{
NodePublishSecretRefNestedImpl(io.fabric8.kubernetes.api.model.SecretReference item) {
this.builder = new io.fabric8.kubernetes.api.model.SecretReferenceBuilder(this, item);
}
NodePublishSecretRefNestedImpl() {
this.builder = new io.fabric8.kubernetes.api.model.SecretReferenceBuilder(this);
}
io.fabric8.kubernetes.api.model.SecretReferenceBuilder builder;
public N and() {
return (N) CSIPersistentVolumeSourceFluentImpl.this.withNodePublishSecretRef(builder.build());
}
public N endNodePublishSecretRef() {
return and();
}
}
public class NodeStageSecretRefNestedImpl extends io.fabric8.kubernetes.api.model.SecretReferenceFluentImpl> implements io.fabric8.kubernetes.api.model.CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested,io.fabric8.kubernetes.api.builder.Nested{
NodeStageSecretRefNestedImpl(io.fabric8.kubernetes.api.model.SecretReference item) {
this.builder = new io.fabric8.kubernetes.api.model.SecretReferenceBuilder(this, item);
}
NodeStageSecretRefNestedImpl() {
this.builder = new io.fabric8.kubernetes.api.model.SecretReferenceBuilder(this);
}
io.fabric8.kubernetes.api.model.SecretReferenceBuilder builder;
public N and() {
return (N) CSIPersistentVolumeSourceFluentImpl.this.withNodeStageSecretRef(builder.build());
}
public N endNodeStageSecretRef() {
return and();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy