Interface CreatePromptResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,BedrockAgentResponse.Builder
,Buildable
,CopyableBuilder<CreatePromptResponse.Builder,
,CreatePromptResponse> SdkBuilder<CreatePromptResponse.Builder,
,CreatePromptResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreatePromptResponse
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the prompt.The time at which the prompt was created.customerEncryptionKeyArn
(String customerEncryptionKeyArn) The Amazon Resource Name (ARN) of the KMS key that you encrypted the prompt with.defaultVariant
(String defaultVariant) The name of the default variant for your prompt.description
(String description) The description of the prompt.The unique identifier of the prompt.The name of the prompt.The time at which the prompt was last updated.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.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, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
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
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
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
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
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
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
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
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.Builder
avoiding the need to create one manually viaPromptVariant.builder()
.When the
Consumer
completes,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:
-
version
The version of the prompt. When you create a prompt, the version created is the
DRAFT
version.- Parameters:
version
- The version of the prompt. When you create a prompt, the version created is theDRAFT
version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-