Interface ListSessionsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ListSessionsRequest.Builder,,ListSessionsRequest> EmrRequest.Builder,SdkBuilder<ListSessionsRequest.Builder,,ListSessionsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ListSessionsRequest
@Mutable
@NotThreadSafe
public static interface ListSessionsRequest.Builder
extends EmrRequest.Builder, SdkPojo, CopyableBuilder<ListSessionsRequest.Builder,ListSessionsRequest>
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the cluster to list sessions for.maxResults(Integer maxResults) The maximum number of sessions to return in each page of results.The pagination token returned by a previousListSessionscall.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.sessionStates(Collection<SessionState> sessionStates) An optional filter that limits the results to sessions in the specified states.sessionStates(SessionState... sessionStates) An optional filter that limits the results to sessions in the specified states.sessionStatesWithStrings(String... sessionStates) An optional filter that limits the results to sessions in the specified states.sessionStatesWithStrings(Collection<String> sessionStates) An optional filter that limits the results to sessions in the specified states.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.emr.model.EmrRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
clusterId
The ID of the cluster to list sessions for.
- Parameters:
clusterId- The ID of the cluster to list sessions for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionStatesWithStrings
An optional filter that limits the results to sessions in the specified states.
- Parameters:
sessionStates- An optional filter that limits the results to sessions in the specified states.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionStatesWithStrings
An optional filter that limits the results to sessions in the specified states.
- Parameters:
sessionStates- An optional filter that limits the results to sessions in the specified states.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionStates
An optional filter that limits the results to sessions in the specified states.
- Parameters:
sessionStates- An optional filter that limits the results to sessions in the specified states.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionStates
An optional filter that limits the results to sessions in the specified states.
- Parameters:
sessionStates- An optional filter that limits the results to sessions in the specified states.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
The pagination token returned by a previous
ListSessionscall. Use it to retrieve the next page of results.- Parameters:
nextToken- The pagination token returned by a previousListSessionscall. Use it to retrieve the next page of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The maximum number of sessions to return in each page of results.
- Parameters:
maxResults- The maximum number of sessions to return in each page of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ListSessionsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ListSessionsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-