public class Trunk extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Trunk.RecordingSetting |
Modifier and Type | Method and Description |
---|---|
static TrunkCreator |
creator()
Create a TrunkCreator to execute create.
|
static TrunkDeleter |
deleter(String pathSid)
Create a TrunkDeleter to execute delete.
|
boolean |
equals(Object o) |
static TrunkFetcher |
fetcher(String pathSid)
Create a TrunkFetcher to execute fetch.
|
static Trunk |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Trunk object using the provided
ObjectMapper.
|
static Trunk |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Trunk object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
String |
getAuthType()
Returns The types of authentication mapped to the domain.
|
List<String> |
getAuthTypeSet()
Returns Reserved.
|
Boolean |
getCnamLookupEnabled()
Returns Whether Caller ID Name (CNAM) lookup is enabled for the trunk.
|
org.joda.time.DateTime |
getDateCreated()
Returns The RFC 2822 date and time in GMT when the resource was created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The RFC 2822 date and time in GMT when the resource was last updated.
|
HttpMethod |
getDisasterRecoveryMethod()
Returns The HTTP method we use to call the disaster_recovery_url.
|
URI |
getDisasterRecoveryUrl()
Returns The HTTP URL that we call if an error occurs while sending SIP
traffic towards your configured Origination URL.
|
String |
getDomainName()
Returns The unique address you reserve on Twilio to which you route your SIP
traffic.
|
String |
getFriendlyName()
Returns The string that you assigned to describe the resource.
|
Map<String,String> |
getLinks()
Returns The URLs of related resources.
|
Map<String,Object> |
getRecording()
Returns The recording settings for the trunk.
|
Boolean |
getSecure()
Returns Whether Secure Trunking is enabled for the trunk.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
URI |
getUrl()
Returns The absolute URL of the resource.
|
int |
hashCode() |
static TrunkReader |
reader()
Create a TrunkReader to execute read.
|
String |
toString() |
static TrunkUpdater |
updater(String pathSid)
Create a TrunkUpdater to execute update.
|
public static TrunkFetcher fetcher(String pathSid)
pathSid
- The unique string that identifies the resourcepublic static TrunkDeleter deleter(String pathSid)
pathSid
- The unique string that identifies the resourcepublic static TrunkCreator creator()
public static TrunkReader reader()
public static TrunkUpdater updater(String pathSid)
pathSid
- The unique string that identifies the resourcepublic static Trunk fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Trunk fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final String getDomainName()
public final HttpMethod getDisasterRecoveryMethod()
public final URI getDisasterRecoveryUrl()
public final String getFriendlyName()
public final Boolean getSecure()
public final Map<String,Object> getRecording()
public final Boolean getCnamLookupEnabled()
public final String getAuthType()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final String getSid()
public final URI getUrl()
public final Map<String,String> getLinks()
Copyright © 2019 Twilio, Inc. All Rights Reserved.