Class Application
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.api.v2010.account.Application
-
- All Implemented Interfaces:
Serializable
public class Application extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ApplicationCreator
creator()
Create a ApplicationCreator to execute create.static ApplicationCreator
creator(String pathAccountSid)
Create a ApplicationCreator to execute create.static ApplicationDeleter
deleter(String pathSid)
Create a ApplicationDeleter to execute delete.static ApplicationDeleter
deleter(String pathAccountSid, String pathSid)
Create a ApplicationDeleter to execute delete.boolean
equals(Object o)
static ApplicationFetcher
fetcher(String pathSid)
Create a ApplicationFetcher to execute fetch.static ApplicationFetcher
fetcher(String pathAccountSid, String pathSid)
Create a ApplicationFetcher to execute fetch.static Application
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Application object using the provided ObjectMapper.static Application
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Application object using the provided ObjectMapper.String
getAccountSid()
Returns The The SID of the Account that created the resource.String
getApiVersion()
Returns The The API version used to start a new TwiML session.org.joda.time.DateTime
getDateCreated()
Returns The The RFC 2822 date and time in GMT that the resource was created.org.joda.time.DateTime
getDateUpdated()
Returns The The RFC 2822 date and time in GMT that the resource was last updated.String
getFriendlyName()
Returns The The string that you assigned to describe the resource.URI
getMessageStatusCallback()
Returns The The URL to send message status information to your application.String
getSid()
Returns The The unique string that identifies the resource.HttpMethod
getSmsFallbackMethod()
Returns The The HTTP method used with sms_fallback_url.URI
getSmsFallbackUrl()
Returns The The URL that we call when an error occurs while retrieving or executing the TwiML.HttpMethod
getSmsMethod()
Returns The The HTTP method to use with sms_url.URI
getSmsStatusCallback()
Returns The The URL to send status information to your application.URI
getSmsUrl()
Returns The The URL we call when the phone number receives an incoming SMS message.URI
getStatusCallback()
Returns The The URL to send status information to your application.HttpMethod
getStatusCallbackMethod()
Returns The The HTTP method we use to call status_callback.String
getUri()
Returns The The URI of the resource, relative to `https://api.twilio.com`.Boolean
getVoiceCallerIdLookup()
Returns The Whether to lookup the caller's name.HttpMethod
getVoiceFallbackMethod()
Returns The The HTTP method used with voice_fallback_url.URI
getVoiceFallbackUrl()
Returns The The URL we call when a TwiML error occurs.HttpMethod
getVoiceMethod()
Returns The The HTTP method used with the voice_url.URI
getVoiceUrl()
Returns The The URL we call when the phone number receives a call.int
hashCode()
static ApplicationReader
reader()
Create a ApplicationReader to execute read.static ApplicationReader
reader(String pathAccountSid)
Create a ApplicationReader to execute read.String
toString()
static ApplicationUpdater
updater(String pathSid)
Create a ApplicationUpdater to execute update.static ApplicationUpdater
updater(String pathAccountSid, String pathSid)
Create a ApplicationUpdater to execute update.
-
-
-
Method Detail
-
creator
public static ApplicationCreator creator(String pathAccountSid)
Create a ApplicationCreator to execute create.- Parameters:
pathAccountSid
- The SID of the Account that will create the resource- Returns:
- ApplicationCreator capable of executing the create
-
creator
public static ApplicationCreator creator()
Create a ApplicationCreator to execute create.- Returns:
- ApplicationCreator capable of executing the create
-
deleter
public static ApplicationDeleter deleter(String pathAccountSid, String pathSid)
Create a ApplicationDeleter to execute delete.- Parameters:
pathAccountSid
- The SID of the Account that created the resources to deletepathSid
- The unique string that identifies the resource- Returns:
- ApplicationDeleter capable of executing the delete
-
deleter
public static ApplicationDeleter deleter(String pathSid)
Create a ApplicationDeleter to execute delete.- Parameters:
pathSid
- The unique string that identifies the resource- Returns:
- ApplicationDeleter capable of executing the delete
-
fetcher
public static ApplicationFetcher fetcher(String pathAccountSid, String pathSid)
Create a ApplicationFetcher to execute fetch.- Parameters:
pathAccountSid
- The SID of the Account that created the resource to fetchpathSid
- The unique string that identifies the resource- Returns:
- ApplicationFetcher capable of executing the fetch
-
fetcher
public static ApplicationFetcher fetcher(String pathSid)
Create a ApplicationFetcher to execute fetch.- Parameters:
pathSid
- The unique string that identifies the resource- Returns:
- ApplicationFetcher capable of executing the fetch
-
reader
public static ApplicationReader reader(String pathAccountSid)
Create a ApplicationReader to execute read.- Parameters:
pathAccountSid
- The SID of the Account that created the resources to read- Returns:
- ApplicationReader capable of executing the read
-
reader
public static ApplicationReader reader()
Create a ApplicationReader to execute read.- Returns:
- ApplicationReader capable of executing the read
-
updater
public static ApplicationUpdater updater(String pathAccountSid, String pathSid)
Create a ApplicationUpdater to execute update.- Parameters:
pathAccountSid
- The SID of the Account that will create the resourcepathSid
- The unique string that identifies the resource- Returns:
- ApplicationUpdater capable of executing the update
-
updater
public static ApplicationUpdater updater(String pathSid)
Create a ApplicationUpdater to execute update.- Parameters:
pathSid
- The unique string that identifies the resource- Returns:
- ApplicationUpdater capable of executing the update
-
fromJson
public static Application fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Application object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Application object represented by the provided JSON
-
fromJson
public static Application fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Application object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Application 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
-
getApiVersion
public final String getApiVersion()
Returns The The API version used to start a new TwiML session.- Returns:
- The API version used to start a new TwiML session
-
getDateCreated
public final org.joda.time.DateTime getDateCreated()
Returns The The RFC 2822 date and time in GMT that the resource was created.- Returns:
- The RFC 2822 date and time in GMT that the resource was created
-
getDateUpdated
public final org.joda.time.DateTime getDateUpdated()
Returns The The RFC 2822 date and time in GMT that the resource was last updated.- Returns:
- The RFC 2822 date and time in GMT that the resource was last updated
-
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
-
getMessageStatusCallback
public final URI getMessageStatusCallback()
Returns The The URL to send message status information to your application.- Returns:
- The URL to send message status information to your application
-
getSid
public final String getSid()
Returns The The unique string that identifies the resource.- Returns:
- The unique string that identifies the resource
-
getSmsFallbackMethod
public final HttpMethod getSmsFallbackMethod()
Returns The The HTTP method used with sms_fallback_url.- Returns:
- The HTTP method used with sms_fallback_url
-
getSmsFallbackUrl
public final URI getSmsFallbackUrl()
Returns The The URL that we call when an error occurs while retrieving or executing the TwiML.- Returns:
- The URL that we call when an error occurs while retrieving or executing the TwiML
-
getSmsMethod
public final HttpMethod getSmsMethod()
Returns The The HTTP method to use with sms_url.- Returns:
- The HTTP method to use with sms_url
-
getSmsStatusCallback
public final URI getSmsStatusCallback()
Returns The The URL to send status information to your application.- Returns:
- The URL to send status information to your application
-
getSmsUrl
public final URI getSmsUrl()
Returns The The URL we call when the phone number receives an incoming SMS message.- Returns:
- The URL we call when the phone number receives an incoming SMS message
-
getStatusCallback
public final URI getStatusCallback()
Returns The The URL to send status information to your application.- Returns:
- The URL to send status information to your application
-
getStatusCallbackMethod
public final HttpMethod getStatusCallbackMethod()
Returns The The HTTP method we use to call status_callback.- Returns:
- The HTTP method we use to call status_callback
-
getUri
public final String getUri()
Returns The The URI of the resource, relative to `https://api.twilio.com`.- Returns:
- The URI of the resource, relative to `https://api.twilio.com`
-
getVoiceCallerIdLookup
public final Boolean getVoiceCallerIdLookup()
Returns The Whether to lookup the caller's name.- Returns:
- Whether to lookup the caller's name
-
getVoiceFallbackMethod
public final HttpMethod getVoiceFallbackMethod()
Returns The The HTTP method used with voice_fallback_url.- Returns:
- The HTTP method used with voice_fallback_url
-
getVoiceFallbackUrl
public final URI getVoiceFallbackUrl()
Returns The The URL we call when a TwiML error occurs.- Returns:
- The URL we call when a TwiML error occurs
-
getVoiceMethod
public final HttpMethod getVoiceMethod()
Returns The The HTTP method used with the voice_url.- Returns:
- The HTTP method used with the voice_url
-
getVoiceUrl
public final URI getVoiceUrl()
Returns The The URL we call when the phone number receives a call.- Returns:
- The URL we call when the phone number receives a call
-
-