ContactDetail Class
- java.
lang. Object - com.
azure. resourcemanager. peering. models. ContactDetail
- com.
Implements
public final class ContactDetail
implements JsonSerializable<ContactDetail>
The contact detail class.
Constructor Summary
| Constructor | Description |
|---|---|
| ContactDetail() |
Creates an instance of Contact |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
email()
Get the email property: The e-mail address of the contact. |
|
static
Contact |
fromJson(JsonReader jsonReader)
Reads an instance of Contact |
| String |
phone()
Get the phone property: The phone number of the contact. |
| Role |
role()
Get the role property: The role of the contact. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Contact |
withEmail(String email)
Set the email property: The e-mail address of the contact. |
|
Contact |
withPhone(String phone)
Set the phone property: The phone number of the contact. |
|
Contact |
withRole(Role role)
Set the role property: The role of the contact. |
Methods inherited from java.lang.Object
Constructor Details
ContactDetail
public ContactDetail()
Creates an instance of ContactDetail class.
Method Details
public String email()
Get the email property: The e-mail address of the contact.
Returns:
fromJson
public static ContactDetail fromJson(JsonReader jsonReader)
Reads an instance of ContactDetail from the JsonReader.
Parameters:
Returns:
Throws:
phone
public String phone()
Get the phone property: The phone number of the contact.
Returns:
role
public Role role()
Get the role property: The role of the contact.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEmail
public ContactDetail withEmail(String email)
Set the email property: The e-mail address of the contact.
Parameters:
Returns:
withPhone
public ContactDetail withPhone(String phone)
Set the phone property: The phone number of the contact.
Parameters:
Returns:
withRole
public ContactDetail withRole(Role role)
Set the role property: The role of the contact.
Parameters:
Returns: