Address Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. Address
- com.
Implements
public final class Address
implements JsonSerializable<Address>
Address information for domain registration.
Constructor Summary
Constructor | Description |
---|---|
Address() |
Creates an instance of Address class. |
Method Summary
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. |
static Address |
fromJson(JsonReader jsonReader)
Reads an instance of Address from the Json |
String |
postalCode()
Get the postal |
String |
state()
Get the state property: The state or province for the address. |
Json |
toJson(JsonWriter jsonWriter) |
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 postal |
Address |
withState(String state)
Set the state property: The state or province for the address. |
Methods inherited from java.lang.Object
Constructor Details
Address
public Address()
Creates an instance of Address class.
Method Details
address1
public String address1()
Get the address1 property: First line of an Address.
Returns:
address2
public String address2()
Get the address2 property: The second line of the Address. Optional.
Returns:
city
public String city()
Get the city property: The city for the address.
Returns:
country
public String country()
Get the country property: The country for the address.
Returns:
fromJson
public static Address fromJson(JsonReader jsonReader)
Reads an instance of Address from the JsonReader.
Parameters:
Returns:
Throws:
postalCode
public String postalCode()
Get the postalCode property: The postal code for the address.
Returns:
state
public String state()
Get the state property: The state or province for the address.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAddress1
public Address withAddress1(String address1)
Set the address1 property: First line of an Address.
Parameters:
Returns:
withAddress2
public Address withAddress2(String address2)
Set the address2 property: The second line of the Address. Optional.
Parameters:
Returns:
withCity
public Address withCity(String city)
Set the city property: The city for the address.
Parameters:
Returns:
withCountry
public Address withCountry(String country)
Set the country property: The country for the address.
Parameters:
Returns:
withPostalCode
public Address withPostalCode(String postalCode)
Set the postalCode property: The postal code for the address.
Parameters:
Returns:
withState
public Address withState(String state)
Set the state property: The state or province for the address.
Parameters:
Returns:
Applies to
Azure SDK for Java