Class CfnDatasetMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrockagentcore.CfnDatasetMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDatasetMixinProps>
- Enclosing interface:
CfnDatasetMixinProps
@Stability(Stable)
public static final class CfnDatasetMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDatasetMixinProps>
A builder for
CfnDatasetMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.datasetName(String datasetName) Sets the value ofCfnDatasetMixinProps.getDatasetName()description(String description) Sets the value ofCfnDatasetMixinProps.getDescription()Sets the value ofCfnDatasetMixinProps.getKmsKeyArn()schemaType(String schemaType) Sets the value ofCfnDatasetMixinProps.getSchemaType()Sets the value ofCfnDatasetMixinProps.getSource()source(IResolvable source) Sets the value ofCfnDatasetMixinProps.getSource()Sets the value ofCfnDatasetMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
datasetName
Sets the value ofCfnDatasetMixinProps.getDatasetName()- Parameters:
datasetName- Human-readable name for the dataset. Unique within the account (case-insensitive). Immutable after creation.- Returns:
this
-
description
Sets the value ofCfnDatasetMixinProps.getDescription()- Parameters:
description- A description of the dataset.- Returns:
this
-
kmsKeyArn
Sets the value ofCfnDatasetMixinProps.getKmsKeyArn()- Parameters:
kmsKeyArn- Optional AWS KMS key ARN for SSE-KMS on service S3 writes.- Returns:
this
-
schemaType
Sets the value ofCfnDatasetMixinProps.getSchemaType()- Parameters:
schemaType- Versioned schema type governing the structure of examples. Immutable after creation.- Returns:
this
-
source
Sets the value ofCfnDatasetMixinProps.getSource()- Parameters:
source- Source of initial examples. Provide either inline examples or an S3 URI pointing to a JSONL file.- Returns:
this
-
source
@Stability(Stable) public CfnDatasetMixinProps.Builder source(CfnDatasetPropsMixin.DataSourceTypeProperty source) Sets the value ofCfnDatasetMixinProps.getSource()- Parameters:
source- Source of initial examples. Provide either inline examples or an S3 URI pointing to a JSONL file.- Returns:
this
-
tags
Sets the value ofCfnDatasetMixinProps.getTags()- Parameters:
tags- A list of tags to assign to the dataset.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDatasetMixinProps>- Returns:
- a new instance of
CfnDatasetMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-