Interface ListSessionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListSessionsResponse.Builder,,ListSessionsResponse> EmrResponse.Builder,SdkBuilder<ListSessionsResponse.Builder,,ListSessionsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListSessionsResponse
@Mutable
@NotThreadSafe
public static interface ListSessionsResponse.Builder
extends EmrResponse.Builder, SdkPojo, CopyableBuilder<ListSessionsResponse.Builder,ListSessionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe pagination token to use in a subsequentListSessionscall to retrieve the next page of results.sessions(Collection<Session> sessions) The sessions that match the request.sessions(Consumer<Session.Builder>... sessions) The sessions that match the request.The sessions that match the request.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.emr.model.EmrResponse.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 sessions that match the request.
- Parameters:
sessions- The sessions that match the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessions
The sessions that match the request.
- Parameters:
sessions- The sessions that match the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessions
The sessions that match the request.
This is a convenience method that creates an instance of theSession.Builderavoiding the need to create one manually viaSession.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosessions(List<Session>).- Parameters:
sessions- a consumer that will call methods onSession.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The pagination token to use in a subsequent
ListSessionscall to retrieve the next page of results. This field is absent when there are no more results.- Parameters:
nextToken- The pagination token to use in a subsequentListSessionscall to retrieve the next page of results. This field is absent when there are no more results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-