Interface ListSessionsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ListSessionsRequest.Builder,,ListSessionsRequest> EmrServerlessRequest.Builder,SdkBuilder<ListSessionsRequest.Builder,,ListSessionsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ListSessionsRequest
-
Method Summary
Modifier and TypeMethodDescriptionapplicationId(String applicationId) The ID of the application to list sessions for.createdAtAfter(Instant createdAtAfter) The lower bound of the option to filter by creation date and time.createdAtBefore(Instant createdAtBefore) The upper bound of the option to filter by creation date and time.maxResults(Integer maxResults) The maximum number of sessions to return in each page of results.The token for the next set of session results.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.states(Collection<SessionState> states) An optional filter for session states.states(SessionState... states) An optional filter for session states.statesWithStrings(String... states) An optional filter for session states.statesWithStrings(Collection<String> states) An optional filter for session 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.emrserverless.model.EmrServerlessRequest.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
-
applicationId
The ID of the application to list sessions for.
- Parameters:
applicationId- The ID of the application to list sessions for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
The token for the next set of session results.
- Parameters:
nextToken- The token for the next set of session 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.
-
statesWithStrings
An optional filter for session states. Note that if this filter contains multiple states, the resulting list will be grouped by the state.
- Parameters:
states- An optional filter for session states. Note that if this filter contains multiple states, the resulting list will be grouped by the state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statesWithStrings
An optional filter for session states. Note that if this filter contains multiple states, the resulting list will be grouped by the state.
- Parameters:
states- An optional filter for session states. Note that if this filter contains multiple states, the resulting list will be grouped by the state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
states
An optional filter for session states. Note that if this filter contains multiple states, the resulting list will be grouped by the state.
- Parameters:
states- An optional filter for session states. Note that if this filter contains multiple states, the resulting list will be grouped by the state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
states
An optional filter for session states. Note that if this filter contains multiple states, the resulting list will be grouped by the state.
- Parameters:
states- An optional filter for session states. Note that if this filter contains multiple states, the resulting list will be grouped by the state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAtAfter
The lower bound of the option to filter by creation date and time.
- Parameters:
createdAtAfter- The lower bound of the option to filter by creation date and time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAtBefore
The upper bound of the option to filter by creation date and time.
- Parameters:
createdAtBefore- The upper bound of the option to filter by creation date and time.- 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.
-