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>
Action if Kubernetes namespace with same name already exists.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AdoptionPolicyAlways take over the existing namespace to be managed by ARM, some fields might be overwritten.static final AdoptionPolicyTake over the existing namespace to be managed by ARM, if there is no difference.static final AdoptionPolicyIf the namespace already exists in Kubernetes, attempts to create that same namespace in ARM will fail. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AdoptionPolicyfromString(String name) Creates or finds a AdoptionPolicy from its string representation.static Collection<AdoptionPolicy> values()Gets known AdoptionPolicy values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
NEVER
If the namespace already exists in Kubernetes, attempts to create that same namespace in ARM will fail. -
IF_IDENTICAL
Take over the existing namespace to be managed by ARM, if there is no difference. -
ALWAYS
Always take over the existing namespace to be managed by ARM, some fields might be overwritten.
-
-
Constructor Details
-
AdoptionPolicy
Deprecated.Use thefromString(String)factory method.Creates a new instance of AdoptionPolicy value.
-
-
Method Details
-
fromString
Creates or finds a AdoptionPolicy from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding AdoptionPolicy.
-
values
Gets known AdoptionPolicy values.- Returns:
- known AdoptionPolicy values.
-
fromString(String)factory method.