Class GroupMembersAddError
- java.lang.Object
- 
- com.dropbox.core.v2.team.GroupMembersAddError
 
- 
 public final class GroupMembersAddError extends java.lang.ObjectThis 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 SummaryNested Classes Modifier and Type Class Description static classGroupMembersAddError.TagDiscriminating tag type forGroupMembersAddError.
 - 
Field SummaryFields Modifier and Type Field Description static GroupMembersAddErrorDUPLICATE_USERYou cannot add duplicate users.static GroupMembersAddErrorGROUP_NOT_FOUNDNo matching group found.static GroupMembersAddErrorGROUP_NOT_IN_TEAMGroup is not in this team.static GroupMembersAddErrorOTHERCatch-all used for unknown tag values returned by the Dropbox servers.static GroupMembersAddErrorSYSTEM_MANAGED_GROUP_DISALLOWEDThis operation is not supported on system-managed groups.static GroupMembersAddErrorUSER_MUST_BE_ACTIVE_TO_BE_OWNERA suspended user cannot be added to a group asGroupAccessType.OWNER.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(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.inthashCode()booleanisDuplicateUser()booleanisGroupNotFound()Returnstrueif this instance has the tagGroupMembersAddError.Tag.GROUP_NOT_FOUND,falseotherwise.booleanisGroupNotInTeam()Returnstrueif this instance has the tagGroupMembersAddError.Tag.GROUP_NOT_IN_TEAM,falseotherwise.booleanisMembersNotInTeam()Returnstrueif this instance has the tagGroupMembersAddError.Tag.MEMBERS_NOT_IN_TEAM,falseotherwise.booleanisOther()booleanisSystemManagedGroupDisallowed()Returnstrueif this instance has the tagGroupMembersAddError.Tag.SYSTEM_MANAGED_GROUP_DISALLOWED,falseotherwise.booleanisUserCannotBeManagerOfCompanyManagedGroup()Returnstrueif this instance has the tagGroupMembersAddError.Tag.USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP,falseotherwise.booleanisUserMustBeActiveToBeOwner()Returnstrueif this instance has the tagGroupMembersAddError.Tag.USER_MUST_BE_ACTIVE_TO_BE_OWNER,falseotherwise.booleanisUsersNotFound()Returnstrueif this instance has the tagGroupMembersAddError.Tag.USERS_NOT_FOUND,falseotherwise.static GroupMembersAddErrormembersNotInTeam(java.util.List<java.lang.String> value)Returns an instance ofGroupMembersAddErrorthat has its tag set toGroupMembersAddError.Tag.MEMBERS_NOT_IN_TEAM.GroupMembersAddError.Tagtag()Returns the tag for this instance.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.static GroupMembersAddErroruserCannotBeManagerOfCompanyManagedGroup(java.util.List<java.lang.String> value)Returns an instance ofGroupMembersAddErrorthat has its tag set toGroupMembersAddError.Tag.USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP.static GroupMembersAddErrorusersNotFound(java.util.List<java.lang.String> value)Returns an instance ofGroupMembersAddErrorthat has its tag set toGroupMembersAddError.Tag.USERS_NOT_FOUND.
 
- 
- 
- 
Field Detail- 
GROUP_NOT_FOUNDpublic static final GroupMembersAddError GROUP_NOT_FOUND No matching group found. No groups match the specified group ID.
 - 
OTHERpublic static final GroupMembersAddError 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_DISALLOWEDpublic static final GroupMembersAddError SYSTEM_MANAGED_GROUP_DISALLOWED This operation is not supported on system-managed groups.
 - 
DUPLICATE_USERpublic static final GroupMembersAddError DUPLICATE_USER You cannot add duplicate users. One or more of the members you are trying to add is already a member of the group.
 - 
GROUP_NOT_IN_TEAMpublic static final GroupMembersAddError GROUP_NOT_IN_TEAM Group is not in this team. You cannot add members to a group that is outside of your team.
 - 
USER_MUST_BE_ACTIVE_TO_BE_OWNERpublic static final GroupMembersAddError USER_MUST_BE_ACTIVE_TO_BE_OWNER A suspended user cannot be added to a group asGroupAccessType.OWNER.
 
- 
 - 
Method Detail- 
tagpublic GroupMembersAddError.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 aswitchstatement to properly handle the different values for thisGroupMembersAddError.- Returns:
- the tag for this instance.
 
 - 
isGroupNotFoundpublic boolean isGroupNotFound() Returnstrueif this instance has the tagGroupMembersAddError.Tag.GROUP_NOT_FOUND,falseotherwise.- Returns:
- trueif this instance is tagged as- GroupMembersAddError.Tag.GROUP_NOT_FOUND,- falseotherwise.
 
 - 
isOtherpublic boolean isOther() - Returns:
- trueif this instance is tagged as- GroupMembersAddError.Tag.OTHER,- falseotherwise.
 
 - 
isSystemManagedGroupDisallowedpublic boolean isSystemManagedGroupDisallowed() Returnstrueif this instance has the tagGroupMembersAddError.Tag.SYSTEM_MANAGED_GROUP_DISALLOWED,falseotherwise.- Returns:
- trueif this instance is tagged as- GroupMembersAddError.Tag.SYSTEM_MANAGED_GROUP_DISALLOWED,- falseotherwise.
 
 - 
isDuplicateUserpublic boolean isDuplicateUser() - Returns:
- trueif this instance is tagged as- GroupMembersAddError.Tag.DUPLICATE_USER,- falseotherwise.
 
 - 
isGroupNotInTeampublic boolean isGroupNotInTeam() Returnstrueif this instance has the tagGroupMembersAddError.Tag.GROUP_NOT_IN_TEAM,falseotherwise.- Returns:
- trueif this instance is tagged as- GroupMembersAddError.Tag.GROUP_NOT_IN_TEAM,- falseotherwise.
 
 - 
isMembersNotInTeampublic boolean isMembersNotInTeam() Returnstrueif this instance has the tagGroupMembersAddError.Tag.MEMBERS_NOT_IN_TEAM,falseotherwise.- Returns:
- trueif this instance is tagged as- GroupMembersAddError.Tag.MEMBERS_NOT_IN_TEAM,- falseotherwise.
 
 - 
membersNotInTeampublic static GroupMembersAddError membersNotInTeam(java.util.List<java.lang.String> value) Returns an instance ofGroupMembersAddErrorthat has its tag set toGroupMembersAddError.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.- Parameters:
- value- value to assign to this instance.
- Returns:
- Instance of GroupMembersAddErrorwith its tag set toGroupMembersAddError.Tag.MEMBERS_NOT_IN_TEAM.
- Throws:
- java.lang.IllegalArgumentException- if- valuecontains a- nullitem or is- null.
 
 - 
getMembersNotInTeamValuepublic java.util.List<java.lang.String> getMembersNotInTeamValue() 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 theDbxTeamTeamRequests.membersAdd(List,boolean)endpoint.This instance must be tagged as GroupMembersAddError.Tag.MEMBERS_NOT_IN_TEAM.- Returns:
- The Listvalue associated with this instance ifisMembersNotInTeam()istrue.
- Throws:
- java.lang.IllegalStateException- If- isMembersNotInTeam()is- false.
 
 - 
isUsersNotFoundpublic boolean isUsersNotFound() Returnstrueif this instance has the tagGroupMembersAddError.Tag.USERS_NOT_FOUND,falseotherwise.- Returns:
- trueif this instance is tagged as- GroupMembersAddError.Tag.USERS_NOT_FOUND,- falseotherwise.
 
 - 
usersNotFoundpublic static GroupMembersAddError usersNotFound(java.util.List<java.lang.String> value) Returns an instance ofGroupMembersAddErrorthat has its tag set toGroupMembersAddError.Tag.USERS_NOT_FOUND.These users were not found in Dropbox. - Parameters:
- value- value to assign to this instance.
- Returns:
- Instance of GroupMembersAddErrorwith its tag set toGroupMembersAddError.Tag.USERS_NOT_FOUND.
- Throws:
- java.lang.IllegalArgumentException- if- valuecontains a- nullitem or is- null.
 
 - 
getUsersNotFoundValuepublic java.util.List<java.lang.String> getUsersNotFoundValue() These users were not found in Dropbox.This instance must be tagged as GroupMembersAddError.Tag.USERS_NOT_FOUND.- Returns:
- The Listvalue associated with this instance ifisUsersNotFound()istrue.
- Throws:
- java.lang.IllegalStateException- If- isUsersNotFound()is- false.
 
 - 
isUserMustBeActiveToBeOwnerpublic boolean isUserMustBeActiveToBeOwner() Returnstrueif this instance has the tagGroupMembersAddError.Tag.USER_MUST_BE_ACTIVE_TO_BE_OWNER,falseotherwise.- Returns:
- trueif this instance is tagged as- GroupMembersAddError.Tag.USER_MUST_BE_ACTIVE_TO_BE_OWNER,- falseotherwise.
 
 - 
isUserCannotBeManagerOfCompanyManagedGrouppublic boolean isUserCannotBeManagerOfCompanyManagedGroup() Returnstrueif this instance has the tagGroupMembersAddError.Tag.USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP,falseotherwise.- Returns:
- trueif this instance is tagged as- GroupMembersAddError.Tag.USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP,- falseotherwise.
 
 - 
userCannotBeManagerOfCompanyManagedGrouppublic static GroupMembersAddError userCannotBeManagerOfCompanyManagedGroup(java.util.List<java.lang.String> value) Returns an instance ofGroupMembersAddErrorthat has its tag set toGroupMembersAddError.Tag.USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP.A company-managed group cannot be managed by a user. - Parameters:
- value- value to assign to this instance.
- Returns:
- Instance of GroupMembersAddErrorwith its tag set toGroupMembersAddError.Tag.USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP.
- Throws:
- java.lang.IllegalArgumentException- if- valuecontains a- nullitem or is- null.
 
 - 
getUserCannotBeManagerOfCompanyManagedGroupValuepublic java.util.List<java.lang.String> getUserCannotBeManagerOfCompanyManagedGroupValue() A company-managed group cannot be managed by a user.This instance must be tagged as GroupMembersAddError.Tag.USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP.- Returns:
- The Listvalue associated with this instance ifisUserCannotBeManagerOfCompanyManagedGroup()istrue.
- Throws:
- java.lang.IllegalStateException- If- isUserCannotBeManagerOfCompanyManagedGroup()is- false.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringMultilinepublic 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
 
 
- 
 
-