Class UtteranceEvent.BuilderImpl
- All Implemented Interfaces:
SdkPojo,UtteranceEvent.Builder,Buildable,CopyableBuilder<UtteranceEvent.Builder,,UtteranceEvent> SdkBuilder<UtteranceEvent.Builder,UtteranceEvent>
- Enclosing class:
- UtteranceEvent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal UtteranceEvent.BuilderbeginOffsetMillis(Long beginOffsetMillis) The time, in milliseconds, from the beginning of the audio stream to the start of theUtteranceEvent.build()final UtteranceEvent.BuilderendOffsetMillis(Long endOffsetMillis) The time, in milliseconds, from the beginning of the audio stream to the start of theUtteranceEvent.final UtteranceEvent.Builderentities(Collection<CallAnalyticsEntity> entities) Contains entities identified as personally identifiable information (PII) in your transcription output.final UtteranceEvent.Builderentities(Consumer<CallAnalyticsEntity.Builder>... entities) Contains entities identified as personally identifiable information (PII) in your transcription output.final UtteranceEvent.Builderentities(CallAnalyticsEntity... entities) Contains entities identified as personally identifiable information (PII) in your transcription output.final Longfinal Longfinal List<CallAnalyticsEntity.Builder>final Booleanfinal List<IssueDetected.Builder>final List<CallAnalyticsItem.Builder>getItems()final Stringfinal Stringfinal Stringfinal Stringfinal Stringfinal UtteranceEvent.BuilderIndicates whether the segment in theUtteranceEventis complete (FALSE) or partial (TRUE).final UtteranceEvent.BuilderissuesDetected(Collection<IssueDetected> issuesDetected) Provides the issue that was detected in the specified segment.final UtteranceEvent.BuilderissuesDetected(Consumer<IssueDetected.Builder>... issuesDetected) Provides the issue that was detected in the specified segment.final UtteranceEvent.BuilderissuesDetected(IssueDetected... issuesDetected) Provides the issue that was detected in the specified segment.final UtteranceEvent.Builderitems(Collection<CallAnalyticsItem> items) Contains words, phrases, or punctuation marks that are associated with the specifiedUtteranceEvent.final UtteranceEvent.Builderitems(Consumer<CallAnalyticsItem.Builder>... items) Contains words, phrases, or punctuation marks that are associated with the specifiedUtteranceEvent.final UtteranceEvent.Builderitems(CallAnalyticsItem... items) Contains words, phrases, or punctuation marks that are associated with the specifiedUtteranceEvent.final UtteranceEvent.BuilderlanguageCode(String languageCode) The language code that represents the language spoken in your audio stream.final UtteranceEvent.BuilderlanguageCode(CallAnalyticsLanguageCode languageCode) The language code that represents the language spoken in your audio stream.final UtteranceEvent.BuilderlanguageIdentification(Collection<CallAnalyticsLanguageWithScore> languageIdentification) The language code of the dominant language identified in your stream.final UtteranceEvent.BuilderlanguageIdentification(Consumer<CallAnalyticsLanguageWithScore.Builder>... languageIdentification) The language code of the dominant language identified in your stream.final UtteranceEvent.BuilderlanguageIdentification(CallAnalyticsLanguageWithScore... languageIdentification) The language code of the dominant language identified in your stream.final UtteranceEvent.BuilderparticipantRole(String participantRole) Provides the role of the speaker for each audio channel, eitherCUSTOMERorAGENT.final UtteranceEvent.BuilderparticipantRole(ParticipantRole participantRole) Provides the role of the speaker for each audio channel, eitherCUSTOMERorAGENT.final UtteranceEvent.BuilderProvides the sentiment that was detected in the specified segment.final UtteranceEvent.BuilderProvides the sentiment that was detected in the specified segment.final voidsetBeginOffsetMillis(Long beginOffsetMillis) final voidsetEndOffsetMillis(Long endOffsetMillis) final voidsetEntities(Collection<software.amazon.awssdk.services.transcribestreaming.model.CallAnalyticsEntity.BuilderImpl> entities) final voidsetIsPartial(Boolean isPartial) final voidsetIssuesDetected(Collection<software.amazon.awssdk.services.transcribestreaming.model.IssueDetected.BuilderImpl> issuesDetected) final voidsetItems(Collection<software.amazon.awssdk.services.transcribestreaming.model.CallAnalyticsItem.BuilderImpl> items) final voidsetLanguageCode(String languageCode) final voidsetLanguageIdentification(Collection<software.amazon.awssdk.services.transcribestreaming.model.CallAnalyticsLanguageWithScore.BuilderImpl> languageIdentification) final voidsetParticipantRole(String participantRole) final voidsetSentiment(String sentiment) final voidsetTranscript(String transcript) final voidsetUtteranceId(String utteranceId) final UtteranceEvent.Buildertranscript(String transcript) Contains transcribed text.final UtteranceEvent.BuilderutteranceId(String utteranceId) The unique identifier that is associated with the specifiedUtteranceEvent.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutationMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields
-
Constructor Details
-
BuilderImpl
protected BuilderImpl() -
BuilderImpl
-
-
Method Details
-
getUtteranceId
-
setUtteranceId
-
utteranceId
Description copied from interface:UtteranceEvent.BuilderThe unique identifier that is associated with the specified
UtteranceEvent.- Specified by:
utteranceIdin interfaceUtteranceEvent.Builder- Parameters:
utteranceId- The unique identifier that is associated with the specifiedUtteranceEvent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getIsPartial
-
setIsPartial
-
isPartial
Description copied from interface:UtteranceEvent.BuilderIndicates whether the segment in the
UtteranceEventis complete (FALSE) or partial (TRUE).- Specified by:
isPartialin interfaceUtteranceEvent.Builder- Parameters:
isPartial- Indicates whether the segment in theUtteranceEventis complete (FALSE) or partial (TRUE).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getParticipantRole
-
setParticipantRole
-
participantRole
Description copied from interface:UtteranceEvent.BuilderProvides the role of the speaker for each audio channel, either
CUSTOMERorAGENT.- Specified by:
participantRolein interfaceUtteranceEvent.Builder- Parameters:
participantRole- Provides the role of the speaker for each audio channel, eitherCUSTOMERorAGENT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
participantRole
Description copied from interface:UtteranceEvent.BuilderProvides the role of the speaker for each audio channel, either
CUSTOMERorAGENT.- Specified by:
participantRolein interfaceUtteranceEvent.Builder- Parameters:
participantRole- Provides the role of the speaker for each audio channel, eitherCUSTOMERorAGENT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
getBeginOffsetMillis
-
setBeginOffsetMillis
-
beginOffsetMillis
Description copied from interface:UtteranceEvent.BuilderThe time, in milliseconds, from the beginning of the audio stream to the start of the
UtteranceEvent.- Specified by:
beginOffsetMillisin interfaceUtteranceEvent.Builder- Parameters:
beginOffsetMillis- The time, in milliseconds, from the beginning of the audio stream to the start of theUtteranceEvent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getEndOffsetMillis
-
setEndOffsetMillis
-
endOffsetMillis
Description copied from interface:UtteranceEvent.BuilderThe time, in milliseconds, from the beginning of the audio stream to the start of the
UtteranceEvent.- Specified by:
endOffsetMillisin interfaceUtteranceEvent.Builder- Parameters:
endOffsetMillis- The time, in milliseconds, from the beginning of the audio stream to the start of theUtteranceEvent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTranscript
-
setTranscript
-
transcript
Description copied from interface:UtteranceEvent.BuilderContains transcribed text.
- Specified by:
transcriptin interfaceUtteranceEvent.Builder- Parameters:
transcript- Contains transcribed text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getItems
-
setItems
public final void setItems(Collection<software.amazon.awssdk.services.transcribestreaming.model.CallAnalyticsItem.BuilderImpl> items) -
items
Description copied from interface:UtteranceEvent.BuilderContains words, phrases, or punctuation marks that are associated with the specified
UtteranceEvent.- Specified by:
itemsin interfaceUtteranceEvent.Builder- Parameters:
items- Contains words, phrases, or punctuation marks that are associated with the specifiedUtteranceEvent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
Description copied from interface:UtteranceEvent.BuilderContains words, phrases, or punctuation marks that are associated with the specified
UtteranceEvent.- Specified by:
itemsin interfaceUtteranceEvent.Builder- Parameters:
items- Contains words, phrases, or punctuation marks that are associated with the specifiedUtteranceEvent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
@SafeVarargs public final UtteranceEvent.Builder items(Consumer<CallAnalyticsItem.Builder>... items) Description copied from interface:UtteranceEvent.BuilderContains words, phrases, or punctuation marks that are associated with the specified
This is a convenience method that creates an instance of theUtteranceEvent.CallAnalyticsItem.Builderavoiding the need to create one manually viaCallAnalyticsItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toUtteranceEvent.Builder.items(List<CallAnalyticsItem>).- Specified by:
itemsin interfaceUtteranceEvent.Builder- Parameters:
items- a consumer that will call methods onCallAnalyticsItem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
getEntities
-
setEntities
public final void setEntities(Collection<software.amazon.awssdk.services.transcribestreaming.model.CallAnalyticsEntity.BuilderImpl> entities) -
entities
Description copied from interface:UtteranceEvent.BuilderContains entities identified as personally identifiable information (PII) in your transcription output.
- Specified by:
entitiesin interfaceUtteranceEvent.Builder- Parameters:
entities- Contains entities identified as personally identifiable information (PII) in your transcription output.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entities
Description copied from interface:UtteranceEvent.BuilderContains entities identified as personally identifiable information (PII) in your transcription output.
- Specified by:
entitiesin interfaceUtteranceEvent.Builder- Parameters:
entities- Contains entities identified as personally identifiable information (PII) in your transcription output.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entities
@SafeVarargs public final UtteranceEvent.Builder entities(Consumer<CallAnalyticsEntity.Builder>... entities) Description copied from interface:UtteranceEvent.BuilderContains entities identified as personally identifiable information (PII) in your transcription output.
This is a convenience method that creates an instance of theCallAnalyticsEntity.Builderavoiding the need to create one manually viaCallAnalyticsEntity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toUtteranceEvent.Builder.entities(List<CallAnalyticsEntity>).- Specified by:
entitiesin interfaceUtteranceEvent.Builder- Parameters:
entities- a consumer that will call methods onCallAnalyticsEntity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
getSentiment
-
setSentiment
-
sentiment
Description copied from interface:UtteranceEvent.BuilderProvides the sentiment that was detected in the specified segment.
- Specified by:
sentimentin interfaceUtteranceEvent.Builder- Parameters:
sentiment- Provides the sentiment that was detected in the specified segment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sentiment
Description copied from interface:UtteranceEvent.BuilderProvides the sentiment that was detected in the specified segment.
- Specified by:
sentimentin interfaceUtteranceEvent.Builder- Parameters:
sentiment- Provides the sentiment that was detected in the specified segment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
getIssuesDetected
-
setIssuesDetected
public final void setIssuesDetected(Collection<software.amazon.awssdk.services.transcribestreaming.model.IssueDetected.BuilderImpl> issuesDetected) -
issuesDetected
Description copied from interface:UtteranceEvent.BuilderProvides the issue that was detected in the specified segment.
- Specified by:
issuesDetectedin interfaceUtteranceEvent.Builder- Parameters:
issuesDetected- Provides the issue that was detected in the specified segment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
issuesDetected
Description copied from interface:UtteranceEvent.BuilderProvides the issue that was detected in the specified segment.
- Specified by:
issuesDetectedin interfaceUtteranceEvent.Builder- Parameters:
issuesDetected- Provides the issue that was detected in the specified segment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
issuesDetected
@SafeVarargs public final UtteranceEvent.Builder issuesDetected(Consumer<IssueDetected.Builder>... issuesDetected) Description copied from interface:UtteranceEvent.BuilderProvides the issue that was detected in the specified segment.
This is a convenience method that creates an instance of theIssueDetected.Builderavoiding the need to create one manually viaIssueDetected.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toUtteranceEvent.Builder.issuesDetected(List<IssueDetected>).- Specified by:
issuesDetectedin interfaceUtteranceEvent.Builder- Parameters:
issuesDetected- a consumer that will call methods onIssueDetected.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
getLanguageCode
-
setLanguageCode
-
languageCode
Description copied from interface:UtteranceEvent.BuilderThe language code that represents the language spoken in your audio stream.
- Specified by:
languageCodein interfaceUtteranceEvent.Builder- 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
Description copied from interface:UtteranceEvent.BuilderThe language code that represents the language spoken in your audio stream.
- Specified by:
languageCodein interfaceUtteranceEvent.Builder- 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:
-
getLanguageIdentification
-
setLanguageIdentification
public final void setLanguageIdentification(Collection<software.amazon.awssdk.services.transcribestreaming.model.CallAnalyticsLanguageWithScore.BuilderImpl> languageIdentification) -
languageIdentification
public final UtteranceEvent.Builder languageIdentification(Collection<CallAnalyticsLanguageWithScore> languageIdentification) Description copied from interface:UtteranceEvent.BuilderThe language code of the dominant language identified in your stream.
- Specified by:
languageIdentificationin interfaceUtteranceEvent.Builder- Parameters:
languageIdentification- The language code of the dominant language identified in your stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
languageIdentification
@SafeVarargs public final UtteranceEvent.Builder languageIdentification(CallAnalyticsLanguageWithScore... languageIdentification) Description copied from interface:UtteranceEvent.BuilderThe language code of the dominant language identified in your stream.
- Specified by:
languageIdentificationin interfaceUtteranceEvent.Builder- Parameters:
languageIdentification- The language code of the dominant language identified in your stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
languageIdentification
@SafeVarargs public final UtteranceEvent.Builder languageIdentification(Consumer<CallAnalyticsLanguageWithScore.Builder>... languageIdentification) Description copied from interface:UtteranceEvent.BuilderThe language code of the dominant language identified in your stream.
This is a convenience method that creates an instance of theCallAnalyticsLanguageWithScore.Builderavoiding the need to create one manually viaCallAnalyticsLanguageWithScore.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toUtteranceEvent.Builder.languageIdentification(List<CallAnalyticsLanguageWithScore>).- Specified by:
languageIdentificationin interfaceUtteranceEvent.Builder- Parameters:
languageIdentification- a consumer that will call methods onCallAnalyticsLanguageWithScore.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
build
- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<UtteranceEvent.Builder,UtteranceEvent>
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-