AdoptionPolicy Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. containerservice. models. AdoptionPolicy
- com.
- com.
public final class AdoptionPolicy
extends ExpandableStringEnum<AdoptionPolicy>
Action if Kubernetes namespace with same name already exists.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Adoption |
ALWAYS
Always take over the existing namespace to be managed by ARM, some fields might be overwritten. |
|
static final
Adoption |
IF_IDENTICAL
Take over the existing namespace to be managed by ARM, if there is no difference. |
|
static final
Adoption |
NEVER
If the namespace already exists in Kubernetes, attempts to create that same namespace in ARM will fail. |
Constructor Summary
| Constructor | Description |
|---|---|
| AdoptionPolicy() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Adoption |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Adoption |
fromString(String name)
Creates or finds a Adoption |
|
static
Collection<Adoption |
values()
Gets known Adoption |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
ALWAYS
public static final AdoptionPolicy ALWAYS
Always take over the existing namespace to be managed by ARM, some fields might be overwritten.
IF_IDENTICAL
public static final AdoptionPolicy IF_IDENTICAL
Take over the existing namespace to be managed by ARM, if there is no difference.
NEVER
public static final AdoptionPolicy NEVER
If the namespace already exists in Kubernetes, attempts to create that same namespace in ARM will fail.
Constructor Details
AdoptionPolicy
@Deprecated
public AdoptionPolicy()
Deprecated
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:
Returns:
values
public static Collection<AdoptionPolicy> values()
Gets known AdoptionPolicy values.
Returns: