public final class ModifySharedLinkSettingsError
extends java.lang.Object
isAbc() methods will
return true. You can use tag() to determine the tag
associated with this instance.| 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.
|
static ModifySharedLinkSettingsError |
UNSUPPORTED_LINK_TYPE
This type of link is not supported; use
DbxUserFilesRequests.export(String) instead. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.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. |
boolean |
isUnsupportedLinkType()
Returns
true if this instance has the tag ModifySharedLinkSettingsError.Tag.UNSUPPORTED_LINK_TYPE, 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.
|
java.lang.String |
toString() |
java.lang.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 UNSUPPORTED_LINK_TYPE
DbxUserFilesRequests.export(String) instead.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 isUnsupportedLinkType()
true if this instance has the tag ModifySharedLinkSettingsError.Tag.UNSUPPORTED_LINK_TYPE, false otherwise.true if this instance is tagged as ModifySharedLinkSettingsError.Tag.UNSUPPORTED_LINK_TYPE, 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.java.lang.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.java.lang.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 int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringMultiline()
The returned String may contain newlines.