다음을 통해 공유


Contact Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.Contact

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 addressMailing property: Mailing 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 JsonReader.

String jobTitle()

Get the jobTitle property: Job title.

String nameFirst()

Get the nameFirst property: First name.

String nameLast()

Get the nameLast property: Last name.

String nameMiddle()

Get the nameMiddle property: Middle name.

String organization()

Get the organization property: Organization contact belongs to.

String phone()

Get the phone property: Phone number.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Contact withAddressMailing(Address addressMailing)

Set the addressMailing property: Mailing 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 jobTitle property: Job title.

Contact withNameFirst(String nameFirst)

Set the nameFirst property: First name.

Contact withNameLast(String nameLast)

Set the nameLast property: Last name.

Contact withNameMiddle(String nameMiddle)

Set the nameMiddle property: Middle 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:

the addressMailing value.

email

public String email()

Get the email property: Email address.

Returns:

the email value.

fax

public String fax()

Get the fax property: Fax number.

Returns:

the fax value.

fromJson

public static Contact fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

jobTitle

public String jobTitle()

Get the jobTitle property: Job title.

Returns:

the jobTitle value.

nameFirst

public String nameFirst()

Get the nameFirst property: First name.

Returns:

the nameFirst value.

nameLast

public String nameLast()

Get the nameLast property: Last name.

Returns:

the nameLast value.

nameMiddle

public String nameMiddle()

Get the nameMiddle property: Middle name.

Returns:

the nameMiddle value.

organization

public String organization()

Get the organization property: Organization contact belongs to.

Returns:

the organization value.

phone

public String phone()

Get the phone property: Phone number.

Returns:

the phone value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAddressMailing

public Contact withAddressMailing(Address addressMailing)

Set the addressMailing property: Mailing address.

Parameters:

addressMailing - the addressMailing value to set.

Returns:

the Contact object itself.

withEmail

public Contact withEmail(String email)

Set the email property: Email address.

Parameters:

email - the email value to set.

Returns:

the Contact object itself.

withFax

public Contact withFax(String fax)

Set the fax property: Fax number.

Parameters:

fax - the fax value to set.

Returns:

the Contact object itself.

withJobTitle

public Contact withJobTitle(String jobTitle)

Set the jobTitle property: Job title.

Parameters:

jobTitle - the jobTitle value to set.

Returns:

the Contact object itself.

withNameFirst

public Contact withNameFirst(String nameFirst)

Set the nameFirst property: First name.

Parameters:

nameFirst - the nameFirst value to set.

Returns:

the Contact object itself.

withNameLast

public Contact withNameLast(String nameLast)

Set the nameLast property: Last name.

Parameters:

nameLast - the nameLast value to set.

Returns:

the Contact object itself.

withNameMiddle

public Contact withNameMiddle(String nameMiddle)

Set the nameMiddle property: Middle name.

Parameters:

nameMiddle - the nameMiddle value to set.

Returns:

the Contact object itself.

withOrganization

public Contact withOrganization(String organization)

Set the organization property: Organization contact belongs to.

Parameters:

organization - the organization value to set.

Returns:

the Contact object itself.

withPhone

public Contact withPhone(String phone)

Set the phone property: Phone number.

Parameters:

phone - the phone value to set.

Returns:

the Contact object itself.

Applies to