EnforcementMode Class

public final class EnforcementMode
extends ExpandableStringEnum<EnforcementMode>

The policy assignment enforcement mode. Possible values are Default, DoNotEnforce, and Enroll.

Field Summary

Modifier and Type Field and Description
static final EnforcementMode DEFAULT

The policy effect is enforced during resource creation or update.

static final EnforcementMode DO_NOT_ENFORCE

The policy effect is not enforced during resource creation or update.

static final EnforcementMode ENROLL

The policy effect is not enforced during resource creation or update until the resource or scope of the resource is enrolled to the assignment instance.

Constructor Summary

Constructor Description
EnforcementMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of EnforcementMode value.

Method Summary

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

Creates or finds a EnforcementMode from its string representation.

static Collection<EnforcementMode> values()

Gets known EnforcementMode values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DEFAULT

public static final EnforcementMode DEFAULT

The policy effect is enforced during resource creation or update.

DO_NOT_ENFORCE

public static final EnforcementMode DO_NOT_ENFORCE

The policy effect is not enforced during resource creation or update.

ENROLL

public static final EnforcementMode ENROLL

The policy effect is not enforced during resource creation or update until the resource or scope of the resource is enrolled to the assignment instance. Enrollment occurs upon deployment of the policy enrollment resource.

Constructor Details

EnforcementMode

@Deprecated
public EnforcementMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of EnforcementMode value.

Method Details

fromString

public static EnforcementMode fromString(String name)

Creates or finds a EnforcementMode from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding EnforcementMode.

values

public static Collection<EnforcementMode> values()

Gets known EnforcementMode values.

Returns:

known EnforcementMode values.

Applies to