Package com.dropbox.core.v2.files
Class UploadSessionFinishBatchJobStatus
java.lang.Object
com.dropbox.core.v2.files.UploadSessionFinishBatchJobStatus
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDiscriminating tag type forUploadSessionFinishBatchJobStatus. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UploadSessionFinishBatchJobStatusThe asynchronous job is still in progress. -
Method Summary
Modifier and TypeMethodDescriptionReturns an instance ofUploadSessionFinishBatchJobStatusthat has its tag set toUploadSessionFinishBatchJobStatus.Tag.COMPLETE.booleanTheDbxUserFilesRequests.uploadSessionFinishBatch(java.util.List)has finished.inthashCode()booleanReturnstrueif this instance has the tagUploadSessionFinishBatchJobStatus.Tag.COMPLETE,falseotherwise.booleanReturnstrueif this instance has the tagUploadSessionFinishBatchJobStatus.Tag.IN_PROGRESS,falseotherwise.tag()Returns the tag for this instance.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
IN_PROGRESS
The asynchronous job is still in progress.
-
-
Method Details
-
tag
Returns the tag for this instance.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 returntrue. Callers are recommended to use the tag value in aswitchstatement to properly handle the different values for thisUploadSessionFinishBatchJobStatus.- Returns:
- the tag for this instance.
-
isInProgress
public boolean isInProgress()Returnstrueif this instance has the tagUploadSessionFinishBatchJobStatus.Tag.IN_PROGRESS,falseotherwise.- Returns:
trueif this instance is tagged asUploadSessionFinishBatchJobStatus.Tag.IN_PROGRESS,falseotherwise.
-
isComplete
public boolean isComplete()Returnstrueif this instance has the tagUploadSessionFinishBatchJobStatus.Tag.COMPLETE,falseotherwise.- Returns:
trueif this instance is tagged asUploadSessionFinishBatchJobStatus.Tag.COMPLETE,falseotherwise.
-
complete
Returns an instance ofUploadSessionFinishBatchJobStatusthat has its tag set toUploadSessionFinishBatchJobStatus.Tag.COMPLETE.The
DbxUserFilesRequests.uploadSessionFinishBatch(java.util.List)has finished.- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
UploadSessionFinishBatchJobStatuswith its tag set toUploadSessionFinishBatchJobStatus.Tag.COMPLETE. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getCompleteValue
TheDbxUserFilesRequests.uploadSessionFinishBatch(java.util.List)has finished.This instance must be tagged as
UploadSessionFinishBatchJobStatus.Tag.COMPLETE.- Returns:
- The
UploadSessionFinishBatchResultvalue associated with this instance ifisComplete()istrue. - Throws:
IllegalStateException- IfisComplete()isfalse.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-