Enum Verification.Channel
- java.lang.Object
-
- java.lang.Enum<Verification.Channel>
-
- com.twilio.rest.verify.v2.service.Verification.Channel
-
- All Implemented Interfaces:
Serializable
,Comparable<Verification.Channel>
- Enclosing class:
- Verification
public static enum Verification.Channel extends Enum<Verification.Channel>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Verification.Channel
forValue(String value)
String
toString()
static Verification.Channel
valueOf(String name)
Returns the enum constant of this type with the specified name.static Verification.Channel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SMS
public static final Verification.Channel SMS
-
CALL
public static final Verification.Channel CALL
-
EMAIL
public static final Verification.Channel EMAIL
-
WHATSAPP
public static final Verification.Channel WHATSAPP
-
SNA
public static final Verification.Channel SNA
-
-
Method Detail
-
values
public static Verification.Channel[] 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 (Verification.Channel c : Verification.Channel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Verification.Channel 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:
toString
in classEnum<Verification.Channel>
-
forValue
public static Verification.Channel forValue(String value)
-
-