public class DescribeCasesResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Returns an array of CaseDetails objects and a NextToken
that defines a point for pagination in the result set.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<CaseDetails> |
cases
The details for the cases that match the request.
|
private java.lang.String |
nextToken
A resumption point for pagination.
|
Constructor and Description |
---|
DescribeCasesResult() |
Modifier and Type | Method and Description |
---|---|
DescribeCasesResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<CaseDetails> |
getCases()
The details for the cases that match the request.
|
java.lang.String |
getNextToken()
A resumption point for pagination.
|
int |
hashCode() |
void |
setCases(java.util.Collection<CaseDetails> cases)
The details for the cases that match the request.
|
void |
setNextToken(java.lang.String nextToken)
A resumption point for pagination.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeCasesResult |
withCases(CaseDetails... cases)
The details for the cases that match the request.
|
DescribeCasesResult |
withCases(java.util.Collection<CaseDetails> cases)
The details for the cases that match the request.
|
DescribeCasesResult |
withNextToken(java.lang.String nextToken)
A resumption point for pagination.
|
private SdkInternalList<CaseDetails> cases
The details for the cases that match the request.
private java.lang.String nextToken
A resumption point for pagination.
public java.util.List<CaseDetails> getCases()
The details for the cases that match the request.
public void setCases(java.util.Collection<CaseDetails> cases)
The details for the cases that match the request.
cases
- The details for the cases that match the request.public DescribeCasesResult withCases(CaseDetails... cases)
The details for the cases that match the request.
NOTE: This method appends the values to the existing list (if
any). Use setCases(java.util.Collection)
or
withCases(java.util.Collection)
if you want to override the
existing values.
cases
- The details for the cases that match the request.public DescribeCasesResult withCases(java.util.Collection<CaseDetails> cases)
The details for the cases that match the request.
cases
- The details for the cases that match the request.public void setNextToken(java.lang.String nextToken)
A resumption point for pagination.
nextToken
- A resumption point for pagination.public java.lang.String getNextToken()
A resumption point for pagination.
public DescribeCasesResult withNextToken(java.lang.String nextToken)
A resumption point for pagination.
nextToken
- A resumption point for pagination.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DescribeCasesResult clone()
clone
in class java.lang.Object