public class Address extends Resource
Modifier and Type | Method and Description |
---|---|
static AddressCreator |
creator(String customerName,
String street,
String city,
String region,
String postalCode,
String isoCountry)
Create a AddressCreator to execute create.
|
static AddressCreator |
creator(String pathAccountSid,
String customerName,
String street,
String city,
String region,
String postalCode,
String isoCountry)
Create a AddressCreator to execute create.
|
static AddressDeleter |
deleter(String pathSid)
Create a AddressDeleter to execute delete.
|
static AddressDeleter |
deleter(String pathAccountSid,
String pathSid)
Create a AddressDeleter to execute delete.
|
boolean |
equals(Object o) |
static AddressFetcher |
fetcher(String pathSid)
Create a AddressFetcher to execute fetch.
|
static AddressFetcher |
fetcher(String pathAccountSid,
String pathSid)
Create a AddressFetcher to execute fetch.
|
static Address |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Address object using the provided
ObjectMapper.
|
static Address |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Address object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that is responsible for the resource.
|
String |
getCity()
Returns The city in which the address is located.
|
String |
getCustomerName()
Returns The name associated with the address.
|
org.joda.time.DateTime |
getDateCreated()
Returns The RFC 2822 date and time in GMT that the resource was created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The RFC 2822 date and time in GMT that the resource was last updated.
|
Boolean |
getEmergencyEnabled()
Returns Whether emergency calling has been enabled on this number.
|
String |
getFriendlyName()
Returns The string that you assigned to describe the resource.
|
String |
getIsoCountry()
Returns The ISO country code of the address.
|
String |
getPostalCode()
Returns The postal code of the address.
|
String |
getRegion()
Returns The state or region of the address.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
String |
getStreet()
Returns The number and street address of the address.
|
String |
getUri()
Returns The URI of the resource, relative to `https://api.twilio.com`.
|
Boolean |
getValidated()
Returns Whether the address has been validated to comply with local
regulation.
|
Boolean |
getVerified()
Returns Whether the address has been verified to comply with regulation.
|
int |
hashCode() |
static AddressReader |
reader()
Create a AddressReader to execute read.
|
static AddressReader |
reader(String pathAccountSid)
Create a AddressReader to execute read.
|
String |
toString() |
static AddressUpdater |
updater(String pathSid)
Create a AddressUpdater to execute update.
|
static AddressUpdater |
updater(String pathAccountSid,
String pathSid)
Create a AddressUpdater to execute update.
|
public static AddressCreator creator(String pathAccountSid, String customerName, String street, String city, String region, String postalCode, String isoCountry)
pathAccountSid
- The SID of the Account that will be responsible for
the new Address resourcecustomerName
- The name to associate with the new addressstreet
- The number and street address of the new addresscity
- The city of the new addressregion
- The state or region of the new addresspostalCode
- The postal code of the new addressisoCountry
- The ISO country code of the new addresspublic static AddressCreator creator(String customerName, String street, String city, String region, String postalCode, String isoCountry)
customerName
- The name to associate with the new addressstreet
- The number and street address of the new addresscity
- The city of the new addressregion
- The state or region of the new addresspostalCode
- The postal code of the new addressisoCountry
- The ISO country code of the new addresspublic static AddressDeleter deleter(String pathAccountSid, String pathSid)
pathAccountSid
- The SID of the Account that is responsible for the
resources to deletepathSid
- The unique string that identifies the resourcepublic static AddressDeleter deleter(String pathSid)
pathSid
- The unique string that identifies the resourcepublic static AddressFetcher fetcher(String pathAccountSid, String pathSid)
pathAccountSid
- The SID of the Account that is responsible for this
addresspathSid
- The unique string that identifies the resourcepublic static AddressFetcher fetcher(String pathSid)
pathSid
- The unique string that identifies the resourcepublic static AddressUpdater updater(String pathAccountSid, String pathSid)
pathAccountSid
- The SID of the Account that is responsible for the
resource to updatepathSid
- The unique string that identifies the resourcepublic static AddressUpdater updater(String pathSid)
pathSid
- The unique string that identifies the resourcepublic static AddressReader reader(String pathAccountSid)
pathAccountSid
- The SID of the Account that is responsible for this
addresspublic static AddressReader reader()
public static Address fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Address fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final String getCity()
public final String getCustomerName()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final String getFriendlyName()
public final String getIsoCountry()
public final String getPostalCode()
public final String getRegion()
public final String getSid()
public final String getStreet()
public final String getUri()
public final Boolean getEmergencyEnabled()
public final Boolean getValidated()
public final Boolean getVerified()
Copyright © 2019 Twilio, Inc. All Rights Reserved.