Class Local
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.api.v2010.account.incomingphonenumber.Local
-
- All Implemented Interfaces:
Serializable
public class Local extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Local.AddressRequirement
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LocalCreator
creator(PhoneNumber phoneNumber)
Create a LocalCreator to execute create.static LocalCreator
creator(String pathAccountSid, PhoneNumber phoneNumber)
Create a LocalCreator to execute create.boolean
equals(Object o)
static Local
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Local object using the provided ObjectMapper.static Local
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Local object using the provided ObjectMapper.String
getAccountSid()
Returns The The SID of the Account that created the resource.Local.AddressRequirement
getAddressRequirements()
Returns The Whether the phone number requires an Address registered with Twilio..String
getAddressSid()
Returns The The SID of the Address resource associated with the phone number.String
getApiVersion()
Returns The The API version used to start a new TwiML session.Boolean
getBeta()
Returns The Whether the phone number is new to the Twilio platform.PhoneNumberCapabilities
getCapabilities()
Returns The Indicate if a phone can receive calls or messages.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.String
getIdentitySid()
Returns The The SID of the Identity resource associated with number.String
getOrigin()
Returns The The phone number's origin.PhoneNumber
getPhoneNumber()
Returns The The phone number in E.164 format.String
getSid()
Returns The The unique string that identifies the resource.String
getSmsApplicationSid()
Returns The The SID of the Application resource to handle SMS messages.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
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
getTrunkSid()
Returns The The SID of the Trunk that handles calls to the phone number.String
getUri()
Returns The The URI of the resource, relative to `https://api.twilio.com`.String
getVoiceApplicationSid()
Returns The The SID of the application that handles calls to the phone number.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 an error occurs in TwiML.HttpMethod
getVoiceMethod()
Returns The The HTTP method used with the voice_url.URI
getVoiceUrl()
Returns The The URL we call when this phone number receives a call.int
hashCode()
static LocalReader
reader()
Create a LocalReader to execute read.static LocalReader
reader(String pathAccountSid)
Create a LocalReader to execute read.String
toString()
-
-
-
Method Detail
-
reader
public static LocalReader reader(String pathAccountSid)
Create a LocalReader to execute read.- Parameters:
pathAccountSid
- The SID of the Account that created the resources to read- Returns:
- LocalReader capable of executing the read
-
reader
public static LocalReader reader()
Create a LocalReader to execute read.- Returns:
- LocalReader capable of executing the read
-
creator
public static LocalCreator creator(String pathAccountSid, PhoneNumber phoneNumber)
Create a LocalCreator to execute create.- Parameters:
pathAccountSid
- The SID of the Account that will create the resourcephoneNumber
- The phone number to purchase in E.164 format- Returns:
- LocalCreator capable of executing the create
-
creator
public static LocalCreator creator(PhoneNumber phoneNumber)
Create a LocalCreator to execute create.- Parameters:
phoneNumber
- The phone number to purchase in E.164 format- Returns:
- LocalCreator capable of executing the create
-
fromJson
public static Local fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Local object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Local object represented by the provided JSON
-
fromJson
public static Local fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Local object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Local 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
-
getAddressSid
public final String getAddressSid()
Returns The The SID of the Address resource associated with the phone number.- Returns:
- The SID of the Address resource associated with the phone number
-
getAddressRequirements
public final Local.AddressRequirement getAddressRequirements()
Returns The Whether the phone number requires an Address registered with Twilio..- Returns:
- Whether the phone number requires an Address registered with Twilio.
-
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
-
getBeta
public final Boolean getBeta()
Returns The Whether the phone number is new to the Twilio platform.- Returns:
- Whether the phone number is new to the Twilio platform
-
getCapabilities
public final PhoneNumberCapabilities getCapabilities()
Returns The Indicate if a phone can receive calls or messages.- Returns:
- Indicate if a phone can receive calls or messages
-
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
-
getIdentitySid
public final String getIdentitySid()
Returns The The SID of the Identity resource associated with number.- Returns:
- The SID of the Identity resource associated with number
-
getPhoneNumber
public final PhoneNumber getPhoneNumber()
Returns The The phone number in E.164 format.- Returns:
- The phone number in E.164 format
-
getOrigin
public final String getOrigin()
Returns The The phone number's origin. Can be twilio or hosted..- Returns:
- The phone number's origin. Can be twilio or hosted.
-
getSid
public final String getSid()
Returns The The unique string that identifies the resource.- Returns:
- The unique string that identifies the resource
-
getSmsApplicationSid
public final String getSmsApplicationSid()
Returns The The SID of the Application resource to handle SMS messages.- Returns:
- The SID of the Application resource to handle SMS messages
-
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
-
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
-
getTrunkSid
public final String getTrunkSid()
Returns The The SID of the Trunk that handles calls to the phone number.- Returns:
- The SID of the Trunk that handles calls to the phone number
-
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`
-
getVoiceApplicationSid
public final String getVoiceApplicationSid()
Returns The The SID of the application that handles calls to the phone number.- Returns:
- The SID of the application that handles calls to the phone number
-
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 an error occurs in TwiML.- Returns:
- The URL we call when an error occurs in TwiML
-
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 this phone number receives a call.- Returns:
- The URL we call when this phone number receives a call
-
-