public final class Address extends Object
| Constructor and Description |
|---|
Address() |
| Modifier and Type | Method and Description |
|---|---|
String |
address1()
Get the address1 property: First line of an Address.
|
String |
address2()
Get the address2 property: The second line of the Address.
|
String |
city()
Get the city property: The city for the address.
|
String |
country()
Get the country property: The country for the address.
|
String |
postalCode()
Get the postalCode property: The postal code for the address.
|
String |
state()
Get the state property: The state or province for the address.
|
void |
validate()
Validates the instance.
|
Address |
withAddress1(String address1)
Set the address1 property: First line of an Address.
|
Address |
withAddress2(String address2)
Set the address2 property: The second line of the Address.
|
Address |
withCity(String city)
Set the city property: The city for the address.
|
Address |
withCountry(String country)
Set the country property: The country for the address.
|
Address |
withPostalCode(String postalCode)
Set the postalCode property: The postal code for the address.
|
Address |
withState(String state)
Set the state property: The state or province for the address.
|
public String address1()
public Address withAddress1(String address1)
address1 - the address1 value to set.public String address2()
public Address withAddress2(String address2)
address2 - the address2 value to set.public String city()
public Address withCity(String city)
city - the city value to set.public String country()
public Address withCountry(String country)
country - the country value to set.public String postalCode()
public Address withPostalCode(String postalCode)
postalCode - the postalCode value to set.public String state()
public Address withState(String state)
state - the state value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.