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 Details

  • Constructor Details

    • V1StatefulSetPersistentVolumeClaimRetentionPolicy

      public V1StatefulSetPersistentVolumeClaimRetentionPolicy()
  • Method Details

    • getWhenDeleted

      public 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.
      Returns:
      the whenDeleted property value
    • setWhenDeleted

      public void setWhenDeleted(String whenDeleted)
      Set the whenDeleted property value
      Parameters:
      whenDeleted - property value to set
    • whenDeleted

      Set whenDeleted in a chainable fashion.
      Returns:
      The same instance of V1StatefulSetPersistentVolumeClaimRetentionPolicy for chaining.
    • getWhenScaled

      public 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.
      Returns:
      the whenScaled property value
    • setWhenScaled

      public void setWhenScaled(String whenScaled)
      Set the whenScaled property value
      Parameters:
      whenScaled - property value to set
    • whenScaled

      Set whenScaled in a chainable fashion.
      Returns:
      The same instance of V1StatefulSetPersistentVolumeClaimRetentionPolicy for chaining.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object