Interface TraceGenerationSource.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TraceGenerationSource.Builder,,TraceGenerationSource> SdkBuilder<TraceGenerationSource.Builder,,TraceGenerationSource> SdkPojo
- Enclosing class:
TraceGenerationSource
-
Method Summary
Modifier and TypeMethodDescriptiondefault TraceGenerationSource.BuildergroundTruth(Consumer<GroundTruthConfig.Builder> groundTruth) Reference fields to copy from the sessions into the examples.groundTruth(GroundTruthConfig groundTruth) Reference fields to copy from the sessions into the examples.default TraceGenerationSource.BuilderredactionConfiguration(Consumer<RedactionConfiguration.Builder> redactionConfiguration) Sensitive data to mask in the examples.redactionConfiguration(RedactionConfiguration redactionConfiguration) Sensitive data to mask in the examples.default TraceGenerationSource.Buildersampling(Consumer<GenerationSamplingConfig.Builder> sampling) How many scenarios to generate from the selected sessions.sampling(GenerationSamplingConfig sampling) How many scenarios to generate from the selected sessions.default TraceGenerationSource.Builderselection(Consumer<GenerationSelection.Builder> selection) How to choose sessions from the source.selection(GenerationSelection selection) How to choose sessions from the source.default TraceGenerationSource.BuildersourceConfig(Consumer<TraceSourceConfig.Builder> sourceConfig) Where to read the sessions from.sourceConfig(TraceSourceConfig sourceConfig) Where to read the sessions from.Methods 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
-
sourceConfig
Where to read the sessions from.
- Parameters:
sourceConfig- Where to read the sessions from.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceConfig
default TraceGenerationSource.Builder sourceConfig(Consumer<TraceSourceConfig.Builder> sourceConfig) Where to read the sessions from.
This is a convenience method that creates an instance of theTraceSourceConfig.Builderavoiding the need to create one manually viaTraceSourceConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosourceConfig(TraceSourceConfig).- Parameters:
sourceConfig- a consumer that will call methods onTraceSourceConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
selection
How to choose sessions from the source. If you don't specify a selection, the generation uses every session in the source and time window that has at most 100 turns.
- Parameters:
selection- How to choose sessions from the source. If you don't specify a selection, the generation uses every session in the source and time window that has at most 100 turns.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
selection
How to choose sessions from the source. If you don't specify a selection, the generation uses every session in the source and time window that has at most 100 turns.
This is a convenience method that creates an instance of theGenerationSelection.Builderavoiding the need to create one manually viaGenerationSelection.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toselection(GenerationSelection).- Parameters:
selection- a consumer that will call methods onGenerationSelection.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sampling
How many scenarios to generate from the selected sessions.
- Parameters:
sampling- How many scenarios to generate from the selected sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sampling
How many scenarios to generate from the selected sessions.
This is a convenience method that creates an instance of theGenerationSamplingConfig.Builderavoiding the need to create one manually viaGenerationSamplingConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosampling(GenerationSamplingConfig).- Parameters:
sampling- a consumer that will call methods onGenerationSamplingConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
groundTruth
Reference fields to copy from the sessions into the examples. If you don't specify this, the examples have no reference fields.
- Parameters:
groundTruth- Reference fields to copy from the sessions into the examples. If you don't specify this, the examples have no reference fields.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groundTruth
Reference fields to copy from the sessions into the examples. If you don't specify this, the examples have no reference fields.
This is a convenience method that creates an instance of theGroundTruthConfig.Builderavoiding the need to create one manually viaGroundTruthConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togroundTruth(GroundTruthConfig).- Parameters:
groundTruth- a consumer that will call methods onGroundTruthConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
redactionConfiguration
Sensitive data to mask in the examples. If you don't specify this, nothing is redacted.
- Parameters:
redactionConfiguration- Sensitive data to mask in the examples. If you don't specify this, nothing is redacted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
redactionConfiguration
default TraceGenerationSource.Builder redactionConfiguration(Consumer<RedactionConfiguration.Builder> redactionConfiguration) Sensitive data to mask in the examples. If you don't specify this, nothing is redacted.
This is a convenience method that creates an instance of theRedactionConfiguration.Builderavoiding the need to create one manually viaRedactionConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toredactionConfiguration(RedactionConfiguration).- Parameters:
redactionConfiguration- a consumer that will call methods onRedactionConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-