Contact Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. Contact
- com.
Implements
public final class Contact
implements 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
Constructor | Description |
---|---|
Contact() |
Creates an instance of Contact class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Address |
addressMailing()
Get the address |
String |
email()
Get the email property: Email address. |
String |
fax()
Get the fax property: Fax number. |
static Contact |
fromJson(JsonReader jsonReader)
Reads an instance of Contact from the Json |
String |
jobTitle()
Get the job |
String |
nameFirst()
Get the name |
String |
nameLast()
Get the name |
String |
nameMiddle()
Get the name |
String |
organization()
Get the organization property: Organization contact belongs to. |
String |
phone()
Get the phone property: Phone number. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Contact |
withAddressMailing(Address addressMailing)
Set the address |
Contact |
withEmail(String email)
Set the email property: Email address. |
Contact |
withFax(String fax)
Set the fax property: Fax number. |
Contact |
withJobTitle(String jobTitle)
Set the job |
Contact |
withNameFirst(String nameFirst)
Set the name |
Contact |
withNameLast(String nameLast)
Set the name |
Contact |
withNameMiddle(String nameMiddle)
Set the name |
Contact |
withOrganization(String organization)
Set the organization property: Organization contact belongs to. |
Contact |
withPhone(String phone)
Set the phone property: Phone number. |
Methods inherited from java.lang.Object
Constructor Details
Contact
public Contact()
Creates an instance of Contact class.
Method Details
addressMailing
public Address addressMailing()
Get the addressMailing property: Mailing address.
Returns:
public String email()
Get the email property: Email address.
Returns:
fax
public String fax()
Get the fax property: Fax number.
Returns:
fromJson
public static Contact fromJson(JsonReader jsonReader)
Reads an instance of Contact from the JsonReader.
Parameters:
Returns:
Throws:
jobTitle
public String jobTitle()
Get the jobTitle property: Job title.
Returns:
nameFirst
public String nameFirst()
Get the nameFirst property: First name.
Returns:
nameLast
public String nameLast()
Get the nameLast property: Last name.
Returns:
nameMiddle
public String nameMiddle()
Get the nameMiddle property: Middle name.
Returns:
organization
public String organization()
Get the organization property: Organization contact belongs to.
Returns:
phone
public String phone()
Get the phone property: Phone number.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAddressMailing
public Contact withAddressMailing(Address addressMailing)
Set the addressMailing property: Mailing address.
Parameters:
Returns:
withEmail
public Contact withEmail(String email)
Set the email property: Email address.
Parameters:
Returns:
withFax
public Contact withFax(String fax)
Set the fax property: Fax number.
Parameters:
Returns:
withJobTitle
public Contact withJobTitle(String jobTitle)
Set the jobTitle property: Job title.
Parameters:
Returns:
withNameFirst
public Contact withNameFirst(String nameFirst)
Set the nameFirst property: First name.
Parameters:
Returns:
withNameLast
public Contact withNameLast(String nameLast)
Set the nameLast property: Last name.
Parameters:
Returns:
withNameMiddle
public Contact withNameMiddle(String nameMiddle)
Set the nameMiddle property: Middle name.
Parameters:
Returns:
withOrganization
public Contact withOrganization(String organization)
Set the organization property: Organization contact belongs to.
Parameters:
Returns:
withPhone
public Contact withPhone(String phone)
Set the phone property: Phone number.
Parameters:
Returns:
Applies to
Azure SDK for Java