Package com.dropbox.core.v2.sharing
Class ShareFolderError
java.lang.Object
com.dropbox.core.v2.sharing.ShareFolderError
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 Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ShareFolderErrorThe current user's account is not allowed to select the specifiedShareFolderArgBase.getSharedLinkPolicy().static final ShareFolderErrorThis user's email address is not verified.static final ShareFolderErrorThe current user does not have permission to perform this action.static final ShareFolderErrorCatch-all used for unknown tag values returned by the Dropbox servers.static final ShareFolderErrorTeam policy or group sharing settings are more restrictive thanShareFolderArgBase.getMemberPolicy(). -
Method Summary
Modifier and TypeMethodDescriptionstatic ShareFolderErrorbadPath(SharePathError value) Returns an instance ofShareFolderErrorthat has its tag set toShareFolderError.Tag.BAD_PATH.booleanShareFolderArgBase.getPath()is invalid.inthashCode()booleanbooleanReturnstrueif this instance has the tagShareFolderError.Tag.DISALLOWED_SHARED_LINK_POLICY,falseotherwise.booleanbooleanbooleanisOther()booleanReturnstrueif this instance has the tagShareFolderError.Tag.TEAM_POLICY_DISALLOWS_MEMBER_POLICY,falseotherwise.tag()Returns the tag for this instance.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. -
TEAM_POLICY_DISALLOWS_MEMBER_POLICY
Team policy or group sharing settings are more restrictive thanShareFolderArgBase.getMemberPolicy(). -
DISALLOWED_SHARED_LINK_POLICY
The current user's account is not allowed to select the specifiedShareFolderArgBase.getSharedLinkPolicy(). -
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.
-
NO_PERMISSION
The current user does not have permission to perform this action.
-
-
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 thisShareFolderError.- Returns:
- the tag for this instance.
-
isEmailUnverified
public boolean isEmailUnverified()- Returns:
trueif this instance is tagged asShareFolderError.Tag.EMAIL_UNVERIFIED,falseotherwise.
-
isBadPath
public boolean isBadPath()- Returns:
trueif this instance is tagged asShareFolderError.Tag.BAD_PATH,falseotherwise.
-
getBadPathValue
ShareFolderArgBase.getPath()is invalid.This instance must be tagged as
ShareFolderError.Tag.BAD_PATH.- Returns:
- The
SharePathErrorvalue associated with this instance ifisBadPath()istrue. - Throws:
IllegalStateException- IfisBadPath()isfalse.
-
isTeamPolicyDisallowsMemberPolicy
public boolean isTeamPolicyDisallowsMemberPolicy()Returnstrueif this instance has the tagShareFolderError.Tag.TEAM_POLICY_DISALLOWS_MEMBER_POLICY,falseotherwise.- Returns:
trueif this instance is tagged asShareFolderError.Tag.TEAM_POLICY_DISALLOWS_MEMBER_POLICY,falseotherwise.
-
isOther
public boolean isOther()- Returns:
trueif this instance is tagged asShareFolderError.Tag.OTHER,falseotherwise.
-
isNoPermission
public boolean isNoPermission()- Returns:
trueif this instance is tagged asShareFolderError.Tag.NO_PERMISSION,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
-