public enum PremiumRateErrorReason extends Enum<PremiumRateErrorReason>
Java class for PremiumRateError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="PremiumRateError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="INVALID_RATE_TYPE"/>
<enumeration value="INVALID_PRICING_METHOD"/>
<enumeration value="INVALID_PREMIUM_FEATURE"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
INVALID_PREMIUM_FEATURE
The premium feature of the
PremiumRate is invalid. |
INVALID_PRICING_METHOD
The pricing method of the
PremiumRate is invalid. |
INVALID_RATE_TYPE
The rate type of the
PremiumRateValue is invalid. |
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
| Modifier and Type | Method and Description |
|---|---|
static PremiumRateErrorReason |
fromValue(String v) |
String |
value() |
static PremiumRateErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PremiumRateErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PremiumRateErrorReason INVALID_RATE_TYPE
PremiumRateValue is invalid.public static final PremiumRateErrorReason INVALID_PRICING_METHOD
PremiumRate is invalid.public static final PremiumRateErrorReason INVALID_PREMIUM_FEATURE
PremiumRate is invalid.public static final PremiumRateErrorReason UNKNOWN
public static PremiumRateErrorReason[] values()
for (PremiumRateErrorReason c : PremiumRateErrorReason.values()) System.out.println(c);
public static PremiumRateErrorReason 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 PremiumRateErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.