@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListSessionsForWorkerResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListSessionsForWorkerResult() |
Modifier and Type | Method and Description |
---|---|
ListSessionsForWorkerResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
The token for the next set of results, or
null to start from the beginning. |
List<WorkerSessionSummary> |
getSessions()
The sessions in the response.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The token for the next set of results, or
null to start from the beginning. |
void |
setSessions(Collection<WorkerSessionSummary> sessions)
The sessions in the response.
|
String |
toString()
Returns a string representation of this object.
|
ListSessionsForWorkerResult |
withNextToken(String nextToken)
The token for the next set of results, or
null to start from the beginning. |
ListSessionsForWorkerResult |
withSessions(Collection<WorkerSessionSummary> sessions)
The sessions in the response.
|
ListSessionsForWorkerResult |
withSessions(WorkerSessionSummary... sessions)
The sessions in the response.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setNextToken(String nextToken)
The token for the next set of results, or null
to start from the beginning.
nextToken
- The token for the next set of results, or null
to start from the beginning.public String getNextToken()
The token for the next set of results, or null
to start from the beginning.
null
to start from the beginning.public ListSessionsForWorkerResult withNextToken(String nextToken)
The token for the next set of results, or null
to start from the beginning.
nextToken
- The token for the next set of results, or null
to start from the beginning.public List<WorkerSessionSummary> getSessions()
The sessions in the response.
public void setSessions(Collection<WorkerSessionSummary> sessions)
The sessions in the response.
sessions
- The sessions in the response.public ListSessionsForWorkerResult withSessions(WorkerSessionSummary... sessions)
The sessions in the response.
NOTE: This method appends the values to the existing list (if any). Use
setSessions(java.util.Collection)
or withSessions(java.util.Collection)
if you want to override
the existing values.
sessions
- The sessions in the response.public ListSessionsForWorkerResult withSessions(Collection<WorkerSessionSummary> sessions)
The sessions in the response.
sessions
- The sessions in the response.public String toString()
toString
in class Object
Object.toString()
public ListSessionsForWorkerResult clone()