Interface BatchCreateMemoryRecordsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentCoreResponse.Builder,Buildable,CopyableBuilder<BatchCreateMemoryRecordsResponse.Builder,,BatchCreateMemoryRecordsResponse> SdkBuilder<BatchCreateMemoryRecordsResponse.Builder,,BatchCreateMemoryRecordsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
- BatchCreateMemoryRecordsResponse
-
Method Summary
Modifier and TypeMethodDescriptionfailedRecords(Collection<MemoryRecordOutput> failedRecords) A list of memory records that failed to be created, including error details for each failure.failedRecords(Consumer<MemoryRecordOutput.Builder>... failedRecords) A list of memory records that failed to be created, including error details for each failure.failedRecords(MemoryRecordOutput... failedRecords) A list of memory records that failed to be created, including error details for each failure.successfulRecords(Collection<MemoryRecordOutput> successfulRecords) A list of memory records that were successfully created during the batch operation.successfulRecords(Consumer<MemoryRecordOutput.Builder>... successfulRecords) A list of memory records that were successfully created during the batch operation.successfulRecords(MemoryRecordOutput... successfulRecords) A list of memory records that were successfully created during the batch operation.Methods inherited from interface software.amazon.awssdk.services.bedrockagentcore.model.BedrockAgentCoreResponse.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
-
successfulRecords
BatchCreateMemoryRecordsResponse.Builder successfulRecords(Collection<MemoryRecordOutput> successfulRecords) A list of memory records that were successfully created during the batch operation.
- Parameters:
successfulRecords- A list of memory records that were successfully created during the batch operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
successfulRecords
A list of memory records that were successfully created during the batch operation.
- Parameters:
successfulRecords- A list of memory records that were successfully created during the batch operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
successfulRecords
BatchCreateMemoryRecordsResponse.Builder successfulRecords(Consumer<MemoryRecordOutput.Builder>... successfulRecords) A list of memory records that were successfully created during the batch operation.
This is a convenience method that creates an instance of theMemoryRecordOutput.Builderavoiding the need to create one manually viaMemoryRecordOutput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosuccessfulRecords(List<MemoryRecordOutput>).- Parameters:
successfulRecords- a consumer that will call methods onMemoryRecordOutput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failedRecords
BatchCreateMemoryRecordsResponse.Builder failedRecords(Collection<MemoryRecordOutput> failedRecords) A list of memory records that failed to be created, including error details for each failure.
- Parameters:
failedRecords- A list of memory records that failed to be created, including error details for each failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failedRecords
A list of memory records that failed to be created, including error details for each failure.
- Parameters:
failedRecords- A list of memory records that failed to be created, including error details for each failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failedRecords
BatchCreateMemoryRecordsResponse.Builder failedRecords(Consumer<MemoryRecordOutput.Builder>... failedRecords) A list of memory records that failed to be created, including error details for each failure.
This is a convenience method that creates an instance of theMemoryRecordOutput.Builderavoiding the need to create one manually viaMemoryRecordOutput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofailedRecords(List<MemoryRecordOutput>).- Parameters:
failedRecords- a consumer that will call methods onMemoryRecordOutput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-