Class Address
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.api.v2010.account.Address
-
- All Implemented Interfaces:
Serializable
public class Address extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AddressCreator
creator(String customerName, String street, String city, String region, String postalCode, String isoCountry)
static AddressCreator
creator(String pathAccountSid, String customerName, String street, String city, String region, String postalCode, String isoCountry)
static AddressDeleter
deleter(String pathSid)
static AddressDeleter
deleter(String pathAccountSid, String pathSid)
boolean
equals(Object o)
static AddressFetcher
fetcher(String pathSid)
static AddressFetcher
fetcher(String pathAccountSid, String pathSid)
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()
String
getCity()
String
getCustomerName()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
Boolean
getEmergencyEnabled()
String
getFriendlyName()
String
getIsoCountry()
String
getPostalCode()
String
getRegion()
String
getSid()
String
getStreet()
String
getStreetSecondary()
String
getUri()
Boolean
getValidated()
Boolean
getVerified()
int
hashCode()
static AddressReader
reader()
static AddressReader
reader(String pathAccountSid)
static AddressUpdater
updater(String pathSid)
static AddressUpdater
updater(String pathAccountSid, String pathSid)
-
-
-
Method Detail
-
creator
public static AddressCreator creator(String customerName, String street, String city, String region, String postalCode, String isoCountry)
-
creator
public static AddressCreator creator(String pathAccountSid, String customerName, String street, String city, String region, String postalCode, String isoCountry)
-
deleter
public static AddressDeleter deleter(String pathSid)
-
deleter
public static AddressDeleter deleter(String pathAccountSid, String pathSid)
-
fetcher
public static AddressFetcher fetcher(String pathSid)
-
fetcher
public static AddressFetcher fetcher(String pathAccountSid, String pathSid)
-
reader
public static AddressReader reader()
-
reader
public static AddressReader reader(String pathAccountSid)
-
updater
public static AddressUpdater updater(String pathSid)
-
updater
public static AddressUpdater updater(String pathAccountSid, String pathSid)
-
fromJson
public static Address fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Address object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Address object represented by the provided JSON
-
fromJson
public static Address fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Address object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Address object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
-
getCity
public final String getCity()
-
getCustomerName
public final String getCustomerName()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getFriendlyName
public final String getFriendlyName()
-
getIsoCountry
public final String getIsoCountry()
-
getPostalCode
public final String getPostalCode()
-
getRegion
public final String getRegion()
-
getSid
public final String getSid()
-
getStreet
public final String getStreet()
-
getUri
public final String getUri()
-
getEmergencyEnabled
public final Boolean getEmergencyEnabled()
-
getValidated
public final Boolean getValidated()
-
getVerified
public final Boolean getVerified()
-
getStreetSecondary
public final String getStreetSecondary()
-
-