Class V1StatefulSetPersistentVolumeClaimRetentionPolicy
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1StatefulSetPersistentVolumeClaimRetentionPolicy
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1StatefulSetPersistentVolumeClaimRetentionPolicy
extends Object
StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted.WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down.int
hashCode()
void
setWhenDeleted
(String whenDeleted) Set the whenDeleted property valuevoid
setWhenScaled
(String whenScaled) Set the whenScaled property valuetoString()
whenDeleted
(String whenDeleted) Set whenDeleted in a chainable fashion.whenScaled
(String whenScaled) Set whenScaled in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_WHEN_DELETED
- See Also:
-
JSON_PROPERTY_WHEN_SCALED
- See Also:
-
-
Constructor Details
-
V1StatefulSetPersistentVolumeClaimRetentionPolicy
public V1StatefulSetPersistentVolumeClaimRetentionPolicy()
-
-
Method Details
-
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.- Returns:
- the whenDeleted property value
-
setWhenDeleted
Set the whenDeleted property value -
whenDeleted
Set whenDeleted in a chainable fashion.- Returns:
- The same instance of V1StatefulSetPersistentVolumeClaimRetentionPolicy for chaining.
-
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.- Returns:
- the whenScaled property value
-
setWhenScaled
Set the whenScaled property value -
whenScaled
Set whenScaled in a chainable fashion.- Returns:
- The same instance of V1StatefulSetPersistentVolumeClaimRetentionPolicy for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-