Package com.dropbox.core.v2.teamlog
Class RecipientsConfiguration.Builder
java.lang.Object
com.dropbox.core.v2.teamlog.RecipientsConfiguration.Builder
- Enclosing class:
RecipientsConfiguration
Builder for
RecipientsConfiguration.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofRecipientsConfigurationconfigured with this builder's valueswithEmails(List<String> emails) Set value for optional field.withGroups(List<String> groups) Set value for optional field.withRecipientSettingType(AlertRecipientsSettingType recipientSettingType) Set value for optional field.
-
Field Details
-
recipientSettingType
-
emails
-
groups
-
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
withRecipientSettingType
public RecipientsConfiguration.Builder withRecipientSettingType(AlertRecipientsSettingType recipientSettingType) Set value for optional field.- Parameters:
recipientSettingType- Recipients setting type.- Returns:
- this builder
-
withEmails
Set value for optional field.- Parameters:
emails- A list of user emails to notify. Must not contain anullitem.- Returns:
- this builder
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
withGroups
Set value for optional field.- Parameters:
groups- A list of groups to notify. Must not contain anullitem.- Returns:
- this builder
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
build
Builds an instance ofRecipientsConfigurationconfigured with this builder's values- Returns:
- new instance of
RecipientsConfiguration
-