Package com.dropbox.core.v2.team
Class GroupMembersRemoveError
- java.lang.Object
-
- com.dropbox.core.v2.team.GroupMembersRemoveError
-
public final class GroupMembersRemoveError extends java.lang.Object
This class is a tagged union. Tagged unions instances are always associated to a specific tag. This means only one of theisAbc()
methods will returntrue
. You can usetag()
to determine the tag associated with this instance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GroupMembersRemoveError.Tag
Discriminating tag type forGroupMembersRemoveError
.
-
Field Summary
Fields Modifier and Type Field 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.
-
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>
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()
Returnstrue
if this instance has the tagGroupMembersRemoveError.Tag.GROUP_NOT_FOUND
,false
otherwise.boolean
isGroupNotInTeam()
Returnstrue
if this instance has the tagGroupMembersRemoveError.Tag.GROUP_NOT_IN_TEAM
,false
otherwise.boolean
isMemberNotInGroup()
Returnstrue
if this instance has the tagGroupMembersRemoveError.Tag.MEMBER_NOT_IN_GROUP
,false
otherwise.boolean
isMembersNotInTeam()
Returnstrue
if this instance has the tagGroupMembersRemoveError.Tag.MEMBERS_NOT_IN_TEAM
,false
otherwise.boolean
isOther()
boolean
isSystemManagedGroupDisallowed()
Returnstrue
if this instance has the tagGroupMembersRemoveError.Tag.SYSTEM_MANAGED_GROUP_DISALLOWED
,false
otherwise.boolean
isUsersNotFound()
Returnstrue
if this instance has the tagGroupMembersRemoveError.Tag.USERS_NOT_FOUND
,false
otherwise.static GroupMembersRemoveError
membersNotInTeam(java.util.List<java.lang.String> value)
Returns an instance ofGroupMembersRemoveError
that has its tag set toGroupMembersRemoveError.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 ofGroupMembersRemoveError
that has its tag set toGroupMembersRemoveError.Tag.USERS_NOT_FOUND
.
-
-
-
Field Detail
-
GROUP_NOT_FOUND
public static final GroupMembersRemoveError GROUP_NOT_FOUND
No matching group found. No groups match the specified group ID.
-
OTHER
public static final GroupMembersRemoveError OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.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.
-
SYSTEM_MANAGED_GROUP_DISALLOWED
public static final GroupMembersRemoveError SYSTEM_MANAGED_GROUP_DISALLOWED
This operation is not supported on system-managed groups.
-
MEMBER_NOT_IN_GROUP
public static final GroupMembersRemoveError MEMBER_NOT_IN_GROUP
At least one of the specified users is not a member of the group.
-
GROUP_NOT_IN_TEAM
public static final GroupMembersRemoveError GROUP_NOT_IN_TEAM
Group is not in this team. You cannot remove members from a group that is outside of your team.
-
-
Method Detail
-
tag
public GroupMembersRemoveError.Tag tag()
Returns the tag for this instance.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 returntrue
. Callers are recommended to use the tag value in aswitch
statement to properly handle the different values for thisGroupMembersRemoveError
.- Returns:
- the tag for this instance.
-
isGroupNotFound
public boolean isGroupNotFound()
Returnstrue
if this instance has the tagGroupMembersRemoveError.Tag.GROUP_NOT_FOUND
,false
otherwise.- Returns:
true
if this instance is tagged asGroupMembersRemoveError.Tag.GROUP_NOT_FOUND
,false
otherwise.
-
isOther
public boolean isOther()
- Returns:
true
if this instance is tagged asGroupMembersRemoveError.Tag.OTHER
,false
otherwise.
-
isSystemManagedGroupDisallowed
public boolean isSystemManagedGroupDisallowed()
Returnstrue
if this instance has the tagGroupMembersRemoveError.Tag.SYSTEM_MANAGED_GROUP_DISALLOWED
,false
otherwise.- Returns:
true
if this instance is tagged asGroupMembersRemoveError.Tag.SYSTEM_MANAGED_GROUP_DISALLOWED
,false
otherwise.
-
isMemberNotInGroup
public boolean isMemberNotInGroup()
Returnstrue
if this instance has the tagGroupMembersRemoveError.Tag.MEMBER_NOT_IN_GROUP
,false
otherwise.- Returns:
true
if this instance is tagged asGroupMembersRemoveError.Tag.MEMBER_NOT_IN_GROUP
,false
otherwise.
-
isGroupNotInTeam
public boolean isGroupNotInTeam()
Returnstrue
if this instance has the tagGroupMembersRemoveError.Tag.GROUP_NOT_IN_TEAM
,false
otherwise.- Returns:
true
if this instance is tagged asGroupMembersRemoveError.Tag.GROUP_NOT_IN_TEAM
,false
otherwise.
-
isMembersNotInTeam
public boolean isMembersNotInTeam()
Returnstrue
if this instance has the tagGroupMembersRemoveError.Tag.MEMBERS_NOT_IN_TEAM
,false
otherwise.- Returns:
true
if this instance is tagged asGroupMembersRemoveError.Tag.MEMBERS_NOT_IN_TEAM
,false
otherwise.
-
membersNotInTeam
public static GroupMembersRemoveError membersNotInTeam(java.util.List<java.lang.String> value)
Returns an instance ofGroupMembersRemoveError
that has its tag set toGroupMembersRemoveError.Tag.MEMBERS_NOT_IN_TEAM
.These members are not part of your team.
- Parameters:
value
- value to assign to this instance.- Returns:
- Instance of
GroupMembersRemoveError
with its tag set toGroupMembersRemoveError.Tag.MEMBERS_NOT_IN_TEAM
. - Throws:
java.lang.IllegalArgumentException
- ifvalue
contains anull
item or isnull
.
-
getMembersNotInTeamValue
public java.util.List<java.lang.String> getMembersNotInTeamValue()
These members are not part of your team.This instance must be tagged as
GroupMembersRemoveError.Tag.MEMBERS_NOT_IN_TEAM
.- Returns:
- The
List
value associated with this instance ifisMembersNotInTeam()
istrue
. - Throws:
java.lang.IllegalStateException
- IfisMembersNotInTeam()
isfalse
.
-
isUsersNotFound
public boolean isUsersNotFound()
Returnstrue
if this instance has the tagGroupMembersRemoveError.Tag.USERS_NOT_FOUND
,false
otherwise.- Returns:
true
if this instance is tagged asGroupMembersRemoveError.Tag.USERS_NOT_FOUND
,false
otherwise.
-
usersNotFound
public static GroupMembersRemoveError usersNotFound(java.util.List<java.lang.String> value)
Returns an instance ofGroupMembersRemoveError
that has its tag set toGroupMembersRemoveError.Tag.USERS_NOT_FOUND
.These users were not found in Dropbox.
- Parameters:
value
- value to assign to this instance.- Returns:
- Instance of
GroupMembersRemoveError
with its tag set toGroupMembersRemoveError.Tag.USERS_NOT_FOUND
. - Throws:
java.lang.IllegalArgumentException
- ifvalue
contains anull
item or isnull
.
-
getUsersNotFoundValue
public java.util.List<java.lang.String> getUsersNotFoundValue()
These users were not found in Dropbox.This instance must be tagged as
GroupMembersRemoveError.Tag.USERS_NOT_FOUND
.- Returns:
- The
List
value associated with this instance ifisUsersNotFound()
istrue
. - Throws:
java.lang.IllegalStateException
- IfisUsersNotFound()
isfalse
.
-
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
-
-