@Generated(value="software.amazon.awssdk:codegen") public final class Address extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Address.Builder,Address>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Address.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
addressId()
The unique ID for an address.
|
static Address.Builder |
builder() |
String |
city()
The city in an address that a Snow device is to be delivered to.
|
String |
company()
The name of the company to receive a Snow device at an address.
|
String |
country()
The country in an address that a Snow device is to be delivered to.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
isRestricted()
If the address you are creating is a primary address, then set this option to true.
|
String |
landmark()
This field is no longer used and the value is ignored.
|
String |
name()
The name of a person to receive a Snow device at an address.
|
String |
phoneNumber()
The phone number associated with an address that a Snow device is to be delivered to.
|
String |
postalCode()
The postal code in an address that a Snow device is to be delivered to.
|
String |
prefectureOrDistrict()
This field is no longer used and the value is ignored.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Address.Builder> |
serializableBuilderClass() |
String |
stateOrProvince()
The state or province in an address that a Snow device is to be delivered to.
|
String |
street1()
The first line in a street address that a Snow device is to be delivered to.
|
String |
street2()
The second line in a street address that a Snow device is to be delivered to.
|
String |
street3()
The third line in a street address that a Snow device is to be delivered to.
|
Address.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
AddressType |
type()
Differentiates between delivery address and pickup address in the customer account.
|
String |
typeAsString()
Differentiates between delivery address and pickup address in the customer account.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String addressId()
The unique ID for an address.
public final String name()
The name of a person to receive a Snow device at an address.
public final String company()
The name of the company to receive a Snow device at an address.
public final String street1()
The first line in a street address that a Snow device is to be delivered to.
public final String street2()
The second line in a street address that a Snow device is to be delivered to.
public final String street3()
The third line in a street address that a Snow device is to be delivered to.
public final String city()
The city in an address that a Snow device is to be delivered to.
public final String stateOrProvince()
The state or province in an address that a Snow device is to be delivered to.
public final String prefectureOrDistrict()
This field is no longer used and the value is ignored.
public final String landmark()
This field is no longer used and the value is ignored.
public final String country()
The country in an address that a Snow device is to be delivered to.
public final String postalCode()
The postal code in an address that a Snow device is to be delivered to.
public final String phoneNumber()
The phone number associated with an address that a Snow device is to be delivered to.
public final 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 final AddressType type()
Differentiates between delivery address and pickup address in the customer account. Provided at job creation.
If the service returns an enum value that is not available in the current SDK version, type will return
AddressType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
AddressTypepublic final String typeAsString()
Differentiates between delivery address and pickup address in the customer account. Provided at job creation.
If the service returns an enum value that is not available in the current SDK version, type will return
AddressType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
AddressTypepublic Address.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Address.Builder,Address>public static Address.Builder builder()
public static Class<? extends Address.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.