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