Class Address
- java.lang.Object
-
- software.amazon.awssdk.services.snowball.model.Address
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Address.Builder,Address>
@Generated("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
Addressare required, if the address is invalid or unsupported, then an exception is thrown.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAddress.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaddressId()The unique ID for an address.static Address.Builderbuilder()Stringcity()The city in an address that a Snow device is to be delivered to.Stringcompany()The name of the company to receive a Snow device at an address.Stringcountry()The country in an address that a Snow device is to be delivered to.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()BooleanisRestricted()If the address you are creating is a primary address, then set this option to true.Stringlandmark()This field is no longer used and the value is ignored.Stringname()The name of a person to receive a Snow device at an address.StringphoneNumber()The phone number associated with an address that a Snow device is to be delivered to.StringpostalCode()The postal code in an address that a Snow device is to be delivered to.StringprefectureOrDistrict()This field is no longer used and the value is ignored.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Address.Builder>serializableBuilderClass()StringstateOrProvince()The state or province in an address that a Snow device is to be delivered to.Stringstreet1()The first line in a street address that a Snow device is to be delivered to.Stringstreet2()The second line in a street address that a Snow device is to be delivered to.Stringstreet3()The third line in a street address that a Snow device is to be delivered to.Address.BuildertoBuilder()StringtoString()Returns a string representation of this object.AddressTypetype()Differentiates between delivery address and pickup address in the customer account.StringtypeAsString()Differentiates between delivery address and pickup address in the customer account.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
addressId
public final String addressId()
The unique ID for an address.
- Returns:
- The unique ID for an address.
-
name
public final String name()
The name of a person to receive a Snow device at an address.
- Returns:
- The name of a person to receive a Snow device at an address.
-
company
public final String company()
The name of the company to receive a Snow device at an address.
- Returns:
- The name of the company to receive a Snow device at an address.
-
street1
public final String street1()
The first line in a street address that a Snow device is to be delivered to.
- Returns:
- The first line in a street address that a Snow device is to be delivered to.
-
street2
public final String street2()
The second line in a street address that a Snow device is to be delivered to.
- Returns:
- The second line in a street address that a Snow device is to be delivered to.
-
street3
public final String street3()
The third line in a street address that a Snow device is to be delivered to.
- Returns:
- The third line in a street address that a Snow device is to be delivered to.
-
city
public final String city()
The city in an address that a Snow device is to be delivered to.
- Returns:
- The city in an address that a Snow device is to be delivered to.
-
stateOrProvince
public final String stateOrProvince()
The state or province in an address that a Snow device is to be delivered to.
- Returns:
- The state or province in an address that a Snow device is to be delivered to.
-
prefectureOrDistrict
public final String prefectureOrDistrict()
This field is no longer used and the value is ignored.
- Returns:
- This field is no longer used and the value is ignored.
-
landmark
public final String landmark()
This field is no longer used and the value is ignored.
- Returns:
- This field is no longer used and the value is ignored.
-
country
public final String country()
The country in an address that a Snow device is to be delivered to.
- Returns:
- The country in an address that a Snow device is to be delivered to.
-
postalCode
public final String postalCode()
The postal code in an address that a Snow device is to be delivered to.
- Returns:
- The postal code in an address that a Snow device is to be delivered to.
-
phoneNumber
public final String phoneNumber()
The phone number associated with an address that a Snow device is to be delivered to.
- Returns:
- The phone number associated with an address that a Snow device is to be delivered to.
-
isRestricted
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.
- Returns:
- If the address you are creating is a primary address, then set this option to true. This field is not supported in most regions.
-
type
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,
typewill returnAddressType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Differentiates between delivery address and pickup address in the customer account. Provided at job creation.
- See Also:
AddressType
-
typeAsString
public 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,
typewill returnAddressType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Differentiates between delivery address and pickup address in the customer account. Provided at job creation.
- See Also:
AddressType
-
toBuilder
public Address.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Address.Builder,Address>
-
builder
public static Address.Builder builder()
-
serializableBuilderClass
public static Class<? extends Address.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-