ShippingAddress Class
- java.
lang. Object - com.
azure. resourcemanager. databox. models. ShippingAddress
- com.
Implements
public final class ShippingAddress
implements JsonSerializable<ShippingAddress>
Shipping address where customer wishes to receive the device.
Constructor Summary
| Constructor | Description |
|---|---|
| ShippingAddress() |
Creates an instance of Shipping |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Address |
addressType()
Get the address |
| String |
city()
Get the city property: Name of the City. |
| String |
companyName()
Get the company |
| String |
country()
Get the country property: Name of the Country. |
|
static
Shipping |
fromJson(JsonReader jsonReader)
Reads an instance of Shipping |
| String |
postalCode()
Get the postal |
| Boolean |
skipAddressValidation()
Get the skip |
| String |
stateOrProvince()
Get the state |
| String |
streetAddress1()
Get the street |
| String |
streetAddress2()
Get the street |
| String |
streetAddress3()
Get the street |
| String |
taxIdentificationNumber()
Get the tax |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Shipping |
withAddressType(AddressType addressType)
Set the address |
|
Shipping |
withCity(String city)
Set the city property: Name of the City. |
|
Shipping |
withCompanyName(String companyName)
Set the company |
|
Shipping |
withCountry(String country)
Set the country property: Name of the Country. |
|
Shipping |
withPostalCode(String postalCode)
Set the postal |
|
Shipping |
withSkipAddressValidation(Boolean skipAddressValidation)
Set the skip |
|
Shipping |
withStateOrProvince(String stateOrProvince)
Set the state |
|
Shipping |
withStreetAddress1(String streetAddress1)
Set the street |
|
Shipping |
withStreetAddress2(String streetAddress2)
Set the street |
|
Shipping |
withStreetAddress3(String streetAddress3)
Set the street |
|
Shipping |
withTaxIdentificationNumber(String taxIdentificationNumber)
Set the tax |
|
Shipping |
withZipExtendedCode(String zipExtendedCode)
Set the zip |
| String |
zipExtendedCode()
Get the zip |
Methods inherited from java.lang.Object
Constructor Details
ShippingAddress
public ShippingAddress()
Creates an instance of ShippingAddress class.
Method Details
addressType
public AddressType addressType()
Get the addressType property: Type of address.
Returns:
city
public String city()
Get the city property: Name of the City.
Returns:
companyName
public String companyName()
Get the companyName property: Name of the company.
Returns:
country
public String country()
Get the country property: Name of the Country.
Returns:
fromJson
public static ShippingAddress fromJson(JsonReader jsonReader)
Reads an instance of ShippingAddress from the JsonReader.
Parameters:
Returns:
Throws:
postalCode
public String postalCode()
Get the postalCode property: Postal code.
Returns:
skipAddressValidation
public Boolean skipAddressValidation()
Get the skipAddressValidation property: Flag to indicate if customer has chosen to skip default address validation.
Returns:
stateOrProvince
public String stateOrProvince()
Get the stateOrProvince property: Name of the State or Province.
Returns:
streetAddress1
public String streetAddress1()
Get the streetAddress1 property: Street Address line 1.
Returns:
streetAddress2
public String streetAddress2()
Get the streetAddress2 property: Street Address line 2.
Returns:
streetAddress3
public String streetAddress3()
Get the streetAddress3 property: Street Address line 3.
Returns:
taxIdentificationNumber
public String taxIdentificationNumber()
Get the taxIdentificationNumber property: Tax Identification Number.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAddressType
public ShippingAddress withAddressType(AddressType addressType)
Set the addressType property: Type of address.
Parameters:
Returns:
withCity
public ShippingAddress withCity(String city)
Set the city property: Name of the City.
Parameters:
Returns:
withCompanyName
public ShippingAddress withCompanyName(String companyName)
Set the companyName property: Name of the company.
Parameters:
Returns:
withCountry
public ShippingAddress withCountry(String country)
Set the country property: Name of the Country.
Parameters:
Returns:
withPostalCode
public ShippingAddress withPostalCode(String postalCode)
Set the postalCode property: Postal code.
Parameters:
Returns:
withSkipAddressValidation
public ShippingAddress withSkipAddressValidation(Boolean skipAddressValidation)
Set the skipAddressValidation property: Flag to indicate if customer has chosen to skip default address validation.
Parameters:
Returns:
withStateOrProvince
public ShippingAddress withStateOrProvince(String stateOrProvince)
Set the stateOrProvince property: Name of the State or Province.
Parameters:
Returns:
withStreetAddress1
public ShippingAddress withStreetAddress1(String streetAddress1)
Set the streetAddress1 property: Street Address line 1.
Parameters:
Returns:
withStreetAddress2
public ShippingAddress withStreetAddress2(String streetAddress2)
Set the streetAddress2 property: Street Address line 2.
Parameters:
Returns:
withStreetAddress3
public ShippingAddress withStreetAddress3(String streetAddress3)
Set the streetAddress3 property: Street Address line 3.
Parameters:
Returns:
withTaxIdentificationNumber
public ShippingAddress withTaxIdentificationNumber(String taxIdentificationNumber)
Set the taxIdentificationNumber property: Tax Identification Number.
Parameters:
Returns:
withZipExtendedCode
public ShippingAddress withZipExtendedCode(String zipExtendedCode)
Set the zipExtendedCode property: Extended Zip Code.
Parameters:
Returns:
zipExtendedCode
public String zipExtendedCode()
Get the zipExtendedCode property: Extended Zip Code.
Returns: