Class Asset
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.serverless.v1.service.Asset
-
- All Implemented Interfaces:
Serializable
public class Asset extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AssetCreatorcreator(String pathServiceSid, String friendlyName)static AssetDeleterdeleter(String pathServiceSid, String pathSid)booleanequals(Object o)static AssetFetcherfetcher(String pathServiceSid, String pathSid)static AssetfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Asset object using the provided ObjectMapper.static AssetfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Asset object using the provided ObjectMapper.StringgetAccountSid()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetFriendlyName()Map<String,String>getLinks()StringgetServiceSid()StringgetSid()URIgetUrl()inthashCode()static AssetReaderreader(String pathServiceSid)static AssetUpdaterupdater(String pathServiceSid, String pathSid, String friendlyName)
-
-
-
Method Detail
-
creator
public static AssetCreator creator(String pathServiceSid, String friendlyName)
-
fetcher
public static AssetFetcher fetcher(String pathServiceSid, String pathSid)
-
deleter
public static AssetDeleter deleter(String pathServiceSid, String pathSid)
-
reader
public static AssetReader reader(String pathServiceSid)
-
updater
public static AssetUpdater updater(String pathServiceSid, String pathSid, String friendlyName)
-
fromJson
public static Asset fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Asset object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- Asset object represented by the provided JSON
-
fromJson
public static Asset fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Asset object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- Asset object represented by the provided JSON
-
getSid
public final String getSid()
-
getAccountSid
public final String getAccountSid()
-
getServiceSid
public final String getServiceSid()
-
getFriendlyName
public final String getFriendlyName()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getUrl
public final URI getUrl()
-
-