Modifier and Type | Class and Description |
---|---|
static class |
ModifySharedLinkSettingsError.Tag
Discriminating tag type for
ModifySharedLinkSettingsError . |
Modifier and Type | Field and Description |
---|---|
static ModifySharedLinkSettingsError |
EMAIL_NOT_VERIFIED
The caller's email should be verified
|
static ModifySharedLinkSettingsError |
OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.
|
static ModifySharedLinkSettingsError |
SHARED_LINK_ACCESS_DENIED
The caller is not allowed to access this shared link
|
static ModifySharedLinkSettingsError |
SHARED_LINK_NOT_FOUND
The shared link wasn't found
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
SharedLinkSettingsError |
getSettingsErrorValue()
There is an error with the given settings
|
int |
hashCode() |
boolean |
isEmailNotVerified()
Returns
true if this instance has the tag ModifySharedLinkSettingsError.Tag.EMAIL_NOT_VERIFIED , false otherwise. |
boolean |
isOther()
|
boolean |
isSettingsError()
Returns
true if this instance has the tag ModifySharedLinkSettingsError.Tag.SETTINGS_ERROR , false otherwise. |
boolean |
isSharedLinkAccessDenied()
Returns
true if this instance has the tag ModifySharedLinkSettingsError.Tag.SHARED_LINK_ACCESS_DENIED , false otherwise. |
boolean |
isSharedLinkNotFound()
Returns
true if this instance has the tag ModifySharedLinkSettingsError.Tag.SHARED_LINK_NOT_FOUND , false otherwise. |
static ModifySharedLinkSettingsError |
settingsError(SharedLinkSettingsError value)
Returns an instance of
ModifySharedLinkSettingsError that has its
tag set to ModifySharedLinkSettingsError.Tag.SETTINGS_ERROR . |
ModifySharedLinkSettingsError.Tag |
tag()
Returns the tag for this instance.
|
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
public static final ModifySharedLinkSettingsError SHARED_LINK_NOT_FOUND
public static final ModifySharedLinkSettingsError SHARED_LINK_ACCESS_DENIED
public static final ModifySharedLinkSettingsError OTHER
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.
public static final ModifySharedLinkSettingsError EMAIL_NOT_VERIFIED
public ModifySharedLinkSettingsError.Tag tag()
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 return true
. Callers are recommended to use the tag
value in a switch
statement to properly handle the different
values for this ModifySharedLinkSettingsError
.
public boolean isSharedLinkNotFound()
true
if this instance has the tag ModifySharedLinkSettingsError.Tag.SHARED_LINK_NOT_FOUND
, false
otherwise.true
if this instance is tagged as ModifySharedLinkSettingsError.Tag.SHARED_LINK_NOT_FOUND
, false
otherwise.public boolean isSharedLinkAccessDenied()
true
if this instance has the tag ModifySharedLinkSettingsError.Tag.SHARED_LINK_ACCESS_DENIED
, false
otherwise.true
if this instance is tagged as ModifySharedLinkSettingsError.Tag.SHARED_LINK_ACCESS_DENIED
, false
otherwise.public boolean isOther()
true
if this instance is tagged as ModifySharedLinkSettingsError.Tag.OTHER
,
false
otherwise.public boolean isSettingsError()
true
if this instance has the tag ModifySharedLinkSettingsError.Tag.SETTINGS_ERROR
, false
otherwise.true
if this instance is tagged as ModifySharedLinkSettingsError.Tag.SETTINGS_ERROR
, false
otherwise.public static ModifySharedLinkSettingsError settingsError(SharedLinkSettingsError value)
ModifySharedLinkSettingsError
that has its
tag set to ModifySharedLinkSettingsError.Tag.SETTINGS_ERROR
.
There is an error with the given settings
value
- value to assign to this instance.ModifySharedLinkSettingsError
with its tag
set to ModifySharedLinkSettingsError.Tag.SETTINGS_ERROR
.IllegalArgumentException
- if value
is null
.public SharedLinkSettingsError getSettingsErrorValue()
This instance must be tagged as ModifySharedLinkSettingsError.Tag.SETTINGS_ERROR
.
SharedLinkSettingsError
value associated with this
instance if isSettingsError()
is true
.IllegalStateException
- If isSettingsError()
is false
.public boolean isEmailNotVerified()
true
if this instance has the tag ModifySharedLinkSettingsError.Tag.EMAIL_NOT_VERIFIED
, false
otherwise.true
if this instance is tagged as ModifySharedLinkSettingsError.Tag.EMAIL_NOT_VERIFIED
, false
otherwise.public String toStringMultiline()
The returned String may contain newlines.