Package com.twilio.rest.trunking.v1
Class Trunk
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.trunking.v1.Trunk
-
- All Implemented Interfaces:
Serializable
public class Trunk extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Trunk.RecordingSetting
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 The SID of the Account that created the resource.String
getAuthType()
Returns The The types of authentication mapped to the domain.List<String>
getAuthTypeSet()
Returns The Reserved.Boolean
getCnamLookupEnabled()
Returns The Whether Caller ID Name (CNAM) lookup is enabled for the trunk.org.joda.time.DateTime
getDateCreated()
Returns The The RFC 2822 date and time in GMT when the resource was created.org.joda.time.DateTime
getDateUpdated()
Returns The The RFC 2822 date and time in GMT when the resource was last updated.HttpMethod
getDisasterRecoveryMethod()
Returns The The HTTP method we use to call the disaster_recovery_url.URI
getDisasterRecoveryUrl()
Returns The The HTTP URL that we call if an error occurs while sending SIP traffic towards your configured Origination URL.String
getDomainName()
Returns The The unique address you reserve on Twilio to which you route your SIP traffic.String
getFriendlyName()
Returns The The string that you assigned to describe the resource.Map<String,String>
getLinks()
Returns The The URLs of related resources.Map<String,Object>
getRecording()
Returns The The recording settings for the trunk.Boolean
getSecure()
Returns The Whether Secure Trunking is enabled for the trunk.String
getSid()
Returns The The unique string that identifies the resource.URI
getUrl()
Returns The 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.
-
-
-
Method Detail
-
fetcher
public static TrunkFetcher fetcher(String pathSid)
Create a TrunkFetcher to execute fetch.- Parameters:
pathSid
- The unique string that identifies the resource- Returns:
- TrunkFetcher capable of executing the fetch
-
deleter
public static TrunkDeleter deleter(String pathSid)
Create a TrunkDeleter to execute delete.- Parameters:
pathSid
- The unique string that identifies the resource- Returns:
- TrunkDeleter capable of executing the delete
-
creator
public static TrunkCreator creator()
Create a TrunkCreator to execute create.- Returns:
- TrunkCreator capable of executing the create
-
reader
public static TrunkReader reader()
Create a TrunkReader to execute read.- Returns:
- TrunkReader capable of executing the read
-
updater
public static TrunkUpdater updater(String pathSid)
Create a TrunkUpdater to execute update.- Parameters:
pathSid
- The unique string that identifies the resource- Returns:
- TrunkUpdater capable of executing the update
-
fromJson
public static Trunk fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Trunk object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Trunk object represented by the provided JSON
-
fromJson
public static Trunk fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Trunk object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Trunk object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
Returns The The SID of the Account that created the resource.- Returns:
- The SID of the Account that created the resource
-
getDomainName
public final String getDomainName()
Returns The The unique address you reserve on Twilio to which you route your SIP traffic.- Returns:
- The unique address you reserve on Twilio to which you route your SIP traffic
-
getDisasterRecoveryMethod
public final HttpMethod getDisasterRecoveryMethod()
Returns The The HTTP method we use to call the disaster_recovery_url.- Returns:
- The HTTP method we use to call the disaster_recovery_url
-
getDisasterRecoveryUrl
public final URI getDisasterRecoveryUrl()
Returns The The HTTP URL that we call if an error occurs while sending SIP traffic towards your configured Origination URL.- Returns:
- The HTTP URL that we call if an error occurs while sending SIP traffic towards your configured Origination URL
-
getFriendlyName
public final String getFriendlyName()
Returns The The string that you assigned to describe the resource.- Returns:
- The string that you assigned to describe the resource
-
getSecure
public final Boolean getSecure()
Returns The Whether Secure Trunking is enabled for the trunk.- Returns:
- Whether Secure Trunking is enabled for the trunk
-
getRecording
public final Map<String,Object> getRecording()
Returns The The recording settings for the trunk.- Returns:
- The recording settings for the trunk
-
getCnamLookupEnabled
public final Boolean getCnamLookupEnabled()
Returns The Whether Caller ID Name (CNAM) lookup is enabled for the trunk.- Returns:
- Whether Caller ID Name (CNAM) lookup is enabled for the trunk
-
getAuthType
public final String getAuthType()
Returns The The types of authentication mapped to the domain.- Returns:
- The types of authentication mapped to the domain
-
getDateCreated
public final org.joda.time.DateTime getDateCreated()
Returns The The RFC 2822 date and time in GMT when the resource was created.- Returns:
- The RFC 2822 date and time in GMT when the resource was created
-
getDateUpdated
public final org.joda.time.DateTime getDateUpdated()
Returns The The RFC 2822 date and time in GMT when the resource was last updated.- Returns:
- The RFC 2822 date and time in GMT when the resource was last updated
-
getSid
public final String getSid()
Returns The The unique string that identifies the resource.- Returns:
- The unique string that identifies the resource
-
getUrl
public final URI getUrl()
Returns The The absolute URL of the resource.- Returns:
- The absolute URL of the resource
-
getLinks
public final Map<String,String> getLinks()
Returns The The URLs of related resources.- Returns:
- The URLs of related resources
-
-