public class Asset extends Resource
Modifier and Type | Method and Description |
---|---|
static AssetCreator |
creator(String pathServiceSid,
String friendlyName)
Create a AssetCreator to execute create.
|
static AssetDeleter |
deleter(String pathServiceSid,
String pathSid)
Create a AssetDeleter to execute delete.
|
boolean |
equals(Object o) |
static AssetFetcher |
fetcher(String pathServiceSid,
String pathSid)
Create a AssetFetcher to execute fetch.
|
static Asset |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Asset object using the provided
ObjectMapper.
|
static Asset |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Asset object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the Asset resource.
|
ZonedDateTime |
getDateCreated()
Returns The ISO 8601 date and time in GMT when the Asset resource was
created.
|
ZonedDateTime |
getDateUpdated()
Returns The ISO 8601 date and time in GMT when the Asset resource was last
updated.
|
String |
getFriendlyName()
Returns The string that you assigned to describe the Asset resource.
|
Map<String,String> |
getLinks()
Returns The URLs of the Asset resource's nested resources.
|
String |
getServiceSid()
Returns The SID of the Service that the Asset resource is associated with.
|
String |
getSid()
Returns The unique string that identifies the Asset resource.
|
URI |
getUrl()
Returns The absolute URL of the Asset resource.
|
int |
hashCode() |
static AssetReader |
reader(String pathServiceSid)
Create a AssetReader to execute read.
|
static AssetUpdater |
updater(String pathServiceSid,
String pathSid,
String friendlyName)
Create a AssetUpdater to execute update.
|
public static AssetReader reader(String pathServiceSid)
pathServiceSid
- The SID of the Service to read the Asset resource frompublic static AssetFetcher fetcher(String pathServiceSid, String pathSid)
pathServiceSid
- The SID of the Service to fetch the Asset resource frompathSid
- The SID that identifies the Asset resource to fetchpublic static AssetDeleter deleter(String pathServiceSid, String pathSid)
pathServiceSid
- The SID of the Service to delete the Asset resource
frompathSid
- The SID that identifies the Asset resource to deletepublic static AssetCreator creator(String pathServiceSid, String friendlyName)
pathServiceSid
- The SID of the Service to create the Asset resource
underfriendlyName
- A string to describe the Asset resourcepublic static AssetUpdater updater(String pathServiceSid, String pathSid, String friendlyName)
pathServiceSid
- The SID of the Service to update the Asset resource
frompathSid
- The SID that identifies the Asset resource to updatefriendlyName
- A string to describe the Asset resourcepublic static Asset fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Asset fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
public final String getAccountSid()
public final String getServiceSid()
public final String getFriendlyName()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final URI getUrl()
public final Map<String,String> getLinks()
Copyright © 2019 Twilio, Inc. All Rights Reserved.