public final class RelocationBatchJobStatus
extends java.lang.Object
isAbc() methods will
return true. You can use tag() to determine the tag
associated with this instance.| Modifier and Type | Class and Description |
|---|---|
static class |
RelocationBatchJobStatus.Tag
Discriminating tag type for
RelocationBatchJobStatus. |
| Modifier and Type | Field and Description |
|---|---|
static RelocationBatchJobStatus |
IN_PROGRESS
The asynchronous job is still in progress.
|
| Modifier and Type | Method and Description |
|---|---|
static RelocationBatchJobStatus |
complete(RelocationBatchResult value)
Returns an instance of
RelocationBatchJobStatus that has its tag
set to RelocationBatchJobStatus.Tag.COMPLETE. |
boolean |
equals(java.lang.Object obj) |
static RelocationBatchJobStatus |
failed(RelocationBatchError value)
Returns an instance of
RelocationBatchJobStatus that has its tag
set to RelocationBatchJobStatus.Tag.FAILED. |
RelocationBatchResult |
getCompleteValue()
The copy or move batch job has finished.
|
RelocationBatchError |
getFailedValue()
The copy or move batch job has failed with exception.
|
int |
hashCode() |
boolean |
isComplete()
|
boolean |
isFailed()
|
boolean |
isInProgress()
Returns
true if this instance has the tag RelocationBatchJobStatus.Tag.IN_PROGRESS, false otherwise. |
RelocationBatchJobStatus.Tag |
tag()
Returns the tag for this instance.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
public static final RelocationBatchJobStatus IN_PROGRESS
public RelocationBatchJobStatus.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 RelocationBatchJobStatus.
public boolean isInProgress()
true if this instance has the tag RelocationBatchJobStatus.Tag.IN_PROGRESS, false otherwise.true if this instance is tagged as RelocationBatchJobStatus.Tag.IN_PROGRESS, false otherwise.public boolean isComplete()
true if this instance is tagged as RelocationBatchJobStatus.Tag.COMPLETE,
false otherwise.public static RelocationBatchJobStatus complete(RelocationBatchResult value)
RelocationBatchJobStatus that has its tag
set to RelocationBatchJobStatus.Tag.COMPLETE.
The copy or move batch job has finished.
value - value to assign to this instance.RelocationBatchJobStatus with its tag set to
RelocationBatchJobStatus.Tag.COMPLETE.java.lang.IllegalArgumentException - if value is null.public RelocationBatchResult getCompleteValue()
This instance must be tagged as RelocationBatchJobStatus.Tag.COMPLETE.
RelocationBatchResult value associated with this
instance if isComplete() is true.java.lang.IllegalStateException - If isComplete() is false.public boolean isFailed()
true if this instance is tagged as RelocationBatchJobStatus.Tag.FAILED,
false otherwise.public static RelocationBatchJobStatus failed(RelocationBatchError value)
RelocationBatchJobStatus that has its tag
set to RelocationBatchJobStatus.Tag.FAILED.
The copy or move batch job has failed with exception.
value - value to assign to this instance.RelocationBatchJobStatus with its tag set to
RelocationBatchJobStatus.Tag.FAILED.java.lang.IllegalArgumentException - if value is null.public RelocationBatchError getFailedValue()
This instance must be tagged as RelocationBatchJobStatus.Tag.FAILED.
RelocationBatchError value associated with this
instance if isFailed() is true.java.lang.IllegalStateException - If isFailed() is false.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringMultiline()
The returned String may contain newlines.