Interface ListSessionsResponse.Builder

All Superinterfaces:
AwsResponse.Builder, BedrockAgentCoreResponse.Builder, Buildable, CopyableBuilder<ListSessionsResponse.Builder,ListSessionsResponse>, SdkBuilder<ListSessionsResponse.Builder,ListSessionsResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
ListSessionsResponse

  • Method Details

    • sessionSummaries

      ListSessionsResponse.Builder sessionSummaries(Collection<SessionSummary> 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

      ListSessionsResponse.Builder sessionSummaries(SessionSummary... 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

      ListSessionsResponse.Builder sessionSummaries(Consumer<SessionSummary.Builder>... sessionSummaries)

      The list of session summaries that match the specified criteria.

      This is a convenience method that creates an instance of the SessionSummary.Builder avoiding the need to create one manually via SessionSummary.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to sessionSummaries(List<SessionSummary>).

      Parameters:
      sessionSummaries - a consumer that will call methods on SessionSummary.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • nextToken

      ListSessionsResponse.Builder nextToken(String 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.