Interface UtteranceLevelTestResultItem.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<UtteranceLevelTestResultItem.Builder,,UtteranceLevelTestResultItem> SdkBuilder<UtteranceLevelTestResultItem.Builder,,UtteranceLevelTestResultItem> SdkPojo
- Enclosing class:
UtteranceLevelTestResultItem
@Mutable
@NotThreadSafe
public static interface UtteranceLevelTestResultItem.Builder
extends SdkPojo, CopyableBuilder<UtteranceLevelTestResultItem.Builder,UtteranceLevelTestResultItem>
-
Method Summary
Modifier and TypeMethodDescriptionconversationId(String conversationId) The unique identifier for the conversation associated with the result.recordNumber(Long recordNumber) The record number of the result.turnResult(Consumer<TestSetTurnResult.Builder> turnResult) Contains information about the turn associated with the result.turnResult(TestSetTurnResult turnResult) Contains information about the turn associated with the result.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
-
recordNumber
The record number of the result.
- Parameters:
recordNumber- The record number of the result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conversationId
The unique identifier for the conversation associated with the result.
- Parameters:
conversationId- The unique identifier for the conversation associated with the result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
turnResult
Contains information about the turn associated with the result.
- Parameters:
turnResult- Contains information about the turn associated with the result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
turnResult
default UtteranceLevelTestResultItem.Builder turnResult(Consumer<TestSetTurnResult.Builder> turnResult) Contains information about the turn associated with the result.
This is a convenience method that creates an instance of theTestSetTurnResult.Builderavoiding the need to create one manually viaTestSetTurnResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toturnResult(TestSetTurnResult).- Parameters:
turnResult- a consumer that will call methods onTestSetTurnResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-