public class CompositionHook extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
CompositionHook.Format |
Modifier and Type | Method and Description |
---|---|
static CompositionHookCreator |
creator(String friendlyName)
Create a CompositionHookCreator to execute create.
|
static CompositionHookDeleter |
deleter(String pathSid)
Create a CompositionHookDeleter to execute delete.
|
boolean |
equals(Object o) |
static CompositionHookFetcher |
fetcher(String pathSid)
Create a CompositionHookFetcher to execute fetch.
|
static CompositionHook |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a CompositionHook object using the provided
ObjectMapper.
|
static CompositionHook |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a CompositionHook object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
List<String> |
getAudioSources()
Returns The array of track names to include in the compositions created by
the composition hook.
|
List<String> |
getAudioSourcesExcluded()
Returns The array of track names to exclude from the compositions created by
the composition hook.
|
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.
|
Boolean |
getEnabled()
Returns Whether the CompositionHook is active.
|
CompositionHook.Format |
getFormat()
Returns The container format of the media files used by the compositions
created by the composition hook.
|
String |
getFriendlyName()
Returns The string that you assigned to describe the resource.
|
String |
getResolution()
Returns The dimensions of the video image in pixels expressed as columns
(width) and rows (height).
|
String |
getSid()
Returns The unique string that identifies the resource.
|
URI |
getStatusCallback()
Returns The URL to send status information to your application.
|
HttpMethod |
getStatusCallbackMethod()
Returns The HTTP method we should use to call status_callback.
|
Boolean |
getTrim()
Returns Whether intervals with no media are clipped.
|
URI |
getUrl()
Returns The absolute URL of the resource.
|
Map<String,Object> |
getVideoLayout()
Returns A JSON object that describes the video layout of the Composition.
|
int |
hashCode() |
static CompositionHookReader |
reader()
Create a CompositionHookReader to execute read.
|
static CompositionHookUpdater |
updater(String pathSid,
String friendlyName)
Create a CompositionHookUpdater to execute update.
|
public static CompositionHookFetcher fetcher(String pathSid)
pathSid
- The SID that identifies the resource to fetchpublic static CompositionHookReader reader()
public static CompositionHookDeleter deleter(String pathSid)
pathSid
- The SID that identifies the resource to deletepublic static CompositionHookCreator creator(String friendlyName)
friendlyName
- A unique string to describe the resourcepublic static CompositionHookUpdater updater(String pathSid, String friendlyName)
pathSid
- The SID that identifies the resource to updatefriendlyName
- A unique string to describe the resourcepublic static CompositionHook fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static CompositionHook fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final String getFriendlyName()
public final Boolean getEnabled()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final String getSid()
public final List<String> getAudioSources()
public final List<String> getAudioSourcesExcluded()
public final Map<String,Object> getVideoLayout()
public final String getResolution()
public final Boolean getTrim()
public final CompositionHook.Format getFormat()
public final URI getStatusCallback()
public final HttpMethod getStatusCallbackMethod()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.