public class Trunk extends SidResource
Modifier and Type | Method and Description |
---|---|
static TrunkCreator |
create()
Create a TrunkCreator to execute create.
|
static TrunkDeleter |
delete(String sid)
Create a TrunkDeleter to execute delete.
|
boolean |
equals(Object o) |
static TrunkFetcher |
fetch(String sid)
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 account_sid.
|
String |
getAuthType()
Returns The The auth_type.
|
List<String> |
getAuthTypeSet()
Returns The The auth_type_set.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
HttpMethod |
getDisasterRecoveryMethod()
Returns The The disaster_recovery_method.
|
URI |
getDisasterRecoveryUrl()
Returns The The disaster_recovery_url.
|
String |
getDomainName()
Returns The The domain_name.
|
String |
getFriendlyName()
Returns The The friendly_name.
|
Map<String,String> |
getLinks()
Returns The The links.
|
Map<String,Object> |
getRecording()
Returns The The recording.
|
Boolean |
getSecure()
Returns The The secure.
|
String |
getSid()
Returns The The sid.
|
URI |
getUrl()
Returns The The url.
|
int |
hashCode() |
static TrunkReader |
read()
Create a TrunkReader to execute read.
|
String |
toString() |
static TrunkUpdater |
update(String sid)
Create a TrunkUpdater to execute update.
|
public static TrunkFetcher fetch(String sid)
sid
- The sidpublic static TrunkDeleter delete(String sid)
sid
- The sidpublic static TrunkCreator create()
public static TrunkReader read()
public static TrunkUpdater update(String sid)
sid
- The sidpublic 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 String getAuthType()
public final List<String> getAuthTypeSet()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final String getSid()
getSid
in class SidResource
public final URI getUrl()
Copyright © 2011 Twilio, Inc. All Rights Reserved.