Interface ListSessionsResponse.Builder
- All Superinterfaces:
AthenaResponse.Builder
,AwsResponse.Builder
,Buildable
,CopyableBuilder<ListSessionsResponse.Builder,
,ListSessionsResponse> SdkBuilder<ListSessionsResponse.Builder,
,ListSessionsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListSessionsResponse
public static interface ListSessionsResponse.Builder
extends AthenaResponse.Builder, SdkPojo, CopyableBuilder<ListSessionsResponse.Builder,ListSessionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionA token generated by the Athena service that specifies where to continue pagination if a previous request was truncated.sessions
(Collection<SessionSummary> sessions) A list of sessions.sessions
(Consumer<SessionSummary.Builder>... sessions) A list of sessions.sessions
(SessionSummary... sessions) A list of sessions.Methods inherited from interface software.amazon.awssdk.services.athena.model.AthenaResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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.- Parameters:
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 theNextToken
from the response object of the previous page call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessions
A list of sessions.
- Parameters:
sessions
- A list of sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessions
A list of sessions.
- Parameters:
sessions
- A list of sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessions
A list of sessions.
This is a convenience method that creates an instance of theSessionSummary.Builder
avoiding the need to create one manually viaSessionSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosessions(List<SessionSummary>)
.- Parameters:
sessions
- a consumer that will call methods onSessionSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-