Interface StartDatasetGenerationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentCoreRequest.Builder,Buildable,CopyableBuilder<StartDatasetGenerationRequest.Builder,,StartDatasetGenerationRequest> SdkBuilder<StartDatasetGenerationRequest.Builder,,StartDatasetGenerationRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
StartDatasetGenerationRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier to ensure that the API request completes no more than one time.The unique identifier of the dataset to add the generated examples to.description(String description) A description of the dataset generation.The name of the dataset generation.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.scenarioType(String scenarioType) The type of scenario to generate.scenarioType(ScenarioType scenarioType) The type of scenario to generate.source(Consumer<GenerationSource.Builder> source) Where the generation reads sessions from, and how it selects, samples, labels and redacts them.source(GenerationSource source) Where the generation reads sessions from, and how it selects, samples, labels and redacts them.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagentcore.model.BedrockAgentCoreRequest.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
-
datasetId
The unique identifier of the dataset to add the generated examples to. The dataset must be
ACTIVE.- Parameters:
datasetId- The unique identifier of the dataset to add the generated examples to. The dataset must beACTIVE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the dataset generation. The generation ID starts with this name.
- Parameters:
name- The name of the dataset generation. The generation ID starts with this name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the dataset generation.
- Parameters:
description- A description of the dataset generation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scenarioType
The type of scenario to generate. If you don't specify a value, the generation produces
DYNAMICscenarios.- Parameters:
scenarioType- The type of scenario to generate. If you don't specify a value, the generation producesDYNAMICscenarios.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scenarioType
The type of scenario to generate. If you don't specify a value, the generation produces
DYNAMICscenarios.- Parameters:
scenarioType- The type of scenario to generate. If you don't specify a value, the generation producesDYNAMICscenarios.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
source
Where the generation reads sessions from, and how it selects, samples, labels and redacts them.
- Parameters:
source- Where the generation reads sessions from, and how it selects, samples, labels and redacts them.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
Where the generation reads sessions from, and how it selects, samples, labels and redacts them.
This is a convenience method that creates an instance of theGenerationSource.Builderavoiding the need to create one manually viaGenerationSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosource(GenerationSource).- Parameters:
source- a consumer that will call methods onGenerationSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error.
- Parameters:
clientToken- A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
StartDatasetGenerationRequest.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
StartDatasetGenerationRequest.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.
-