public static enum VerificationAttempt.Channels extends Enum<VerificationAttempt.Channels>
Modifier and Type | Method and Description |
---|---|
static VerificationAttempt.Channels |
forValue(String value)
Generate a Channels from a string.
|
String |
toString() |
static VerificationAttempt.Channels |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VerificationAttempt.Channels[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VerificationAttempt.Channels SMS
public static final VerificationAttempt.Channels CALL
public static final VerificationAttempt.Channels EMAIL
public static VerificationAttempt.Channels[] values()
for (VerificationAttempt.Channels c : VerificationAttempt.Channels.values()) System.out.println(c);
public static VerificationAttempt.Channels 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 toString()
toString
in class Enum<VerificationAttempt.Channels>
public static VerificationAttempt.Channels forValue(String value)
value
- string valueCopyright © 2019 Twilio, Inc. All Rights Reserved.