Class AdoptionPolicy

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

public final class AdoptionPolicy extends com.azure.core.util.ExpandableStringEnum<AdoptionPolicy>
Action if Kubernetes namespace with same name already exists.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final AdoptionPolicy
    Always take over the existing namespace to be managed by ARM, some fields might be overwritten.
    static final AdoptionPolicy
    Take over the existing namespace to be managed by ARM, if there is no difference.
    static final AdoptionPolicy
    If the namespace already exists in Kubernetes, attempts to create that same namespace in ARM will fail.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Creates or finds a AdoptionPolicy from its string representation.
    Gets known AdoptionPolicy 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

    • NEVER

      public static final AdoptionPolicy NEVER
      If the namespace already exists in Kubernetes, attempts to create that same namespace in ARM will fail.
    • IF_IDENTICAL

      public static final AdoptionPolicy IF_IDENTICAL
      Take over the existing namespace to be managed by ARM, if there is no difference.
    • ALWAYS

      public static final AdoptionPolicy ALWAYS
      Always take over the existing namespace to be managed by ARM, some fields might be overwritten.
  • Constructor Details

    • AdoptionPolicy

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

    • fromString

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

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