public enum CampaignPreferenceErrorReason extends Enum<CampaignPreferenceErrorReason>
Java class for CampaignPreferenceError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="CampaignPreferenceError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="PREFERENCE_ALREADY_EXISTS"/>
<enumeration value="PREFERENCE_NOT_FOUND"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
PREFERENCE_ALREADY_EXISTS
A campaign cannot have two preferences with the same preference key.
|
PREFERENCE_NOT_FOUND
No preference matched the given preference key.
|
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static CampaignPreferenceErrorReason |
fromValue(String v) |
String |
value() |
static CampaignPreferenceErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CampaignPreferenceErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CampaignPreferenceErrorReason PREFERENCE_ALREADY_EXISTS
public static final CampaignPreferenceErrorReason PREFERENCE_NOT_FOUND
public static final CampaignPreferenceErrorReason UNKNOWN
public static CampaignPreferenceErrorReason[] values()
for (CampaignPreferenceErrorReason c : CampaignPreferenceErrorReason.values()) System.out.println(c);
public static CampaignPreferenceErrorReason 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 CampaignPreferenceErrorReason fromValue(String v)
Copyright © 2023. All rights reserved.