Interface GetDatasetGenerationResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentCoreResponse.Builder,Buildable,CopyableBuilder<GetDatasetGenerationResponse.Builder,,GetDatasetGenerationResponse> SdkBuilder<GetDatasetGenerationResponse.Builder,,GetDatasetGenerationResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetDatasetGenerationResponse
-
Method Summary
Modifier and TypeMethodDescriptioncompletedAt(Instant completedAt) The time at which the dataset generation finished.The time at which the dataset generation started.The unique identifier of the dataset.description(String description) The description of the dataset generation.errorDetails(Collection<GenerationErrorDetail> errorDetails) The errors the generation hit, grouped by error code.errorDetails(Consumer<GenerationErrorDetail.Builder>... errorDetails) The errors the generation hit, grouped by error code.errorDetails(GenerationErrorDetail... errorDetails) The errors the generation hit, grouped by error code.failureReason(String failureReason) The reason the dataset generation failed.generationId(String generationId) The unique identifier of the dataset generation.generationResults(Consumer<GenerationResults.Builder> generationResults) Counts of the sessions, scenarios and examples the generation has processed.generationResults(GenerationResults generationResults) Counts of the sessions, scenarios and examples the generation has processed.The name of the dataset generation.redactionSummary(Consumer<RedactionSummary.Builder> redactionSummary) A summary of what redaction found.redactionSummary(RedactionSummary redactionSummary) A summary of what redaction found.scenarioType(String scenarioType) The type of scenario the generation produces.scenarioType(ScenarioType scenarioType) The type of scenario the generation produces.source(Consumer<GenerationSourceRecord.Builder> source) The source the generation was started with, including the resolved time window.source(GenerationSourceRecord source) The source the generation was started with, including the resolved time window.The status of the dataset generation.status(DatasetGenerationStatus status) The status of the dataset generation.The time at which the dataset generation last changed status.Methods inherited from interface software.amazon.awssdk.services.bedrockagentcore.model.BedrockAgentCoreResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
generationId
The unique identifier of the dataset generation.
- Parameters:
generationId- The unique identifier of the dataset generation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the dataset generation.
- Parameters:
name- The name of the dataset generation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the dataset generation.
- Parameters:
description- The description of the dataset generation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
datasetId
The unique identifier of the dataset.
- Parameters:
datasetId- The unique identifier of the dataset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scenarioType
The type of scenario the generation produces. This is the value from the request, or
DYNAMICif the request didn't specify one.- Parameters:
scenarioType- The type of scenario the generation produces. This is the value from the request, orDYNAMICif the request didn't specify one.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scenarioType
The type of scenario the generation produces. This is the value from the request, or
DYNAMICif the request didn't specify one.- Parameters:
scenarioType- The type of scenario the generation produces. This is the value from the request, orDYNAMICif the request didn't specify one.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the dataset generation.
- Parameters:
status- The status of the dataset generation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the dataset generation.
- Parameters:
status- The status of the dataset generation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failureReason
The reason the dataset generation failed. Present only when the status is
FAILED.- Parameters:
failureReason- The reason the dataset generation failed. Present only when the status isFAILED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The time at which the dataset generation started.
- Parameters:
createdAt- The time at which the dataset generation started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The time at which the dataset generation last changed status.
- Parameters:
updatedAt- The time at which the dataset generation last changed status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
completedAt
The time at which the dataset generation finished. Present only when the generation has finished.
- Parameters:
completedAt- The time at which the dataset generation finished. Present only when the generation has finished.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
The source the generation was started with, including the resolved time window. If you selected sessions and traces by ID, the response gives the number of IDs instead of the IDs.
- Parameters:
source- The source the generation was started with, including the resolved time window. If you selected sessions and traces by ID, the response gives the number of IDs instead of the IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
default GetDatasetGenerationResponse.Builder source(Consumer<GenerationSourceRecord.Builder> source) The source the generation was started with, including the resolved time window. If you selected sessions and traces by ID, the response gives the number of IDs instead of the IDs.
This is a convenience method that creates an instance of theGenerationSourceRecord.Builderavoiding the need to create one manually viaGenerationSourceRecord.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosource(GenerationSourceRecord).- Parameters:
source- a consumer that will call methods onGenerationSourceRecord.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
generationResults
Counts of the sessions, scenarios and examples the generation has processed.
- Parameters:
generationResults- Counts of the sessions, scenarios and examples the generation has processed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
generationResults
default GetDatasetGenerationResponse.Builder generationResults(Consumer<GenerationResults.Builder> generationResults) Counts of the sessions, scenarios and examples the generation has processed.
This is a convenience method that creates an instance of theGenerationResults.Builderavoiding the need to create one manually viaGenerationResults.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togenerationResults(GenerationResults).- Parameters:
generationResults- a consumer that will call methods onGenerationResults.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
redactionSummary
A summary of what redaction found. Present only when the generation was started with redaction.
- Parameters:
redactionSummary- A summary of what redaction found. Present only when the generation was started with redaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
redactionSummary
default GetDatasetGenerationResponse.Builder redactionSummary(Consumer<RedactionSummary.Builder> redactionSummary) A summary of what redaction found. Present only when the generation was started with redaction.
This is a convenience method that creates an instance of theRedactionSummary.Builderavoiding the need to create one manually viaRedactionSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toredactionSummary(RedactionSummary).- Parameters:
redactionSummary- a consumer that will call methods onRedactionSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errorDetails
The errors the generation hit, grouped by error code. The list holds the 10 most frequent error codes, most frequent first.
- Parameters:
errorDetails- The errors the generation hit, grouped by error code. The list holds the 10 most frequent error codes, most frequent first.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorDetails
The errors the generation hit, grouped by error code. The list holds the 10 most frequent error codes, most frequent first.
- Parameters:
errorDetails- The errors the generation hit, grouped by error code. The list holds the 10 most frequent error codes, most frequent first.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorDetails
GetDatasetGenerationResponse.Builder errorDetails(Consumer<GenerationErrorDetail.Builder>... errorDetails) The errors the generation hit, grouped by error code. The list holds the 10 most frequent error codes, most frequent first.
This is a convenience method that creates an instance of theGenerationErrorDetail.Builderavoiding the need to create one manually viaGenerationErrorDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerrorDetails(List<GenerationErrorDetail>).- Parameters:
errorDetails- a consumer that will call methods onGenerationErrorDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-