Interface CreateDatasetRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentCoreControlRequest.Builder,Buildable,CopyableBuilder<CreateDatasetRequest.Builder,,CreateDatasetRequest> SdkBuilder<CreateDatasetRequest.Builder,,CreateDatasetRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateDatasetRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) Optional idempotency token.datasetName(String datasetName) Human-readable name for the dataset.description(String description) A description of the dataset.Optional AWS KMS key ARN for SSE-KMS on service S3 writes.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.schemaType(String schemaType) Versioned schema type governing the structure of examples.schemaType(DatasetSchemaType schemaType) Versioned schema type governing the structure of examples.default CreateDatasetRequest.Buildersource(Consumer<DataSourceType.Builder> source) Source of initial examples.source(DataSourceType source) Source of initial examples.A map of tag keys and values to assign to the dataset.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagentcorecontrol.model.BedrockAgentCoreControlRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
clientToken
Optional idempotency token.
- Parameters:
clientToken- Optional idempotency token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
datasetName
Human-readable name for the dataset. Unique within the account (case-insensitive). Immutable after creation.
- Parameters:
datasetName- Human-readable name for the dataset. Unique within the account (case-insensitive). Immutable after creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the dataset.
- Parameters:
description- A description of the dataset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
Source of initial examples. Provide either inline examples or an S3 URI pointing to a JSONL file.
- Parameters:
source- Source of initial examples. Provide either inline examples or an S3 URI pointing to a JSONL file.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
Source of initial examples. Provide either inline examples or an S3 URI pointing to a JSONL file.
This is a convenience method that creates an instance of theDataSourceType.Builderavoiding the need to create one manually viaDataSourceType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosource(DataSourceType).- Parameters:
source- a consumer that will call methods onDataSourceType.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
schemaType
Versioned schema type governing the structure of examples. Immutable after creation.
- Parameters:
schemaType- Versioned schema type governing the structure of examples. Immutable after creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
schemaType
Versioned schema type governing the structure of examples. Immutable after creation.
- Parameters:
schemaType- Versioned schema type governing the structure of examples. Immutable after creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
kmsKeyArn
Optional AWS KMS key ARN for SSE-KMS on service S3 writes.
- Parameters:
kmsKeyArn- Optional AWS KMS key ARN for SSE-KMS on service S3 writes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A map of tag keys and values to assign to the dataset.
- Parameters:
tags- A map of tag keys and values to assign to the dataset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateDatasetRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateDatasetRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-