Modifier and Type | Class and Description |
---|---|
static class |
UploadSessionFinishBatchJobStatus.Tag
Discriminating tag type for
UploadSessionFinishBatchJobStatus . |
Modifier and Type | Field and Description |
---|---|
static UploadSessionFinishBatchJobStatus |
IN_PROGRESS
The asynchronous job is still in progress.
|
Modifier and Type | Method and Description |
---|---|
static UploadSessionFinishBatchJobStatus |
complete(UploadSessionFinishBatchResult value)
Returns an instance of
UploadSessionFinishBatchJobStatus that has
its tag set to UploadSessionFinishBatchJobStatus.Tag.COMPLETE . |
boolean |
equals(Object obj) |
UploadSessionFinishBatchResult |
getCompleteValue()
The
DbxUserFilesRequests.uploadSessionFinishBatch(java.util.List)
has finished. |
int |
hashCode() |
boolean |
isComplete()
Returns
true if this instance has the tag UploadSessionFinishBatchJobStatus.Tag.COMPLETE ,
false otherwise. |
boolean |
isInProgress()
Returns
true if this instance has the tag UploadSessionFinishBatchJobStatus.Tag.IN_PROGRESS , false otherwise. |
UploadSessionFinishBatchJobStatus.Tag |
tag()
Returns the tag for this instance.
|
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
public static final UploadSessionFinishBatchJobStatus IN_PROGRESS
public UploadSessionFinishBatchJobStatus.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 UploadSessionFinishBatchJobStatus
.
public boolean isInProgress()
true
if this instance has the tag UploadSessionFinishBatchJobStatus.Tag.IN_PROGRESS
, false
otherwise.true
if this instance is tagged as UploadSessionFinishBatchJobStatus.Tag.IN_PROGRESS
, false
otherwise.public boolean isComplete()
true
if this instance has the tag UploadSessionFinishBatchJobStatus.Tag.COMPLETE
,
false
otherwise.true
if this instance is tagged as UploadSessionFinishBatchJobStatus.Tag.COMPLETE
,
false
otherwise.public static UploadSessionFinishBatchJobStatus complete(UploadSessionFinishBatchResult value)
UploadSessionFinishBatchJobStatus
that has
its tag set to UploadSessionFinishBatchJobStatus.Tag.COMPLETE
.
The DbxUserFilesRequests.uploadSessionFinishBatch(java.util.List)
has
finished.
value
- value to assign to this instance.UploadSessionFinishBatchJobStatus
with its
tag set to UploadSessionFinishBatchJobStatus.Tag.COMPLETE
.IllegalArgumentException
- if value
is null
.public UploadSessionFinishBatchResult getCompleteValue()
DbxUserFilesRequests.uploadSessionFinishBatch(java.util.List)
has finished.
This instance must be tagged as UploadSessionFinishBatchJobStatus.Tag.COMPLETE
.
UploadSessionFinishBatchResult
value associated with
this instance if isComplete()
is true
.IllegalStateException
- If isComplete()
is false
.public String toStringMultiline()
The returned String may contain newlines.