Package com.twilio.rest.content.v1
Class LegacyContent
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.content.v1.LegacyContent
-
- All Implemented Interfaces:
Serializable
public class LegacyContent extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static LegacyContent
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a LegacyContent object using the provided ObjectMapper.static LegacyContent
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a LegacyContent object using the provided ObjectMapper.String
getAccountSid()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
String
getFriendlyName()
String
getLanguage()
String
getLegacyBody()
String
getLegacyTemplateName()
String
getSid()
Map<String,Object>
getTypes()
URI
getUrl()
Map<String,Object>
getVariables()
int
hashCode()
static LegacyContentReader
reader()
-
-
-
Method Detail
-
reader
public static LegacyContentReader reader()
-
fromJson
public static LegacyContent fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a LegacyContent object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- LegacyContent object represented by the provided JSON
-
fromJson
public static LegacyContent fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a LegacyContent object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- LegacyContent object represented by the provided JSON
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getSid
public final String getSid()
-
getAccountSid
public final String getAccountSid()
-
getFriendlyName
public final String getFriendlyName()
-
getLanguage
public final String getLanguage()
-
getLegacyTemplateName
public final String getLegacyTemplateName()
-
getLegacyBody
public final String getLegacyBody()
-
getUrl
public final URI getUrl()
-
-