Share via


ShippingAddress Class

  • java.lang.Object
    • com.azure.resourcemanager.databox.models.ShippingAddress

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 ShippingAddress class.

Method Summary

Modifier and Type Method and Description
AddressType addressType()

Get the addressType property: Type of address.

String city()

Get the city property: Name of the City.

String companyName()

Get the companyName property: Name of the company.

String country()

Get the country property: Name of the Country.

static ShippingAddress fromJson(JsonReader jsonReader)

Reads an instance of ShippingAddress from the JsonReader.

String postalCode()

Get the postalCode property: Postal code.

Boolean skipAddressValidation()

Get the skipAddressValidation property: Flag to indicate if customer has chosen to skip default address validation.

String stateOrProvince()

Get the stateOrProvince property: Name of the State or Province.

String streetAddress1()

Get the streetAddress1 property: Street Address line 1.

String streetAddress2()

Get the streetAddress2 property: Street Address line 2.

String streetAddress3()

Get the streetAddress3 property: Street Address line 3.

String taxIdentificationNumber()

Get the taxIdentificationNumber property: Tax Identification Number.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ShippingAddress withAddressType(AddressType addressType)

Set the addressType property: Type of address.

ShippingAddress withCity(String city)

Set the city property: Name of the City.

ShippingAddress withCompanyName(String companyName)

Set the companyName property: Name of the company.

ShippingAddress withCountry(String country)

Set the country property: Name of the Country.

ShippingAddress withPostalCode(String postalCode)

Set the postalCode property: Postal code.

ShippingAddress withSkipAddressValidation(Boolean skipAddressValidation)

Set the skipAddressValidation property: Flag to indicate if customer has chosen to skip default address validation.

ShippingAddress withStateOrProvince(String stateOrProvince)

Set the stateOrProvince property: Name of the State or Province.

ShippingAddress withStreetAddress1(String streetAddress1)

Set the streetAddress1 property: Street Address line 1.

ShippingAddress withStreetAddress2(String streetAddress2)

Set the streetAddress2 property: Street Address line 2.

ShippingAddress withStreetAddress3(String streetAddress3)

Set the streetAddress3 property: Street Address line 3.

ShippingAddress withTaxIdentificationNumber(String taxIdentificationNumber)

Set the taxIdentificationNumber property: Tax Identification Number.

ShippingAddress withZipExtendedCode(String zipExtendedCode)

Set the zipExtendedCode property: Extended Zip Code.

String zipExtendedCode()

Get the zipExtendedCode property: Extended Zip Code.

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:

the addressType value.

city

public String city()

Get the city property: Name of the City.

Returns:

the city value.

companyName

public String companyName()

Get the companyName property: Name of the company.

Returns:

the companyName value.

country

public String country()

Get the country property: Name of the Country.

Returns:

the country value.

fromJson

public static ShippingAddress fromJson(JsonReader jsonReader)

Reads an instance of ShippingAddress from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ShippingAddress if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

postalCode

public String postalCode()

Get the postalCode property: Postal code.

Returns:

the postalCode value.

skipAddressValidation

public Boolean skipAddressValidation()

Get the skipAddressValidation property: Flag to indicate if customer has chosen to skip default address validation.

Returns:

the skipAddressValidation value.

stateOrProvince

public String stateOrProvince()

Get the stateOrProvince property: Name of the State or Province.

Returns:

the stateOrProvince value.

streetAddress1

public String streetAddress1()

Get the streetAddress1 property: Street Address line 1.

Returns:

the streetAddress1 value.

streetAddress2

public String streetAddress2()

Get the streetAddress2 property: Street Address line 2.

Returns:

the streetAddress2 value.

streetAddress3

public String streetAddress3()

Get the streetAddress3 property: Street Address line 3.

Returns:

the streetAddress3 value.

taxIdentificationNumber

public String taxIdentificationNumber()

Get the taxIdentificationNumber property: Tax Identification Number.

Returns:

the taxIdentificationNumber value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAddressType

public ShippingAddress withAddressType(AddressType addressType)

Set the addressType property: Type of address.

Parameters:

addressType - the addressType value to set.

Returns:

the ShippingAddress object itself.

withCity

public ShippingAddress withCity(String city)

Set the city property: Name of the City.

Parameters:

city - the city value to set.

Returns:

the ShippingAddress object itself.

withCompanyName

public ShippingAddress withCompanyName(String companyName)

Set the companyName property: Name of the company.

Parameters:

companyName - the companyName value to set.

Returns:

the ShippingAddress object itself.

withCountry

public ShippingAddress withCountry(String country)

Set the country property: Name of the Country.

Parameters:

country - the country value to set.

Returns:

the ShippingAddress object itself.

withPostalCode

public ShippingAddress withPostalCode(String postalCode)

Set the postalCode property: Postal code.

Parameters:

postalCode - the postalCode value to set.

Returns:

the ShippingAddress object itself.

withSkipAddressValidation

public ShippingAddress withSkipAddressValidation(Boolean skipAddressValidation)

Set the skipAddressValidation property: Flag to indicate if customer has chosen to skip default address validation.

Parameters:

skipAddressValidation - the skipAddressValidation value to set.

Returns:

the ShippingAddress object itself.

withStateOrProvince

public ShippingAddress withStateOrProvince(String stateOrProvince)

Set the stateOrProvince property: Name of the State or Province.

Parameters:

stateOrProvince - the stateOrProvince value to set.

Returns:

the ShippingAddress object itself.

withStreetAddress1

public ShippingAddress withStreetAddress1(String streetAddress1)

Set the streetAddress1 property: Street Address line 1.

Parameters:

streetAddress1 - the streetAddress1 value to set.

Returns:

the ShippingAddress object itself.

withStreetAddress2

public ShippingAddress withStreetAddress2(String streetAddress2)

Set the streetAddress2 property: Street Address line 2.

Parameters:

streetAddress2 - the streetAddress2 value to set.

Returns:

the ShippingAddress object itself.

withStreetAddress3

public ShippingAddress withStreetAddress3(String streetAddress3)

Set the streetAddress3 property: Street Address line 3.

Parameters:

streetAddress3 - the streetAddress3 value to set.

Returns:

the ShippingAddress object itself.

withTaxIdentificationNumber

public ShippingAddress withTaxIdentificationNumber(String taxIdentificationNumber)

Set the taxIdentificationNumber property: Tax Identification Number.

Parameters:

taxIdentificationNumber - the taxIdentificationNumber value to set.

Returns:

the ShippingAddress object itself.

withZipExtendedCode

public ShippingAddress withZipExtendedCode(String zipExtendedCode)

Set the zipExtendedCode property: Extended Zip Code.

Parameters:

zipExtendedCode - the zipExtendedCode value to set.

Returns:

the ShippingAddress object itself.

zipExtendedCode

public String zipExtendedCode()

Get the zipExtendedCode property: Extended Zip Code.

Returns:

the zipExtendedCode value.

Applies to