Interface UtteranceEvent.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<UtteranceEvent.Builder,UtteranceEvent>,SdkBuilder<UtteranceEvent.Builder,UtteranceEvent>,SdkPojo
- All Known Subinterfaces:
DefaultUtteranceEvent.Builder
- All Known Implementing Classes:
UtteranceEvent.BuilderImpl
- Enclosing class:
- UtteranceEvent
@Mutable @NotThreadSafe public static interface UtteranceEvent.Builder extends SdkPojo, CopyableBuilder<UtteranceEvent.Builder,UtteranceEvent>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UtteranceEvent.BuilderbeginOffsetMillis(Long beginOffsetMillis)The time, in milliseconds, from the beginning of the audio stream to the start of theUtteranceEvent.UtteranceEvent.BuilderendOffsetMillis(Long endOffsetMillis)The time, in milliseconds, from the beginning of the audio stream to the start of theUtteranceEvent.UtteranceEvent.Builderentities(Collection<CallAnalyticsEntity> entities)Contains entities identified as personally identifiable information (PII) in your transcription output.UtteranceEvent.Builderentities(Consumer<CallAnalyticsEntity.Builder>... entities)Contains entities identified as personally identifiable information (PII) in your transcription output.UtteranceEvent.Builderentities(CallAnalyticsEntity... entities)Contains entities identified as personally identifiable information (PII) in your transcription output.UtteranceEvent.BuilderisPartial(Boolean isPartial)Indicates whether the segment in theUtteranceEventis complete (FALSE) or partial (TRUE).UtteranceEvent.BuilderissuesDetected(Collection<IssueDetected> issuesDetected)Provides the issue that was detected in the specified segment.UtteranceEvent.BuilderissuesDetected(Consumer<IssueDetected.Builder>... issuesDetected)Provides the issue that was detected in the specified segment.UtteranceEvent.BuilderissuesDetected(IssueDetected... issuesDetected)Provides the issue that was detected in the specified segment.UtteranceEvent.Builderitems(Collection<CallAnalyticsItem> items)Contains words, phrases, or punctuation marks that are associated with the specifiedUtteranceEvent.UtteranceEvent.Builderitems(Consumer<CallAnalyticsItem.Builder>... items)Contains words, phrases, or punctuation marks that are associated with the specifiedUtteranceEvent.UtteranceEvent.Builderitems(CallAnalyticsItem... items)Contains words, phrases, or punctuation marks that are associated with the specifiedUtteranceEvent.UtteranceEvent.BuilderparticipantRole(String participantRole)Provides the role of the speaker for each audio channel, eitherCUSTOMERorAGENT.UtteranceEvent.BuilderparticipantRole(ParticipantRole participantRole)Provides the role of the speaker for each audio channel, eitherCUSTOMERorAGENT.UtteranceEvent.Buildersentiment(String sentiment)Provides the sentiment that was detected in the specified segment.UtteranceEvent.Buildersentiment(Sentiment sentiment)Provides the sentiment that was detected in the specified segment.UtteranceEvent.Buildertranscript(String transcript)Contains transcribed text.UtteranceEvent.BuilderutteranceId(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 Detail
-
utteranceId
UtteranceEvent.Builder utteranceId(String 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
UtteranceEvent.Builder isPartial(Boolean isPartial)
Indicates whether the segment in the
UtteranceEventis complete (FALSE) or partial (TRUE).- 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.
-
participantRole
UtteranceEvent.Builder participantRole(String participantRole)
Provides the role of the speaker for each audio channel, either
CUSTOMERorAGENT.- 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,ParticipantRole
-
participantRole
UtteranceEvent.Builder participantRole(ParticipantRole participantRole)
Provides the role of the speaker for each audio channel, either
CUSTOMERorAGENT.- 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,ParticipantRole
-
beginOffsetMillis
UtteranceEvent.Builder beginOffsetMillis(Long 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
UtteranceEvent.Builder endOffsetMillis(Long 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
UtteranceEvent.Builder transcript(String 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
UtteranceEvent.Builder items(Collection<CallAnalyticsItem> 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
UtteranceEvent.Builder items(CallAnalyticsItem... 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
UtteranceEvent.Builder items(Consumer<CallAnalyticsItem.Builder>... 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.Builderavoiding the need to create one manually viaCallAnalyticsItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#items(List.) - 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:
#items(java.util.Collection)
-
entities
UtteranceEvent.Builder entities(Collection<CallAnalyticsEntity> 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
UtteranceEvent.Builder entities(CallAnalyticsEntity... 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
UtteranceEvent.Builder entities(Consumer<CallAnalyticsEntity.Builder>... entities)
Contains 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 to#entities(List.) - 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:
#entities(java.util.Collection)
-
sentiment
UtteranceEvent.Builder sentiment(String sentiment)
Provides the sentiment that was detected in the specified segment.
-
sentiment
UtteranceEvent.Builder sentiment(Sentiment sentiment)
Provides the sentiment that was detected in the specified segment.
-
issuesDetected
UtteranceEvent.Builder issuesDetected(Collection<IssueDetected> 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
UtteranceEvent.Builder issuesDetected(IssueDetected... 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
UtteranceEvent.Builder issuesDetected(Consumer<IssueDetected.Builder>... issuesDetected)
Provides 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 to#issuesDetected(List.) - 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:
#issuesDetected(java.util.Collection)
-
-