Interface ListSessionsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentCoreRequest.Builder,Buildable,CopyableBuilder<ListSessionsRequest.Builder,,ListSessionsRequest> SdkBuilder<ListSessionsRequest.Builder,,ListSessionsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
- ListSessionsRequest
@Mutable
@NotThreadSafe
public static interface ListSessionsRequest.Builder
extends BedrockAgentCoreRequest.Builder, SdkPojo, CopyableBuilder<ListSessionsRequest.Builder,ListSessionsRequest>
-
Method Summary
Modifier and TypeMethodDescriptionThe identifier of the actor for which to list sessions.default ListSessionsRequest.Builderfilter(Consumer<SessionFilter.Builder> filter) Filter criteria to apply when listing sessions.filter(SessionFilter filter) Filter criteria to apply when listing sessions.maxResults(Integer maxResults) The maximum number of results to return in a single call.The identifier of the AgentCore Memory resource for which to list sessions.The token for the next set of results.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagentcore.model.BedrockAgentCoreRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
memoryId
The identifier of the AgentCore Memory resource for which to list sessions.
- Parameters:
memoryId- The identifier of the AgentCore Memory resource for which to list sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actorId
The identifier of the actor for which to list sessions.
- Parameters:
actorId- The identifier of the actor for which to list sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The maximum number of results to return in a single call. The default value is 20.
- Parameters:
maxResults- The maximum number of results to return in a single call. The default value is 20.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
- Parameters:
nextToken- The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filter
Filter criteria to apply when listing sessions.
- Parameters:
filter- Filter criteria to apply when listing sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filter
Filter criteria to apply when listing sessions.
This is a convenience method that creates an instance of theSessionFilter.Builderavoiding the need to create one manually viaSessionFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofilter(SessionFilter).- Parameters:
filter- a consumer that will call methods onSessionFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
ListSessionsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) - Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
ListSessionsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) - Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-