Class Recipients

java.lang.Object
com.redhat.cloud.event.core.v1.Recipients

public class Recipients extends Object
Notification recipients. Should be in a top-level field named "notification_recipients"
  • Constructor Details

    • Recipients

      public Recipients()
  • Method Details

    • getEmails

      public String[] 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

      public void setEmails(String[] value)
    • getIgnoreUserPreferences

      public Boolean 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

      public void setIgnoreUserPreferences(Boolean value)
    • getOnlyAdmins

      public Boolean 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

      public void setOnlyAdmins(Boolean value)
    • getUsers

      public String[] 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

      public void setUsers(String[] value)