Class DeletePolicy

java.lang.Object
com.azure.core.util.ExpandableStringEnum<DeletePolicy>
com.azure.resourcemanager.containerservice.models.DeletePolicy
All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>

public final class DeletePolicy extends com.azure.core.util.ExpandableStringEnum<DeletePolicy>
Delete options of a namespace.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final DeletePolicy
    Delete both the ARM resource and the Kubernetes namespace together.
    static final DeletePolicy
    Only delete the ARM resource, keep the Kubernetes namespace.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Use the fromString(String) factory method.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates or finds a DeletePolicy from its string representation.
    Gets known DeletePolicy values.

    Methods inherited from class com.azure.core.util.ExpandableStringEnum

    equals, fromString, getValue, hashCode, toString, values

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • KEEP

      public static final DeletePolicy KEEP
      Only delete the ARM resource, keep the Kubernetes namespace. Also delete the ManagedByARM label.
    • DELETE

      public static final DeletePolicy DELETE
      Delete both the ARM resource and the Kubernetes namespace together.
  • Constructor Details

    • DeletePolicy

      @Deprecated public DeletePolicy()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of DeletePolicy value.
  • Method Details

    • fromString

      public static DeletePolicy fromString(String name)
      Creates or finds a DeletePolicy from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding DeletePolicy.
    • values

      public static Collection<DeletePolicy> values()
      Gets known DeletePolicy values.
      Returns:
      known DeletePolicy values.