Package com.dropbox.core.v2.sharing
Class ModifySharedLinkSettingsError
- java.lang.Object
-
- com.dropbox.core.v2.sharing.ModifySharedLinkSettingsError
-
public final class ModifySharedLinkSettingsError extends java.lang.Object
This 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 class
ModifySharedLinkSettingsError.Tag
Discriminating tag type forModifySharedLinkSettingsError
.
-
Field Summary
Fields Modifier and Type Field 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; useDbxUserFilesRequests.export(String)
instead.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
SharedLinkSettingsError
getSettingsErrorValue()
There is an error with the given settings.int
hashCode()
boolean
isEmailNotVerified()
Returnstrue
if this instance has the tagModifySharedLinkSettingsError.Tag.EMAIL_NOT_VERIFIED
,false
otherwise.boolean
isOther()
boolean
isSettingsError()
Returnstrue
if this instance has the tagModifySharedLinkSettingsError.Tag.SETTINGS_ERROR
,false
otherwise.boolean
isSharedLinkAccessDenied()
Returnstrue
if this instance has the tagModifySharedLinkSettingsError.Tag.SHARED_LINK_ACCESS_DENIED
,false
otherwise.boolean
isSharedLinkNotFound()
Returnstrue
if this instance has the tagModifySharedLinkSettingsError.Tag.SHARED_LINK_NOT_FOUND
,false
otherwise.boolean
isUnsupportedLinkType()
Returnstrue
if this instance has the tagModifySharedLinkSettingsError.Tag.UNSUPPORTED_LINK_TYPE
,false
otherwise.static ModifySharedLinkSettingsError
settingsError(SharedLinkSettingsError value)
Returns an instance ofModifySharedLinkSettingsError
that has its tag set toModifySharedLinkSettingsError.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.
-
-
-
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)
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
The caller's email should be verified.
-
-
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 aswitch
statement to properly handle the different values for thisModifySharedLinkSettingsError
.- Returns:
- the tag for this instance.
-
isSharedLinkNotFound
public boolean isSharedLinkNotFound()
Returnstrue
if this instance has the tagModifySharedLinkSettingsError.Tag.SHARED_LINK_NOT_FOUND
,false
otherwise.- Returns:
true
if this instance is tagged asModifySharedLinkSettingsError.Tag.SHARED_LINK_NOT_FOUND
,false
otherwise.
-
isSharedLinkAccessDenied
public boolean isSharedLinkAccessDenied()
Returnstrue
if this instance has the tagModifySharedLinkSettingsError.Tag.SHARED_LINK_ACCESS_DENIED
,false
otherwise.- Returns:
true
if this instance is tagged asModifySharedLinkSettingsError.Tag.SHARED_LINK_ACCESS_DENIED
,false
otherwise.
-
isUnsupportedLinkType
public boolean isUnsupportedLinkType()
Returnstrue
if this instance has the tagModifySharedLinkSettingsError.Tag.UNSUPPORTED_LINK_TYPE
,false
otherwise.- Returns:
true
if this instance is tagged asModifySharedLinkSettingsError.Tag.UNSUPPORTED_LINK_TYPE
,false
otherwise.
-
isOther
public boolean isOther()
- Returns:
true
if this instance is tagged asModifySharedLinkSettingsError.Tag.OTHER
,false
otherwise.
-
isSettingsError
public boolean isSettingsError()
Returnstrue
if this instance has the tagModifySharedLinkSettingsError.Tag.SETTINGS_ERROR
,false
otherwise.- Returns:
true
if this instance is tagged asModifySharedLinkSettingsError.Tag.SETTINGS_ERROR
,false
otherwise.
-
settingsError
public static ModifySharedLinkSettingsError settingsError(SharedLinkSettingsError value)
Returns an instance ofModifySharedLinkSettingsError
that 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
ModifySharedLinkSettingsError
with its tag set toModifySharedLinkSettingsError.Tag.SETTINGS_ERROR
. - Throws:
java.lang.IllegalArgumentException
- ifvalue
isnull
.
-
getSettingsErrorValue
public SharedLinkSettingsError getSettingsErrorValue()
There is an error with the given settings.This instance must be tagged as
ModifySharedLinkSettingsError.Tag.SETTINGS_ERROR
.- Returns:
- The
SharedLinkSettingsError
value associated with this instance ifisSettingsError()
istrue
. - Throws:
java.lang.IllegalStateException
- IfisSettingsError()
isfalse
.
-
isEmailNotVerified
public boolean isEmailNotVerified()
Returnstrue
if this instance has the tagModifySharedLinkSettingsError.Tag.EMAIL_NOT_VERIFIED
,false
otherwise.- Returns:
true
if this instance is tagged asModifySharedLinkSettingsError.Tag.EMAIL_NOT_VERIFIED
,false
otherwise.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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
-
-