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