public class MediaProcessor extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
MediaProcessor.Order |
static class |
MediaProcessor.Status |
static class |
MediaProcessor.UpdateStatus |
Modifier and Type | Method and Description |
---|---|
static MediaProcessorCreator |
creator(String extension,
String extensionContext)
Create a MediaProcessorCreator to execute create.
|
boolean |
equals(Object o) |
static MediaProcessorFetcher |
fetcher(String pathSid)
Create a MediaProcessorFetcher to execute fetch.
|
static MediaProcessor |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a MediaProcessor object using the provided
ObjectMapper.
|
static MediaProcessor |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a MediaProcessor object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
ZonedDateTime |
getDateCreated()
Returns The ISO 8601 date and time in GMT when the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The ISO 8601 date and time in GMT when the resource was last updated.
|
String |
getEndedReason()
Returns The reason why a MediaProcessor ended.
|
String |
getExtension()
Returns The Media Extension name or URL.
|
String |
getExtensionContext()
Returns The Media Extension context.
|
Integer |
getMaxDuration()
Returns Maximum MediaProcessor duration in seconds.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
MediaProcessor.Status |
getStatus()
Returns The status of the MediaProcessor.
|
URI |
getStatusCallback()
Returns The URL to which Twilio will send MediaProcessor event updates.
|
HttpMethod |
getStatusCallbackMethod()
Returns The HTTP method Twilio should use to call the `status_callback` URL.
|
URI |
getUrl()
Returns The absolute URL of the resource.
|
int |
hashCode() |
static MediaProcessorReader |
reader()
Create a MediaProcessorReader to execute read.
|
static MediaProcessorUpdater |
updater(String pathSid,
MediaProcessor.UpdateStatus status)
Create a MediaProcessorUpdater to execute update.
|
public static MediaProcessorCreator creator(String extension, String extensionContext)
extension
- The Media Extension name or URLextensionContext
- The Media Extension contextpublic static MediaProcessorFetcher fetcher(String pathSid)
pathSid
- The SID that identifies the resource to fetchpublic static MediaProcessorUpdater updater(String pathSid, MediaProcessor.UpdateStatus status)
pathSid
- The SID that identifies the resource to updatestatus
- The status of the MediaProcessorpublic static MediaProcessorReader reader()
public static MediaProcessor fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static MediaProcessor fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final String getSid()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final String getExtension()
public final String getExtensionContext()
public final MediaProcessor.Status getStatus()
public final URI getUrl()
public final String getEndedReason()
public final URI getStatusCallback()
public final HttpMethod getStatusCallbackMethod()
public final Integer getMaxDuration()
Copyright © 2019 Twilio, Inc. All Rights Reserved.