Package com.twilio.rest.media.v1
Class PlayerStreamer
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.media.v1.PlayerStreamer
-
- All Implemented Interfaces:
Serializable
public class PlayerStreamer extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PlayerStreamer.EndedReason
static class
PlayerStreamer.Order
static class
PlayerStreamer.Status
static class
PlayerStreamer.UpdateStatus
-
Method Summary
-
-
-
Method Detail
-
creator
public static PlayerStreamerCreator creator()
-
fetcher
public static PlayerStreamerFetcher fetcher(String pathSid)
-
reader
public static PlayerStreamerReader reader()
-
updater
public static PlayerStreamerUpdater updater(String pathSid, PlayerStreamer.UpdateStatus status)
-
fromJson
public static PlayerStreamer fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a PlayerStreamer object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- PlayerStreamer object represented by the provided JSON
-
fromJson
public static PlayerStreamer fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a PlayerStreamer object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- PlayerStreamer object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getVideo
public final Boolean getVideo()
-
getSid
public final String getSid()
-
getStatus
public final PlayerStreamer.Status getStatus()
-
getUrl
public final URI getUrl()
-
getStatusCallback
public final URI getStatusCallback()
-
getStatusCallbackMethod
public final HttpMethod getStatusCallbackMethod()
-
getEndedReason
public final PlayerStreamer.EndedReason getEndedReason()
-
getMaxDuration
public final Integer getMaxDuration()
-
-