Package com.dropbox.core.v2.files
Class DeleteBatchResultEntry
java.lang.Object
com.dropbox.core.v2.files.DeleteBatchResultEntry
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 Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic DeleteBatchResultEntryfailure(DeleteError value) Returns an instance ofDeleteBatchResultEntrythat has its tag set toDeleteBatchResultEntry.Tag.FAILURE.This instance must be tagged asDeleteBatchResultEntry.Tag.FAILURE.This instance must be tagged asDeleteBatchResultEntry.Tag.SUCCESS.inthashCode()booleanbooleanstatic DeleteBatchResultEntrysuccess(DeleteBatchResultData value) Returns an instance ofDeleteBatchResultEntrythat has its tag set toDeleteBatchResultEntry.Tag.SUCCESS.tag()Returns the tag for this instance.toString()Returns a String representation of this object formatted for easier readability.
-
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 thisDeleteBatchResultEntry.- Returns:
- the tag for this instance.
-
isSuccess
public boolean isSuccess()- Returns:
trueif this instance is tagged asDeleteBatchResultEntry.Tag.SUCCESS,falseotherwise.
-
success
Returns an instance ofDeleteBatchResultEntrythat has its tag set toDeleteBatchResultEntry.Tag.SUCCESS.None
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
DeleteBatchResultEntrywith its tag set toDeleteBatchResultEntry.Tag.SUCCESS. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getSuccessValue
This instance must be tagged asDeleteBatchResultEntry.Tag.SUCCESS.- Returns:
- The
DeleteBatchResultDatavalue associated with this instance ifisSuccess()istrue. - Throws:
IllegalStateException- IfisSuccess()isfalse.
-
isFailure
public boolean isFailure()- Returns:
trueif this instance is tagged asDeleteBatchResultEntry.Tag.FAILURE,falseotherwise.
-
failure
Returns an instance ofDeleteBatchResultEntrythat has its tag set toDeleteBatchResultEntry.Tag.FAILURE.None
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
DeleteBatchResultEntrywith its tag set toDeleteBatchResultEntry.Tag.FAILURE. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getFailureValue
This instance must be tagged asDeleteBatchResultEntry.Tag.FAILURE.- Returns:
- The
DeleteErrorvalue associated with this instance ifisFailure()istrue. - Throws:
IllegalStateException- IfisFailure()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
-