Package kubevirt.io
Class V1PersistentVolumeClaimVolumeSource
- java.lang.Object
-
- kubevirt.io.V1PersistentVolumeClaimVolumeSource
-
@Generated(value="io.swagger.codegen.languages.JavaClientCodegen", date="2019-11-10T14:44:51.030+02:00") public class V1PersistentVolumeClaimVolumeSource extends java.lang.Object
PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).
-
-
Constructor Summary
Constructors Constructor Description V1PersistentVolumeClaimVolumeSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V1PersistentVolumeClaimVolumeSource
claimName(java.lang.String claimName)
boolean
equals(java.lang.Object o)
java.lang.String
getClaimName()
ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.int
hashCode()
java.lang.Boolean
isReadOnly()
Will force the ReadOnly setting in VolumeMounts.V1PersistentVolumeClaimVolumeSource
readOnly(java.lang.Boolean readOnly)
void
setClaimName(java.lang.String claimName)
void
setReadOnly(java.lang.Boolean readOnly)
private java.lang.String
toIndentedString(java.lang.Object o)
Convert the given object to string with each line indented by 4 spaces (except the first line).java.lang.String
toString()
-
-
-
Method Detail
-
claimName
public V1PersistentVolumeClaimVolumeSource claimName(java.lang.String claimName)
-
getClaimName
public java.lang.String getClaimName()
ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims- Returns:
- claimName
-
setClaimName
public void setClaimName(java.lang.String claimName)
-
readOnly
public V1PersistentVolumeClaimVolumeSource readOnly(java.lang.Boolean readOnly)
-
isReadOnly
public java.lang.Boolean isReadOnly()
Will force the ReadOnly setting in VolumeMounts. Default false.- Returns:
- readOnly
-
setReadOnly
public void setReadOnly(java.lang.Boolean readOnly)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toIndentedString
private java.lang.String toIndentedString(java.lang.Object o)
Convert the given object to string with each line indented by 4 spaces (except the first line).
-
-