AdminRuleKind Class

public final class AdminRuleKind
extends ExpandableStringEnum<AdminRuleKind>

Whether the rule is custom or default.

Field Summary

Modifier and Type Field and Description
static final AdminRuleKind CUSTOM

Static value Custom for AdminRuleKind.

static final AdminRuleKind DEFAULT

Static value Default for AdminRuleKind.

Constructor Summary

Constructor Description
AdminRuleKind()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of AdminRuleKind value.

Method Summary

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

Creates or finds a AdminRuleKind from its string representation.

static Collection<AdminRuleKind> values()

Gets known AdminRuleKind values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

CUSTOM

public static final AdminRuleKind CUSTOM

Static value Custom for AdminRuleKind.

DEFAULT

public static final AdminRuleKind DEFAULT

Static value Default for AdminRuleKind.

Constructor Details

AdminRuleKind

@Deprecated
public AdminRuleKind()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of AdminRuleKind value.

Method Details

fromString

public static AdminRuleKind fromString(String name)

Creates or finds a AdminRuleKind from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding AdminRuleKind.

values

public static Collection values()

Gets known AdminRuleKind values.

Returns:

known AdminRuleKind values.

Applies to