@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Address extends Object implements Serializable, Cloneable, StructuredPojo
The address that you want the Snow device(s) associated with a specific job to be shipped to. Addresses are validated
at the time of creation. The address you provide must be located within the serviceable area of your region. Although
no individual elements of the Address
are required, if the address is invalid or unsupported, then an
exception is thrown.
Constructor and Description |
---|
Address() |
Modifier and Type | Method and Description |
---|---|
Address |
clone() |
boolean |
equals(Object obj) |
String |
getAddressId()
The unique ID for an address.
|
String |
getCity()
The city in an address that a Snow device is to be delivered to.
|
String |
getCompany()
The name of the company to receive a Snow device at an address.
|
String |
getCountry()
The country in an address that a Snow device is to be delivered to.
|
Boolean |
getIsRestricted()
If the address you are creating is a primary address, then set this option to true.
|
String |
getLandmark()
This field is no longer used and the value is ignored.
|
String |
getName()
The name of a person to receive a Snow device at an address.
|
String |
getPhoneNumber()
The phone number associated with an address that a Snow device is to be delivered to.
|
String |
getPostalCode()
The postal code in an address that a Snow device is to be delivered to.
|
String |
getPrefectureOrDistrict()
This field is no longer used and the value is ignored.
|
String |
getStateOrProvince()
The state or province in an address that a Snow device is to be delivered to.
|
String |
getStreet1()
The first line in a street address that a Snow device is to be delivered to.
|
String |
getStreet2()
The second line in a street address that a Snow device is to be delivered to.
|
String |
getStreet3()
The third line in a street address that a Snow device is to be delivered to.
|
String |
getType()
Differentiates between delivery address and pickup address in the customer account.
|
int |
hashCode() |
Boolean |
isRestricted()
If the address you are creating is a primary address, then set this option to true.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAddressId(String addressId)
The unique ID for an address.
|
void |
setCity(String city)
The city in an address that a Snow device is to be delivered to.
|
void |
setCompany(String company)
The name of the company to receive a Snow device at an address.
|
void |
setCountry(String country)
The country in an address that a Snow device is to be delivered to.
|
void |
setIsRestricted(Boolean isRestricted)
If the address you are creating is a primary address, then set this option to true.
|
void |
setLandmark(String landmark)
This field is no longer used and the value is ignored.
|
void |
setName(String name)
The name of a person to receive a Snow device at an address.
|
void |
setPhoneNumber(String phoneNumber)
The phone number associated with an address that a Snow device is to be delivered to.
|
void |
setPostalCode(String postalCode)
The postal code in an address that a Snow device is to be delivered to.
|
void |
setPrefectureOrDistrict(String prefectureOrDistrict)
This field is no longer used and the value is ignored.
|
void |
setStateOrProvince(String stateOrProvince)
The state or province in an address that a Snow device is to be delivered to.
|
void |
setStreet1(String street1)
The first line in a street address that a Snow device is to be delivered to.
|
void |
setStreet2(String street2)
The second line in a street address that a Snow device is to be delivered to.
|
void |
setStreet3(String street3)
The third line in a street address that a Snow device is to be delivered to.
|
void |
setType(String type)
Differentiates between delivery address and pickup address in the customer account.
|
String |
toString()
Returns a string representation of this object.
|
Address |
withAddressId(String addressId)
The unique ID for an address.
|
Address |
withCity(String city)
The city in an address that a Snow device is to be delivered to.
|
Address |
withCompany(String company)
The name of the company to receive a Snow device at an address.
|
Address |
withCountry(String country)
The country in an address that a Snow device is to be delivered to.
|
Address |
withIsRestricted(Boolean isRestricted)
If the address you are creating is a primary address, then set this option to true.
|
Address |
withLandmark(String landmark)
This field is no longer used and the value is ignored.
|
Address |
withName(String name)
The name of a person to receive a Snow device at an address.
|
Address |
withPhoneNumber(String phoneNumber)
The phone number associated with an address that a Snow device is to be delivered to.
|
Address |
withPostalCode(String postalCode)
The postal code in an address that a Snow device is to be delivered to.
|
Address |
withPrefectureOrDistrict(String prefectureOrDistrict)
This field is no longer used and the value is ignored.
|
Address |
withStateOrProvince(String stateOrProvince)
The state or province in an address that a Snow device is to be delivered to.
|
Address |
withStreet1(String street1)
The first line in a street address that a Snow device is to be delivered to.
|
Address |
withStreet2(String street2)
The second line in a street address that a Snow device is to be delivered to.
|
Address |
withStreet3(String street3)
The third line in a street address that a Snow device is to be delivered to.
|
Address |
withType(AddressType type)
Differentiates between delivery address and pickup address in the customer account.
|
Address |
withType(String type)
Differentiates between delivery address and pickup address in the customer account.
|
public void setAddressId(String addressId)
The unique ID for an address.
addressId
- The unique ID for an address.public String getAddressId()
The unique ID for an address.
public Address withAddressId(String addressId)
The unique ID for an address.
addressId
- The unique ID for an address.public void setName(String name)
The name of a person to receive a Snow device at an address.
name
- The name of a person to receive a Snow device at an address.public String getName()
The name of a person to receive a Snow device at an address.
public Address withName(String name)
The name of a person to receive a Snow device at an address.
name
- The name of a person to receive a Snow device at an address.public void setCompany(String company)
The name of the company to receive a Snow device at an address.
company
- The name of the company to receive a Snow device at an address.public String getCompany()
The name of the company to receive a Snow device at an address.
public Address withCompany(String company)
The name of the company to receive a Snow device at an address.
company
- The name of the company to receive a Snow device at an address.public void setStreet1(String street1)
The first line in a street address that a Snow device is to be delivered to.
street1
- The first line in a street address that a Snow device is to be delivered to.public String getStreet1()
The first line in a street address that a Snow device is to be delivered to.
public Address withStreet1(String street1)
The first line in a street address that a Snow device is to be delivered to.
street1
- The first line in a street address that a Snow device is to be delivered to.public void setStreet2(String street2)
The second line in a street address that a Snow device is to be delivered to.
street2
- The second line in a street address that a Snow device is to be delivered to.public String getStreet2()
The second line in a street address that a Snow device is to be delivered to.
public Address withStreet2(String street2)
The second line in a street address that a Snow device is to be delivered to.
street2
- The second line in a street address that a Snow device is to be delivered to.public void setStreet3(String street3)
The third line in a street address that a Snow device is to be delivered to.
street3
- The third line in a street address that a Snow device is to be delivered to.public String getStreet3()
The third line in a street address that a Snow device is to be delivered to.
public Address withStreet3(String street3)
The third line in a street address that a Snow device is to be delivered to.
street3
- The third line in a street address that a Snow device is to be delivered to.public void setCity(String city)
The city in an address that a Snow device is to be delivered to.
city
- The city in an address that a Snow device is to be delivered to.public String getCity()
The city in an address that a Snow device is to be delivered to.
public Address withCity(String city)
The city in an address that a Snow device is to be delivered to.
city
- The city in an address that a Snow device is to be delivered to.public void setStateOrProvince(String stateOrProvince)
The state or province in an address that a Snow device is to be delivered to.
stateOrProvince
- The state or province in an address that a Snow device is to be delivered to.public String getStateOrProvince()
The state or province in an address that a Snow device is to be delivered to.
public Address withStateOrProvince(String stateOrProvince)
The state or province in an address that a Snow device is to be delivered to.
stateOrProvince
- The state or province in an address that a Snow device is to be delivered to.public void setPrefectureOrDistrict(String prefectureOrDistrict)
This field is no longer used and the value is ignored.
prefectureOrDistrict
- This field is no longer used and the value is ignored.public String getPrefectureOrDistrict()
This field is no longer used and the value is ignored.
public Address withPrefectureOrDistrict(String prefectureOrDistrict)
This field is no longer used and the value is ignored.
prefectureOrDistrict
- This field is no longer used and the value is ignored.public void setLandmark(String landmark)
This field is no longer used and the value is ignored.
landmark
- This field is no longer used and the value is ignored.public String getLandmark()
This field is no longer used and the value is ignored.
public Address withLandmark(String landmark)
This field is no longer used and the value is ignored.
landmark
- This field is no longer used and the value is ignored.public void setCountry(String country)
The country in an address that a Snow device is to be delivered to.
country
- The country in an address that a Snow device is to be delivered to.public String getCountry()
The country in an address that a Snow device is to be delivered to.
public Address withCountry(String country)
The country in an address that a Snow device is to be delivered to.
country
- The country in an address that a Snow device is to be delivered to.public void setPostalCode(String postalCode)
The postal code in an address that a Snow device is to be delivered to.
postalCode
- The postal code in an address that a Snow device is to be delivered to.public String getPostalCode()
The postal code in an address that a Snow device is to be delivered to.
public Address withPostalCode(String postalCode)
The postal code in an address that a Snow device is to be delivered to.
postalCode
- The postal code in an address that a Snow device is to be delivered to.public void setPhoneNumber(String phoneNumber)
The phone number associated with an address that a Snow device is to be delivered to.
phoneNumber
- The phone number associated with an address that a Snow device is to be delivered to.public String getPhoneNumber()
The phone number associated with an address that a Snow device is to be delivered to.
public Address withPhoneNumber(String phoneNumber)
The phone number associated with an address that a Snow device is to be delivered to.
phoneNumber
- The phone number associated with an address that a Snow device is to be delivered to.public void setIsRestricted(Boolean isRestricted)
If the address you are creating is a primary address, then set this option to true. This field is not supported in most regions.
isRestricted
- If the address you are creating is a primary address, then set this option to true. This field is not
supported in most regions.public Boolean getIsRestricted()
If the address you are creating is a primary address, then set this option to true. This field is not supported in most regions.
public Address withIsRestricted(Boolean isRestricted)
If the address you are creating is a primary address, then set this option to true. This field is not supported in most regions.
isRestricted
- If the address you are creating is a primary address, then set this option to true. This field is not
supported in most regions.public Boolean isRestricted()
If the address you are creating is a primary address, then set this option to true. This field is not supported in most regions.
public void setType(String type)
Differentiates between delivery address and pickup address in the customer account. Provided at job creation.
type
- Differentiates between delivery address and pickup address in the customer account. Provided at job
creation.AddressType
public String getType()
Differentiates between delivery address and pickup address in the customer account. Provided at job creation.
AddressType
public Address withType(String type)
Differentiates between delivery address and pickup address in the customer account. Provided at job creation.
type
- Differentiates between delivery address and pickup address in the customer account. Provided at job
creation.AddressType
public Address withType(AddressType type)
Differentiates between delivery address and pickup address in the customer account. Provided at job creation.
type
- Differentiates between delivery address and pickup address in the customer account. Provided at job
creation.AddressType
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.