Interface GetAgentMemoryResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentRuntimeResponse.Builder,Buildable,CopyableBuilder<GetAgentMemoryResponse.Builder,,GetAgentMemoryResponse> SdkBuilder<GetAgentMemoryResponse.Builder,,GetAgentMemoryResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetAgentMemoryResponse
@Mutable
@NotThreadSafe
public static interface GetAgentMemoryResponse.Builder
extends BedrockAgentRuntimeResponse.Builder, SdkPojo, CopyableBuilder<GetAgentMemoryResponse.Builder,GetAgentMemoryResponse>
-
Method Summary
Modifier and TypeMethodDescriptionmemoryContents(Collection<Memory> memoryContents) Contains details of the sessions stored in the memorymemoryContents(Consumer<Memory.Builder>... memoryContents) Contains details of the sessions stored in the memorymemoryContents(Memory... memoryContents) Contains details of the sessions stored in the memoryIf the total number of results is greater than the maxItems value provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.Methods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.BedrockAgentRuntimeResponse.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
-
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
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
Contains details of the sessions stored in the memory
This is a convenience method that creates an instance of theMemory.Builderavoiding the need to create one manually viaMemory.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomemoryContents(List<Memory>).- Parameters:
memoryContents- a consumer that will call methods onMemory.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
nextTokenfield 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 thenextTokenfield to return the next batch of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-