Class RelocationBatchErrorEntry
isAbc()
methods will return true. You can use tag() to determine the
tag associated with this instance.
Open unions may be extended in the future with additional tags. If a new
tag is introduced that this SDK does not recognized, the OTHER value
will be used.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDiscriminating tag type forRelocationBatchErrorEntry. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RelocationBatchErrorEntrySomething went wrong with the job on Dropbox's end.static final RelocationBatchErrorEntryCatch-all used for unknown tag values returned by the Dropbox servers.static final RelocationBatchErrorEntryThere are too many write operations in user's Dropbox. -
Method Summary
Modifier and TypeMethodDescriptionbooleanUser errors that retry won't help.inthashCode()booleanReturnstrueif this instance has the tagRelocationBatchErrorEntry.Tag.INTERNAL_ERROR,falseotherwise.booleanisOther()booleanReturnstrueif this instance has the tagRelocationBatchErrorEntry.Tag.RELOCATION_ERROR,falseotherwise.booleanReturnstrueif this instance has the tagRelocationBatchErrorEntry.Tag.TOO_MANY_WRITE_OPERATIONS,falseotherwise.static RelocationBatchErrorEntryrelocationError(RelocationError value) Returns an instance ofRelocationBatchErrorEntrythat has its tag set toRelocationBatchErrorEntry.Tag.RELOCATION_ERROR.tag()Returns the tag for this instance.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
INTERNAL_ERROR
Something went wrong with the job on Dropbox's end. You'll need to verify that the action you were taking succeeded, and if not, try again. This should happen very rarely. -
TOO_MANY_WRITE_OPERATIONS
There are too many write operations in user's Dropbox. Please retry this request. -
OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.Receiving a catch-all value typically indicates this SDK version is not up to date. Consider updating your SDK version to handle the new tags.
-
-
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 thisRelocationBatchErrorEntry.If a tag returned by the server is unrecognized by this SDK, the
RelocationBatchErrorEntry.Tag.OTHERvalue will be used.- Returns:
- the tag for this instance.
-
isRelocationError
public boolean isRelocationError()Returnstrueif this instance has the tagRelocationBatchErrorEntry.Tag.RELOCATION_ERROR,falseotherwise.- Returns:
trueif this instance is tagged asRelocationBatchErrorEntry.Tag.RELOCATION_ERROR,falseotherwise.
-
relocationError
Returns an instance ofRelocationBatchErrorEntrythat has its tag set toRelocationBatchErrorEntry.Tag.RELOCATION_ERROR.User errors that retry won't help.
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
RelocationBatchErrorEntrywith its tag set toRelocationBatchErrorEntry.Tag.RELOCATION_ERROR. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getRelocationErrorValue
User errors that retry won't help.This instance must be tagged as
RelocationBatchErrorEntry.Tag.RELOCATION_ERROR.- Returns:
- The
RelocationErrorvalue associated with this instance ifisRelocationError()istrue. - Throws:
IllegalStateException- IfisRelocationError()isfalse.
-
isInternalError
public boolean isInternalError()Returnstrueif this instance has the tagRelocationBatchErrorEntry.Tag.INTERNAL_ERROR,falseotherwise.- Returns:
trueif this instance is tagged asRelocationBatchErrorEntry.Tag.INTERNAL_ERROR,falseotherwise.
-
isTooManyWriteOperations
public boolean isTooManyWriteOperations()Returnstrueif this instance has the tagRelocationBatchErrorEntry.Tag.TOO_MANY_WRITE_OPERATIONS,falseotherwise.- Returns:
trueif this instance is tagged asRelocationBatchErrorEntry.Tag.TOO_MANY_WRITE_OPERATIONS,falseotherwise.
-
isOther
public boolean isOther()- Returns:
trueif this instance is tagged asRelocationBatchErrorEntry.Tag.OTHER,falseotherwise.
-
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
-