@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListSessionsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListSessionsResult() |
Modifier and Type | Method and Description |
---|---|
ListSessionsResult |
clone() |
boolean |
equals(Object obj) |
List<String> |
getIds()
Returns the ID of the session.
|
String |
getNextToken()
The token for the next set of results, or null if there are no more result.
|
List<Session> |
getSessions()
Returns the session object.
|
int |
hashCode() |
void |
setIds(Collection<String> ids)
Returns the ID of the session.
|
void |
setNextToken(String nextToken)
The token for the next set of results, or null if there are no more result.
|
void |
setSessions(Collection<Session> sessions)
Returns the session object.
|
String |
toString()
Returns a string representation of this object.
|
ListSessionsResult |
withIds(Collection<String> ids)
Returns the ID of the session.
|
ListSessionsResult |
withIds(String... ids)
Returns the ID of the session.
|
ListSessionsResult |
withNextToken(String nextToken)
The token for the next set of results, or null if there are no more result.
|
ListSessionsResult |
withSessions(Collection<Session> sessions)
Returns the session object.
|
ListSessionsResult |
withSessions(Session... sessions)
Returns the session object.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<String> getIds()
Returns the ID of the session.
public void setIds(Collection<String> ids)
Returns the ID of the session.
ids
- Returns the ID of the session.public ListSessionsResult withIds(String... ids)
Returns the ID of the session.
NOTE: This method appends the values to the existing list (if any). Use
setIds(java.util.Collection)
or withIds(java.util.Collection)
if you want to override the
existing values.
ids
- Returns the ID of the session.public ListSessionsResult withIds(Collection<String> ids)
Returns the ID of the session.
ids
- Returns the ID of the session.public List<Session> getSessions()
Returns the session object.
public void setSessions(Collection<Session> sessions)
Returns the session object.
sessions
- Returns the session object.public ListSessionsResult withSessions(Session... sessions)
Returns the session object.
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
- Returns the session object.public ListSessionsResult withSessions(Collection<Session> sessions)
Returns the session object.
sessions
- Returns the session object.public void setNextToken(String nextToken)
The token for the next set of results, or null if there are no more result.
nextToken
- The token for the next set of results, or null if there are no more result.public String getNextToken()
The token for the next set of results, or null if there are no more result.
public ListSessionsResult withNextToken(String nextToken)
The token for the next set of results, or null if there are no more result.
nextToken
- The token for the next set of results, or null if there are no more result.public String toString()
toString
in class Object
Object.toString()
public ListSessionsResult clone()