Class ShippingAddress
java.lang.Object
com.azure.resourcemanager.databox.models.ShippingAddress
Shipping address where customer wishes to receive the device.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the addressType property: Type of address.city()
Get the city property: Name of the City.Get the companyName property: Name of the company.country()
Get the country property: Name of the Country.Get the postalCode property: Postal code.Get the stateOrProvince property: Name of the State or Province.Get the streetAddress1 property: Street Address line 1.Get the streetAddress2 property: Street Address line 2.Get the streetAddress3 property: Street Address line 3.void
validate()
Validates the instance.withAddressType
(AddressType addressType) Set the addressType property: Type of address.Set the city property: Name of the City.withCompanyName
(String companyName) Set the companyName property: Name of the company.withCountry
(String country) Set the country property: Name of the Country.withPostalCode
(String postalCode) Set the postalCode property: Postal code.withStateOrProvince
(String stateOrProvince) Set the stateOrProvince property: Name of the State or Province.withStreetAddress1
(String streetAddress1) Set the streetAddress1 property: Street Address line 1.withStreetAddress2
(String streetAddress2) Set the streetAddress2 property: Street Address line 2.withStreetAddress3
(String streetAddress3) Set the streetAddress3 property: Street Address line 3.withZipExtendedCode
(String zipExtendedCode) Set the zipExtendedCode property: Extended Zip Code.Get the zipExtendedCode property: Extended Zip Code.
-
Constructor Details
-
ShippingAddress
public ShippingAddress()Creates an instance of ShippingAddress class.
-
-
Method Details
-
streetAddress1
Get the streetAddress1 property: Street Address line 1.- Returns:
- the streetAddress1 value.
-
withStreetAddress1
Set the streetAddress1 property: Street Address line 1.- Parameters:
streetAddress1
- the streetAddress1 value to set.- Returns:
- the ShippingAddress object itself.
-
streetAddress2
Get the streetAddress2 property: Street Address line 2.- Returns:
- the streetAddress2 value.
-
withStreetAddress2
Set the streetAddress2 property: Street Address line 2.- Parameters:
streetAddress2
- the streetAddress2 value to set.- Returns:
- the ShippingAddress object itself.
-
streetAddress3
Get the streetAddress3 property: Street Address line 3.- Returns:
- the streetAddress3 value.
-
withStreetAddress3
Set the streetAddress3 property: Street Address line 3.- Parameters:
streetAddress3
- the streetAddress3 value to set.- Returns:
- the ShippingAddress object itself.
-
city
Get the city property: Name of the City.- Returns:
- the city value.
-
withCity
Set the city property: Name of the City.- Parameters:
city
- the city value to set.- Returns:
- the ShippingAddress object itself.
-
stateOrProvince
Get the stateOrProvince property: Name of the State or Province.- Returns:
- the stateOrProvince value.
-
withStateOrProvince
Set the stateOrProvince property: Name of the State or Province.- Parameters:
stateOrProvince
- the stateOrProvince value to set.- Returns:
- the ShippingAddress object itself.
-
country
Get the country property: Name of the Country.- Returns:
- the country value.
-
withCountry
Set the country property: Name of the Country.- Parameters:
country
- the country value to set.- Returns:
- the ShippingAddress object itself.
-
postalCode
Get the postalCode property: Postal code.- Returns:
- the postalCode value.
-
withPostalCode
Set the postalCode property: Postal code.- Parameters:
postalCode
- the postalCode value to set.- Returns:
- the ShippingAddress object itself.
-
zipExtendedCode
Get the zipExtendedCode property: Extended Zip Code.- Returns:
- the zipExtendedCode value.
-
withZipExtendedCode
Set the zipExtendedCode property: Extended Zip Code.- Parameters:
zipExtendedCode
- the zipExtendedCode value to set.- Returns:
- the ShippingAddress object itself.
-
companyName
Get the companyName property: Name of the company.- Returns:
- the companyName value.
-
withCompanyName
Set the companyName property: Name of the company.- Parameters:
companyName
- the companyName value to set.- Returns:
- the ShippingAddress object itself.
-
addressType
Get the addressType property: Type of address.- Returns:
- the addressType value.
-
withAddressType
Set the addressType property: Type of address.- Parameters:
addressType
- the addressType value to set.- Returns:
- the ShippingAddress object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-