Class StatefulSetPersistentVolumeClaimRetentionPolicy
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class StatefulSetPersistentVolumeClaimRetentionPolicy extends java.lang.Object implements com.marcnuri.yakc.model.Model
StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StatefulSetPersistentVolumeClaimRetentionPolicy.Builder
-
Constructor Summary
Constructors Constructor Description StatefulSetPersistentVolumeClaimRetentionPolicy()
StatefulSetPersistentVolumeClaimRetentionPolicy(java.lang.String whenDeleted, java.lang.String whenScaled)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StatefulSetPersistentVolumeClaimRetentionPolicy.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getWhenDeleted()
WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted.java.lang.String
getWhenScaled()
WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down.int
hashCode()
void
setWhenDeleted(java.lang.String whenDeleted)
WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted.void
setWhenScaled(java.lang.String whenScaled)
WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down.StatefulSetPersistentVolumeClaimRetentionPolicy.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static StatefulSetPersistentVolumeClaimRetentionPolicy.Builder builder()
-
toBuilder
public StatefulSetPersistentVolumeClaimRetentionPolicy.Builder toBuilder()
-
getWhenDeleted
public java.lang.String getWhenDeleted()
WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted.
-
getWhenScaled
public java.lang.String getWhenScaled()
WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted.
-
setWhenDeleted
public void setWhenDeleted(java.lang.String whenDeleted)
WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted.
-
setWhenScaled
public void setWhenScaled(java.lang.String whenScaled)
WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted.
-
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
-
-