public final class TeamFolderArchiveJobStatus
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 |
TeamFolderArchiveJobStatus.Tag
Discriminating tag type for
TeamFolderArchiveJobStatus . |
Modifier and Type | Field and Description |
---|---|
static TeamFolderArchiveJobStatus |
IN_PROGRESS
The asynchronous job is still in progress.
|
Modifier and Type | Method and Description |
---|---|
static TeamFolderArchiveJobStatus |
complete(TeamFolderMetadata value)
Returns an instance of
TeamFolderArchiveJobStatus that has its
tag set to TeamFolderArchiveJobStatus.Tag.COMPLETE . |
boolean |
equals(java.lang.Object obj) |
static TeamFolderArchiveJobStatus |
failed(TeamFolderArchiveError value)
Returns an instance of
TeamFolderArchiveJobStatus that has its
tag set to TeamFolderArchiveJobStatus.Tag.FAILED . |
TeamFolderMetadata |
getCompleteValue()
The archive job has finished.
|
TeamFolderArchiveError |
getFailedValue()
Error occurred while performing an asynchronous job from
DbxTeamTeamRequests.teamFolderArchive(String,boolean) . |
int |
hashCode() |
boolean |
isComplete()
|
boolean |
isFailed()
|
boolean |
isInProgress()
Returns
true if this instance has the tag TeamFolderArchiveJobStatus.Tag.IN_PROGRESS , false otherwise. |
TeamFolderArchiveJobStatus.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 TeamFolderArchiveJobStatus IN_PROGRESS
public TeamFolderArchiveJobStatus.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 TeamFolderArchiveJobStatus
.
public boolean isInProgress()
true
if this instance has the tag TeamFolderArchiveJobStatus.Tag.IN_PROGRESS
, false
otherwise.true
if this instance is tagged as TeamFolderArchiveJobStatus.Tag.IN_PROGRESS
, false
otherwise.public boolean isComplete()
true
if this instance is tagged as TeamFolderArchiveJobStatus.Tag.COMPLETE
,
false
otherwise.public static TeamFolderArchiveJobStatus complete(TeamFolderMetadata value)
TeamFolderArchiveJobStatus
that has its
tag set to TeamFolderArchiveJobStatus.Tag.COMPLETE
.
The archive job has finished. The value is the metadata for the resulting team folder.
value
- value to assign to this instance.TeamFolderArchiveJobStatus
with its tag set
to TeamFolderArchiveJobStatus.Tag.COMPLETE
.java.lang.IllegalArgumentException
- if value
is null
.public TeamFolderMetadata getCompleteValue()
This instance must be tagged as TeamFolderArchiveJobStatus.Tag.COMPLETE
.
TeamFolderMetadata
value associated with this
instance if isComplete()
is true
.java.lang.IllegalStateException
- If isComplete()
is false
.public boolean isFailed()
true
if this instance is tagged as TeamFolderArchiveJobStatus.Tag.FAILED
,
false
otherwise.public static TeamFolderArchiveJobStatus failed(TeamFolderArchiveError value)
TeamFolderArchiveJobStatus
that has its
tag set to TeamFolderArchiveJobStatus.Tag.FAILED
.
Error occurred while performing an asynchronous job from DbxTeamTeamRequests.teamFolderArchive(String,boolean)
.
value
- value to assign to this instance.TeamFolderArchiveJobStatus
with its tag set
to TeamFolderArchiveJobStatus.Tag.FAILED
.java.lang.IllegalArgumentException
- if value
is null
.public TeamFolderArchiveError getFailedValue()
DbxTeamTeamRequests.teamFolderArchive(String,boolean)
.
This instance must be tagged as TeamFolderArchiveJobStatus.Tag.FAILED
.
TeamFolderArchiveError
value associated with this
instance if isFailed()
is true
.java.lang.IllegalStateException
- If isFailed()
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.