public final class ListUsersCursorError
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 |
ListUsersCursorError.Tag
Discriminating tag type for
ListUsersCursorError . |
Modifier and Type | Field and Description |
---|---|
static ListUsersCursorError |
DOC_NOT_FOUND
The required doc was not found.
|
static ListUsersCursorError |
INSUFFICIENT_PERMISSIONS
Your account does not have permissions to perform this action.
|
static ListUsersCursorError |
OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.
|
Modifier and Type | Method and Description |
---|---|
static ListUsersCursorError |
cursorError(PaperApiCursorError value)
Returns an instance of
ListUsersCursorError that has its tag set
to ListUsersCursorError.Tag.CURSOR_ERROR . |
boolean |
equals(java.lang.Object obj) |
PaperApiCursorError |
getCursorErrorValue()
This instance must be tagged as
ListUsersCursorError.Tag.CURSOR_ERROR . |
int |
hashCode() |
boolean |
isCursorError()
|
boolean |
isDocNotFound()
|
boolean |
isInsufficientPermissions()
Returns
true if this instance has the tag ListUsersCursorError.Tag.INSUFFICIENT_PERMISSIONS , false otherwise. |
boolean |
isOther()
|
ListUsersCursorError.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 ListUsersCursorError INSUFFICIENT_PERMISSIONS
public static final ListUsersCursorError 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 ListUsersCursorError DOC_NOT_FOUND
public ListUsersCursorError.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 ListUsersCursorError
.
public boolean isInsufficientPermissions()
true
if this instance has the tag ListUsersCursorError.Tag.INSUFFICIENT_PERMISSIONS
, false
otherwise.true
if this instance is tagged as ListUsersCursorError.Tag.INSUFFICIENT_PERMISSIONS
, false
otherwise.public boolean isOther()
true
if this instance is tagged as ListUsersCursorError.Tag.OTHER
,
false
otherwise.public boolean isDocNotFound()
true
if this instance is tagged as ListUsersCursorError.Tag.DOC_NOT_FOUND
, false
otherwise.public boolean isCursorError()
true
if this instance is tagged as ListUsersCursorError.Tag.CURSOR_ERROR
, false
otherwise.public static ListUsersCursorError cursorError(PaperApiCursorError value)
ListUsersCursorError
that has its tag set
to ListUsersCursorError.Tag.CURSOR_ERROR
.
None
value
- value to assign to this instance.ListUsersCursorError
with its tag set to
ListUsersCursorError.Tag.CURSOR_ERROR
.java.lang.IllegalArgumentException
- if value
is null
.public PaperApiCursorError getCursorErrorValue()
ListUsersCursorError.Tag.CURSOR_ERROR
.PaperApiCursorError
value associated with this
instance if isCursorError()
is true
.java.lang.IllegalStateException
- If isCursorError()
is false
.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.