@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeSessionsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DescribeSessionsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeSessionsResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
The token for the next set of items to return.
|
List<Session> |
getSessions()
A list of sessions meeting the request parameters.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The token for the next set of items to return.
|
void |
setSessions(Collection<Session> sessions)
A list of sessions meeting the request parameters.
|
String |
toString()
Returns a string representation of this object.
|
DescribeSessionsResult |
withNextToken(String nextToken)
The token for the next set of items to return.
|
DescribeSessionsResult |
withSessions(Collection<Session> sessions)
A list of sessions meeting the request parameters.
|
DescribeSessionsResult |
withSessions(Session... sessions)
A list of sessions meeting the request parameters.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Session> getSessions()
A list of sessions meeting the request parameters.
public void setSessions(Collection<Session> sessions)
A list of sessions meeting the request parameters.
sessions
- A list of sessions meeting the request parameters.public DescribeSessionsResult withSessions(Session... sessions)
A list of sessions meeting the request parameters.
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
- A list of sessions meeting the request parameters.public DescribeSessionsResult withSessions(Collection<Session> sessions)
A list of sessions meeting the request parameters.
sessions
- A list of sessions meeting the request parameters.public void setNextToken(String nextToken)
The token for the next set of items to return. (You received this token from a previous call.)
nextToken
- The token for the next set of items to return. (You received this token from a previous call.)public String getNextToken()
The token for the next set of items to return. (You received this token from a previous call.)
public DescribeSessionsResult withNextToken(String nextToken)
The token for the next set of items to return. (You received this token from a previous call.)
nextToken
- The token for the next set of items to return. (You received this token from a previous call.)public String toString()
toString
in class Object
Object.toString()
public DescribeSessionsResult clone()