@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) |
String |
getNextToken()
A token generated by the Athena service that specifies where to continue pagination if a previous request was
truncated.
|
List<SessionSummary> |
getSessions()
A list of sessions.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
A token generated by the Athena service that specifies where to continue pagination if a previous request was
truncated.
|
void |
setSessions(Collection<SessionSummary> sessions)
A list of sessions.
|
String |
toString()
Returns a string representation of this object.
|
ListSessionsResult |
withNextToken(String nextToken)
A token generated by the Athena service that specifies where to continue pagination if a previous request was
truncated.
|
ListSessionsResult |
withSessions(Collection<SessionSummary> sessions)
A list of sessions.
|
ListSessionsResult |
withSessions(SessionSummary... sessions)
A list of sessions.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setNextToken(String nextToken)
A token generated by the Athena service that specifies where to continue pagination if a previous request was
truncated. To obtain the next set of pages, pass in the NextToken
from the response object of the
previous page call.
nextToken
- A token generated by the Athena service that specifies where to continue pagination if a previous request
was truncated. To obtain the next set of pages, pass in the NextToken
from the response
object of the previous page call.public String getNextToken()
A token generated by the Athena service that specifies where to continue pagination if a previous request was
truncated. To obtain the next set of pages, pass in the NextToken
from the response object of the
previous page call.
NextToken
from the response
object of the previous page call.public ListSessionsResult withNextToken(String nextToken)
A token generated by the Athena service that specifies where to continue pagination if a previous request was
truncated. To obtain the next set of pages, pass in the NextToken
from the response object of the
previous page call.
nextToken
- A token generated by the Athena service that specifies where to continue pagination if a previous request
was truncated. To obtain the next set of pages, pass in the NextToken
from the response
object of the previous page call.public List<SessionSummary> getSessions()
A list of sessions.
public void setSessions(Collection<SessionSummary> sessions)
A list of sessions.
sessions
- A list of sessions.public ListSessionsResult withSessions(SessionSummary... sessions)
A list of sessions.
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.public ListSessionsResult withSessions(Collection<SessionSummary> sessions)
A list of sessions.
sessions
- A list of sessions.public String toString()
toString
in class Object
Object.toString()
public ListSessionsResult clone()
Copyright © 2023. All rights reserved.