Package com.dropbox.core.v2.sharing
Class CreateSharedLinkWithSettingsError
java.lang.Object
com.dropbox.core.v2.sharing.CreateSharedLinkWithSettingsError
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 forCreateSharedLinkWithSettingsError. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CreateSharedLinkWithSettingsErrorThe user is not allowed to create a shared link to the specified file.static final CreateSharedLinkWithSettingsErrorThe current user has been banned for abuse reasons.static final CreateSharedLinkWithSettingsErrorThis user's email address is not verified.static final CreateSharedLinkWithSettingsErrorYour Dropbox folder will have too many shared folders after the operation. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis instance must be tagged asCreateSharedLinkWithSettingsError.Tag.PATH.There is an error with the given settings.The shared link already exists.inthashCode()booleanReturnstrueif this instance has the tagCreateSharedLinkWithSettingsError.Tag.ACCESS_DENIED,falseotherwise.booleanReturnstrueif this instance has the tagCreateSharedLinkWithSettingsError.Tag.BANNED_MEMBER,falseotherwise.booleanReturnstrueif this instance has the tagCreateSharedLinkWithSettingsError.Tag.EMAIL_NOT_VERIFIED,falseotherwise.booleanisPath()Returnstrueif this instance has the tagCreateSharedLinkWithSettingsError.Tag.PATH,falseotherwise.booleanReturnstrueif this instance has the tagCreateSharedLinkWithSettingsError.Tag.SETTINGS_ERROR,falseotherwise.booleanReturnstrueif this instance has the tagCreateSharedLinkWithSettingsError.Tag.SHARED_LINK_ALREADY_EXISTS,falseotherwise.booleanReturnstrueif this instance has the tagCreateSharedLinkWithSettingsError.Tag.TOO_MANY_SHARED_FOLDERS,falseotherwise.path(LookupError value) Returns an instance ofCreateSharedLinkWithSettingsErrorthat has its tag set toCreateSharedLinkWithSettingsError.Tag.PATH.Returns an instance ofCreateSharedLinkWithSettingsErrorthat has its tag set toCreateSharedLinkWithSettingsError.Tag.SETTINGS_ERROR.Returns an instance ofCreateSharedLinkWithSettingsErrorthat has its tag set toCreateSharedLinkWithSettingsError.Tag.SHARED_LINK_ALREADY_EXISTS.Returns an instance ofCreateSharedLinkWithSettingsErrorthat has its tag set toCreateSharedLinkWithSettingsError.Tag.SHARED_LINK_ALREADY_EXISTS.tag()Returns the tag for this instance.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
EMAIL_NOT_VERIFIED
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. -
ACCESS_DENIED
The user is not allowed to create a shared link to the specified file. For example, this can occur if the file is restricted or if the user's links are banned. -
BANNED_MEMBER
The current user has been banned for abuse reasons. -
TOO_MANY_SHARED_FOLDERS
Your Dropbox folder will have too many shared folders after the operation. https://help.dropbox.com/share/shared-folder-faq#Is-there-a-limit-to-the-number-of-shared-folders-I-can-create
-
-
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 thisCreateSharedLinkWithSettingsError.- Returns:
- the tag for this instance.
-
isPath
public boolean isPath()Returnstrueif this instance has the tagCreateSharedLinkWithSettingsError.Tag.PATH,falseotherwise.- Returns:
trueif this instance is tagged asCreateSharedLinkWithSettingsError.Tag.PATH,falseotherwise.
-
path
Returns an instance ofCreateSharedLinkWithSettingsErrorthat has its tag set toCreateSharedLinkWithSettingsError.Tag.PATH.None
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
CreateSharedLinkWithSettingsErrorwith its tag set toCreateSharedLinkWithSettingsError.Tag.PATH. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getPathValue
This instance must be tagged asCreateSharedLinkWithSettingsError.Tag.PATH.- Returns:
- The
LookupErrorvalue associated with this instance ifisPath()istrue. - Throws:
IllegalStateException- IfisPath()isfalse.
-
isEmailNotVerified
public boolean isEmailNotVerified()Returnstrueif this instance has the tagCreateSharedLinkWithSettingsError.Tag.EMAIL_NOT_VERIFIED,falseotherwise.- Returns:
trueif this instance is tagged asCreateSharedLinkWithSettingsError.Tag.EMAIL_NOT_VERIFIED,falseotherwise.
-
isSettingsError
public boolean isSettingsError()Returnstrueif this instance has the tagCreateSharedLinkWithSettingsError.Tag.SETTINGS_ERROR,falseotherwise.- Returns:
trueif this instance is tagged asCreateSharedLinkWithSettingsError.Tag.SETTINGS_ERROR,falseotherwise.
-
getSettingsErrorValue
There is an error with the given settings.This instance must be tagged as
CreateSharedLinkWithSettingsError.Tag.SETTINGS_ERROR.- Returns:
- The
SharedLinkSettingsErrorvalue associated with this instance ifisSettingsError()istrue. - Throws:
IllegalStateException- IfisSettingsError()isfalse.
-
isAccessDenied
public boolean isAccessDenied()Returnstrueif this instance has the tagCreateSharedLinkWithSettingsError.Tag.ACCESS_DENIED,falseotherwise.- Returns:
trueif this instance is tagged asCreateSharedLinkWithSettingsError.Tag.ACCESS_DENIED,falseotherwise.
-
isBannedMember
public boolean isBannedMember()Returnstrueif this instance has the tagCreateSharedLinkWithSettingsError.Tag.BANNED_MEMBER,falseotherwise.- Returns:
trueif this instance is tagged asCreateSharedLinkWithSettingsError.Tag.BANNED_MEMBER,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
-