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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UpdatePromptRequest.BuildercustomerEncryptionKeyArn(String customerEncryptionKeyArn)The Amazon Resource Name (ARN) of the KMS key to encrypt the prompt.UpdatePromptRequest.BuilderdefaultVariant(String defaultVariant)The name of the default variant for the prompt.UpdatePromptRequest.Builderdescription(String description)A description for the prompt.UpdatePromptRequest.Buildername(String name)A name for the prompt.UpdatePromptRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)UpdatePromptRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)UpdatePromptRequest.BuilderpromptIdentifier(String promptIdentifier)The unique identifier of the prompt.UpdatePromptRequest.Buildervariants(Collection<PromptVariant> variants)A list of objects, each containing details about a variant of the prompt.UpdatePromptRequest.Buildervariants(Consumer<PromptVariant.Builder>... variants)A list of objects, each containing details about a variant of the prompt.UpdatePromptRequest.Buildervariants(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
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.bedrockagent.model.BedrockAgentRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
customerEncryptionKeyArn
UpdatePromptRequest.Builder customerEncryptionKeyArn(String 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
UpdatePromptRequest.Builder defaultVariant(String 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
UpdatePromptRequest.Builder description(String 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
UpdatePromptRequest.Builder name(String 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
UpdatePromptRequest.Builder promptIdentifier(String 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
UpdatePromptRequest.Builder variants(Collection<PromptVariant> 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
UpdatePromptRequest.Builder variants(PromptVariant... 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
UpdatePromptRequest.Builder variants(Consumer<PromptVariant.Builder>... 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 to#variants(List.) - 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:
#variants(java.util.Collection)
-
overrideConfiguration
UpdatePromptRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
UpdatePromptRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-