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 |
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(Object obj) |
List<String> |
getMembersNotInTeamValue()
These members are not part of your team.
|
List<String> |
getUserCannotBeManagerOfCompanyManagedGroupValue()
A company-managed group cannot be managed by a user.
|
List<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 |
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(List<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.
|
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
static GroupMembersAddError |
userCannotBeManagerOfCompanyManagedGroup(List<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(List<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 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 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(List<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
.IllegalArgumentException
- if value
contains a null
item or is null
.public List<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
.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(List<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
.IllegalArgumentException
- if value
contains a null
item or is null
.public List<String> getUsersNotFoundValue()
This instance must be tagged as GroupMembersAddError.Tag.USERS_NOT_FOUND
.
List
value associated with this instance if isUsersNotFound()
is true
.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(List<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
.IllegalArgumentException
- if value
contains a null
item or is null
.public List<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
.IllegalStateException
- If isUserCannotBeManagerOfCompanyManagedGroup()
is false
.public String toStringMultiline()
The returned String may contain newlines.