public class Address extends InstanceResource<TwilioRestClient>
Constructor and Description |
---|
Address(TwilioRestClient client,
Map<String,Object> properties)
Instantiates a new address.
|
Address(TwilioRestClient client,
String sid)
Instantiates a new Address.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getObject, getProperty, update, update
setRequestAccountSid
public Address(TwilioRestClient client, String sid)
client
- the clientsid
- the sidpublic Address(TwilioRestClient client, Map<String,Object> properties)
client
- the clientproperties
- the propertiespublic 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
Copyright © 2011 Twilio, Inc. All Rights Reserved.