
io.fabric8.kubernetes.api.model.PersistentVolumeSpec Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
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 io.sundr.builder.annotations.Buildable;
import lombok.EqualsAndHashCode;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"apiVersion",
"kind",
"metadata",
"accessModes",
"awsElasticBlockStore",
"azureDisk",
"azureFile",
"capacity",
"cephfs",
"cinder",
"claimRef",
"csi",
"fc",
"flexVolume",
"flocker",
"gcePersistentDisk",
"glusterfs",
"hostPath",
"iscsi",
"local",
"mountOptions",
"nfs",
"nodeAffinity",
"persistentVolumeReclaimPolicy",
"photonPersistentDisk",
"portworxVolume",
"quobyte",
"rbd",
"scaleIO",
"storageClassName",
"storageos",
"volumeMode",
"vsphereVolume"
})
@ToString
@EqualsAndHashCode
@Setter
@Accessors(prefix = {
"_",
""
})
@Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = true, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder")
public class PersistentVolumeSpec implements KubernetesResource
{
@JsonProperty("accessModes")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List accessModes = new ArrayList();
@JsonProperty("awsElasticBlockStore")
private AWSElasticBlockStoreVolumeSource awsElasticBlockStore;
@JsonProperty("azureDisk")
private AzureDiskVolumeSource azureDisk;
@JsonProperty("azureFile")
private AzureFilePersistentVolumeSource azureFile;
@JsonProperty("capacity")
private Map capacity;
@JsonProperty("cephfs")
private CephFSPersistentVolumeSource cephfs;
@JsonProperty("cinder")
private CinderPersistentVolumeSource cinder;
@JsonProperty("claimRef")
private ObjectReference claimRef;
@JsonProperty("csi")
private CSIPersistentVolumeSource csi;
@JsonProperty("fc")
private FCVolumeSource fc;
@JsonProperty("flexVolume")
private FlexPersistentVolumeSource flexVolume;
@JsonProperty("flocker")
private FlockerVolumeSource flocker;
@JsonProperty("gcePersistentDisk")
private GCEPersistentDiskVolumeSource gcePersistentDisk;
@JsonProperty("glusterfs")
private GlusterfsPersistentVolumeSource glusterfs;
@JsonProperty("hostPath")
private HostPathVolumeSource hostPath;
@JsonProperty("iscsi")
private ISCSIPersistentVolumeSource iscsi;
@JsonProperty("local")
private LocalVolumeSource local;
@JsonProperty("mountOptions")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List mountOptions = new ArrayList();
@JsonProperty("nfs")
private NFSVolumeSource nfs;
@JsonProperty("nodeAffinity")
private VolumeNodeAffinity nodeAffinity;
@JsonProperty("persistentVolumeReclaimPolicy")
private java.lang.String persistentVolumeReclaimPolicy;
@JsonProperty("photonPersistentDisk")
private PhotonPersistentDiskVolumeSource photonPersistentDisk;
@JsonProperty("portworxVolume")
private PortworxVolumeSource portworxVolume;
@JsonProperty("quobyte")
private QuobyteVolumeSource quobyte;
@JsonProperty("rbd")
private RBDPersistentVolumeSource rbd;
@JsonProperty("scaleIO")
private ScaleIOPersistentVolumeSource scaleIO;
@JsonProperty("storageClassName")
private java.lang.String storageClassName;
@JsonProperty("storageos")
private StorageOSPersistentVolumeSource storageos;
@JsonProperty("volumeMode")
private java.lang.String volumeMode;
@JsonProperty("vsphereVolume")
private VsphereVirtualDiskVolumeSource vsphereVolume;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public PersistentVolumeSpec() {
}
/**
*
* @param claimRef
* @param quobyte
* @param azureFile
* @param flexVolume
* @param mountOptions
* @param local
* @param capacity
* @param cephfs
* @param scaleIO
* @param accessModes
* @param glusterfs
* @param gcePersistentDisk
* @param photonPersistentDisk
* @param azureDisk
* @param cinder
* @param awsElasticBlockStore
* @param nodeAffinity
* @param flocker
* @param volumeMode
* @param iscsi
* @param rbd
* @param storageClassName
* @param storageos
* @param csi
* @param nfs
* @param persistentVolumeReclaimPolicy
* @param portworxVolume
* @param vsphereVolume
* @param fc
* @param hostPath
*/
public PersistentVolumeSpec(List accessModes, AWSElasticBlockStoreVolumeSource awsElasticBlockStore, AzureDiskVolumeSource azureDisk, AzureFilePersistentVolumeSource azureFile, Map capacity, CephFSPersistentVolumeSource cephfs, CinderPersistentVolumeSource cinder, ObjectReference claimRef, CSIPersistentVolumeSource csi, FCVolumeSource fc, FlexPersistentVolumeSource flexVolume, FlockerVolumeSource flocker, GCEPersistentDiskVolumeSource gcePersistentDisk, GlusterfsPersistentVolumeSource glusterfs, HostPathVolumeSource hostPath, ISCSIPersistentVolumeSource iscsi, LocalVolumeSource local, List mountOptions, NFSVolumeSource nfs, VolumeNodeAffinity nodeAffinity, java.lang.String persistentVolumeReclaimPolicy, PhotonPersistentDiskVolumeSource photonPersistentDisk, PortworxVolumeSource portworxVolume, QuobyteVolumeSource quobyte, RBDPersistentVolumeSource rbd, ScaleIOPersistentVolumeSource scaleIO, java.lang.String storageClassName, StorageOSPersistentVolumeSource storageos, java.lang.String volumeMode, VsphereVirtualDiskVolumeSource vsphereVolume) {
super();
this.accessModes = accessModes;
this.awsElasticBlockStore = awsElasticBlockStore;
this.azureDisk = azureDisk;
this.azureFile = azureFile;
this.capacity = capacity;
this.cephfs = cephfs;
this.cinder = cinder;
this.claimRef = claimRef;
this.csi = csi;
this.fc = fc;
this.flexVolume = flexVolume;
this.flocker = flocker;
this.gcePersistentDisk = gcePersistentDisk;
this.glusterfs = glusterfs;
this.hostPath = hostPath;
this.iscsi = iscsi;
this.local = local;
this.mountOptions = mountOptions;
this.nfs = nfs;
this.nodeAffinity = nodeAffinity;
this.persistentVolumeReclaimPolicy = persistentVolumeReclaimPolicy;
this.photonPersistentDisk = photonPersistentDisk;
this.portworxVolume = portworxVolume;
this.quobyte = quobyte;
this.rbd = rbd;
this.scaleIO = scaleIO;
this.storageClassName = storageClassName;
this.storageos = storageos;
this.volumeMode = volumeMode;
this.vsphereVolume = vsphereVolume;
}
@JsonProperty("accessModes")
public List getAccessModes() {
return accessModes;
}
@JsonProperty("accessModes")
public void setAccessModes(List accessModes) {
this.accessModes = accessModes;
}
@JsonProperty("awsElasticBlockStore")
public AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore() {
return awsElasticBlockStore;
}
@JsonProperty("awsElasticBlockStore")
public void setAwsElasticBlockStore(AWSElasticBlockStoreVolumeSource awsElasticBlockStore) {
this.awsElasticBlockStore = awsElasticBlockStore;
}
@JsonProperty("azureDisk")
public AzureDiskVolumeSource getAzureDisk() {
return azureDisk;
}
@JsonProperty("azureDisk")
public void setAzureDisk(AzureDiskVolumeSource azureDisk) {
this.azureDisk = azureDisk;
}
@JsonProperty("azureFile")
public AzureFilePersistentVolumeSource getAzureFile() {
return azureFile;
}
@JsonProperty("azureFile")
public void setAzureFile(AzureFilePersistentVolumeSource azureFile) {
this.azureFile = azureFile;
}
@JsonProperty("capacity")
public Map getCapacity() {
return capacity;
}
@JsonProperty("capacity")
public void setCapacity(Map capacity) {
this.capacity = capacity;
}
@JsonProperty("cephfs")
public CephFSPersistentVolumeSource getCephfs() {
return cephfs;
}
@JsonProperty("cephfs")
public void setCephfs(CephFSPersistentVolumeSource cephfs) {
this.cephfs = cephfs;
}
@JsonProperty("cinder")
public CinderPersistentVolumeSource getCinder() {
return cinder;
}
@JsonProperty("cinder")
public void setCinder(CinderPersistentVolumeSource cinder) {
this.cinder = cinder;
}
@JsonProperty("claimRef")
public ObjectReference getClaimRef() {
return claimRef;
}
@JsonProperty("claimRef")
public void setClaimRef(ObjectReference claimRef) {
this.claimRef = claimRef;
}
@JsonProperty("csi")
public CSIPersistentVolumeSource getCsi() {
return csi;
}
@JsonProperty("csi")
public void setCsi(CSIPersistentVolumeSource csi) {
this.csi = csi;
}
@JsonProperty("fc")
public FCVolumeSource getFc() {
return fc;
}
@JsonProperty("fc")
public void setFc(FCVolumeSource fc) {
this.fc = fc;
}
@JsonProperty("flexVolume")
public FlexPersistentVolumeSource getFlexVolume() {
return flexVolume;
}
@JsonProperty("flexVolume")
public void setFlexVolume(FlexPersistentVolumeSource flexVolume) {
this.flexVolume = flexVolume;
}
@JsonProperty("flocker")
public FlockerVolumeSource getFlocker() {
return flocker;
}
@JsonProperty("flocker")
public void setFlocker(FlockerVolumeSource flocker) {
this.flocker = flocker;
}
@JsonProperty("gcePersistentDisk")
public GCEPersistentDiskVolumeSource getGcePersistentDisk() {
return gcePersistentDisk;
}
@JsonProperty("gcePersistentDisk")
public void setGcePersistentDisk(GCEPersistentDiskVolumeSource gcePersistentDisk) {
this.gcePersistentDisk = gcePersistentDisk;
}
@JsonProperty("glusterfs")
public GlusterfsPersistentVolumeSource getGlusterfs() {
return glusterfs;
}
@JsonProperty("glusterfs")
public void setGlusterfs(GlusterfsPersistentVolumeSource glusterfs) {
this.glusterfs = glusterfs;
}
@JsonProperty("hostPath")
public HostPathVolumeSource getHostPath() {
return hostPath;
}
@JsonProperty("hostPath")
public void setHostPath(HostPathVolumeSource hostPath) {
this.hostPath = hostPath;
}
@JsonProperty("iscsi")
public ISCSIPersistentVolumeSource getIscsi() {
return iscsi;
}
@JsonProperty("iscsi")
public void setIscsi(ISCSIPersistentVolumeSource iscsi) {
this.iscsi = iscsi;
}
@JsonProperty("local")
public LocalVolumeSource getLocal() {
return local;
}
@JsonProperty("local")
public void setLocal(LocalVolumeSource local) {
this.local = local;
}
@JsonProperty("mountOptions")
public List getMountOptions() {
return mountOptions;
}
@JsonProperty("mountOptions")
public void setMountOptions(List mountOptions) {
this.mountOptions = mountOptions;
}
@JsonProperty("nfs")
public NFSVolumeSource getNfs() {
return nfs;
}
@JsonProperty("nfs")
public void setNfs(NFSVolumeSource nfs) {
this.nfs = nfs;
}
@JsonProperty("nodeAffinity")
public VolumeNodeAffinity getNodeAffinity() {
return nodeAffinity;
}
@JsonProperty("nodeAffinity")
public void setNodeAffinity(VolumeNodeAffinity nodeAffinity) {
this.nodeAffinity = nodeAffinity;
}
@JsonProperty("persistentVolumeReclaimPolicy")
public java.lang.String getPersistentVolumeReclaimPolicy() {
return persistentVolumeReclaimPolicy;
}
@JsonProperty("persistentVolumeReclaimPolicy")
public void setPersistentVolumeReclaimPolicy(java.lang.String persistentVolumeReclaimPolicy) {
this.persistentVolumeReclaimPolicy = persistentVolumeReclaimPolicy;
}
@JsonProperty("photonPersistentDisk")
public PhotonPersistentDiskVolumeSource getPhotonPersistentDisk() {
return photonPersistentDisk;
}
@JsonProperty("photonPersistentDisk")
public void setPhotonPersistentDisk(PhotonPersistentDiskVolumeSource photonPersistentDisk) {
this.photonPersistentDisk = photonPersistentDisk;
}
@JsonProperty("portworxVolume")
public PortworxVolumeSource getPortworxVolume() {
return portworxVolume;
}
@JsonProperty("portworxVolume")
public void setPortworxVolume(PortworxVolumeSource portworxVolume) {
this.portworxVolume = portworxVolume;
}
@JsonProperty("quobyte")
public QuobyteVolumeSource getQuobyte() {
return quobyte;
}
@JsonProperty("quobyte")
public void setQuobyte(QuobyteVolumeSource quobyte) {
this.quobyte = quobyte;
}
@JsonProperty("rbd")
public RBDPersistentVolumeSource getRbd() {
return rbd;
}
@JsonProperty("rbd")
public void setRbd(RBDPersistentVolumeSource rbd) {
this.rbd = rbd;
}
@JsonProperty("scaleIO")
public ScaleIOPersistentVolumeSource getScaleIO() {
return scaleIO;
}
@JsonProperty("scaleIO")
public void setScaleIO(ScaleIOPersistentVolumeSource scaleIO) {
this.scaleIO = scaleIO;
}
@JsonProperty("storageClassName")
public java.lang.String getStorageClassName() {
return storageClassName;
}
@JsonProperty("storageClassName")
public void setStorageClassName(java.lang.String storageClassName) {
this.storageClassName = storageClassName;
}
@JsonProperty("storageos")
public StorageOSPersistentVolumeSource getStorageos() {
return storageos;
}
@JsonProperty("storageos")
public void setStorageos(StorageOSPersistentVolumeSource storageos) {
this.storageos = storageos;
}
@JsonProperty("volumeMode")
public java.lang.String getVolumeMode() {
return volumeMode;
}
@JsonProperty("volumeMode")
public void setVolumeMode(java.lang.String volumeMode) {
this.volumeMode = volumeMode;
}
@JsonProperty("vsphereVolume")
public VsphereVirtualDiskVolumeSource getVsphereVolume() {
return vsphereVolume;
}
@JsonProperty("vsphereVolume")
public void setVsphereVolume(VsphereVirtualDiskVolumeSource vsphereVolume) {
this.vsphereVolume = vsphereVolume;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(java.lang.String name, Object value) {
this.additionalProperties.put(name, value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy