Class Address
java.lang.Object
com.azure.resourcemanager.databoxedge.models.Address
The shipping address of the customer.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the addressLine1 property: The address line1.Get the addressLine2 property: The address line2.Get the addressLine3 property: The address line3.city()
Get the city property: The city name.country()
Get the country property: The country name.Get the postalCode property: The postal code.state()
Get the state property: The state name.void
validate()
Validates the instance.withAddressLine1
(String addressLine1) Set the addressLine1 property: The address line1.withAddressLine2
(String addressLine2) Set the addressLine2 property: The address line2.withAddressLine3
(String addressLine3) Set the addressLine3 property: The address line3.Set the city property: The city name.withCountry
(String country) Set the country property: The country name.withPostalCode
(String postalCode) Set the postalCode property: The postal code.Set the state property: The state name.
-
Constructor Details
-
Address
public Address()Creates an instance of Address class.
-
-
Method Details
-
addressLine1
Get the addressLine1 property: The address line1.- Returns:
- the addressLine1 value.
-
withAddressLine1
Set the addressLine1 property: The address line1.- Parameters:
addressLine1
- the addressLine1 value to set.- Returns:
- the Address object itself.
-
addressLine2
Get the addressLine2 property: The address line2.- Returns:
- the addressLine2 value.
-
withAddressLine2
Set the addressLine2 property: The address line2.- Parameters:
addressLine2
- the addressLine2 value to set.- Returns:
- the Address object itself.
-
addressLine3
Get the addressLine3 property: The address line3.- Returns:
- the addressLine3 value.
-
withAddressLine3
Set the addressLine3 property: The address line3.- Parameters:
addressLine3
- the addressLine3 value to set.- Returns:
- the Address object itself.
-
postalCode
Get the postalCode property: The postal code.- Returns:
- the postalCode value.
-
withPostalCode
Set the postalCode property: The postal code.- Parameters:
postalCode
- the postalCode value to set.- Returns:
- the Address object itself.
-
city
Get the city property: The city name.- Returns:
- the city value.
-
withCity
Set the city property: The city name.- Parameters:
city
- the city value to set.- Returns:
- the Address object itself.
-
state
Get the state property: The state name.- Returns:
- the state value.
-
withState
Set the state property: The state name.- Parameters:
state
- the state value to set.- Returns:
- the Address object itself.
-
country
Get the country property: The country name.- Returns:
- the country value.
-
withCountry
Set the country property: The country name.- Parameters:
country
- the country value to set.- Returns:
- the Address object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-