|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.twilio.sdk.resource.Resource<C>
com.twilio.sdk.resource.InstanceResource<TwilioRestClient>
com.twilio.sdk.resource.instance.Address
public class Address
An Address instance resource. An Address instance resource represents your or your customer’s physical location within a country. Around the world, some local authorities require the name and address of the user to be on file with Twilio to purchase and own a phone number. Addresses are represented by the following properties: - FriendlyName: an optional, user-defined string describing this Address. 64 characters maximum. - CustomerName: You or your customer's business name. - Street: The number and street of this address. - City: The city of this address. - Region: The state or region of the address. - PostalCode: The postal code (zip code). - IsoCountry: The country, in ISO-3166-1 alpha-2 (two-character) format, e.g. "CA" for Canada For more information see https://www.twilio.com/docs/api/rest/address
| Constructor Summary | |
|---|---|
Address(TwilioRestClient client,
Map<String,Object> properties)
Instantiates a new address. |
|
Address(TwilioRestClient client,
String sid)
Instantiates a new Address. |
|
| Method Summary | |
|---|---|
boolean |
delete()
|
String |
getAccountSid()
Identifier for the account owning this Address. |
String |
getCity()
The city for this Address. |
String |
getCustomerName()
You or your customer's business name for this Address. |
Date |
getDateCreated()
The date/time the Address resource was created. |
Date |
getDateUpdated()
Date/time this Address was last updated. |
DependentPhoneNumberList |
getDependentPhoneNumbers()
A list of phone numbers owned by this Address's account that depend on it to satisfy legal requirements. |
String |
getFriendlyName()
An optional user-defined string describing this Address. |
String |
getIsoCountry()
The country for this address, specified in ISO 3166-1 alpha-2 (two characters) format. |
String |
getPostalCode()
The postal or zip code for this Address. |
String |
getRegion()
The state or region for this Address. |
String |
getSid()
A unique identifier for this Address. |
String |
getStreet()
The number and street of this Address. |
| Methods inherited from class com.twilio.sdk.resource.InstanceResource |
|---|
getObject, getProperty, update, update |
| Methods inherited from class com.twilio.sdk.resource.Resource |
|---|
setRequestAccountSid |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Address(TwilioRestClient client,
String sid)
client - the clientsid - the sid
public Address(TwilioRestClient client,
Map<String,Object> properties)
client - the clientproperties - the properties| Method Detail |
|---|
public String getSid()
public Date getDateCreated()
public Date getDateUpdated()
public String getAccountSid()
public String getFriendlyName()
public String getCustomerName()
public String getStreet()
public String getCity()
public String getRegion()
public String getPostalCode()
public String getIsoCountry()
public DependentPhoneNumberList getDependentPhoneNumbers()
public boolean delete()
throws TwilioRestException
TwilioRestException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||