Interface UpdatePromptRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentRequest.Builder,Buildable,CopyableBuilder<UpdatePromptRequest.Builder,,UpdatePromptRequest> SdkBuilder<UpdatePromptRequest.Builder,,UpdatePromptRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdatePromptRequest
public static interface UpdatePromptRequest.Builder
extends BedrockAgentRequest.Builder, SdkPojo, CopyableBuilder<UpdatePromptRequest.Builder,UpdatePromptRequest>
-
Method Summary
Modifier and TypeMethodDescriptioncustomerEncryptionKeyArn(String customerEncryptionKeyArn) The Amazon Resource Name (ARN) of the KMS key to encrypt the prompt.defaultVariant(String defaultVariant) The name of the default variant for the prompt.description(String description) A description for the prompt.A name for the prompt.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.promptIdentifier(String promptIdentifier) The unique identifier of the prompt.variants(Collection<PromptVariant> variants) A list of objects, each containing details about a variant of the prompt.variants(Consumer<PromptVariant.Builder>... variants) A list of objects, each containing details about a variant of the prompt.variants(PromptVariant... variants) A list of objects, each containing details about a variant of the prompt.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, sdkFields
-
Method Details
-
customerEncryptionKeyArn
The Amazon Resource Name (ARN) of the KMS key to encrypt the prompt.
- Parameters:
customerEncryptionKeyArn- The Amazon Resource Name (ARN) of the KMS key to encrypt the prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultVariant
The name of the default variant for the prompt. This value must match the
namefield in the relevant PromptVariant object.- Parameters:
defaultVariant- The name of the default variant for the prompt. This value must match thenamefield in the relevant PromptVariant object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description for the prompt.
- Parameters:
description- A description for the prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
A name for the prompt.
- Parameters:
name- A name for the prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptIdentifier
The unique identifier of the prompt.
- Parameters:
promptIdentifier- The unique identifier of the prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variants
A list of objects, each containing details about a variant of the prompt.
- Parameters:
variants- A list of objects, each containing details about a variant of the prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variants
A list of objects, each containing details about a variant of the prompt.
- Parameters:
variants- A list of objects, each containing details about a variant of the prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variants
A list of objects, each containing details about a variant of the prompt.
This is a convenience method that creates an instance of thePromptVariant.Builderavoiding the need to create one manually viaPromptVariant.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovariants(List<PromptVariant>).- Parameters:
variants- a consumer that will call methods onPromptVariant.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdatePromptRequest.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
UpdatePromptRequest.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.
-