public class Domain extends Resource
Modifier and Type | Method and Description |
---|---|
static DomainCreator |
creator(String domainName)
Create a DomainCreator to execute create.
|
static DomainCreator |
creator(String pathAccountSid,
String domainName)
Create a DomainCreator to execute create.
|
static DomainDeleter |
deleter(String pathSid)
Create a DomainDeleter to execute delete.
|
static DomainDeleter |
deleter(String pathAccountSid,
String pathSid)
Create a DomainDeleter to execute delete.
|
boolean |
equals(Object o) |
static DomainFetcher |
fetcher(String pathSid)
Create a DomainFetcher to execute fetch.
|
static DomainFetcher |
fetcher(String pathAccountSid,
String pathSid)
Create a DomainFetcher to execute fetch.
|
static Domain |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Domain object using the provided
ObjectMapper.
|
static Domain |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Domain object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
String |
getApiVersion()
Returns The API version used to process the call.
|
String |
getAuthType()
Returns The types of authentication mapped to the domain.
|
String |
getByocTrunkSid()
Returns The SID of the BYOC Trunk resource..
|
ZonedDateTime |
getDateCreated()
Returns The RFC 2822 date and time in GMT that the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The RFC 2822 date and time in GMT that the resource was last updated.
|
String |
getDomainName()
Returns The unique address on Twilio to route SIP traffic.
|
String |
getEmergencyCallerSid()
Returns Whether an emergency caller sid is configured for the domain..
|
Boolean |
getEmergencyCallingEnabled()
Returns Whether emergency calling is enabled for the domain..
|
String |
getFriendlyName()
Returns The string that you assigned to describe the resource.
|
Boolean |
getSecure()
Returns Whether secure SIP is enabled for the domain.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
Boolean |
getSipRegistration()
Returns Whether SIP registration is allowed.
|
Map<String,String> |
getSubresourceUris()
Returns A list mapping resources associated with the SIP Domain resource.
|
String |
getUri()
Returns The URI of the resource, relative to `https://api.twilio.com`.
|
HttpMethod |
getVoiceFallbackMethod()
Returns The HTTP method used with voice_fallback_url.
|
URI |
getVoiceFallbackUrl()
Returns The URL we call when an error occurs while executing TwiML.
|
HttpMethod |
getVoiceMethod()
Returns The HTTP method to use with voice_url.
|
HttpMethod |
getVoiceStatusCallbackMethod()
Returns The HTTP method we use to call voice_status_callback_url.
|
URI |
getVoiceStatusCallbackUrl()
Returns The URL that we call with status updates.
|
URI |
getVoiceUrl()
Returns The URL we call when receiving a call.
|
int |
hashCode() |
static DomainReader |
reader()
Create a DomainReader to execute read.
|
static DomainReader |
reader(String pathAccountSid)
Create a DomainReader to execute read.
|
static DomainUpdater |
updater(String pathSid)
Create a DomainUpdater to execute update.
|
static DomainUpdater |
updater(String pathAccountSid,
String pathSid)
Create a DomainUpdater to execute update.
|
public static DomainReader reader(String pathAccountSid)
pathAccountSid
- The SID of the Account that created the resources to
readpublic static DomainReader reader()
public static DomainCreator creator(String pathAccountSid, String domainName)
pathAccountSid
- The SID of the Account that will create the resourcedomainName
- The unique address on Twilio to route SIP trafficpublic static DomainCreator creator(String domainName)
domainName
- The unique address on Twilio to route SIP trafficpublic static DomainFetcher fetcher(String pathAccountSid, String pathSid)
pathAccountSid
- The SID of the Account that created the resource to
fetchpathSid
- The unique string that identifies the resourcepublic static DomainFetcher fetcher(String pathSid)
pathSid
- The unique string that identifies the resourcepublic static DomainUpdater updater(String pathAccountSid, String pathSid)
pathAccountSid
- The SID of the Account that created the resource to
updatepathSid
- The unique string that identifies the resourcepublic static DomainUpdater updater(String pathSid)
pathSid
- The unique string that identifies the resourcepublic static DomainDeleter deleter(String pathAccountSid, String pathSid)
pathAccountSid
- The SID of the Account that created the resources to
deletepathSid
- The unique string that identifies the resourcepublic static DomainDeleter deleter(String pathSid)
pathSid
- The unique string that identifies the resourcepublic static Domain fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Domain fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final String getApiVersion()
public final String getAuthType()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final String getDomainName()
public final String getFriendlyName()
public final String getSid()
public final String getUri()
public final HttpMethod getVoiceFallbackMethod()
public final URI getVoiceFallbackUrl()
public final HttpMethod getVoiceMethod()
public final HttpMethod getVoiceStatusCallbackMethod()
public final URI getVoiceStatusCallbackUrl()
public final URI getVoiceUrl()
public final Map<String,String> getSubresourceUris()
public final Boolean getSipRegistration()
public final Boolean getEmergencyCallingEnabled()
public final Boolean getSecure()
public final String getByocTrunkSid()
public final String getEmergencyCallerSid()
Copyright © 2019 Twilio, Inc. All Rights Reserved.