Share via


DeletePolicy Class

public final class DeletePolicy
extends ExpandableStringEnum<DeletePolicy>

Delete options of a namespace.

Field Summary

Modifier and Type Field and Description
static final DeletePolicy DELETE

Delete both the ARM resource and the Kubernetes namespace together.

static final DeletePolicy KEEP

Only delete the ARM resource, keep the Kubernetes namespace.

Constructor Summary

Constructor Description
DeletePolicy()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DeletePolicy value.

Method Summary

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

Creates or finds a DeletePolicy from its string representation.

static Collection<DeletePolicy> values()

Gets known DeletePolicy values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DELETE

public static final DeletePolicy DELETE

Delete both the ARM resource and the Kubernetes namespace together.

KEEP

public static final DeletePolicy KEEP

Only delete the ARM resource, keep the Kubernetes namespace. Also delete the ManagedByARM label.

Constructor Details

DeletePolicy

@Deprecated
public DeletePolicy()

Deprecated

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

Applies to