PolicyType Class

public final class PolicyType
extends ExpandableStringEnum<PolicyType>

The type of the policy.

Field Summary

Modifier and Type Field and Description
static final PolicyType OTHER

Static value Other for PolicyType.

static final PolicyType SYSTEM_CONTROLLED

Static value SystemControlled for PolicyType.

static final PolicyType USER_CONTROLLED

Static value UserControlled for PolicyType.

Constructor Summary

Constructor Description
PolicyType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PolicyType value.

Method Summary

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

Creates or finds a PolicyType from its string representation.

static Collection<PolicyType> values()

Gets known PolicyType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

OTHER

public static final PolicyType OTHER

Static value Other for PolicyType.

SYSTEM_CONTROLLED

public static final PolicyType SYSTEM_CONTROLLED

Static value SystemControlled for PolicyType.

USER_CONTROLLED

public static final PolicyType USER_CONTROLLED

Static value UserControlled for PolicyType.

Constructor Details

PolicyType

@Deprecated
public PolicyType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PolicyType value.

Method Details

fromString

public static PolicyType fromString(String name)

Creates or finds a PolicyType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding PolicyType.

values

public static Collection<PolicyType> values()

Gets known PolicyType values.

Returns:

known PolicyType values.

Applies to