Class AuthorizationDocument
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.preview.hostedNumbers.AuthorizationDocument
-
- All Implemented Interfaces:
Serializable
public class AuthorizationDocument extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuthorizationDocument.Status
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthorizationDocumentCreator
creator(List<String> hostedNumberOrderSids, String addressSid, String email, String contactTitle, String contactPhoneNumber)
boolean
equals(Object o)
static AuthorizationDocumentFetcher
fetcher(String pathSid)
static AuthorizationDocument
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a AuthorizationDocument object using the provided ObjectMapper.static AuthorizationDocument
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a AuthorizationDocument object using the provided ObjectMapper.String
getAddressSid()
List<String>
getCcEmails()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
String
getEmail()
Map<String,String>
getLinks()
String
getSid()
AuthorizationDocument.Status
getStatus()
URI
getUrl()
int
hashCode()
static AuthorizationDocumentReader
reader()
static AuthorizationDocumentUpdater
updater(String pathSid)
-
-
-
Method Detail
-
creator
public static AuthorizationDocumentCreator creator(List<String> hostedNumberOrderSids, String addressSid, String email, String contactTitle, String contactPhoneNumber)
-
fetcher
public static AuthorizationDocumentFetcher fetcher(String pathSid)
-
reader
public static AuthorizationDocumentReader reader()
-
updater
public static AuthorizationDocumentUpdater updater(String pathSid)
-
fromJson
public static AuthorizationDocument fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a AuthorizationDocument object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- AuthorizationDocument object represented by the provided JSON
-
fromJson
public static AuthorizationDocument fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a AuthorizationDocument object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- AuthorizationDocument object represented by the provided JSON
-
getSid
public final String getSid()
-
getAddressSid
public final String getAddressSid()
-
getStatus
public final AuthorizationDocument.Status getStatus()
-
getEmail
public final String getEmail()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getUrl
public final URI getUrl()
-
-