Interface UtteranceEvent.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<UtteranceEvent.Builder,
,UtteranceEvent> SdkBuilder<UtteranceEvent.Builder,
,UtteranceEvent> SdkPojo
- All Known Subinterfaces:
DefaultUtteranceEvent.Builder
- Enclosing class:
UtteranceEvent
-
Method Summary
Modifier and TypeMethodDescriptionbeginOffsetMillis
(Long beginOffsetMillis) The time, in milliseconds, from the beginning of the audio stream to the start of theUtteranceEvent
.endOffsetMillis
(Long endOffsetMillis) The time, in milliseconds, from the beginning of the audio stream to the start of theUtteranceEvent
.entities
(Collection<CallAnalyticsEntity> entities) Contains entities identified as personally identifiable information (PII) in your transcription output.entities
(Consumer<CallAnalyticsEntity.Builder>... entities) Contains entities identified as personally identifiable information (PII) in your transcription output.entities
(CallAnalyticsEntity... entities) Contains entities identified as personally identifiable information (PII) in your transcription output.Indicates whether the segment in theUtteranceEvent
is complete (FALSE
) or partial (TRUE
).issuesDetected
(Collection<IssueDetected> issuesDetected) Provides the issue that was detected in the specified segment.issuesDetected
(Consumer<IssueDetected.Builder>... issuesDetected) Provides the issue that was detected in the specified segment.issuesDetected
(IssueDetected... issuesDetected) Provides the issue that was detected in the specified segment.items
(Collection<CallAnalyticsItem> items) Contains words, phrases, or punctuation marks that are associated with the specifiedUtteranceEvent
.items
(Consumer<CallAnalyticsItem.Builder>... items) Contains words, phrases, or punctuation marks that are associated with the specifiedUtteranceEvent
.items
(CallAnalyticsItem... items) Contains words, phrases, or punctuation marks that are associated with the specifiedUtteranceEvent
.languageCode
(String languageCode) The language code that represents the language spoken in your audio stream.languageCode
(CallAnalyticsLanguageCode languageCode) The language code that represents the language spoken in your audio stream.languageIdentification
(Collection<CallAnalyticsLanguageWithScore> languageIdentification) The language code of the dominant language identified in your stream.languageIdentification
(Consumer<CallAnalyticsLanguageWithScore.Builder>... languageIdentification) The language code of the dominant language identified in your stream.languageIdentification
(CallAnalyticsLanguageWithScore... languageIdentification) The language code of the dominant language identified in your stream.participantRole
(String participantRole) Provides the role of the speaker for each audio channel, eitherCUSTOMER
orAGENT
.participantRole
(ParticipantRole participantRole) Provides the role of the speaker for each audio channel, eitherCUSTOMER
orAGENT
.Provides the sentiment that was detected in the specified segment.Provides the sentiment that was detected in the specified segment.transcript
(String transcript) Contains transcribed text.utteranceId
(String utteranceId) The unique identifier that is associated with the specifiedUtteranceEvent
.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 Details
-
utteranceId
The unique identifier that is associated with the specified
UtteranceEvent
.- 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.
-
isPartial
Indicates whether the segment in the
UtteranceEvent
is complete (FALSE
) or partial (TRUE
).- Parameters:
isPartial
- Indicates whether the segment in theUtteranceEvent
is complete (FALSE
) or partial (TRUE
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
participantRole
Provides the role of the speaker for each audio channel, either
CUSTOMER
orAGENT
.- Parameters:
participantRole
- Provides the role of the speaker for each audio channel, eitherCUSTOMER
orAGENT
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
participantRole
Provides the role of the speaker for each audio channel, either
CUSTOMER
orAGENT
.- Parameters:
participantRole
- Provides the role of the speaker for each audio channel, eitherCUSTOMER
orAGENT
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
beginOffsetMillis
The time, in milliseconds, from the beginning of the audio stream to the start of the
UtteranceEvent
.- 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.
-
endOffsetMillis
The time, in milliseconds, from the beginning of the audio stream to the start of the
UtteranceEvent
.- 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.
-
transcript
Contains transcribed text.
- Parameters:
transcript
- Contains transcribed text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
Contains words, phrases, or punctuation marks that are associated with the specified
UtteranceEvent
.- 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
Contains words, phrases, or punctuation marks that are associated with the specified
UtteranceEvent
.- 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
Contains words, phrases, or punctuation marks that are associated with the specified
This is a convenience method that creates an instance of theUtteranceEvent
.CallAnalyticsItem.Builder
avoiding the need to create one manually viaCallAnalyticsItem.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toitems(List<CallAnalyticsItem>)
.- 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:
-
entities
Contains entities identified as personally identifiable information (PII) in your transcription output.
- 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
Contains entities identified as personally identifiable information (PII) in your transcription output.
- 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
Contains entities identified as personally identifiable information (PII) in your transcription output.
This is a convenience method that creates an instance of theCallAnalyticsEntity.Builder
avoiding the need to create one manually viaCallAnalyticsEntity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toentities(List<CallAnalyticsEntity>)
.- 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:
-
sentiment
Provides the sentiment that was detected in the specified segment.
- 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
Provides the sentiment that was detected in the specified segment.
- 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:
-
issuesDetected
Provides the issue that was detected in the specified segment.
- 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
Provides the issue that was detected in the specified segment.
- 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
Provides the issue that was detected in the specified segment.
This is a convenience method that creates an instance of theIssueDetected.Builder
avoiding the need to create one manually viaIssueDetected.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toissuesDetected(List<IssueDetected>)
.- 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:
-
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
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:
-
languageIdentification
UtteranceEvent.Builder languageIdentification(Collection<CallAnalyticsLanguageWithScore> languageIdentification) The language code of the dominant language identified in your stream.
- 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
UtteranceEvent.Builder languageIdentification(CallAnalyticsLanguageWithScore... languageIdentification) The language code of the dominant language identified in your stream.
- 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
UtteranceEvent.Builder languageIdentification(Consumer<CallAnalyticsLanguageWithScore.Builder>... languageIdentification) The language code of the dominant language identified in your stream.
This is a convenience method that creates an instance of theCallAnalyticsLanguageWithScore.Builder
avoiding the need to create one manually viaCallAnalyticsLanguageWithScore.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolanguageIdentification(List<CallAnalyticsLanguageWithScore>)
.- 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:
-