Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Address = Address' {
- isRestricted :: Maybe Bool
- street3 :: Maybe Text
- landmark :: Maybe Text
- postalCode :: Maybe Text
- country :: Maybe Text
- stateOrProvince :: Maybe Text
- street2 :: Maybe Text
- addressId :: Maybe Text
- city :: Maybe Text
- phoneNumber :: Maybe Text
- company :: Maybe Text
- name :: Maybe Text
- prefectureOrDistrict :: Maybe Text
- street1 :: Maybe Text
- newAddress :: Address
- address_isRestricted :: Lens' Address (Maybe Bool)
- address_street3 :: Lens' Address (Maybe Text)
- address_landmark :: Lens' Address (Maybe Text)
- address_postalCode :: Lens' Address (Maybe Text)
- address_country :: Lens' Address (Maybe Text)
- address_stateOrProvince :: Lens' Address (Maybe Text)
- address_street2 :: Lens' Address (Maybe Text)
- address_addressId :: Lens' Address (Maybe Text)
- address_city :: Lens' Address (Maybe Text)
- address_phoneNumber :: Lens' Address (Maybe Text)
- address_company :: Lens' Address (Maybe Text)
- address_name :: Lens' Address (Maybe Text)
- address_prefectureOrDistrict :: Lens' Address (Maybe Text)
- address_street1 :: Lens' Address (Maybe Text)
Documentation
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.
See: newAddress
smart constructor.
Address' | |
|
Instances
newAddress :: Address Source #
Create a value of Address
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:isRestricted:Address'
, address_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.
$sel:street3:Address'
, address_street3
- The third line in a street address that a Snow device is to be delivered
to.
$sel:landmark:Address'
, address_landmark
- This field is no longer used and the value is ignored.
$sel:postalCode:Address'
, address_postalCode
- The postal code in an address that a Snow device is to be delivered to.
$sel:country:Address'
, address_country
- The country in an address that a Snow device is to be delivered to.
$sel:stateOrProvince:Address'
, address_stateOrProvince
- The state or province in an address that a Snow device is to be
delivered to.
$sel:street2:Address'
, address_street2
- The second line in a street address that a Snow device is to be
delivered to.
$sel:addressId:Address'
, address_addressId
- The unique ID for an address.
$sel:city:Address'
, address_city
- The city in an address that a Snow device is to be delivered to.
$sel:phoneNumber:Address'
, address_phoneNumber
- The phone number associated with an address that a Snow device is to be
delivered to.
$sel:company:Address'
, address_company
- The name of the company to receive a Snow device at an address.
$sel:name:Address'
, address_name
- The name of a person to receive a Snow device at an address.
$sel:prefectureOrDistrict:Address'
, address_prefectureOrDistrict
- This field is no longer used and the value is ignored.
$sel:street1:Address'
, address_street1
- The first line in a street address that a Snow device is to be delivered
to.
address_isRestricted :: Lens' Address (Maybe Bool) Source #
If the address you are creating is a primary address, then set this option to true. This field is not supported in most regions.
address_street3 :: Lens' Address (Maybe Text) Source #
The third line in a street address that a Snow device is to be delivered to.
address_landmark :: Lens' Address (Maybe Text) Source #
This field is no longer used and the value is ignored.
address_postalCode :: Lens' Address (Maybe Text) Source #
The postal code in an address that a Snow device is to be delivered to.
address_country :: Lens' Address (Maybe Text) Source #
The country in an address that a Snow device is to be delivered to.
address_stateOrProvince :: Lens' Address (Maybe Text) Source #
The state or province in an address that a Snow device is to be delivered to.
address_street2 :: Lens' Address (Maybe Text) Source #
The second line in a street address that a Snow device is to be delivered to.
address_city :: Lens' Address (Maybe Text) Source #
The city in an address that a Snow device is to be delivered to.
address_phoneNumber :: Lens' Address (Maybe Text) Source #
The phone number associated with an address that a Snow device is to be delivered to.
address_company :: Lens' Address (Maybe Text) Source #
The name of the company to receive a Snow device at an address.
address_name :: Lens' Address (Maybe Text) Source #
The name of a person to receive a Snow device at an address.