Package com.dropbox.core.v2.teamlog
Class RecipientsConfiguration.Builder
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.RecipientsConfiguration.Builder
-
- Enclosing class:
- RecipientsConfiguration
public static class RecipientsConfiguration.Builder extends java.lang.Object
Builder forRecipientsConfiguration
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.String>
emails
protected java.util.List<java.lang.String>
groups
protected AlertRecipientsSettingType
recipientSettingType
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecipientsConfiguration
build()
Builds an instance ofRecipientsConfiguration
configured with this builder's valuesRecipientsConfiguration.Builder
withEmails(java.util.List<java.lang.String> emails)
Set value for optional field.RecipientsConfiguration.Builder
withGroups(java.util.List<java.lang.String> groups)
Set value for optional field.RecipientsConfiguration.Builder
withRecipientSettingType(AlertRecipientsSettingType recipientSettingType)
Set value for optional field.
-
-
-
Field Detail
-
recipientSettingType
protected AlertRecipientsSettingType recipientSettingType
-
emails
protected java.util.List<java.lang.String> emails
-
groups
protected java.util.List<java.lang.String> groups
-
-
Method Detail
-
withRecipientSettingType
public RecipientsConfiguration.Builder withRecipientSettingType(AlertRecipientsSettingType recipientSettingType)
Set value for optional field.- Parameters:
recipientSettingType
- Recipients setting type.- Returns:
- this builder
-
withEmails
public RecipientsConfiguration.Builder withEmails(java.util.List<java.lang.String> emails)
Set value for optional field.- Parameters:
emails
- A list of user emails to notify. Must not contain anull
item.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withGroups
public RecipientsConfiguration.Builder withGroups(java.util.List<java.lang.String> groups)
Set value for optional field.- Parameters:
groups
- A list of groups to notify. Must not contain anull
item.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
build
public RecipientsConfiguration build()
Builds an instance ofRecipientsConfiguration
configured with this builder's values- Returns:
- new instance of
RecipientsConfiguration
-
-