public final class GroupMembersRemoveError
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 |
GroupMembersRemoveError.Tag
Discriminating tag type for
GroupMembersRemoveError. |
| Modifier and Type | Field and Description |
|---|---|
static GroupMembersRemoveError |
GROUP_NOT_FOUND
No matching group found.
|
static GroupMembersRemoveError |
GROUP_NOT_IN_TEAM
Group is not in this team.
|
static GroupMembersRemoveError |
MEMBER_NOT_IN_GROUP
At least one of the specified users is not a member of the group.
|
static GroupMembersRemoveError |
OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.
|
static GroupMembersRemoveError |
SYSTEM_MANAGED_GROUP_DISALLOWED
This operation is not supported on system-managed groups.
|
| 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> |
getUsersNotFoundValue()
These users were not found in Dropbox.
|
int |
hashCode() |
boolean |
isGroupNotFound()
Returns
true if this instance has the tag GroupMembersRemoveError.Tag.GROUP_NOT_FOUND, false otherwise. |
boolean |
isGroupNotInTeam()
Returns
true if this instance has the tag GroupMembersRemoveError.Tag.GROUP_NOT_IN_TEAM, false otherwise. |
boolean |
isMemberNotInGroup()
Returns
true if this instance has the tag GroupMembersRemoveError.Tag.MEMBER_NOT_IN_GROUP, false otherwise. |
boolean |
isMembersNotInTeam()
Returns
true if this instance has the tag GroupMembersRemoveError.Tag.MEMBERS_NOT_IN_TEAM, false otherwise. |
boolean |
isOther()
|
boolean |
isSystemManagedGroupDisallowed()
Returns
true if this instance has the tag GroupMembersRemoveError.Tag.SYSTEM_MANAGED_GROUP_DISALLOWED, false otherwise. |
boolean |
isUsersNotFound()
Returns
true if this instance has the tag GroupMembersRemoveError.Tag.USERS_NOT_FOUND, false otherwise. |
static GroupMembersRemoveError |
membersNotInTeam(java.util.List<java.lang.String> value)
Returns an instance of
GroupMembersRemoveError that has its tag
set to GroupMembersRemoveError.Tag.MEMBERS_NOT_IN_TEAM. |
GroupMembersRemoveError.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 GroupMembersRemoveError |
usersNotFound(java.util.List<java.lang.String> value)
Returns an instance of
GroupMembersRemoveError that has its tag
set to GroupMembersRemoveError.Tag.USERS_NOT_FOUND. |
public static final GroupMembersRemoveError GROUP_NOT_FOUND
public static final GroupMembersRemoveError 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 GroupMembersRemoveError SYSTEM_MANAGED_GROUP_DISALLOWED
public static final GroupMembersRemoveError MEMBER_NOT_IN_GROUP
public static final GroupMembersRemoveError GROUP_NOT_IN_TEAM
public GroupMembersRemoveError.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 GroupMembersRemoveError.
public boolean isGroupNotFound()
true if this instance has the tag GroupMembersRemoveError.Tag.GROUP_NOT_FOUND, false otherwise.true if this instance is tagged as GroupMembersRemoveError.Tag.GROUP_NOT_FOUND, false otherwise.public boolean isOther()
true if this instance is tagged as GroupMembersRemoveError.Tag.OTHER,
false otherwise.public boolean isSystemManagedGroupDisallowed()
true if this instance has the tag GroupMembersRemoveError.Tag.SYSTEM_MANAGED_GROUP_DISALLOWED, false otherwise.true if this instance is tagged as GroupMembersRemoveError.Tag.SYSTEM_MANAGED_GROUP_DISALLOWED, false otherwise.public boolean isMemberNotInGroup()
true if this instance has the tag GroupMembersRemoveError.Tag.MEMBER_NOT_IN_GROUP, false otherwise.true if this instance is tagged as GroupMembersRemoveError.Tag.MEMBER_NOT_IN_GROUP, false otherwise.public boolean isGroupNotInTeam()
true if this instance has the tag GroupMembersRemoveError.Tag.GROUP_NOT_IN_TEAM, false otherwise.true if this instance is tagged as GroupMembersRemoveError.Tag.GROUP_NOT_IN_TEAM, false otherwise.public boolean isMembersNotInTeam()
true if this instance has the tag GroupMembersRemoveError.Tag.MEMBERS_NOT_IN_TEAM, false otherwise.true if this instance is tagged as GroupMembersRemoveError.Tag.MEMBERS_NOT_IN_TEAM, false otherwise.public static GroupMembersRemoveError membersNotInTeam(java.util.List<java.lang.String> value)
GroupMembersRemoveError that has its tag
set to GroupMembersRemoveError.Tag.MEMBERS_NOT_IN_TEAM.
These members are not part of your team.
value - value to assign to this instance.GroupMembersRemoveError with its tag set to
GroupMembersRemoveError.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()
This instance must be tagged as GroupMembersRemoveError.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 GroupMembersRemoveError.Tag.USERS_NOT_FOUND, false otherwise.true if this instance is tagged as GroupMembersRemoveError.Tag.USERS_NOT_FOUND, false otherwise.public static GroupMembersRemoveError usersNotFound(java.util.List<java.lang.String> value)
GroupMembersRemoveError that has its tag
set to GroupMembersRemoveError.Tag.USERS_NOT_FOUND.
These users were not found in Dropbox.
value - value to assign to this instance.GroupMembersRemoveError with its tag set to
GroupMembersRemoveError.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 GroupMembersRemoveError.Tag.USERS_NOT_FOUND.
List value associated with this instance if isUsersNotFound() is true.java.lang.IllegalStateException - If isUsersNotFound() 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.