io.kubernetes.client.openapi.models.V1AzureDiskVolumeSourceFluentImpl Maven / Gradle / Ivy
package io.kubernetes.client.openapi.models;
import java.lang.StringBuffer;
import java.lang.StringBuilder;
import com.google.gson.annotations.SerializedName;
import io.kubernetes.client.fluent.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
public class V1AzureDiskVolumeSourceFluentImpl> extends io.kubernetes.client.fluent.BaseFluent implements V1AzureDiskVolumeSourceFluent {
private String cachingMode;
private String diskName;
private String diskURI;
private String fsType;
private String kind;
private Boolean readOnly;
public V1AzureDiskVolumeSourceFluentImpl() {
}
public V1AzureDiskVolumeSourceFluentImpl(V1AzureDiskVolumeSource instance) {
this.withCachingMode(instance.getCachingMode());
this.withDiskName(instance.getDiskName());
this.withDiskURI(instance.getDiskURI());
this.withFsType(instance.getFsType());
this.withKind(instance.getKind());
this.withReadOnly(instance.getReadOnly());
}
public String getCachingMode() {
return this.cachingMode;
}
public A withCachingMode(String cachingMode) {
this.cachingMode=cachingMode; return (A) this;
}
public Boolean hasCachingMode() {
return this.cachingMode != null;
}
public A withNewCachingMode(String arg1) {
return (A)withCachingMode(new String(arg1));
}
public A withNewCachingMode(StringBuilder arg1) {
return (A)withCachingMode(new String(arg1));
}
public A withNewCachingMode(StringBuffer arg1) {
return (A)withCachingMode(new String(arg1));
}
public String getDiskName() {
return this.diskName;
}
public A withDiskName(String diskName) {
this.diskName=diskName; return (A) this;
}
public Boolean hasDiskName() {
return this.diskName != null;
}
public A withNewDiskName(String arg1) {
return (A)withDiskName(new String(arg1));
}
public A withNewDiskName(StringBuilder arg1) {
return (A)withDiskName(new String(arg1));
}
public A withNewDiskName(StringBuffer arg1) {
return (A)withDiskName(new String(arg1));
}
public String getDiskURI() {
return this.diskURI;
}
public A withDiskURI(String diskURI) {
this.diskURI=diskURI; return (A) this;
}
public Boolean hasDiskURI() {
return this.diskURI != null;
}
public A withNewDiskURI(String arg1) {
return (A)withDiskURI(new String(arg1));
}
public A withNewDiskURI(StringBuilder arg1) {
return (A)withDiskURI(new String(arg1));
}
public A withNewDiskURI(StringBuffer arg1) {
return (A)withDiskURI(new String(arg1));
}
public String getFsType() {
return this.fsType;
}
public A withFsType(String fsType) {
this.fsType=fsType; return (A) this;
}
public Boolean hasFsType() {
return this.fsType != null;
}
public A withNewFsType(String arg1) {
return (A)withFsType(new String(arg1));
}
public A withNewFsType(StringBuilder arg1) {
return (A)withFsType(new String(arg1));
}
public A withNewFsType(StringBuffer arg1) {
return (A)withFsType(new String(arg1));
}
public String getKind() {
return this.kind;
}
public A withKind(String kind) {
this.kind=kind; return (A) this;
}
public Boolean hasKind() {
return this.kind != null;
}
public A withNewKind(String arg1) {
return (A)withKind(new String(arg1));
}
public A withNewKind(StringBuilder arg1) {
return (A)withKind(new String(arg1));
}
public A withNewKind(StringBuffer arg1) {
return (A)withKind(new String(arg1));
}
public Boolean isReadOnly() {
return this.readOnly;
}
public A withReadOnly(Boolean readOnly) {
this.readOnly=readOnly; return (A) this;
}
public Boolean hasReadOnly() {
return this.readOnly != null;
}
public A withNewReadOnly(String arg1) {
return (A)withReadOnly(new Boolean(arg1));
}
public A withNewReadOnly(boolean arg1) {
return (A)withReadOnly(new Boolean(arg1));
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
V1AzureDiskVolumeSourceFluentImpl that = (V1AzureDiskVolumeSourceFluentImpl) o;
if (cachingMode != null ? !cachingMode.equals(that.cachingMode) :that.cachingMode != null) return false;
if (diskName != null ? !diskName.equals(that.diskName) :that.diskName != null) return false;
if (diskURI != null ? !diskURI.equals(that.diskURI) :that.diskURI != null) return false;
if (fsType != null ? !fsType.equals(that.fsType) :that.fsType != null) return false;
if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false;
if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(cachingMode, diskName, diskURI, fsType, kind, readOnly, super.hashCode());
}
}