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 SummaryNested Classes Modifier and Type Class Description static classModifySharedLinkSettingsError.TagDiscriminating tag type forModifySharedLinkSettingsError.
 - 
Field SummaryFields 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 SummaryAll 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_FOUNDpublic static final ModifySharedLinkSettingsError SHARED_LINK_NOT_FOUND The shared link wasn't found.
 - 
SHARED_LINK_ACCESS_DENIEDpublic static final ModifySharedLinkSettingsError SHARED_LINK_ACCESS_DENIED The caller is not allowed to access this shared link.
 - 
UNSUPPORTED_LINK_TYPEpublic static final ModifySharedLinkSettingsError UNSUPPORTED_LINK_TYPE This type of link is not supported; useDbxUserFilesRequests.export(String,String)instead.
 - 
OTHERpublic 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_VERIFIEDpublic 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- 
tagpublic 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.
 
 - 
isSharedLinkNotFoundpublic boolean isSharedLinkNotFound() Returnstrueif this instance has the tagModifySharedLinkSettingsError.Tag.SHARED_LINK_NOT_FOUND,falseotherwise.- Returns:
- trueif this instance is tagged as- ModifySharedLinkSettingsError.Tag.SHARED_LINK_NOT_FOUND,- falseotherwise.
 
 - 
isSharedLinkAccessDeniedpublic boolean isSharedLinkAccessDenied() Returnstrueif this instance has the tagModifySharedLinkSettingsError.Tag.SHARED_LINK_ACCESS_DENIED,falseotherwise.- Returns:
- trueif this instance is tagged as- ModifySharedLinkSettingsError.Tag.SHARED_LINK_ACCESS_DENIED,- falseotherwise.
 
 - 
isUnsupportedLinkTypepublic boolean isUnsupportedLinkType() Returnstrueif this instance has the tagModifySharedLinkSettingsError.Tag.UNSUPPORTED_LINK_TYPE,falseotherwise.- Returns:
- trueif this instance is tagged as- ModifySharedLinkSettingsError.Tag.UNSUPPORTED_LINK_TYPE,- falseotherwise.
 
 - 
isOtherpublic boolean isOther() - Returns:
- trueif this instance is tagged as- ModifySharedLinkSettingsError.Tag.OTHER,- falseotherwise.
 
 - 
isSettingsErrorpublic boolean isSettingsError() Returnstrueif this instance has the tagModifySharedLinkSettingsError.Tag.SETTINGS_ERROR,falseotherwise.- Returns:
- trueif this instance is tagged as- ModifySharedLinkSettingsError.Tag.SETTINGS_ERROR,- falseotherwise.
 
 - 
settingsErrorpublic 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- if- valueis- null.
 
 - 
getSettingsErrorValuepublic 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- If- isSettingsError()is- false.
 
 - 
isEmailNotVerifiedpublic boolean isEmailNotVerified() Returnstrueif this instance has the tagModifySharedLinkSettingsError.Tag.EMAIL_NOT_VERIFIED,falseotherwise.- Returns:
- trueif this instance is tagged as- ModifySharedLinkSettingsError.Tag.EMAIL_NOT_VERIFIED,- falseotherwise.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringMultilinepublic 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
 
 
- 
 
-