Class CinderPersistentVolumeSource
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.CinderPersistentVolumeSource
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class CinderPersistentVolumeSource extends java.lang.Object implements com.marcnuri.yakc.model.Model
Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CinderPersistentVolumeSource.Builder
-
Constructor Summary
Constructors Constructor Description CinderPersistentVolumeSource()
CinderPersistentVolumeSource(java.lang.String fsType, java.lang.Boolean readOnly, SecretReference secretRef, @NonNull java.lang.String volumeID)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CinderPersistentVolumeSource.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getFsType()
fsType Filesystem type to mount.java.lang.Boolean
getReadOnly()
readOnly is Optional: Defaults to false (read/write).SecretReference
getSecretRef()
@NonNull java.lang.String
getVolumeID()
volumeID used to identify the volume in cinder.int
hashCode()
void
setFsType(java.lang.String fsType)
fsType Filesystem type to mount.void
setReadOnly(java.lang.Boolean readOnly)
readOnly is Optional: Defaults to false (read/write).void
setSecretRef(SecretReference secretRef)
void
setVolumeID(@NonNull java.lang.String volumeID)
volumeID used to identify the volume in cinder.CinderPersistentVolumeSource.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
CinderPersistentVolumeSource
public CinderPersistentVolumeSource(java.lang.String fsType, java.lang.Boolean readOnly, SecretReference secretRef, @NonNull @NonNull java.lang.String volumeID)
-
CinderPersistentVolumeSource
public CinderPersistentVolumeSource()
-
-
Method Detail
-
builder
public static CinderPersistentVolumeSource.Builder builder()
-
toBuilder
public CinderPersistentVolumeSource.Builder toBuilder()
-
getFsType
public java.lang.String getFsType()
fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
-
getReadOnly
public java.lang.Boolean getReadOnly()
readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
-
getSecretRef
public SecretReference getSecretRef()
-
getVolumeID
@NonNull public @NonNull java.lang.String getVolumeID()
volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
-
setFsType
public void setFsType(java.lang.String fsType)
fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
-
setReadOnly
public void setReadOnly(java.lang.Boolean readOnly)
readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
-
setSecretRef
public void setSecretRef(SecretReference secretRef)
-
setVolumeID
public void setVolumeID(@NonNull @NonNull java.lang.String volumeID)
volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-