Package com.dropbox.core.v2.team
Class GroupMembersRemoveError
java.lang.Object
com.dropbox.core.v2.team.GroupMembersRemoveError
This class is a tagged union. Tagged unions instances are always associated
to a specific tag. This means only one of the
isAbc() methods will
return true. You can use tag() to determine the tag
associated with this instance.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDiscriminating tag type forGroupMembersRemoveError. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GroupMembersRemoveErrorNo matching group found.static final GroupMembersRemoveErrorGroup is not in this team.static final GroupMembersRemoveErrorAt least one of the specified users is not a member of the group.static final GroupMembersRemoveErrorCatch-all used for unknown tag values returned by the Dropbox servers.static final GroupMembersRemoveErrorThis operation is not supported on system-managed groups. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThese members are not part of your team.These users were not found in Dropbox.inthashCode()booleanReturnstrueif this instance has the tagGroupMembersRemoveError.Tag.GROUP_NOT_FOUND,falseotherwise.booleanReturnstrueif this instance has the tagGroupMembersRemoveError.Tag.GROUP_NOT_IN_TEAM,falseotherwise.booleanReturnstrueif this instance has the tagGroupMembersRemoveError.Tag.MEMBER_NOT_IN_GROUP,falseotherwise.booleanReturnstrueif this instance has the tagGroupMembersRemoveError.Tag.MEMBERS_NOT_IN_TEAM,falseotherwise.booleanisOther()booleanReturnstrueif this instance has the tagGroupMembersRemoveError.Tag.SYSTEM_MANAGED_GROUP_DISALLOWED,falseotherwise.booleanReturnstrueif this instance has the tagGroupMembersRemoveError.Tag.USERS_NOT_FOUND,falseotherwise.static GroupMembersRemoveErrormembersNotInTeam(List<String> value) Returns an instance ofGroupMembersRemoveErrorthat has its tag set toGroupMembersRemoveError.Tag.MEMBERS_NOT_IN_TEAM.tag()Returns the tag for this instance.toString()Returns a String representation of this object formatted for easier readability.static GroupMembersRemoveErrorusersNotFound(List<String> value) Returns an instance ofGroupMembersRemoveErrorthat has its tag set toGroupMembersRemoveError.Tag.USERS_NOT_FOUND.
-
Field Details
-
GROUP_NOT_FOUND
No matching group found. No groups match the specified group ID. -
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
This operation is not supported on system-managed groups. -
MEMBER_NOT_IN_GROUP
At least one of the specified users is not a member of the group. -
GROUP_NOT_IN_TEAM
Group is not in this team. You cannot remove members from a group that is outside of your team.
-
-
Method Details
-
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 aswitchstatement to properly handle the different values for thisGroupMembersRemoveError.- Returns:
- the tag for this instance.
-
isGroupNotFound
public boolean isGroupNotFound()Returnstrueif this instance has the tagGroupMembersRemoveError.Tag.GROUP_NOT_FOUND,falseotherwise.- Returns:
trueif this instance is tagged asGroupMembersRemoveError.Tag.GROUP_NOT_FOUND,falseotherwise.
-
isOther
public boolean isOther()- Returns:
trueif this instance is tagged asGroupMembersRemoveError.Tag.OTHER,falseotherwise.
-
isSystemManagedGroupDisallowed
public boolean isSystemManagedGroupDisallowed()Returnstrueif this instance has the tagGroupMembersRemoveError.Tag.SYSTEM_MANAGED_GROUP_DISALLOWED,falseotherwise.- Returns:
trueif this instance is tagged asGroupMembersRemoveError.Tag.SYSTEM_MANAGED_GROUP_DISALLOWED,falseotherwise.
-
isMemberNotInGroup
public boolean isMemberNotInGroup()Returnstrueif this instance has the tagGroupMembersRemoveError.Tag.MEMBER_NOT_IN_GROUP,falseotherwise.- Returns:
trueif this instance is tagged asGroupMembersRemoveError.Tag.MEMBER_NOT_IN_GROUP,falseotherwise.
-
isGroupNotInTeam
public boolean isGroupNotInTeam()Returnstrueif this instance has the tagGroupMembersRemoveError.Tag.GROUP_NOT_IN_TEAM,falseotherwise.- Returns:
trueif this instance is tagged asGroupMembersRemoveError.Tag.GROUP_NOT_IN_TEAM,falseotherwise.
-
isMembersNotInTeam
public boolean isMembersNotInTeam()Returnstrueif this instance has the tagGroupMembersRemoveError.Tag.MEMBERS_NOT_IN_TEAM,falseotherwise.- Returns:
trueif this instance is tagged asGroupMembersRemoveError.Tag.MEMBERS_NOT_IN_TEAM,falseotherwise.
-
membersNotInTeam
Returns an instance ofGroupMembersRemoveErrorthat 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
GroupMembersRemoveErrorwith its tag set toGroupMembersRemoveError.Tag.MEMBERS_NOT_IN_TEAM. - Throws:
IllegalArgumentException- ifvaluecontains anullitem or isnull.
-
getMembersNotInTeamValue
These members are not part of your team.This instance must be tagged as
GroupMembersRemoveError.Tag.MEMBERS_NOT_IN_TEAM.- Returns:
- The
Listvalue associated with this instance ifisMembersNotInTeam()istrue. - Throws:
IllegalStateException- IfisMembersNotInTeam()isfalse.
-
isUsersNotFound
public boolean isUsersNotFound()Returnstrueif this instance has the tagGroupMembersRemoveError.Tag.USERS_NOT_FOUND,falseotherwise.- Returns:
trueif this instance is tagged asGroupMembersRemoveError.Tag.USERS_NOT_FOUND,falseotherwise.
-
usersNotFound
Returns an instance ofGroupMembersRemoveErrorthat 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
GroupMembersRemoveErrorwith its tag set toGroupMembersRemoveError.Tag.USERS_NOT_FOUND. - Throws:
IllegalArgumentException- ifvaluecontains anullitem or isnull.
-
getUsersNotFoundValue
These users were not found in Dropbox.This instance must be tagged as
GroupMembersRemoveError.Tag.USERS_NOT_FOUND.- Returns:
- The
Listvalue associated with this instance ifisUsersNotFound()istrue. - Throws:
IllegalStateException- IfisUsersNotFound()isfalse.
-
hashCode
public int hashCode() -
equals
-
toString
-
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
-