Class CinderVolumeSource
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.CinderVolumeSource
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class CinderVolumeSource 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
CinderVolumeSource.CinderVolumeSourceBuilder
-
Constructor Summary
Constructors Constructor Description CinderVolumeSource()
CinderVolumeSource(java.lang.String fsType, java.lang.Boolean readOnly, LocalObjectReference secretRef, @NonNull java.lang.String volumeID)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CinderVolumeSource.CinderVolumeSourceBuilder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getFsType()
Filesystem type to mount.java.lang.Boolean
getReadOnly()
Optional: Defaults to false (read/write).LocalObjectReference
getSecretRef()
@NonNull java.lang.String
getVolumeID()
volume id used to identify the volume in cinder.int
hashCode()
void
setFsType(java.lang.String fsType)
Filesystem type to mount.void
setReadOnly(java.lang.Boolean readOnly)
Optional: Defaults to false (read/write).void
setSecretRef(LocalObjectReference secretRef)
void
setVolumeID(@NonNull java.lang.String volumeID)
volume id used to identify the volume in cinder.CinderVolumeSource.CinderVolumeSourceBuilder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
CinderVolumeSource
public CinderVolumeSource(java.lang.String fsType, java.lang.Boolean readOnly, LocalObjectReference secretRef, @NonNull @NonNull java.lang.String volumeID)
-
CinderVolumeSource
public CinderVolumeSource()
-
-
Method Detail
-
builder
public static CinderVolumeSource.CinderVolumeSourceBuilder builder()
-
toBuilder
public CinderVolumeSource.CinderVolumeSourceBuilder toBuilder()
-
getFsType
public java.lang.String getFsType()
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()
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 LocalObjectReference getSecretRef()
-
getVolumeID
@NonNull public @NonNull java.lang.String getVolumeID()
volume id 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)
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)
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(LocalObjectReference secretRef)
-
setVolumeID
public void setVolumeID(@NonNull @NonNull java.lang.String volumeID)
volume id 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
-
-