Class Contact
java.lang.Object
com.azure.resourcemanager.appservice.models.Contact
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Contact>
Contact information for domain registration. If 'Domain Privacy' option is not selected then the contact information
is made publicly available through the Whois
directories as per ICANN requirements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the addressMailing property: Mailing address.email()Get the email property: Email address.fax()Get the fax property: Fax number.static ContactfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Contact from the JsonReader.jobTitle()Get the jobTitle property: Job title.Get the nameFirst property: First name.nameLast()Get the nameLast property: Last name.Get the nameMiddle property: Middle name.Get the organization property: Organization contact belongs to.phone()Get the phone property: Phone number.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAddressMailing(Address addressMailing) Set the addressMailing property: Mailing address.Set the email property: Email address.Set the fax property: Fax number.withJobTitle(String jobTitle) Set the jobTitle property: Job title.withNameFirst(String nameFirst) Set the nameFirst property: First name.withNameLast(String nameLast) Set the nameLast property: Last name.withNameMiddle(String nameMiddle) Set the nameMiddle property: Middle name.withOrganization(String organization) Set the organization property: Organization contact belongs to.Set the phone property: Phone number.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
-
Contact
public Contact()Creates an instance of Contact class.
-
-
Method Details
-
addressMailing
Get the addressMailing property: Mailing address.- Returns:
- the addressMailing value.
-
withAddressMailing
Set the addressMailing property: Mailing address.- Parameters:
addressMailing- the addressMailing value to set.- Returns:
- the Contact object itself.
-
email
Get the email property: Email address.- Returns:
- the email value.
-
withEmail
Set the email property: Email address.- Parameters:
email- the email value to set.- Returns:
- the Contact object itself.
-
fax
Get the fax property: Fax number.- Returns:
- the fax value.
-
withFax
Set the fax property: Fax number.- Parameters:
fax- the fax value to set.- Returns:
- the Contact object itself.
-
jobTitle
Get the jobTitle property: Job title.- Returns:
- the jobTitle value.
-
withJobTitle
Set the jobTitle property: Job title.- Parameters:
jobTitle- the jobTitle value to set.- Returns:
- the Contact object itself.
-
nameFirst
Get the nameFirst property: First name.- Returns:
- the nameFirst value.
-
withNameFirst
Set the nameFirst property: First name.- Parameters:
nameFirst- the nameFirst value to set.- Returns:
- the Contact object itself.
-
nameLast
Get the nameLast property: Last name.- Returns:
- the nameLast value.
-
withNameLast
Set the nameLast property: Last name.- Parameters:
nameLast- the nameLast value to set.- Returns:
- the Contact object itself.
-
nameMiddle
Get the nameMiddle property: Middle name.- Returns:
- the nameMiddle value.
-
withNameMiddle
Set the nameMiddle property: Middle name.- Parameters:
nameMiddle- the nameMiddle value to set.- Returns:
- the Contact object itself.
-
organization
Get the organization property: Organization contact belongs to.- Returns:
- the organization value.
-
withOrganization
Set the organization property: Organization contact belongs to.- Parameters:
organization- the organization value to set.- Returns:
- the Contact object itself.
-
phone
Get the phone property: Phone number.- Returns:
- the phone value.
-
withPhone
Set the phone property: Phone number.- Parameters:
phone- the phone value to set.- Returns:
- the Contact 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<Contact>- Throws:
IOException
-
fromJson
Reads an instance of Contact from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of Contact 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 Contact.
-