Interface GetAgentMemoryResponse.Builder

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

  • Method Details

    • memoryContents

      GetAgentMemoryResponse.Builder memoryContents(Collection<Memory> memoryContents)

      Contains details of the sessions stored in the memory

      Parameters:
      memoryContents - Contains details of the sessions stored in the memory
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memoryContents

      GetAgentMemoryResponse.Builder memoryContents(Memory... memoryContents)

      Contains details of the sessions stored in the memory

      Parameters:
      memoryContents - Contains details of the sessions stored in the memory
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memoryContents

      GetAgentMemoryResponse.Builder memoryContents(Consumer<Memory.Builder>... memoryContents)

      Contains details of the sessions stored in the memory

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

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

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

      GetAgentMemoryResponse.Builder nextToken(String nextToken)

      If the total number of results is greater than the maxItems 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 maxItems 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.