Interface CreatePromptResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentResponse.Builder,Buildable,CopyableBuilder<CreatePromptResponse.Builder,CreatePromptResponse>,SdkBuilder<CreatePromptResponse.Builder,CreatePromptResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- CreatePromptResponse
public static interface CreatePromptResponse.Builder extends BedrockAgentResponse.Builder, SdkPojo, CopyableBuilder<CreatePromptResponse.Builder,CreatePromptResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreatePromptResponse.Builderarn(String arn)The Amazon Resource Name (ARN) of the prompt.CreatePromptResponse.BuildercreatedAt(Instant createdAt)The time at which the prompt was created.CreatePromptResponse.BuildercustomerEncryptionKeyArn(String customerEncryptionKeyArn)The Amazon Resource Name (ARN) of the KMS key that you encrypted the prompt with.CreatePromptResponse.BuilderdefaultVariant(String defaultVariant)The name of the default variant for your prompt.CreatePromptResponse.Builderdescription(String description)The description of the prompt.CreatePromptResponse.Builderid(String id)The unique identifier of the prompt.CreatePromptResponse.Buildername(String name)The name of the prompt.CreatePromptResponse.BuilderupdatedAt(Instant updatedAt)The time at which the prompt was last updated.CreatePromptResponse.Buildervariants(Collection<PromptVariant> variants)A list of objects, each containing details about a variant of the prompt.CreatePromptResponse.Buildervariants(Consumer<PromptVariant.Builder>... variants)A list of objects, each containing details about a variant of the prompt.CreatePromptResponse.Buildervariants(PromptVariant... variants)A list of objects, each containing details about a variant of the prompt.CreatePromptResponse.Builderversion(String version)The version of the prompt.-
Methods inherited from interface software.amazon.awssdk.services.bedrockagent.model.BedrockAgentResponse.Builder
build, responseMetadata, responseMetadata
-
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
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
arn
CreatePromptResponse.Builder arn(String arn)
The Amazon Resource Name (ARN) of the prompt.
- Parameters:
arn- The Amazon Resource Name (ARN) of the prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
CreatePromptResponse.Builder createdAt(Instant createdAt)
The time at which the prompt was created.
- Parameters:
createdAt- The time at which the prompt was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customerEncryptionKeyArn
CreatePromptResponse.Builder customerEncryptionKeyArn(String customerEncryptionKeyArn)
The Amazon Resource Name (ARN) of the KMS key that you encrypted the prompt with.
- Parameters:
customerEncryptionKeyArn- The Amazon Resource Name (ARN) of the KMS key that you encrypted the prompt with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultVariant
CreatePromptResponse.Builder defaultVariant(String defaultVariant)
The name of the default variant for your prompt.
- Parameters:
defaultVariant- The name of the default variant for your prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
CreatePromptResponse.Builder description(String description)
The description of the prompt.
- Parameters:
description- The description of the prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
CreatePromptResponse.Builder id(String id)
The unique identifier of the prompt.
- Parameters:
id- The unique identifier of the prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
CreatePromptResponse.Builder name(String name)
The name of the prompt.
- Parameters:
name- The name of the prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
CreatePromptResponse.Builder updatedAt(Instant updatedAt)
The time at which the prompt was last updated.
- Parameters:
updatedAt- The time at which the prompt was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variants
CreatePromptResponse.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
CreatePromptResponse.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
CreatePromptResponse.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)
-
version
CreatePromptResponse.Builder version(String version)
The version of the prompt. When you create a prompt, the version created is the
DRAFTversion.- Parameters:
version- The version of the prompt. When you create a prompt, the version created is theDRAFTversion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-