io.fabric8.kubernetes.api.model.Volume Maven / Gradle / Ivy
The newest version!
package io.fabric8.kubernetes.api.model;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Generated;
import javax.validation.Valid;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
/**
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
"awsElasticBlockStore",
"emptyDir",
"gcePersistentDisk",
"gitRepo",
"glusterfs",
"hostPath",
"iscsi",
"name",
"nfs",
"persistentVolumeClaim",
"rbd",
"secret"
})
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
public class Volume {
/**
*
*
*/
@JsonProperty("awsElasticBlockStore")
@Valid
private AWSElasticBlockStoreVolumeSource awsElasticBlockStore;
/**
*
*
*/
@JsonProperty("emptyDir")
@Valid
private EmptyDirVolumeSource emptyDir;
/**
*
*
*/
@JsonProperty("gcePersistentDisk")
@Valid
private GCEPersistentDiskVolumeSource gcePersistentDisk;
/**
*
*
*/
@JsonProperty("gitRepo")
@Valid
private GitRepoVolumeSource gitRepo;
/**
*
*
*/
@JsonProperty("glusterfs")
@Valid
private GlusterfsVolumeSource glusterfs;
/**
*
*
*/
@JsonProperty("hostPath")
@Valid
private HostPathVolumeSource hostPath;
/**
*
*
*/
@JsonProperty("iscsi")
@Valid
private ISCSIVolumeSource iscsi;
/**
* volume name; must be a DNS_LABEL and unique within the pod
*
*/
@JsonProperty("name")
@Pattern(regexp = "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$")
@Size(max = 63)
private String name;
/**
*
*
*/
@JsonProperty("nfs")
@Valid
private NFSVolumeSource nfs;
/**
*
*
*/
@JsonProperty("persistentVolumeClaim")
@Valid
private PersistentVolumeClaimVolumeSource persistentVolumeClaim;
/**
*
*
*/
@JsonProperty("rbd")
@Valid
private RBDVolumeSource rbd;
/**
*
*
*/
@JsonProperty("secret")
@Valid
private SecretVolumeSource secret;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public Volume() {
}
/**
*
* @param iscsi
* @param gcePersistentDisk
* @param glusterfs
* @param emptyDir
* @param name
* @param nfs
* @param hostPath
* @param gitRepo
* @param secret
* @param persistentVolumeClaim
* @param rbd
* @param awsElasticBlockStore
*/
public Volume(AWSElasticBlockStoreVolumeSource awsElasticBlockStore, EmptyDirVolumeSource emptyDir, GCEPersistentDiskVolumeSource gcePersistentDisk, GitRepoVolumeSource gitRepo, GlusterfsVolumeSource glusterfs, HostPathVolumeSource hostPath, ISCSIVolumeSource iscsi, String name, NFSVolumeSource nfs, PersistentVolumeClaimVolumeSource persistentVolumeClaim, RBDVolumeSource rbd, SecretVolumeSource secret) {
this.awsElasticBlockStore = awsElasticBlockStore;
this.emptyDir = emptyDir;
this.gcePersistentDisk = gcePersistentDisk;
this.gitRepo = gitRepo;
this.glusterfs = glusterfs;
this.hostPath = hostPath;
this.iscsi = iscsi;
this.name = name;
this.nfs = nfs;
this.persistentVolumeClaim = persistentVolumeClaim;
this.rbd = rbd;
this.secret = secret;
}
/**
*
*
* @return
* The awsElasticBlockStore
*/
@JsonProperty("awsElasticBlockStore")
public AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore() {
return awsElasticBlockStore;
}
/**
*
*
* @param awsElasticBlockStore
* The awsElasticBlockStore
*/
@JsonProperty("awsElasticBlockStore")
public void setAwsElasticBlockStore(AWSElasticBlockStoreVolumeSource awsElasticBlockStore) {
this.awsElasticBlockStore = awsElasticBlockStore;
}
/**
*
*
* @return
* The emptyDir
*/
@JsonProperty("emptyDir")
public EmptyDirVolumeSource getEmptyDir() {
return emptyDir;
}
/**
*
*
* @param emptyDir
* The emptyDir
*/
@JsonProperty("emptyDir")
public void setEmptyDir(EmptyDirVolumeSource emptyDir) {
this.emptyDir = emptyDir;
}
/**
*
*
* @return
* The gcePersistentDisk
*/
@JsonProperty("gcePersistentDisk")
public GCEPersistentDiskVolumeSource getGcePersistentDisk() {
return gcePersistentDisk;
}
/**
*
*
* @param gcePersistentDisk
* The gcePersistentDisk
*/
@JsonProperty("gcePersistentDisk")
public void setGcePersistentDisk(GCEPersistentDiskVolumeSource gcePersistentDisk) {
this.gcePersistentDisk = gcePersistentDisk;
}
/**
*
*
* @return
* The gitRepo
*/
@JsonProperty("gitRepo")
public GitRepoVolumeSource getGitRepo() {
return gitRepo;
}
/**
*
*
* @param gitRepo
* The gitRepo
*/
@JsonProperty("gitRepo")
public void setGitRepo(GitRepoVolumeSource gitRepo) {
this.gitRepo = gitRepo;
}
/**
*
*
* @return
* The glusterfs
*/
@JsonProperty("glusterfs")
public GlusterfsVolumeSource getGlusterfs() {
return glusterfs;
}
/**
*
*
* @param glusterfs
* The glusterfs
*/
@JsonProperty("glusterfs")
public void setGlusterfs(GlusterfsVolumeSource glusterfs) {
this.glusterfs = glusterfs;
}
/**
*
*
* @return
* The hostPath
*/
@JsonProperty("hostPath")
public HostPathVolumeSource getHostPath() {
return hostPath;
}
/**
*
*
* @param hostPath
* The hostPath
*/
@JsonProperty("hostPath")
public void setHostPath(HostPathVolumeSource hostPath) {
this.hostPath = hostPath;
}
/**
*
*
* @return
* The iscsi
*/
@JsonProperty("iscsi")
public ISCSIVolumeSource getIscsi() {
return iscsi;
}
/**
*
*
* @param iscsi
* The iscsi
*/
@JsonProperty("iscsi")
public void setIscsi(ISCSIVolumeSource iscsi) {
this.iscsi = iscsi;
}
/**
* volume name; must be a DNS_LABEL and unique within the pod
*
* @return
* The name
*/
@JsonProperty("name")
public String getName() {
return name;
}
/**
* volume name; must be a DNS_LABEL and unique within the pod
*
* @param name
* The name
*/
@JsonProperty("name")
public void setName(String name) {
this.name = name;
}
/**
*
*
* @return
* The nfs
*/
@JsonProperty("nfs")
public NFSVolumeSource getNfs() {
return nfs;
}
/**
*
*
* @param nfs
* The nfs
*/
@JsonProperty("nfs")
public void setNfs(NFSVolumeSource nfs) {
this.nfs = nfs;
}
/**
*
*
* @return
* The persistentVolumeClaim
*/
@JsonProperty("persistentVolumeClaim")
public PersistentVolumeClaimVolumeSource getPersistentVolumeClaim() {
return persistentVolumeClaim;
}
/**
*
*
* @param persistentVolumeClaim
* The persistentVolumeClaim
*/
@JsonProperty("persistentVolumeClaim")
public void setPersistentVolumeClaim(PersistentVolumeClaimVolumeSource persistentVolumeClaim) {
this.persistentVolumeClaim = persistentVolumeClaim;
}
/**
*
*
* @return
* The rbd
*/
@JsonProperty("rbd")
public RBDVolumeSource getRbd() {
return rbd;
}
/**
*
*
* @param rbd
* The rbd
*/
@JsonProperty("rbd")
public void setRbd(RBDVolumeSource rbd) {
this.rbd = rbd;
}
/**
*
*
* @return
* The secret
*/
@JsonProperty("secret")
public SecretVolumeSource getSecret() {
return secret;
}
/**
*
*
* @param secret
* The secret
*/
@JsonProperty("secret")
public void setSecret(SecretVolumeSource secret) {
this.secret = secret;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(awsElasticBlockStore).append(emptyDir).append(gcePersistentDisk).append(gitRepo).append(glusterfs).append(hostPath).append(iscsi).append(name).append(nfs).append(persistentVolumeClaim).append(rbd).append(secret).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Volume) == false) {
return false;
}
Volume rhs = ((Volume) other);
return new EqualsBuilder().append(awsElasticBlockStore, rhs.awsElasticBlockStore).append(emptyDir, rhs.emptyDir).append(gcePersistentDisk, rhs.gcePersistentDisk).append(gitRepo, rhs.gitRepo).append(glusterfs, rhs.glusterfs).append(hostPath, rhs.hostPath).append(iscsi, rhs.iscsi).append(name, rhs.name).append(nfs, rhs.nfs).append(persistentVolumeClaim, rhs.persistentVolumeClaim).append(rbd, rhs.rbd).append(secret, rhs.secret).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy