Interface UpdateRetrievalInstructionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentRequest.Builder,Buildable,CopyableBuilder<UpdateRetrievalInstructionRequest.Builder,,UpdateRetrievalInstructionRequest> SdkBuilder<UpdateRetrievalInstructionRequest.Builder,,UpdateRetrievalInstructionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateRetrievalInstructionRequest
@Mutable
@NotThreadSafe
public static interface UpdateRetrievalInstructionRequest.Builder
extends BedrockAgentRequest.Builder, SdkPojo, CopyableBuilder<UpdateRetrievalInstructionRequest.Builder,UpdateRetrievalInstructionRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) A replacement description; applied together with the content when the review passes.instruction(Consumer<RetrievalInstructionContent.Builder> instruction) The replacement instruction content.instruction(RetrievalInstructionContent instruction) The replacement instruction content.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.retrievalInstructionId(String retrievalInstructionId) The identifier of the retrieval instruction to update.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagent.model.BedrockAgentRequest.Builder
buildMethods 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, sdkFields
-
Method Details
-
retrievalInstructionId
The identifier of the retrieval instruction to update.
- Parameters:
retrievalInstructionId- The identifier of the retrieval instruction to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instruction
The replacement instruction content. This is a full replacement of all four fields, not a patch. During UPDATING, Get continues to return the previously-served content until the update review passes.
- Parameters:
instruction- The replacement instruction content. This is a full replacement of all four fields, not a patch. During UPDATING, Get continues to return the previously-served content until the update review passes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instruction
default UpdateRetrievalInstructionRequest.Builder instruction(Consumer<RetrievalInstructionContent.Builder> instruction) The replacement instruction content. This is a full replacement of all four fields, not a patch. During UPDATING, Get continues to return the previously-served content until the update review passes.
This is a convenience method that creates an instance of theRetrievalInstructionContent.Builderavoiding the need to create one manually viaRetrievalInstructionContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstruction(RetrievalInstructionContent).- Parameters:
instruction- a consumer that will call methods onRetrievalInstructionContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
A replacement description; applied together with the content when the review passes. Omit to clear.
- Parameters:
description- A replacement description; applied together with the content when the review passes. Omit to clear.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateRetrievalInstructionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateRetrievalInstructionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-