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