Interface Result.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Result.Builder,Result>,SdkBuilder<Result.Builder,Result>,SdkPojo
- Enclosing class:
- Result
@Mutable @NotThreadSafe public static interface Result.Builder extends SdkPojo, CopyableBuilder<Result.Builder,Result>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Result.Builderalternatives(Collection<Alternative> alternatives)A list of possible alternative transcriptions for the input audio.Result.Builderalternatives(Consumer<Alternative.Builder>... alternatives)A list of possible alternative transcriptions for the input audio.Result.Builderalternatives(Alternative... alternatives)A list of possible alternative transcriptions for the input audio.Result.BuilderchannelId(String channelId)Indicates which audio channel is associated with theResult.Result.BuilderendTime(Double endTime)The end time of theResultin seconds, with millisecond precision (e.g., 1.056).Result.BuilderisPartial(Boolean isPartial)Indicates if the segment is complete.Result.BuilderlanguageCode(String languageCode)The language code that represents the language spoken in your audio stream.Result.BuilderlanguageCode(LanguageCode languageCode)The language code that represents the language spoken in your audio stream.Result.BuilderlanguageIdentification(Collection<LanguageWithScore> languageIdentification)The language code of the dominant language identified in your stream.Result.BuilderlanguageIdentification(Consumer<LanguageWithScore.Builder>... languageIdentification)The language code of the dominant language identified in your stream.Result.BuilderlanguageIdentification(LanguageWithScore... languageIdentification)The language code of the dominant language identified in your stream.Result.BuilderresultId(String resultId)Provides a unique identifier for theResult.Result.BuilderstartTime(Double startTime)The start time of theResultin seconds, with millisecond precision (e.g., 1.056).-
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
Result.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
Result.Builder startTime(Double startTime)
The start time of the
Resultin seconds, with millisecond precision (e.g., 1.056).- Parameters:
startTime- The start time of theResultin seconds, with millisecond precision (e.g., 1.056).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTime
Result.Builder endTime(Double endTime)
The end time of the
Resultin seconds, with millisecond precision (e.g., 1.056).- Parameters:
endTime- The end time of theResultin seconds, with millisecond precision (e.g., 1.056).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isPartial
Result.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
Result.Builder alternatives(Collection<Alternative> 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
Result.Builder alternatives(Alternative... 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
Result.Builder alternatives(Consumer<Alternative.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.Alternative.Builderavoiding the need to create one manually viaAlternative.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 onAlternative.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#alternatives(java.util.Collection)
-
channelId
Result.Builder channelId(String channelId)
Indicates which audio channel is associated with the
Result.- Parameters:
channelId- Indicates which audio channel is associated with theResult.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
languageCode
Result.Builder languageCode(String languageCode)
The language code that represents the language spoken in your audio stream.
- Parameters:
languageCode- The language code that represents the language spoken in your audio stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LanguageCode,LanguageCode
-
languageCode
Result.Builder languageCode(LanguageCode languageCode)
The language code that represents the language spoken in your audio stream.
- Parameters:
languageCode- The language code that represents the language spoken in your audio stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LanguageCode,LanguageCode
-
languageIdentification
Result.Builder languageIdentification(Collection<LanguageWithScore> languageIdentification)
The language code of the dominant language identified in your stream.
If you enabled channel identification and each channel of your audio contains a different language, you may have more than one result.
- Parameters:
languageIdentification- The language code of the dominant language identified in your stream.If you enabled channel identification and each channel of your audio contains a different language, you may have more than one result.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
languageIdentification
Result.Builder languageIdentification(LanguageWithScore... languageIdentification)
The language code of the dominant language identified in your stream.
If you enabled channel identification and each channel of your audio contains a different language, you may have more than one result.
- Parameters:
languageIdentification- The language code of the dominant language identified in your stream.If you enabled channel identification and each channel of your audio contains a different language, you may have more than one result.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
languageIdentification
Result.Builder languageIdentification(Consumer<LanguageWithScore.Builder>... languageIdentification)
The language code of the dominant language identified in your stream.
If you enabled channel identification and each channel of your audio contains a different language, you may have more than one result.
This is a convenience method that creates an instance of theLanguageWithScore.Builderavoiding the need to create one manually viaLanguageWithScore.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#languageIdentification(List.) - Parameters:
languageIdentification- a consumer that will call methods onLanguageWithScore.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#languageIdentification(java.util.Collection)
-
-