public enum CustomAffinityErrorReason extends Enum<CustomAffinityErrorReason>
Java class for CustomAffinityError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="CustomAffinityError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="NAME_ALREADY_USED"/>
<enumeration value="CUSTOM_AFFINITY_TOKEN_ID_AND_TYPE_PARAMETER_NOT_PRESENT_IN_REMOVE"/>
<enumeration value="TYPE_AND_PARAMETER_NOT_FOUND"/>
<enumeration value="TYPE_AND_PARAMETER_ALREADY_EXISTED"/>
<enumeration value="INVALID_CUSTOM_AFFINITY_TOKEN_TYPE"/>
<enumeration value="CANNOT_REMOVE_WHILE_IN_USE"/>
<enumeration value="FIELD_MUTATE_OPERATOR_FOR_TOKENS_IS_NOT_SUPPORTED"/>
<enumeration value="READ_ONLY_ENTITY"/>
<enumeration value="CANNOT_CHANGE_TYPE"/>
<enumeration value="CUSTOM_AFFINITY_SERVICE_ERROR"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CANNOT_CHANGE_TYPE
Cannot change custom affinity type.
|
CANNOT_REMOVE_WHILE_IN_USE
Cannot remove a custom affinity while it's still being used as targeting.
|
CUSTOM_AFFINITY_SERVICE_ERROR
Default generic error.
|
CUSTOM_AFFINITY_TOKEN_ID_AND_TYPE_PARAMETER_NOT_PRESENT_IN_REMOVE
In remove custom affinity token operation, both token ID and
pair [type, parameter] are not present.
|
FIELD_MUTATE_OPERATOR_FOR_TOKENS_IS_NOT_SUPPORTED
Field mutate operator for tokens is not supported.
|
INVALID_CUSTOM_AFFINITY_TOKEN_TYPE
Unsupported custom affinity token type.
|
NAME_ALREADY_USED
Duplicated name ignoring cases.
|
READ_ONLY_ENTITY
Read only entities are not editable.
|
TYPE_AND_PARAMETER_ALREADY_EXISTED
The pair of [type, parameter] already exists.
|
TYPE_AND_PARAMETER_NOT_FOUND
The pair of [type, parameter] does not exist.
|
| Modifier and Type | Method and Description |
|---|---|
static CustomAffinityErrorReason |
fromValue(String v) |
String |
value() |
static CustomAffinityErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CustomAffinityErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CustomAffinityErrorReason NAME_ALREADY_USED
public static final CustomAffinityErrorReason CUSTOM_AFFINITY_TOKEN_ID_AND_TYPE_PARAMETER_NOT_PRESENT_IN_REMOVE
public static final CustomAffinityErrorReason TYPE_AND_PARAMETER_NOT_FOUND
public static final CustomAffinityErrorReason TYPE_AND_PARAMETER_ALREADY_EXISTED
public static final CustomAffinityErrorReason INVALID_CUSTOM_AFFINITY_TOKEN_TYPE
public static final CustomAffinityErrorReason CANNOT_REMOVE_WHILE_IN_USE
public static final CustomAffinityErrorReason FIELD_MUTATE_OPERATOR_FOR_TOKENS_IS_NOT_SUPPORTED
public static final CustomAffinityErrorReason READ_ONLY_ENTITY
public static final CustomAffinityErrorReason CANNOT_CHANGE_TYPE
public static final CustomAffinityErrorReason CUSTOM_AFFINITY_SERVICE_ERROR
public static CustomAffinityErrorReason[] values()
for (CustomAffinityErrorReason c : CustomAffinityErrorReason.values()) System.out.println(c);
public static CustomAffinityErrorReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static CustomAffinityErrorReason fromValue(String v)
Copyright © 2023. All rights reserved.