Interface ListAgentsResponse.Builder

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

  • Method Details

    • agentSummaries

      ListAgentsResponse.Builder agentSummaries(Collection<AgentSummary> agentSummaries)

      A list of objects, each of which contains information about an agent.

      Parameters:
      agentSummaries - A list of objects, each of which contains information about an agent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agentSummaries

      ListAgentsResponse.Builder agentSummaries(AgentSummary... agentSummaries)

      A list of objects, each of which contains information about an agent.

      Parameters:
      agentSummaries - A list of objects, each of which contains information about an agent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agentSummaries

      ListAgentsResponse.Builder agentSummaries(Consumer<AgentSummary.Builder>... agentSummaries)

      A list of objects, each of which contains information about an agent.

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

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

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

      ListAgentsResponse.Builder nextToken(String 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 the nextToken field to return the next batch of results.

      Parameters:
      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 the nextToken field to return the next batch of results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.