Package com.dropbox.core.v2.sharing
Class ModifySharedLinkSettingsError
java.lang.Object
com.dropbox.core.v2.sharing.ModifySharedLinkSettingsError
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 forModifySharedLinkSettingsError. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ModifySharedLinkSettingsErrorThis user's email address is not verified.static final ModifySharedLinkSettingsErrorCatch-all used for unknown tag values returned by the Dropbox servers.static final ModifySharedLinkSettingsErrorThe caller is not allowed to access this shared link.static final ModifySharedLinkSettingsErrorThe shared link wasn't found.static final ModifySharedLinkSettingsErrorThis type of link is not supported; useDbxUserFilesRequests.export(String,String)instead.static final ModifySharedLinkSettingsErrorPrivate shared links do not support `path` or `link_password` parameter fields. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThere is an error with the given settings.inthashCode()booleanReturnstrueif this instance has the tagModifySharedLinkSettingsError.Tag.EMAIL_NOT_VERIFIED,falseotherwise.booleanisOther()booleanReturnstrueif this instance has the tagModifySharedLinkSettingsError.Tag.SETTINGS_ERROR,falseotherwise.booleanReturnstrueif this instance has the tagModifySharedLinkSettingsError.Tag.SHARED_LINK_ACCESS_DENIED,falseotherwise.booleanReturnstrueif this instance has the tagModifySharedLinkSettingsError.Tag.SHARED_LINK_NOT_FOUND,falseotherwise.booleanReturnstrueif this instance has the tagModifySharedLinkSettingsError.Tag.UNSUPPORTED_LINK_TYPE,falseotherwise.booleanReturnstrueif this instance has the tagModifySharedLinkSettingsError.Tag.UNSUPPORTED_PARAMETER_FIELD,falseotherwise.Returns an instance ofModifySharedLinkSettingsErrorthat has its tag set toModifySharedLinkSettingsError.Tag.SETTINGS_ERROR.tag()Returns the tag for this instance.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
SHARED_LINK_NOT_FOUND
The shared link wasn't found. -
SHARED_LINK_ACCESS_DENIED
The caller is not allowed to access this shared link. -
UNSUPPORTED_LINK_TYPE
This type of link is not supported; useDbxUserFilesRequests.export(String,String)instead. -
UNSUPPORTED_PARAMETER_FIELD
Private shared links do not support `path` or `link_password` parameter fields. -
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.
-
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.
-
-
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 thisModifySharedLinkSettingsError.- Returns:
- the tag for this instance.
-
isUnsupportedLinkType
public boolean isUnsupportedLinkType()Returnstrueif this instance has the tagModifySharedLinkSettingsError.Tag.UNSUPPORTED_LINK_TYPE,falseotherwise.- Returns:
trueif this instance is tagged asModifySharedLinkSettingsError.Tag.UNSUPPORTED_LINK_TYPE,falseotherwise.
-
isUnsupportedParameterField
public boolean isUnsupportedParameterField()Returnstrueif this instance has the tagModifySharedLinkSettingsError.Tag.UNSUPPORTED_PARAMETER_FIELD,falseotherwise.- Returns:
trueif this instance is tagged asModifySharedLinkSettingsError.Tag.UNSUPPORTED_PARAMETER_FIELD,falseotherwise.
-
isOther
public boolean isOther()- Returns:
trueif this instance is tagged asModifySharedLinkSettingsError.Tag.OTHER,falseotherwise.
-
isSettingsError
public boolean isSettingsError()Returnstrueif this instance has the tagModifySharedLinkSettingsError.Tag.SETTINGS_ERROR,falseotherwise.- Returns:
trueif this instance is tagged asModifySharedLinkSettingsError.Tag.SETTINGS_ERROR,falseotherwise.
-
getSettingsErrorValue
There is an error with the given settings.This instance must be tagged as
ModifySharedLinkSettingsError.Tag.SETTINGS_ERROR.- Returns:
- The
SharedLinkSettingsErrorvalue associated with this instance ifisSettingsError()istrue. - Throws:
IllegalStateException- IfisSettingsError()isfalse.
-
isEmailNotVerified
public boolean isEmailNotVerified()Returnstrueif this instance has the tagModifySharedLinkSettingsError.Tag.EMAIL_NOT_VERIFIED,falseotherwise.- Returns:
trueif this instance is tagged asModifySharedLinkSettingsError.Tag.EMAIL_NOT_VERIFIED,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
-