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