public final class MembersAddJobStatus
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 |
MembersAddJobStatus.Tag
Discriminating tag type for
MembersAddJobStatus. |
| Modifier and Type | Field and Description |
|---|---|
static MembersAddJobStatus |
IN_PROGRESS
The asynchronous job is still in progress.
|
| Modifier and Type | Method and Description |
|---|---|
static MembersAddJobStatus |
complete(java.util.List<MemberAddResult> value)
Returns an instance of
MembersAddJobStatus that has its tag set
to MembersAddJobStatus.Tag.COMPLETE. |
boolean |
equals(java.lang.Object obj) |
static MembersAddJobStatus |
failed(java.lang.String value)
Returns an instance of
MembersAddJobStatus that has its tag set
to MembersAddJobStatus.Tag.FAILED. |
java.util.List<MemberAddResult> |
getCompleteValue()
The asynchronous job has finished.
|
java.lang.String |
getFailedValue()
The asynchronous job returned an error.
|
int |
hashCode() |
boolean |
isComplete()
|
boolean |
isFailed()
|
boolean |
isInProgress()
|
MembersAddJobStatus.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 MembersAddJobStatus IN_PROGRESS
public MembersAddJobStatus.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 MembersAddJobStatus.
public boolean isInProgress()
true if this instance is tagged as MembersAddJobStatus.Tag.IN_PROGRESS, false otherwise.public boolean isComplete()
true if this instance is tagged as MembersAddJobStatus.Tag.COMPLETE,
false otherwise.public static MembersAddJobStatus complete(java.util.List<MemberAddResult> value)
MembersAddJobStatus that has its tag set
to MembersAddJobStatus.Tag.COMPLETE.
The asynchronous job has finished. For each member that was specified
in the parameter MembersAddArg that was provided to DbxTeamTeamRequests.membersAdd(List,boolean), a corresponding item is
returned in this list.
value - value to assign to this instance.MembersAddJobStatus with its tag set to
MembersAddJobStatus.Tag.COMPLETE.java.lang.IllegalArgumentException - if value contains a null item or is null.public java.util.List<MemberAddResult> getCompleteValue()
MembersAddArg that was provided to DbxTeamTeamRequests.membersAdd(List,boolean), a corresponding item is
returned in this list.
This instance must be tagged as MembersAddJobStatus.Tag.COMPLETE.
List 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 MembersAddJobStatus.Tag.FAILED,
false otherwise.public static MembersAddJobStatus failed(java.lang.String value)
MembersAddJobStatus that has its tag set
to MembersAddJobStatus.Tag.FAILED.
The asynchronous job returned an error. The string contains an error message.
value - value to assign to this instance.MembersAddJobStatus with its tag set to
MembersAddJobStatus.Tag.FAILED.java.lang.IllegalArgumentException - if value is null.public java.lang.String getFailedValue()
This instance must be tagged as MembersAddJobStatus.Tag.FAILED.
String 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.