Package com.dropbox.core.v2.team
Class TeamFolderArchiveJobStatus
java.lang.Object
com.dropbox.core.v2.team.TeamFolderArchiveJobStatus
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 forTeamFolderArchiveJobStatus. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TeamFolderArchiveJobStatusThe asynchronous job is still in progress. -
Method Summary
Modifier and TypeMethodDescriptionstatic TeamFolderArchiveJobStatuscomplete(TeamFolderMetadata value) Returns an instance ofTeamFolderArchiveJobStatusthat has its tag set toTeamFolderArchiveJobStatus.Tag.COMPLETE.booleanstatic TeamFolderArchiveJobStatusfailed(TeamFolderArchiveError value) Returns an instance ofTeamFolderArchiveJobStatusthat has its tag set toTeamFolderArchiveJobStatus.Tag.FAILED.The archive job has finished.Error occurred while performing an asynchronous job fromDbxTeamTeamRequests.teamFolderArchive(String,boolean).inthashCode()booleanbooleanisFailed()booleanReturnstrueif this instance has the tagTeamFolderArchiveJobStatus.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 thisTeamFolderArchiveJobStatus.- Returns:
- the tag for this instance.
-
isInProgress
public boolean isInProgress()Returnstrueif this instance has the tagTeamFolderArchiveJobStatus.Tag.IN_PROGRESS,falseotherwise.- Returns:
trueif this instance is tagged asTeamFolderArchiveJobStatus.Tag.IN_PROGRESS,falseotherwise.
-
isComplete
public boolean isComplete()- Returns:
trueif this instance is tagged asTeamFolderArchiveJobStatus.Tag.COMPLETE,falseotherwise.
-
complete
Returns an instance ofTeamFolderArchiveJobStatusthat has its tag set toTeamFolderArchiveJobStatus.Tag.COMPLETE.The archive job has finished. The value is the metadata for the resulting team folder.
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
TeamFolderArchiveJobStatuswith its tag set toTeamFolderArchiveJobStatus.Tag.COMPLETE. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getCompleteValue
The archive job has finished. The value is the metadata for the resulting team folder.This instance must be tagged as
TeamFolderArchiveJobStatus.Tag.COMPLETE.- Returns:
- The
TeamFolderMetadatavalue associated with this instance ifisComplete()istrue. - Throws:
IllegalStateException- IfisComplete()isfalse.
-
isFailed
public boolean isFailed()- Returns:
trueif this instance is tagged asTeamFolderArchiveJobStatus.Tag.FAILED,falseotherwise.
-
failed
Returns an instance ofTeamFolderArchiveJobStatusthat has its tag set toTeamFolderArchiveJobStatus.Tag.FAILED.Error occurred while performing an asynchronous job from
DbxTeamTeamRequests.teamFolderArchive(String,boolean).- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
TeamFolderArchiveJobStatuswith its tag set toTeamFolderArchiveJobStatus.Tag.FAILED. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getFailedValue
Error occurred while performing an asynchronous job fromDbxTeamTeamRequests.teamFolderArchive(String,boolean).This instance must be tagged as
TeamFolderArchiveJobStatus.Tag.FAILED.- Returns:
- The
TeamFolderArchiveErrorvalue associated with this instance ifisFailed()istrue. - Throws:
IllegalStateException- IfisFailed()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
-