Package com.dropbox.core.v2.sharing
Class ModifySharedLinkSettingsError
- java.lang.Object
-
- com.dropbox.core.v2.sharing.ModifySharedLinkSettingsError
-
public final class ModifySharedLinkSettingsError extends java.lang.ObjectThis class is a tagged union. Tagged unions instances are always associated to a specific tag. This means only one of theisAbc()methods will returntrue. You can usetag()to determine the tag associated with this instance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModifySharedLinkSettingsError.TagDiscriminating tag type forModifySharedLinkSettingsError.
-
Field Summary
Fields Modifier and Type Field Description static ModifySharedLinkSettingsErrorEMAIL_NOT_VERIFIEDThis user's email address is not verified.static ModifySharedLinkSettingsErrorOTHERCatch-all used for unknown tag values returned by the Dropbox servers.static ModifySharedLinkSettingsErrorSHARED_LINK_ACCESS_DENIEDThe caller is not allowed to access this shared link.static ModifySharedLinkSettingsErrorSHARED_LINK_NOT_FOUNDThe shared link wasn't found.static ModifySharedLinkSettingsErrorUNSUPPORTED_LINK_TYPEThis type of link is not supported; useDbxUserFilesRequests.export(String,String)instead.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)SharedLinkSettingsErrorgetSettingsErrorValue()There is an error with the given settings.inthashCode()booleanisEmailNotVerified()Returnstrueif this instance has the tagModifySharedLinkSettingsError.Tag.EMAIL_NOT_VERIFIED,falseotherwise.booleanisOther()booleanisSettingsError()Returnstrueif this instance has the tagModifySharedLinkSettingsError.Tag.SETTINGS_ERROR,falseotherwise.booleanisSharedLinkAccessDenied()Returnstrueif this instance has the tagModifySharedLinkSettingsError.Tag.SHARED_LINK_ACCESS_DENIED,falseotherwise.booleanisSharedLinkNotFound()Returnstrueif this instance has the tagModifySharedLinkSettingsError.Tag.SHARED_LINK_NOT_FOUND,falseotherwise.booleanisUnsupportedLinkType()Returnstrueif this instance has the tagModifySharedLinkSettingsError.Tag.UNSUPPORTED_LINK_TYPE,falseotherwise.static ModifySharedLinkSettingsErrorsettingsError(SharedLinkSettingsError value)Returns an instance ofModifySharedLinkSettingsErrorthat has its tag set toModifySharedLinkSettingsError.Tag.SETTINGS_ERROR.ModifySharedLinkSettingsError.Tagtag()Returns the tag for this instance.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
-
-
-
Field Detail
-
SHARED_LINK_NOT_FOUND
public static final ModifySharedLinkSettingsError SHARED_LINK_NOT_FOUND
The shared link wasn't found.
-
SHARED_LINK_ACCESS_DENIED
public static final ModifySharedLinkSettingsError SHARED_LINK_ACCESS_DENIED
The caller is not allowed to access this shared link.
-
UNSUPPORTED_LINK_TYPE
public static final ModifySharedLinkSettingsError UNSUPPORTED_LINK_TYPE
This type of link is not supported; useDbxUserFilesRequests.export(String,String)instead.
-
OTHER
public static final ModifySharedLinkSettingsError 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
public static final ModifySharedLinkSettingsError 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 Detail
-
tag
public ModifySharedLinkSettingsError.Tag 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.
-
isSharedLinkNotFound
public boolean isSharedLinkNotFound()
Returnstrueif this instance has the tagModifySharedLinkSettingsError.Tag.SHARED_LINK_NOT_FOUND,falseotherwise.- Returns:
trueif this instance is tagged asModifySharedLinkSettingsError.Tag.SHARED_LINK_NOT_FOUND,falseotherwise.
-
isSharedLinkAccessDenied
public boolean isSharedLinkAccessDenied()
Returnstrueif this instance has the tagModifySharedLinkSettingsError.Tag.SHARED_LINK_ACCESS_DENIED,falseotherwise.- Returns:
trueif this instance is tagged asModifySharedLinkSettingsError.Tag.SHARED_LINK_ACCESS_DENIED,falseotherwise.
-
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.
-
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.
-
settingsError
public static ModifySharedLinkSettingsError settingsError(SharedLinkSettingsError value)
Returns an instance ofModifySharedLinkSettingsErrorthat has its tag set toModifySharedLinkSettingsError.Tag.SETTINGS_ERROR.There is an error with the given settings.
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
ModifySharedLinkSettingsErrorwith its tag set toModifySharedLinkSettingsError.Tag.SETTINGS_ERROR. - Throws:
java.lang.IllegalArgumentException- ifvalueisnull.
-
getSettingsErrorValue
public SharedLinkSettingsError 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:
java.lang.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()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toStringMultiline
public java.lang.String 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
-
-