Interface ListSessionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListSessionsResponse.Builder,,ListSessionsResponse> EmrServerlessResponse.Builder,SdkBuilder<ListSessionsResponse.Builder,,ListSessionsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListSessionsResponse
@Mutable
@NotThreadSafe
public static interface ListSessionsResponse.Builder
extends EmrServerlessResponse.Builder, SdkPojo, CopyableBuilder<ListSessionsResponse.Builder,ListSessionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe output displays the token for the next set of session results.sessions(Collection<SessionSummary> sessions) The output lists information about the specified sessions.sessions(Consumer<SessionSummary.Builder>... sessions) The output lists information about the specified sessions.sessions(SessionSummary... sessions) The output lists information about the specified sessions.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.emrserverless.model.EmrServerlessResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
sessions
The output lists information about the specified sessions.
- Parameters:
sessions- The output lists information about the specified sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessions
The output lists information about the specified sessions.
- Parameters:
sessions- The output lists information about the specified sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessions
The output lists information about the specified sessions.
This is a convenience method that creates an instance of theSessionSummary.Builderavoiding the need to create one manually viaSessionSummary.builder().When the
Consumercompletes,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:
-
nextToken
The output displays the token for the next set of session results. This is required for pagination and is available as a response of the previous request.
- Parameters:
nextToken- The output displays the token for the next set of session results. This is required for pagination and is available as a response of the previous request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-