Class CfnPrompt.TextS3LocationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnPrompt.TextS3LocationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrompt.TextS3LocationProperty>
- Enclosing interface:
CfnPrompt.TextS3LocationProperty
@Stability(Stable)
public static final class CfnPrompt.TextS3LocationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrompt.TextS3LocationProperty>
A builder for
CfnPrompt.TextS3LocationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnPrompt.TextS3LocationProperty.getBucket()build()Builds the configured instance.Sets the value ofCfnPrompt.TextS3LocationProperty.getKey()Sets the value ofCfnPrompt.TextS3LocationProperty.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofCfnPrompt.TextS3LocationProperty.getBucket()- Parameters:
bucket- The Amazon S3 bucket containing the prompt text. This parameter is required.- Returns:
this
-
key
Sets the value ofCfnPrompt.TextS3LocationProperty.getKey()- Parameters:
key- The object key for the Amazon S3 location. This parameter is required.- Returns:
this
-
version
Sets the value ofCfnPrompt.TextS3LocationProperty.getVersion()- Parameters:
version- The version of the Amazon S3 location to use.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPrompt.TextS3LocationProperty>- Returns:
- a new instance of
CfnPrompt.TextS3LocationProperty - Throws:
NullPointerException- if any required attribute was not provided
-