Package com.twilio.rest.media.v1
Enum PlayerStreamer.EndedReason
- java.lang.Object
-
- java.lang.Enum<PlayerStreamer.EndedReason>
-
- com.twilio.rest.media.v1.PlayerStreamer.EndedReason
-
- All Implemented Interfaces:
Serializable,Comparable<PlayerStreamer.EndedReason>
- Enclosing class:
- PlayerStreamer
public static enum PlayerStreamer.EndedReason extends Enum<PlayerStreamer.EndedReason>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENDED_VIA_APIMAX_DURATION_EXCEEDEDSTREAM_DISCONNECTED_BY_SOURCEUNEXPECTED_FAILURE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PlayerStreamer.EndedReasonforValue(String value)StringtoString()static PlayerStreamer.EndedReasonvalueOf(String name)Returns the enum constant of this type with the specified name.static PlayerStreamer.EndedReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENDED_VIA_API
public static final PlayerStreamer.EndedReason ENDED_VIA_API
-
MAX_DURATION_EXCEEDED
public static final PlayerStreamer.EndedReason MAX_DURATION_EXCEEDED
-
STREAM_DISCONNECTED_BY_SOURCE
public static final PlayerStreamer.EndedReason STREAM_DISCONNECTED_BY_SOURCE
-
UNEXPECTED_FAILURE
public static final PlayerStreamer.EndedReason UNEXPECTED_FAILURE
-
-
Method Detail
-
values
public static PlayerStreamer.EndedReason[] 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 (PlayerStreamer.EndedReason c : PlayerStreamer.EndedReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PlayerStreamer.EndedReason 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<PlayerStreamer.EndedReason>
-
forValue
public static PlayerStreamer.EndedReason forValue(String value)
-
-