Interface ListSessionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentCoreResponse.Builder,Buildable,CopyableBuilder<ListSessionsResponse.Builder,,ListSessionsResponse> SdkBuilder<ListSessionsResponse.Builder,,ListSessionsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListSessionsResponse
@Mutable
@NotThreadSafe
public static interface ListSessionsResponse.Builder
extends BedrockAgentCoreResponse.Builder, SdkPojo, CopyableBuilder<ListSessionsResponse.Builder,ListSessionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token to use in a subsequent request to get the next set of results.sessionSummaries(Collection<SessionSummary> sessionSummaries) The list of session summaries that match the specified criteria.sessionSummaries(Consumer<SessionSummary.Builder>... sessionSummaries) The list of session summaries that match the specified criteria.sessionSummaries(SessionSummary... sessionSummaries) The list of session summaries that match the specified criteria.Methods inherited from interface software.amazon.awssdk.services.bedrockagentcore.model.BedrockAgentCoreResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
sessionSummaries
The list of session summaries that match the specified criteria.
- Parameters:
sessionSummaries- The list of session summaries that match the specified criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionSummaries
The list of session summaries that match the specified criteria.
- Parameters:
sessionSummaries- The list of session summaries that match the specified criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionSummaries
The list of session summaries that match the specified criteria.
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 tosessionSummaries(List<SessionSummary>).- Parameters:
sessionSummaries- 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 token to use in a subsequent request to get the next set of results. This value is null when there are no more results to return.
- Parameters:
nextToken- The token to use in a subsequent request to get the next set of results. This value is null when there are no more results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-