Class Address
java.lang.Object
com.azure.resourcemanager.appservice.models.Address
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Address>
Address information for domain registration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddress1()Get the address1 property: First line of an Address.address2()Get the address2 property: The second line of the Address.city()Get the city property: The city for the address.country()Get the country property: The country for the address.static AddressfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Address from the JsonReader.Get the postalCode property: The postal code for the address.state()Get the state property: The state or province for the address.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAddress1(String address1) Set the address1 property: First line of an Address.withAddress2(String address2) Set the address2 property: The second line of the Address.Set the city property: The city for the address.withCountry(String country) Set the country property: The country for the address.withPostalCode(String postalCode) Set the postalCode property: The postal code for the address.Set the state property: The state or province for the address.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
Address
public Address()Creates an instance of Address class.
-
-
Method Details
-
address1
Get the address1 property: First line of an Address.- Returns:
- the address1 value.
-
withAddress1
Set the address1 property: First line of an Address.- Parameters:
address1- the address1 value to set.- Returns:
- the Address object itself.
-
address2
Get the address2 property: The second line of the Address. Optional.- Returns:
- the address2 value.
-
withAddress2
Set the address2 property: The second line of the Address. Optional.- Parameters:
address2- the address2 value to set.- Returns:
- the Address object itself.
-
city
Get the city property: The city for the address.- Returns:
- the city value.
-
withCity
Set the city property: The city for the address.- Parameters:
city- the city value to set.- Returns:
- the Address object itself.
-
country
Get the country property: The country for the address.- Returns:
- the country value.
-
withCountry
Set the country property: The country for the address.- Parameters:
country- the country value to set.- Returns:
- the Address object itself.
-
postalCode
Get the postalCode property: The postal code for the address.- Returns:
- the postalCode value.
-
withPostalCode
Set the postalCode property: The postal code for the address.- Parameters:
postalCode- the postalCode value to set.- Returns:
- the Address object itself.
-
state
Get the state property: The state or province for the address.- Returns:
- the state value.
-
withState
Set the state property: The state or province for the address.- Parameters:
state- the state value to set.- Returns:
- the Address object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Address>- Throws:
IOException
-
fromJson
Reads an instance of Address from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of Address if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the Address.
-