public final class TeamFolderPermanentlyDeleteError
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 |
TeamFolderPermanentlyDeleteError.Tag
Discriminating tag type for
TeamFolderPermanentlyDeleteError . |
Modifier and Type | Field and Description |
---|---|
static TeamFolderPermanentlyDeleteError |
OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.
|
public static final TeamFolderPermanentlyDeleteError 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 TeamFolderPermanentlyDeleteError.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 TeamFolderPermanentlyDeleteError
.
public boolean isAccessError()
true
if this instance has the tag TeamFolderPermanentlyDeleteError.Tag.ACCESS_ERROR
, false
otherwise.true
if this instance is tagged as TeamFolderPermanentlyDeleteError.Tag.ACCESS_ERROR
, false
otherwise.public static TeamFolderPermanentlyDeleteError accessError(TeamFolderAccessError value)
TeamFolderPermanentlyDeleteError
that has
its tag set to TeamFolderPermanentlyDeleteError.Tag.ACCESS_ERROR
.
None
value
- value to assign to this instance.TeamFolderPermanentlyDeleteError
with its tag
set to TeamFolderPermanentlyDeleteError.Tag.ACCESS_ERROR
.java.lang.IllegalArgumentException
- if value
is null
.public TeamFolderAccessError getAccessErrorValue()
TeamFolderPermanentlyDeleteError.Tag.ACCESS_ERROR
.TeamFolderAccessError
value associated with this
instance if isAccessError()
is true
.java.lang.IllegalStateException
- If isAccessError()
is false
.public boolean isStatusError()
true
if this instance has the tag TeamFolderPermanentlyDeleteError.Tag.STATUS_ERROR
, false
otherwise.true
if this instance is tagged as TeamFolderPermanentlyDeleteError.Tag.STATUS_ERROR
, false
otherwise.public static TeamFolderPermanentlyDeleteError statusError(TeamFolderInvalidStatusError value)
TeamFolderPermanentlyDeleteError
that has
its tag set to TeamFolderPermanentlyDeleteError.Tag.STATUS_ERROR
.
None
value
- value to assign to this instance.TeamFolderPermanentlyDeleteError
with its tag
set to TeamFolderPermanentlyDeleteError.Tag.STATUS_ERROR
.java.lang.IllegalArgumentException
- if value
is null
.public TeamFolderInvalidStatusError getStatusErrorValue()
TeamFolderPermanentlyDeleteError.Tag.STATUS_ERROR
.TeamFolderInvalidStatusError
value associated with
this instance if isStatusError()
is true
.java.lang.IllegalStateException
- If isStatusError()
is false
.public boolean isTeamSharedDropboxError()
true
if this instance has the tag TeamFolderPermanentlyDeleteError.Tag.TEAM_SHARED_DROPBOX_ERROR
, false
otherwise.true
if this instance is tagged as TeamFolderPermanentlyDeleteError.Tag.TEAM_SHARED_DROPBOX_ERROR
, false
otherwise.public static TeamFolderPermanentlyDeleteError teamSharedDropboxError(TeamFolderTeamSharedDropboxError value)
TeamFolderPermanentlyDeleteError
that has
its tag set to TeamFolderPermanentlyDeleteError.Tag.TEAM_SHARED_DROPBOX_ERROR
.
None
value
- value to assign to this instance.TeamFolderPermanentlyDeleteError
with its tag
set to TeamFolderPermanentlyDeleteError.Tag.TEAM_SHARED_DROPBOX_ERROR
.java.lang.IllegalArgumentException
- if value
is null
.public TeamFolderTeamSharedDropboxError getTeamSharedDropboxErrorValue()
TeamFolderPermanentlyDeleteError.Tag.TEAM_SHARED_DROPBOX_ERROR
.TeamFolderTeamSharedDropboxError
value associated
with this instance if isTeamSharedDropboxError()
is true
.java.lang.IllegalStateException
- If isTeamSharedDropboxError()
is
false
.public boolean isOther()
true
if this instance has the tag TeamFolderPermanentlyDeleteError.Tag.OTHER
,
false
otherwise.true
if this instance is tagged as TeamFolderPermanentlyDeleteError.Tag.OTHER
,
false
otherwise.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.