Interface ListSessionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,BedrockAgentRuntimeResponse.Builder
,Buildable
,CopyableBuilder<ListSessionsResponse.Builder,
,ListSessionsResponse> SdkBuilder<ListSessionsResponse.Builder,
,ListSessionsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListSessionsResponse
@Mutable
@NotThreadSafe
public static interface ListSessionsResponse.Builder
extends BedrockAgentRuntimeResponse.Builder, SdkPojo, CopyableBuilder<ListSessionsResponse.Builder,ListSessionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionIf the total number of results is greater than themaxResults
value provided in the request, use this token when making another request in thenextToken
field to return the next batch of results.sessionSummaries
(Collection<SessionSummary> sessionSummaries) A list of summaries for each session in your Amazon Web Services account.sessionSummaries
(Consumer<SessionSummary.Builder>... sessionSummaries) A list of summaries for each session in your Amazon Web Services account.sessionSummaries
(SessionSummary... sessionSummaries) A list of summaries for each session in your Amazon Web Services account.Methods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.BedrockAgentRuntimeResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
nextToken
If the total number of results is greater than the
maxResults
value provided in the request, use this token when making another request in thenextToken
field to return the next batch of results.- Parameters:
nextToken
- If the total number of results is greater than themaxResults
value provided in the request, use this token when making another request in thenextToken
field to return the next batch of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionSummaries
A list of summaries for each session in your Amazon Web Services account.
- Parameters:
sessionSummaries
- A list of summaries for each session in your Amazon Web Services account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionSummaries
A list of summaries for each session in your Amazon Web Services account.
- Parameters:
sessionSummaries
- A list of summaries for each session in your Amazon Web Services account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionSummaries
A list of summaries for each session in your Amazon Web Services account.
This is a convenience method that creates an instance of theSessionSummary.Builder
avoiding the need to create one manually viaSessionSummary.builder()
.When the
Consumer
completes,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:
-