Package com.dropbox.core.v2.teamlog
Class RecipientsConfiguration
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.RecipientsConfiguration
-
public class RecipientsConfiguration extends java.lang.Object
Recipients Configuration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RecipientsConfiguration.Builder
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 Constructor Description RecipientsConfiguration()
Recipients ConfigurationRecipientsConfiguration(AlertRecipientsSettingType recipientSettingType, java.util.List<java.lang.String> emails, java.util.List<java.lang.String> groups)
Recipients Configuration
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.List<java.lang.String>
getEmails()
A list of user emails to notify.java.util.List<java.lang.String>
getGroups()
A list of groups to notify.AlertRecipientsSettingType
getRecipientSettingType()
Recipients setting type.int
hashCode()
static RecipientsConfiguration.Builder
newBuilder()
Returns a new builder for creating an instance of this class.java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.
-
-
-
Field Detail
-
recipientSettingType
protected final AlertRecipientsSettingType recipientSettingType
-
emails
protected final java.util.List<java.lang.String> emails
-
groups
protected final java.util.List<java.lang.String> groups
-
-
Constructor Detail
-
RecipientsConfiguration
public RecipientsConfiguration(AlertRecipientsSettingType recipientSettingType, java.util.List<java.lang.String> emails, java.util.List<java.lang.String> groups)
Recipients ConfigurationUse
newBuilder()
to create instances of this class without specifying values for all optional fields.- Parameters:
recipientSettingType
- Recipients setting type.emails
- A list of user emails to notify. Must not contain anull
item.groups
- A list of groups to notify. Must not contain anull
item.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
RecipientsConfiguration
public RecipientsConfiguration()
Recipients ConfigurationThe default values for unset fields will be used.
-
-
Method Detail
-
getRecipientSettingType
public AlertRecipientsSettingType getRecipientSettingType()
Recipients setting type.- Returns:
- value for this field, or
null
if not present.
-
getEmails
public java.util.List<java.lang.String> getEmails()
A list of user emails to notify.- Returns:
- value for this field, or
null
if not present.
-
getGroups
public java.util.List<java.lang.String> getGroups()
A list of groups to notify.- Returns:
- value for this field, or
null
if not present.
-
newBuilder
public static RecipientsConfiguration.Builder newBuilder()
Returns a new builder for creating an instance of this class.- Returns:
- builder for this class.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringMultiline
public java.lang.String toStringMultiline()
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-
-