Package com.twilio.rest.assistants.v1
Class Policy
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.assistants.v1.Policy
-
- All Implemented Interfaces:
Serializable
public class Policy 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 Policy
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Policy object using the provided ObjectMapper.static Policy
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Policy object using the provided ObjectMapper.String
getAccountSid()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
String
getDescription()
String
getId()
String
getName()
Map<String,Object>
getPolicyDetails()
String
getType()
String
getUserSid()
int
hashCode()
static PolicyReader
reader()
-
-
-
Method Detail
-
reader
public static PolicyReader reader()
-
fromJson
public static Policy fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Policy object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Policy object represented by the provided JSON
-
fromJson
public static Policy fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Policy object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Policy object represented by the provided JSON
-
getId
public final String getId()
-
getName
public final String getName()
-
getDescription
public final String getDescription()
-
getAccountSid
public final String getAccountSid()
-
getUserSid
public final String getUserSid()
-
getType
public final String getType()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
-