Class AssetVersion
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.serverless.v1.service.asset.AssetVersion
-
- All Implemented Interfaces:
Serializable
public class AssetVersion extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAssetVersion.Visibility
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static AssetVersionFetcherfetcher(String pathServiceSid, String pathAssetSid, String pathSid)static AssetVersionfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a AssetVersion object using the provided ObjectMapper.static AssetVersionfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a AssetVersion object using the provided ObjectMapper.StringgetAccountSid()StringgetAssetSid()ZonedDateTimegetDateCreated()StringgetPath()StringgetServiceSid()StringgetSid()URIgetUrl()AssetVersion.VisibilitygetVisibility()inthashCode()static AssetVersionReaderreader(String pathServiceSid, String pathAssetSid)
-
-
-
Method Detail
-
fetcher
public static AssetVersionFetcher fetcher(String pathServiceSid, String pathAssetSid, String pathSid)
-
reader
public static AssetVersionReader reader(String pathServiceSid, String pathAssetSid)
-
fromJson
public static AssetVersion fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a AssetVersion object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- AssetVersion object represented by the provided JSON
-
fromJson
public static AssetVersion fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a AssetVersion object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- AssetVersion object represented by the provided JSON
-
getSid
public final String getSid()
-
getAccountSid
public final String getAccountSid()
-
getServiceSid
public final String getServiceSid()
-
getAssetSid
public final String getAssetSid()
-
getPath
public final String getPath()
-
getVisibility
public final AssetVersion.Visibility getVisibility()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getUrl
public final URI getUrl()
-
-