Freigeben über


EnforcementMode Class

public final class EnforcementMode
extends ExpandableStringEnum<EnforcementMode>

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

Field Summary

Modifier and Type Field and Description
static final EnforcementMode DEFAULT

Static value Default for EnforcementMode.

static final EnforcementMode DO_NOT_ENFORCE

Static value DoNotEnforce for EnforcementMode.

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

Static value Default for EnforcementMode.

DO_NOT_ENFORCE

public static final EnforcementMode DO_NOT_ENFORCE

Static value DoNotEnforce for EnforcementMode.

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 values()

Gets known EnforcementMode values.

Returns:

known EnforcementMode values.

Applies to