ContactDetails Class

  • java.lang.Object
    • com.azure.resourcemanager.databox.models.ContactDetails

Implements

public final class ContactDetails
implements JsonSerializable<ContactDetails>

Contact Details.

Constructor Summary

Constructor Description
ContactDetails()

Creates an instance of ContactDetails class.

Method Summary

Modifier and Type Method and Description
String contactName()

Get the contactName property: Contact name of the person.

List<String> emailList()

Get the emailList property: List of Email-ids to be notified about job progress.

static ContactDetails fromJson(JsonReader jsonReader)

Reads an instance of ContactDetails from the JsonReader.

String mobile()

Get the mobile property: Mobile number of the contact person.

List<NotificationPreference> notificationPreference()

Get the notificationPreference property: Notification preference for a job stage.

String phone()

Get the phone property: Phone number of the contact person.

String phoneExtension()

Get the phoneExtension property: Phone extension number of the contact person.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ContactDetails withContactName(String contactName)

Set the contactName property: Contact name of the person.

ContactDetails withEmailList(List<String> emailList)

Set the emailList property: List of Email-ids to be notified about job progress.

ContactDetails withMobile(String mobile)

Set the mobile property: Mobile number of the contact person.

ContactDetails withNotificationPreference(List<NotificationPreference> notificationPreference)

Set the notificationPreference property: Notification preference for a job stage.

ContactDetails withPhone(String phone)

Set the phone property: Phone number of the contact person.

ContactDetails withPhoneExtension(String phoneExtension)

Set the phoneExtension property: Phone extension number of the contact person.

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:

the contactName value.

emailList

public List<String> emailList()

Get the emailList property: List of Email-ids to be notified about job progress.

Returns:

the emailList value.

fromJson

public static ContactDetails fromJson(JsonReader jsonReader)

Reads an instance of ContactDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ContactDetails 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.

mobile

public String mobile()

Get the mobile property: Mobile number of the contact person.

Returns:

the mobile value.

notificationPreference

public List<NotificationPreference> notificationPreference()

Get the notificationPreference property: Notification preference for a job stage.

Returns:

the notificationPreference value.

phone

public String phone()

Get the phone property: Phone number of the contact person.

Returns:

the phone value.

phoneExtension

public String phoneExtension()

Get the phoneExtension property: Phone extension number of the contact person.

Returns:

the phoneExtension value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withContactName

public ContactDetails withContactName(String contactName)

Set the contactName property: Contact name of the person.

Parameters:

contactName - the contactName value to set.

Returns:

the ContactDetails object itself.

withEmailList

public ContactDetails withEmailList(List<String> emailList)

Set the emailList property: List of Email-ids to be notified about job progress.

Parameters:

emailList - the emailList value to set.

Returns:

the ContactDetails object itself.

withMobile

public ContactDetails withMobile(String mobile)

Set the mobile property: Mobile number of the contact person.

Parameters:

mobile - the mobile value to set.

Returns:

the ContactDetails object itself.

withNotificationPreference

public ContactDetails withNotificationPreference(List<NotificationPreference> notificationPreference)

Set the notificationPreference property: Notification preference for a job stage.

Parameters:

notificationPreference - the notificationPreference value to set.

Returns:

the ContactDetails object itself.

withPhone

public ContactDetails withPhone(String phone)

Set the phone property: Phone number of the contact person.

Parameters:

phone - the phone value to set.

Returns:

the ContactDetails object itself.

withPhoneExtension

public ContactDetails withPhoneExtension(String phoneExtension)

Set the phoneExtension property: Phone extension number of the contact person.

Parameters:

phoneExtension - the phoneExtension value to set.

Returns:

the ContactDetails object itself.

Applies to