Interface CreateRetrievalInstructionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentRequest.Builder,Buildable,CopyableBuilder<CreateRetrievalInstructionRequest.Builder,,CreateRetrievalInstructionRequest> SdkBuilder<CreateRetrievalInstructionRequest.Builder,,CreateRetrievalInstructionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateRetrievalInstructionRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A caller-supplied token that makes a retried create return the existing resource rather than a second one.customerEncryptionKeyArn(String customerEncryptionKeyArn) The Amazon Resource Name (ARN) of a customer managed AWS Key Management Service (AWS KMS) key used to encrypt the instruction content at rest.description(String description) Specifies a description of the retrieval instruction.instruction(Consumer<RetrievalInstructionContent.Builder> instruction) The instruction content, as a set of named fields.instruction(RetrievalInstructionContent instruction) The instruction content, as a set of named fields.Specifies the name of the retrieval instruction.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Tags for the retrieval instruction.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
-
clientToken
A caller-supplied token that makes a retried create return the existing resource rather than a second one. The window is 8 hours.
- Parameters:
clientToken- A caller-supplied token that makes a retried create return the existing resource rather than a second one. The window is 8 hours.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
Specifies the name of the retrieval instruction.
- Parameters:
name- Specifies the name of the retrieval instruction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instruction
The instruction content, as a set of named fields. Get does not return this field until the create review passes.
- Parameters:
instruction- The instruction content, as a set of named fields. Get does not return this field until the create review passes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instruction
default CreateRetrievalInstructionRequest.Builder instruction(Consumer<RetrievalInstructionContent.Builder> instruction) The instruction content, as a set of named fields. Get does not return this field until the create 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
Specifies a description of the retrieval instruction.
- Parameters:
description- Specifies a description of the retrieval instruction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customerEncryptionKeyArn
The Amazon Resource Name (ARN) of a customer managed AWS Key Management Service (AWS KMS) key used to encrypt the instruction content at rest. If you omit it, the service uses an AWS owned key. You fix the key at create and cannot change it later.
- Parameters:
customerEncryptionKeyArn- The Amazon Resource Name (ARN) of a customer managed AWS Key Management Service (AWS KMS) key used to encrypt the instruction content at rest. If you omit it, the service uses an AWS owned key. You fix the key at create and cannot change it later.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Tags for the retrieval instruction.
- Parameters:
tags- Tags for the retrieval instruction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateRetrievalInstructionRequest.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
CreateRetrievalInstructionRequest.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.
-