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.TransferCallerId
static class
Trunk.TransferSetting
-
Method Summary
-
-
-
Method Detail
-
creator
public static TrunkCreator creator()
-
deleter
public static TrunkDeleter deleter(String pathSid)
-
fetcher
public static TrunkFetcher fetcher(String pathSid)
-
reader
public static TrunkReader reader()
-
updater
public static TrunkUpdater updater(String pathSid)
-
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()
-
getDomainName
public final String getDomainName()
-
getDisasterRecoveryMethod
public final HttpMethod getDisasterRecoveryMethod()
-
getDisasterRecoveryUrl
public final URI getDisasterRecoveryUrl()
-
getFriendlyName
public final String getFriendlyName()
-
getSecure
public final Boolean getSecure()
-
getTransferMode
public final Trunk.TransferSetting getTransferMode()
-
getTransferCallerId
public final Trunk.TransferCallerId getTransferCallerId()
-
getCnamLookupEnabled
public final Boolean getCnamLookupEnabled()
-
getAuthType
public final String getAuthType()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getSid
public final String getSid()
-
getUrl
public final URI getUrl()
-
-