public final class GroupMembersAddError
extends java.lang.Object
isAbc() methods will
return true. You can use tag() to determine the tag
associated with this instance.| Modifier and Type | Class and Description |
|---|---|
static class |
GroupMembersAddError.Tag
Discriminating tag type for
GroupMembersAddError. |
| Modifier and Type | Field and Description |
|---|---|
static GroupMembersAddError |
DUPLICATE_USER
You cannot add duplicate users.
|
static GroupMembersAddError |
GROUP_NOT_FOUND
No matching group found.
|
static GroupMembersAddError |
GROUP_NOT_IN_TEAM
Group is not in this team.
|
static GroupMembersAddError |
OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.
|
static GroupMembersAddError |
SYSTEM_MANAGED_GROUP_DISALLOWED
This operation is not supported on system-managed groups.
|
static GroupMembersAddError |
USER_MUST_BE_ACTIVE_TO_BE_OWNER
A suspended user cannot be added to a group as
GroupAccessType.OWNER. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getMembersNotInTeamValue()
These members are not part of your team.
|
java.util.List<java.lang.String> |
getUserCannotBeManagerOfCompanyManagedGroupValue()
A company-managed group cannot be managed by a user.
|
java.util.List<java.lang.String> |
getUsersNotFoundValue()
These users were not found in Dropbox.
|
int |
hashCode() |
boolean |
isDuplicateUser()
|
boolean |
isGroupNotFound()
Returns
true if this instance has the tag GroupMembersAddError.Tag.GROUP_NOT_FOUND, false otherwise. |
boolean |
isGroupNotInTeam()
Returns
true if this instance has the tag GroupMembersAddError.Tag.GROUP_NOT_IN_TEAM, false otherwise. |
boolean |
isMembersNotInTeam()
Returns
true if this instance has the tag GroupMembersAddError.Tag.MEMBERS_NOT_IN_TEAM, false otherwise. |
boolean |
isOther()
|
boolean |
isSystemManagedGroupDisallowed()
Returns
true if this instance has the tag GroupMembersAddError.Tag.SYSTEM_MANAGED_GROUP_DISALLOWED, false otherwise. |
boolean |
isUserCannotBeManagerOfCompanyManagedGroup()
Returns
true if this instance has the tag GroupMembersAddError.Tag.USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP, false
otherwise. |
boolean |
isUserMustBeActiveToBeOwner()
Returns
true if this instance has the tag GroupMembersAddError.Tag.USER_MUST_BE_ACTIVE_TO_BE_OWNER, false otherwise. |
boolean |
isUsersNotFound()
Returns
true if this instance has the tag GroupMembersAddError.Tag.USERS_NOT_FOUND, false otherwise. |
static GroupMembersAddError |
membersNotInTeam(java.util.List<java.lang.String> value)
Returns an instance of
GroupMembersAddError that has its tag set
to GroupMembersAddError.Tag.MEMBERS_NOT_IN_TEAM. |
GroupMembersAddError.Tag |
tag()
Returns the tag for this instance.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
static GroupMembersAddError |
userCannotBeManagerOfCompanyManagedGroup(java.util.List<java.lang.String> value)
Returns an instance of
GroupMembersAddError that has its tag set
to GroupMembersAddError.Tag.USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP. |
static GroupMembersAddError |
usersNotFound(java.util.List<java.lang.String> value)
Returns an instance of
GroupMembersAddError that has its tag set
to GroupMembersAddError.Tag.USERS_NOT_FOUND. |
public static final GroupMembersAddError GROUP_NOT_FOUND
public static final GroupMembersAddError OTHER
Receiving a catch-all value typically indicates this SDK version is not up to date. Consider updating your SDK version to handle the new tags.
public static final GroupMembersAddError SYSTEM_MANAGED_GROUP_DISALLOWED
public static final GroupMembersAddError DUPLICATE_USER
public static final GroupMembersAddError GROUP_NOT_IN_TEAM
public static final GroupMembersAddError USER_MUST_BE_ACTIVE_TO_BE_OWNER
GroupAccessType.OWNER.public GroupMembersAddError.Tag tag()
This class is a tagged union. Tagged unions instances are always
associated to a specific tag. This means only one of the isXyz()
methods will return true. Callers are recommended to use the tag
value in a switch statement to properly handle the different
values for this GroupMembersAddError.
public boolean isGroupNotFound()
true if this instance has the tag GroupMembersAddError.Tag.GROUP_NOT_FOUND, false otherwise.true if this instance is tagged as GroupMembersAddError.Tag.GROUP_NOT_FOUND, false otherwise.public boolean isOther()
true if this instance is tagged as GroupMembersAddError.Tag.OTHER,
false otherwise.public boolean isSystemManagedGroupDisallowed()
true if this instance has the tag GroupMembersAddError.Tag.SYSTEM_MANAGED_GROUP_DISALLOWED, false otherwise.true if this instance is tagged as GroupMembersAddError.Tag.SYSTEM_MANAGED_GROUP_DISALLOWED, false otherwise.public boolean isDuplicateUser()
true if this instance is tagged as GroupMembersAddError.Tag.DUPLICATE_USER, false otherwise.public boolean isGroupNotInTeam()
true if this instance has the tag GroupMembersAddError.Tag.GROUP_NOT_IN_TEAM, false otherwise.true if this instance is tagged as GroupMembersAddError.Tag.GROUP_NOT_IN_TEAM, false otherwise.public boolean isMembersNotInTeam()
true if this instance has the tag GroupMembersAddError.Tag.MEMBERS_NOT_IN_TEAM, false otherwise.true if this instance is tagged as GroupMembersAddError.Tag.MEMBERS_NOT_IN_TEAM, false otherwise.public static GroupMembersAddError membersNotInTeam(java.util.List<java.lang.String> value)
GroupMembersAddError that has its tag set
to GroupMembersAddError.Tag.MEMBERS_NOT_IN_TEAM.
These members are not part of your team. Currently, you cannot add
members to a group if they are not part of your team, though this may
change in a subsequent version. To add new members to your Dropbox
Business team, use the DbxTeamTeamRequests.membersAdd(List,boolean) endpoint.
value - value to assign to this instance.GroupMembersAddError with its tag set to
GroupMembersAddError.Tag.MEMBERS_NOT_IN_TEAM.java.lang.IllegalArgumentException - if value contains a null item or is null.public java.util.List<java.lang.String> getMembersNotInTeamValue()
DbxTeamTeamRequests.membersAdd(List,boolean) endpoint.
This instance must be tagged as GroupMembersAddError.Tag.MEMBERS_NOT_IN_TEAM.
List value associated with this instance if isMembersNotInTeam() is true.java.lang.IllegalStateException - If isMembersNotInTeam() is false.public boolean isUsersNotFound()
true if this instance has the tag GroupMembersAddError.Tag.USERS_NOT_FOUND, false otherwise.true if this instance is tagged as GroupMembersAddError.Tag.USERS_NOT_FOUND, false otherwise.public static GroupMembersAddError usersNotFound(java.util.List<java.lang.String> value)
GroupMembersAddError that has its tag set
to GroupMembersAddError.Tag.USERS_NOT_FOUND.
These users were not found in Dropbox.
value - value to assign to this instance.GroupMembersAddError with its tag set to
GroupMembersAddError.Tag.USERS_NOT_FOUND.java.lang.IllegalArgumentException - if value contains a null item or is null.public java.util.List<java.lang.String> getUsersNotFoundValue()
This instance must be tagged as GroupMembersAddError.Tag.USERS_NOT_FOUND.
List value associated with this instance if isUsersNotFound() is true.java.lang.IllegalStateException - If isUsersNotFound() is false.public boolean isUserMustBeActiveToBeOwner()
true if this instance has the tag GroupMembersAddError.Tag.USER_MUST_BE_ACTIVE_TO_BE_OWNER, false otherwise.true if this instance is tagged as GroupMembersAddError.Tag.USER_MUST_BE_ACTIVE_TO_BE_OWNER, false otherwise.public boolean isUserCannotBeManagerOfCompanyManagedGroup()
true if this instance has the tag GroupMembersAddError.Tag.USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP, false
otherwise.true if this instance is tagged as GroupMembersAddError.Tag.USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP, false
otherwise.public static GroupMembersAddError userCannotBeManagerOfCompanyManagedGroup(java.util.List<java.lang.String> value)
GroupMembersAddError that has its tag set
to GroupMembersAddError.Tag.USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP.
A company-managed group cannot be managed by a user.
value - value to assign to this instance.GroupMembersAddError with its tag set to
GroupMembersAddError.Tag.USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP.java.lang.IllegalArgumentException - if value contains a null item or is null.public java.util.List<java.lang.String> getUserCannotBeManagerOfCompanyManagedGroupValue()
This instance must be tagged as GroupMembersAddError.Tag.USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP.
List value associated with this instance if isUserCannotBeManagerOfCompanyManagedGroup() is true.java.lang.IllegalStateException - If isUserCannotBeManagerOfCompanyManagedGroup() is false.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringMultiline()
The returned String may contain newlines.