Interface MedicalResult.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<MedicalResult.Builder,MedicalResult>,SdkBuilder<MedicalResult.Builder,MedicalResult>,SdkPojo
- Enclosing class:
- MedicalResult
@Mutable @NotThreadSafe public static interface MedicalResult.Builder extends SdkPojo, CopyableBuilder<MedicalResult.Builder,MedicalResult>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MedicalResult.Builderalternatives(Collection<MedicalAlternative> alternatives)A list of possible alternative transcriptions for the input audio.MedicalResult.Builderalternatives(Consumer<MedicalAlternative.Builder>... alternatives)A list of possible alternative transcriptions for the input audio.MedicalResult.Builderalternatives(MedicalAlternative... alternatives)A list of possible alternative transcriptions for the input audio.MedicalResult.BuilderchannelId(String channelId)Indicates the channel identified for theResult.MedicalResult.BuilderendTime(Double endTime)The end time, in seconds, of theResult.MedicalResult.BuilderisPartial(Boolean isPartial)Indicates if the segment is complete.MedicalResult.BuilderresultId(String resultId)Provides a unique identifier for theResult.MedicalResult.BuilderstartTime(Double startTime)The start time, in seconds, of theResult.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
resultId
MedicalResult.Builder resultId(String resultId)
Provides a unique identifier for the
Result.- Parameters:
resultId- Provides a unique identifier for theResult.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTime
MedicalResult.Builder startTime(Double startTime)
The start time, in seconds, of the
Result.- Parameters:
startTime- The start time, in seconds, of theResult.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTime
MedicalResult.Builder endTime(Double endTime)
The end time, in seconds, of the
Result.- Parameters:
endTime- The end time, in seconds, of theResult.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isPartial
MedicalResult.Builder isPartial(Boolean isPartial)
Indicates if the segment is complete.
If
IsPartialistrue, the segment is not complete. IfIsPartialisfalse, the segment is complete.- Parameters:
isPartial- Indicates if the segment is complete.If
IsPartialistrue, the segment is not complete. IfIsPartialisfalse, the segment is complete.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alternatives
MedicalResult.Builder alternatives(Collection<MedicalAlternative> alternatives)
A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more of
Items,Entities, orTranscript.- Parameters:
alternatives- A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more ofItems,Entities, orTranscript.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alternatives
MedicalResult.Builder alternatives(MedicalAlternative... alternatives)
A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more of
Items,Entities, orTranscript.- Parameters:
alternatives- A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more ofItems,Entities, orTranscript.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alternatives
MedicalResult.Builder alternatives(Consumer<MedicalAlternative.Builder>... alternatives)
A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more of
This is a convenience method that creates an instance of theItems,Entities, orTranscript.MedicalAlternative.Builderavoiding the need to create one manually viaMedicalAlternative.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#alternatives(List.) - Parameters:
alternatives- a consumer that will call methods onMedicalAlternative.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#alternatives(java.util.Collection)
-
channelId
MedicalResult.Builder channelId(String channelId)
Indicates the channel identified for the
Result.- Parameters:
channelId- Indicates the channel identified for theResult.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-