public class Payload extends Resource
Modifier and Type | Method and Description |
---|---|
static PayloadDeleter |
deleter(String pathReferenceSid,
String pathAddOnResultSid,
String pathSid)
Create a PayloadDeleter to execute delete.
|
static PayloadDeleter |
deleter(String pathAccountSid,
String pathReferenceSid,
String pathAddOnResultSid,
String pathSid)
Create a PayloadDeleter to execute delete.
|
boolean |
equals(Object o) |
static PayloadFetcher |
fetcher(String pathReferenceSid,
String pathAddOnResultSid,
String pathSid)
Create a PayloadFetcher to execute fetch.
|
static PayloadFetcher |
fetcher(String pathAccountSid,
String pathReferenceSid,
String pathAddOnResultSid,
String pathSid)
Create a PayloadFetcher to execute fetch.
|
static Payload |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Payload object using the provided
ObjectMapper.
|
static Payload |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Payload object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
String |
getAddOnConfigurationSid()
Returns The SID of the Add-on configuration.
|
String |
getAddOnResultSid()
Returns The SID of the AddOnResult to which the payload belongs.
|
String |
getAddOnSid()
Returns The SID of the Add-on to which the result belongs.
|
String |
getContentType()
Returns The MIME type of the payload.
|
ZonedDateTime |
getDateCreated()
Returns The RFC 2822 date and time in GMT that the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The RFC 2822 date and time in GMT that the resource was last updated.
|
String |
getLabel()
Returns The string that describes the payload.
|
String |
getReferenceSid()
Returns The SID of the recording to which the AddOnResult resource that
contains the payload belongs.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
Map<String,String> |
getSubresourceUris()
Returns A list of related resources identified by their relative URIs.
|
int |
hashCode() |
static PayloadReader |
reader(String pathReferenceSid,
String pathAddOnResultSid)
Create a PayloadReader to execute read.
|
static PayloadReader |
reader(String pathAccountSid,
String pathReferenceSid,
String pathAddOnResultSid)
Create a PayloadReader to execute read.
|
public static PayloadFetcher fetcher(String pathAccountSid, String pathReferenceSid, String pathAddOnResultSid, String pathSid)
pathAccountSid
- The SID of the Account that created the resource to
fetchpathReferenceSid
- The SID of the recording to which the AddOnResult
resource that contains the payload to fetch belongspathAddOnResultSid
- The SID of the AddOnResult to which the payload to
fetch belongspathSid
- The unique string that identifies the resource to fetchpublic static PayloadFetcher fetcher(String pathReferenceSid, String pathAddOnResultSid, String pathSid)
pathReferenceSid
- The SID of the recording to which the AddOnResult
resource that contains the payload to fetch belongspathAddOnResultSid
- The SID of the AddOnResult to which the payload to
fetch belongspathSid
- The unique string that identifies the resource to fetchpublic static PayloadReader reader(String pathAccountSid, String pathReferenceSid, String pathAddOnResultSid)
pathAccountSid
- The SID of the Account that created the resources to
readpathReferenceSid
- The SID of the recording to which the AddOnResult
resource that contains the payloads to read belongspathAddOnResultSid
- The SID of the AddOnResult to which the payloads
to read belongspublic static PayloadReader reader(String pathReferenceSid, String pathAddOnResultSid)
pathReferenceSid
- The SID of the recording to which the AddOnResult
resource that contains the payloads to read belongspathAddOnResultSid
- The SID of the AddOnResult to which the payloads
to read belongspublic static PayloadDeleter deleter(String pathAccountSid, String pathReferenceSid, String pathAddOnResultSid, String pathSid)
pathAccountSid
- The SID of the Account that created the resources to
deletepathReferenceSid
- The SID of the recording to which the AddOnResult
resource that contains the payloads to delete belongspathAddOnResultSid
- The SID of the AddOnResult to which the payloads
to delete belongspathSid
- The unique string that identifies the resourcepublic static PayloadDeleter deleter(String pathReferenceSid, String pathAddOnResultSid, String pathSid)
pathReferenceSid
- The SID of the recording to which the AddOnResult
resource that contains the payloads to delete belongspathAddOnResultSid
- The SID of the AddOnResult to which the payloads
to delete belongspathSid
- The unique string that identifies the resourcepublic static Payload fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Payload fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
public final String getAddOnResultSid()
public final String getAccountSid()
public final String getLabel()
public final String getAddOnSid()
public final String getAddOnConfigurationSid()
public final String getContentType()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final String getReferenceSid()
public final Map<String,String> getSubresourceUris()
Copyright © 2019 Twilio, Inc. All Rights Reserved.