Package com.twilio.rest.lookups.v2
Enum PhoneNumber.ValidationError
- java.lang.Object
-
- java.lang.Enum<PhoneNumber.ValidationError>
-
- com.twilio.rest.lookups.v2.PhoneNumber.ValidationError
-
- All Implemented Interfaces:
Serializable,Comparable<PhoneNumber.ValidationError>
- Enclosing class:
- PhoneNumber
public static enum PhoneNumber.ValidationError extends Enum<PhoneNumber.ValidationError>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALID_BUT_POSSIBLEINVALID_COUNTRY_CODEINVALID_LENGTHNOT_A_NUMBERTOO_LONGTOO_SHORT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PhoneNumber.ValidationErrorforValue(String value)StringtoString()static PhoneNumber.ValidationErrorvalueOf(String name)Returns the enum constant of this type with the specified name.static PhoneNumber.ValidationError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOO_SHORT
public static final PhoneNumber.ValidationError TOO_SHORT
-
TOO_LONG
public static final PhoneNumber.ValidationError TOO_LONG
-
INVALID_BUT_POSSIBLE
public static final PhoneNumber.ValidationError INVALID_BUT_POSSIBLE
-
INVALID_COUNTRY_CODE
public static final PhoneNumber.ValidationError INVALID_COUNTRY_CODE
-
INVALID_LENGTH
public static final PhoneNumber.ValidationError INVALID_LENGTH
-
NOT_A_NUMBER
public static final PhoneNumber.ValidationError NOT_A_NUMBER
-
-
Method Detail
-
values
public static PhoneNumber.ValidationError[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PhoneNumber.ValidationError c : PhoneNumber.ValidationError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PhoneNumber.ValidationError valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<PhoneNumber.ValidationError>
-
forValue
public static PhoneNumber.ValidationError forValue(String value)
-
-