Interface CreatePromptVersionResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentResponse.Builder,Buildable,CopyableBuilder<CreatePromptVersionResponse.Builder,CreatePromptVersionResponse>,SdkBuilder<CreatePromptVersionResponse.Builder,CreatePromptVersionResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- CreatePromptVersionResponse
public static interface CreatePromptVersionResponse.Builder extends BedrockAgentResponse.Builder, SdkPojo, CopyableBuilder<CreatePromptVersionResponse.Builder,CreatePromptVersionResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreatePromptVersionResponse.Builderarn(String arn)The Amazon Resource Name (ARN) of the version of the prompt.CreatePromptVersionResponse.BuildercreatedAt(Instant createdAt)The time at which the prompt was created.CreatePromptVersionResponse.BuildercustomerEncryptionKeyArn(String customerEncryptionKeyArn)The Amazon Resource Name (ARN) of the KMS key to encrypt the version of the prompt.CreatePromptVersionResponse.BuilderdefaultVariant(String defaultVariant)The name of the default variant for the prompt.CreatePromptVersionResponse.Builderdescription(String description)A description for the version.CreatePromptVersionResponse.Builderid(String id)The unique identifier of the prompt.CreatePromptVersionResponse.Buildername(String name)The name of the prompt.CreatePromptVersionResponse.BuilderupdatedAt(Instant updatedAt)The time at which the prompt was last updated.CreatePromptVersionResponse.Buildervariants(Collection<PromptVariant> variants)A list of objects, each containing details about a variant of the prompt.CreatePromptVersionResponse.Buildervariants(Consumer<PromptVariant.Builder>... variants)A list of objects, each containing details about a variant of the prompt.CreatePromptVersionResponse.Buildervariants(PromptVariant... variants)A list of objects, each containing details about a variant of the prompt.CreatePromptVersionResponse.Builderversion(String version)The version of the prompt that was created.-
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
CreatePromptVersionResponse.Builder arn(String arn)
The Amazon Resource Name (ARN) of the version of the prompt.
- Parameters:
arn- The Amazon Resource Name (ARN) of the version of the prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
CreatePromptVersionResponse.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
CreatePromptVersionResponse.Builder customerEncryptionKeyArn(String customerEncryptionKeyArn)
The Amazon Resource Name (ARN) of the KMS key to encrypt the version of the prompt.
- Parameters:
customerEncryptionKeyArn- The Amazon Resource Name (ARN) of the KMS key to encrypt the version of the prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultVariant
CreatePromptVersionResponse.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
CreatePromptVersionResponse.Builder description(String description)
A description for the version.
- Parameters:
description- A description for the version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
CreatePromptVersionResponse.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
CreatePromptVersionResponse.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
CreatePromptVersionResponse.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
CreatePromptVersionResponse.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
CreatePromptVersionResponse.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
CreatePromptVersionResponse.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
CreatePromptVersionResponse.Builder version(String version)
The version of the prompt that was created. Versions are numbered incrementally, starting from 1.
- Parameters:
version- The version of the prompt that was created. Versions are numbered incrementally, starting from 1.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-