public class PhoneNumber extends Resource
| Modifier and Type | Method and Description |
|---|---|
static PhoneNumberCreator |
creator(String pathServiceSid,
String sid)
Create a PhoneNumberCreator to execute create.
|
static PhoneNumberDeleter |
deleter(String pathServiceSid,
String pathSid)
Create a PhoneNumberDeleter to execute delete.
|
boolean |
equals(Object o) |
static PhoneNumberFetcher |
fetcher(String pathServiceSid,
String pathSid)
Create a PhoneNumberFetcher to execute fetch.
|
static PhoneNumber |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a PhoneNumber object using the provided
ObjectMapper.
|
static PhoneNumber |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a PhoneNumber object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The Account Sid..
|
List<PhoneNumberCapabilities> |
getCapabilities()
Returns The Indicate if a phone can receive calls or messages.
|
String |
getCountryCode()
Returns The The ISO 3166-1 alpha-2 country code.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date this resource was created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date this resource was last updated.
|
PhoneNumber |
getPhoneNumber()
Returns The The phone number.
|
String |
getServiceSid()
Returns The Service Sid..
|
String |
getSid()
Returns The A string that uniquely identifies this resource.
|
URI |
getUrl()
Returns The The URL of this resource..
|
int |
hashCode() |
static PhoneNumberReader |
reader(String pathServiceSid)
Create a PhoneNumberReader to execute read.
|
String |
toString() |
public static PhoneNumberCreator creator(String pathServiceSid, String sid)
pathServiceSid - The service_sidsid - Delete by unique phone-number Sidpublic static PhoneNumberDeleter deleter(String pathServiceSid, String pathSid)
pathServiceSid - The service_sidpathSid - Delete by unique phone-number Sidpublic static PhoneNumberReader reader(String pathServiceSid)
pathServiceSid - The service_sidpublic static PhoneNumberFetcher fetcher(String pathServiceSid, String pathSid)
pathServiceSid - The service_sidpathSid - Fetch by unique phone-number Sidpublic static PhoneNumber fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json - Raw JSON StringobjectMapper - Jackson ObjectMapperpublic static PhoneNumber fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json - Raw JSON InputStreamobjectMapper - Jackson ObjectMapperpublic final String getSid()
public final String getAccountSid()
public final String getServiceSid()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final PhoneNumber getPhoneNumber()
public final String getCountryCode()
public final List<PhoneNumberCapabilities> getCapabilities()
public final URI getUrl()
Copyright © 2016 Twilio, Inc. All Rights Reserved.