Package com.redhat.cloud.event.core.v1
Class Recipients
java.lang.Object
com.redhat.cloud.event.core.v1.Recipients
Notification recipients. Should be in a top-level field named "notification_recipients"
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
List of emails to direct the notification to.Setting to true ignores all the user preferences on this Recipient setting (It doesn’t affect other configuration that an Administrator sets on their Notification settings).Setting to true sends an email to the administrators of the account.String[]
getUsers()
List of users to direct the notification to.void
void
setIgnoreUserPreferences
(Boolean value) void
setOnlyAdmins
(Boolean value) void
-
Constructor Details
-
Recipients
public Recipients()
-
-
Method Details
-
getEmails
List of emails to direct the notification to. This won’t override notification's administrators settings. Emails list will be merged with other settings. Subscription settings do not work with emails. Therefore, emails should only be used to send notifications to mailing lists or email addresses that do not belong to the current org. Prefer using the users field for any other use cases. -
setEmails
-
getIgnoreUserPreferences
Setting to true ignores all the user preferences on this Recipient setting (It doesn’t affect other configuration that an Administrator sets on their Notification settings). Setting to false honors the user preferences. -
setIgnoreUserPreferences
-
getOnlyAdmins
Setting to true sends an email to the administrators of the account. Setting to false sends an email to all users of the account. -
setOnlyAdmins
-
getUsers
List of users to direct the notification to. This won’t override notification's administrators settings. If this list is present and not empty, users from the org who are not included in the list will not receive the notification. -
setUsers
-