public final class EmailNotificationHook extends NotificationHook
Constructor and Description |
---|
EmailNotificationHook(String name)
Create a new instance of EmailNotificationHook.
|
EmailNotificationHook(String name,
List<String> emails)
Create a new instance of EmailNotificationHook.
|
Modifier and Type | Method and Description |
---|---|
EmailNotificationHook |
addEmailToAlert(String email)
Add an email to the list of emails to send the alert.
|
String |
getDescription()
Gets the description for the Notification hook.
|
List<String> |
getEmailsToAlert()
Gets the emails to send the alerts.
|
String |
getExternalLink()
Gets the customized external link which is displayed in the title bar of the alert email.
|
String |
getName()
Gets the name for the Notification hook.
|
EmailNotificationHook |
removeEmailToAlert(String email)
Removes an email from the list of alert emails.
|
EmailNotificationHook |
setDescription(String description)
Sets email hook description.
|
EmailNotificationHook |
setEmailsToAlert(List<String> emails)
Sets the emails to send the alert.
|
EmailNotificationHook |
setExternalLink(String externalLink)
Sets the customized external link which is displayed in the title bar of the alert email.
|
EmailNotificationHook |
setName(String name)
Sets email hook name.
|
getAdminEmails, getId
public EmailNotificationHook(String name)
name
- The email hook name.public String getName()
NotificationHook
getName
in class NotificationHook
public String getDescription()
NotificationHook
getDescription
in class NotificationHook
public List<String> getEmailsToAlert()
public String getExternalLink()
public EmailNotificationHook setEmailsToAlert(List<String> emails)
emails
- The emails.public EmailNotificationHook addEmailToAlert(String email)
email
- The email to add.public EmailNotificationHook removeEmailToAlert(String email)
email
- The email to remove.public EmailNotificationHook setName(String name)
name
- The email hook name.public EmailNotificationHook setDescription(String description)
description
- The email hook description.public EmailNotificationHook setExternalLink(String externalLink)
externalLink
- The customized link.Copyright © 2021 Microsoft Corporation. All rights reserved.