public final class RelocationBatchV2JobStatus
extends java.lang.Object
DbxUserFilesRequests.copyBatchCheckV2(String) or
DbxUserFilesRequests.moveBatchCheckV2(String) that may either be in
progress or completed with result for each entry.
This class is a tagged union. Tagged unions instances are always
associated to a specific tag. This means only one of the 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 |
RelocationBatchV2JobStatus.Tag
Discriminating tag type for
RelocationBatchV2JobStatus. |
| Modifier and Type | Field and Description |
|---|---|
static RelocationBatchV2JobStatus |
IN_PROGRESS
The asynchronous job is still in progress.
|
| Modifier and Type | Method and Description |
|---|---|
static RelocationBatchV2JobStatus |
complete(RelocationBatchV2Result value)
Returns an instance of
RelocationBatchV2JobStatus that has its
tag set to RelocationBatchV2JobStatus.Tag.COMPLETE. |
boolean |
equals(java.lang.Object obj) |
RelocationBatchV2Result |
getCompleteValue()
The copy or move batch job has finished.
|
int |
hashCode() |
boolean |
isComplete()
|
boolean |
isInProgress()
Returns
true if this instance has the tag RelocationBatchV2JobStatus.Tag.IN_PROGRESS, false otherwise. |
RelocationBatchV2JobStatus.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 RelocationBatchV2JobStatus IN_PROGRESS
public RelocationBatchV2JobStatus.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 RelocationBatchV2JobStatus.
public boolean isInProgress()
true if this instance has the tag RelocationBatchV2JobStatus.Tag.IN_PROGRESS, false otherwise.true if this instance is tagged as RelocationBatchV2JobStatus.Tag.IN_PROGRESS, false otherwise.public boolean isComplete()
true if this instance is tagged as RelocationBatchV2JobStatus.Tag.COMPLETE,
false otherwise.public static RelocationBatchV2JobStatus complete(RelocationBatchV2Result value)
RelocationBatchV2JobStatus that has its
tag set to RelocationBatchV2JobStatus.Tag.COMPLETE.
The copy or move batch job has finished.
value - value to assign to this instance.RelocationBatchV2JobStatus with its tag set
to RelocationBatchV2JobStatus.Tag.COMPLETE.java.lang.IllegalArgumentException - if value is null.public RelocationBatchV2Result getCompleteValue()
This instance must be tagged as RelocationBatchV2JobStatus.Tag.COMPLETE.
RelocationBatchV2Result value associated with this
instance if isComplete() is true.java.lang.IllegalStateException - If isComplete() is false.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.