Share via


AdoptionPolicy Class

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 AdoptionPolicy ALWAYS

Always take over the existing namespace to be managed by ARM, some fields might be overwritten.

static final AdoptionPolicy IF_IDENTICAL

Take over the existing namespace to be managed by ARM, if there is no difference.

static final AdoptionPolicy 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 AdoptionPolicy value.

Method Summary

Modifier and Type Method and Description
static AdoptionPolicy fromString(String name)

Creates or finds a AdoptionPolicy from its string representation.

static Collection<AdoptionPolicy> values()

Gets known AdoptionPolicy values.

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

Use the fromString(String name) 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.

Applies to