ContactDetails Class
- java.
lang. Object - com.
azure. resourcemanager. databox. models. ContactDetails
- com.
Implements
public final class ContactDetails
implements JsonSerializable<ContactDetails>
Contact Details.
Constructor Summary
| Constructor | Description |
|---|---|
| ContactDetails() |
Creates an instance of Contact |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
contactName()
Get the contact |
| List<String> |
emailList()
Get the email |
|
static
Contact |
fromJson(JsonReader jsonReader)
Reads an instance of Contact |
| String |
mobile()
Get the mobile property: Mobile number of the contact person. |
|
List<Notification |
notificationPreference()
Get the notification |
| String |
phone()
Get the phone property: Phone number of the contact person. |
| String |
phoneExtension()
Get the phone |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Contact |
withContactName(String contactName)
Set the contact |
|
Contact |
withEmailList(List<String> emailList)
Set the email |
|
Contact |
withMobile(String mobile)
Set the mobile property: Mobile number of the contact person. |
|
Contact |
withNotificationPreference(List<NotificationPreference> notificationPreference)
Set the notification |
|
Contact |
withPhone(String phone)
Set the phone property: Phone number of the contact person. |
|
Contact |
withPhoneExtension(String phoneExtension)
Set the phone |
Methods inherited from java.lang.Object
Constructor Details
ContactDetails
public ContactDetails()
Creates an instance of ContactDetails class.
Method Details
contactName
public String contactName()
Get the contactName property: Contact name of the person.
Returns:
emailList
public List<String> emailList()
Get the emailList property: List of Email-ids to be notified about job progress.
Returns:
fromJson
public static ContactDetails fromJson(JsonReader jsonReader)
Reads an instance of ContactDetails from the JsonReader.
Parameters:
Returns:
Throws:
mobile
public String mobile()
Get the mobile property: Mobile number of the contact person.
Returns:
notificationPreference
public List<NotificationPreference> notificationPreference()
Get the notificationPreference property: Notification preference for a job stage.
Returns:
phone
public String phone()
Get the phone property: Phone number of the contact person.
Returns:
phoneExtension
public String phoneExtension()
Get the phoneExtension property: Phone extension number of the contact person.
Returns:
toJson
validate
public void validate()
Validates the instance.
withContactName
public ContactDetails withContactName(String contactName)
Set the contactName property: Contact name of the person.
Parameters:
Returns:
withEmailList
public ContactDetails withEmailList(List<String> emailList)
Set the emailList property: List of Email-ids to be notified about job progress.
Parameters:
Returns:
withMobile
public ContactDetails withMobile(String mobile)
Set the mobile property: Mobile number of the contact person.
Parameters:
Returns:
withNotificationPreference
public ContactDetails withNotificationPreference(List<NotificationPreference> notificationPreference)
Set the notificationPreference property: Notification preference for a job stage.
Parameters:
Returns:
withPhone
public ContactDetails withPhone(String phone)
Set the phone property: Phone number of the contact person.
Parameters:
Returns:
withPhoneExtension
public ContactDetails withPhoneExtension(String phoneExtension)
Set the phoneExtension property: Phone extension number of the contact person.
Parameters:
Returns: