Class Contact
java.lang.Object
com.azure.resourcemanager.appservice.models.Contact
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Contact>
-
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 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
-
email
-
withEmail
-
fax
-
withFax
-
jobTitle
-
withJobTitle
-
nameFirst
-
withNameFirst
-
nameLast
-
withNameLast
-
nameMiddle
-
withNameMiddle
-
organization
Get the organization property: Organization contact belongs to.- Returns:
- the organization value.
-
withOrganization
-
phone
-
withPhone
-
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.
-