Class AddFolderMemberError
isAbc()
methods will return true. You can use tag() to determine the
tag associated with this instance.
Open unions may be extended in the future with additional tags. If a new
tag is introduced that this SDK does not recognized, the OTHER value
will be used.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AddFolderMemberErrorThe current user has been banned.static final AddFolderMemberErrorYour team policy does not allow sharing outside of the team.static final AddFolderMemberErrorThis user's email address is not verified.static final AddFolderMemberErrorThe current user's account doesn't support this action.static final AddFolderMemberErrorField is deprecated.static final AddFolderMemberErrorThe current user does not have permission to perform this action.static final AddFolderMemberErrorCatch-all used for unknown tag values returned by the Dropbox servers.static final AddFolderMemberErrorThe current user has hit the limit of invites they can send per day.static final AddFolderMemberErrorThis action cannot be performed on a team shared folder.static final AddFolderMemberErrorThe current user is trying to share with too many people at once. -
Method Summary
Modifier and TypeMethodDescriptionstatic AddFolderMemberErrorReturns an instance ofAddFolderMemberErrorthat has its tag set toAddFolderMemberError.Tag.ACCESS_ERROR.static AddFolderMemberErrorbadMember(AddMemberSelectorError value) Returns an instance ofAddFolderMemberErrorthat has its tag set toAddFolderMemberError.Tag.BAD_MEMBER.booleanUnable to access shared folder.AddFolderMemberArg.getMembers()contains a bad invitation recipient.longThe value is the member limit that was reached.longThe value is the pending invite limit that was reached.inthashCode()booleanbooleanbooleanbooleanReturnstrueif this instance has the tagAddFolderMemberError.Tag.CANT_SHARE_OUTSIDE_TEAM,falseotherwise.booleanReturnstrueif this instance has the tagAddFolderMemberError.Tag.EMAIL_UNVERIFIED,falseotherwise.booleanReturnstrueif this instance has the tagAddFolderMemberError.Tag.INSUFFICIENT_PLAN,falseotherwise.booleanReturnstrueif this instance has the tagAddFolderMemberError.Tag.INVALID_SHARED_FOLDER,falseotherwise.booleanbooleanisOther()booleanbooleanbooleanReturnstrueif this instance has the tagAddFolderMemberError.Tag.TOO_MANY_INVITEES,falseotherwise.booleanReturnstrueif this instance has the tagAddFolderMemberError.Tag.TOO_MANY_MEMBERS,falseotherwise.booleanReturnstrueif this instance has the tagAddFolderMemberError.Tag.TOO_MANY_PENDING_INVITES,falseotherwise.tag()Returns the tag for this instance.static AddFolderMemberErrortooManyMembers(long value) Returns an instance ofAddFolderMemberErrorthat has its tag set toAddFolderMemberError.Tag.TOO_MANY_MEMBERS.static AddFolderMemberErrortooManyPendingInvites(long value) Returns an instance ofAddFolderMemberErrorthat has its tag set toAddFolderMemberError.Tag.TOO_MANY_PENDING_INVITES.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
EMAIL_UNVERIFIED
This user's email address is not verified. This functionality is only available on accounts with a verified email address. Users can verify their email address here. -
BANNED_MEMBER
The current user has been banned. -
CANT_SHARE_OUTSIDE_TEAM
Your team policy does not allow sharing outside of the team. -
RATE_LIMIT
The current user has hit the limit of invites they can send per day. Try again in 24 hours. -
TOO_MANY_INVITEES
The current user is trying to share with too many people at once. -
INSUFFICIENT_PLAN
The current user's account doesn't support this action. An example of this is when adding a read-only member. This action can only be performed by users that have upgraded to a Pro or Business plan. -
TEAM_FOLDER
This action cannot be performed on a team shared folder. -
NO_PERMISSION
The current user does not have permission to perform this action. -
INVALID_SHARED_FOLDER
Field is deprecated. Invalid shared folder error will be returned as an access_error. -
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.
-
-
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 thisAddFolderMemberError.If a tag returned by the server is unrecognized by this SDK, the
AddFolderMemberError.Tag.OTHERvalue will be used.- Returns:
- the tag for this instance.
-
isAccessError
public boolean isAccessError()- Returns:
trueif this instance is tagged asAddFolderMemberError.Tag.ACCESS_ERROR,falseotherwise.
-
getAccessErrorValue
Unable to access shared folder.This instance must be tagged as
AddFolderMemberError.Tag.ACCESS_ERROR.- Returns:
- The
SharedFolderAccessErrorvalue associated with this instance ifisAccessError()istrue. - Throws:
IllegalStateException- IfisAccessError()isfalse.
-
isEmailUnverified
public boolean isEmailUnverified()Returnstrueif this instance has the tagAddFolderMemberError.Tag.EMAIL_UNVERIFIED,falseotherwise.- Returns:
trueif this instance is tagged asAddFolderMemberError.Tag.EMAIL_UNVERIFIED,falseotherwise.
-
isBannedMember
public boolean isBannedMember()- Returns:
trueif this instance is tagged asAddFolderMemberError.Tag.BANNED_MEMBER,falseotherwise.
-
isBadMember
public boolean isBadMember()- Returns:
trueif this instance is tagged asAddFolderMemberError.Tag.BAD_MEMBER,falseotherwise.
-
badMember
Returns an instance ofAddFolderMemberErrorthat has its tag set toAddFolderMemberError.Tag.BAD_MEMBER.AddFolderMemberArg.getMembers()contains a bad invitation recipient.- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
AddFolderMemberErrorwith its tag set toAddFolderMemberError.Tag.BAD_MEMBER. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getBadMemberValue
AddFolderMemberArg.getMembers()contains a bad invitation recipient.This instance must be tagged as
AddFolderMemberError.Tag.BAD_MEMBER.- Returns:
- The
AddMemberSelectorErrorvalue associated with this instance ifisBadMember()istrue. - Throws:
IllegalStateException- IfisBadMember()isfalse.
-
isTooManyMembers
public boolean isTooManyMembers()Returnstrueif this instance has the tagAddFolderMemberError.Tag.TOO_MANY_MEMBERS,falseotherwise.- Returns:
trueif this instance is tagged asAddFolderMemberError.Tag.TOO_MANY_MEMBERS,falseotherwise.
-
tooManyMembers
Returns an instance ofAddFolderMemberErrorthat has its tag set toAddFolderMemberError.Tag.TOO_MANY_MEMBERS.The value is the member limit that was reached.
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
AddFolderMemberErrorwith its tag set toAddFolderMemberError.Tag.TOO_MANY_MEMBERS.
-
getTooManyMembersValue
public long getTooManyMembersValue()The value is the member limit that was reached.This instance must be tagged as
AddFolderMemberError.Tag.TOO_MANY_MEMBERS.- Returns:
- The
value associated with this instance if
invalid reference
longisTooManyMembers()istrue. - Throws:
IllegalStateException- IfisTooManyMembers()isfalse.
-
isTooManyPendingInvites
public boolean isTooManyPendingInvites()Returnstrueif this instance has the tagAddFolderMemberError.Tag.TOO_MANY_PENDING_INVITES,falseotherwise.- Returns:
trueif this instance is tagged asAddFolderMemberError.Tag.TOO_MANY_PENDING_INVITES,falseotherwise.
-
tooManyPendingInvites
Returns an instance ofAddFolderMemberErrorthat has its tag set toAddFolderMemberError.Tag.TOO_MANY_PENDING_INVITES.The value is the pending invite limit that was reached.
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
AddFolderMemberErrorwith its tag set toAddFolderMemberError.Tag.TOO_MANY_PENDING_INVITES.
-
getTooManyPendingInvitesValue
public long getTooManyPendingInvitesValue()The value is the pending invite limit that was reached.This instance must be tagged as
AddFolderMemberError.Tag.TOO_MANY_PENDING_INVITES.- Returns:
- The
value associated with this instance if
invalid reference
longisTooManyPendingInvites()istrue. - Throws:
IllegalStateException- IfisTooManyPendingInvites()isfalse.
-
isRateLimit
public boolean isRateLimit()- Returns:
trueif this instance is tagged asAddFolderMemberError.Tag.RATE_LIMIT,falseotherwise.
-
isTooManyInvitees
public boolean isTooManyInvitees()Returnstrueif this instance has the tagAddFolderMemberError.Tag.TOO_MANY_INVITEES,falseotherwise.- Returns:
trueif this instance is tagged asAddFolderMemberError.Tag.TOO_MANY_INVITEES,falseotherwise.
-
isInsufficientPlan
public boolean isInsufficientPlan()Returnstrueif this instance has the tagAddFolderMemberError.Tag.INSUFFICIENT_PLAN,falseotherwise.- Returns:
trueif this instance is tagged asAddFolderMemberError.Tag.INSUFFICIENT_PLAN,falseotherwise.
-
isTeamFolder
public boolean isTeamFolder()- Returns:
trueif this instance is tagged asAddFolderMemberError.Tag.TEAM_FOLDER,falseotherwise.
-
isNoPermission
public boolean isNoPermission()- Returns:
trueif this instance is tagged asAddFolderMemberError.Tag.NO_PERMISSION,falseotherwise.
-
isOther
public boolean isOther()- Returns:
trueif this instance is tagged asAddFolderMemberError.Tag.OTHER,falseotherwise.
-
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
-