protected static class UtteranceEvent.BuilderImpl extends Object implements UtteranceEvent.Builder
| Modifier | Constructor and Description |
|---|---|
protected |
BuilderImpl() |
protected |
BuilderImpl(UtteranceEvent model) |
| Modifier and Type | Method and Description |
|---|---|
UtteranceEvent.Builder |
beginOffsetMillis(Long beginOffsetMillis)
The time, in milliseconds, from the beginning of the audio stream to the start of the
UtteranceEvent. |
UtteranceEvent |
build() |
UtteranceEvent.Builder |
endOffsetMillis(Long endOffsetMillis)
The time, in milliseconds, from the beginning of the audio stream to the start of the
UtteranceEvent. |
UtteranceEvent.Builder |
entities(CallAnalyticsEntity... entities)
Contains entities identified as personally identifiable information (PII) in your transcription output.
|
UtteranceEvent.Builder |
entities(Collection<CallAnalyticsEntity> entities)
Contains entities identified as personally identifiable information (PII) in your transcription output.
|
UtteranceEvent.Builder |
entities(Consumer<CallAnalyticsEntity.Builder>... entities)
Contains entities identified as personally identifiable information (PII) in your transcription output.
|
Long |
getBeginOffsetMillis() |
Long |
getEndOffsetMillis() |
List<CallAnalyticsEntity.Builder> |
getEntities() |
Boolean |
getIsPartial() |
List<IssueDetected.Builder> |
getIssuesDetected() |
List<CallAnalyticsItem.Builder> |
getItems() |
String |
getParticipantRole() |
String |
getSentiment() |
String |
getTranscript() |
String |
getUtteranceId() |
UtteranceEvent.Builder |
isPartial(Boolean isPartial)
Indicates whether the segment in the
UtteranceEvent is complete (FALSE) or partial
(TRUE). |
UtteranceEvent.Builder |
issuesDetected(Collection<IssueDetected> issuesDetected)
Provides the issue that was detected in the specified segment.
|
UtteranceEvent.Builder |
issuesDetected(Consumer<IssueDetected.Builder>... issuesDetected)
Provides the issue that was detected in the specified segment.
|
UtteranceEvent.Builder |
issuesDetected(IssueDetected... issuesDetected)
Provides the issue that was detected in the specified segment.
|
UtteranceEvent.Builder |
items(CallAnalyticsItem... items)
Contains words, phrases, or punctuation marks that are associated with the specified
UtteranceEvent. |
UtteranceEvent.Builder |
items(Collection<CallAnalyticsItem> items)
Contains words, phrases, or punctuation marks that are associated with the specified
UtteranceEvent. |
UtteranceEvent.Builder |
items(Consumer<CallAnalyticsItem.Builder>... items)
Contains words, phrases, or punctuation marks that are associated with the specified
UtteranceEvent. |
UtteranceEvent.Builder |
participantRole(ParticipantRole participantRole)
Provides the role of the speaker for each audio channel, either
CUSTOMER or AGENT. |
UtteranceEvent.Builder |
participantRole(String participantRole)
Provides the role of the speaker for each audio channel, either
CUSTOMER or AGENT. |
List<SdkField<?>> |
sdkFields() |
UtteranceEvent.Builder |
sentiment(Sentiment sentiment)
Provides the sentiment that was detected in the specified segment.
|
UtteranceEvent.Builder |
sentiment(String sentiment)
Provides the sentiment that was detected in the specified segment.
|
void |
setBeginOffsetMillis(Long beginOffsetMillis) |
void |
setEndOffsetMillis(Long endOffsetMillis) |
void |
setEntities(Collection<software.amazon.awssdk.services.transcribestreaming.model.CallAnalyticsEntity.BuilderImpl> entities) |
void |
setIsPartial(Boolean isPartial) |
void |
setIssuesDetected(Collection<software.amazon.awssdk.services.transcribestreaming.model.IssueDetected.BuilderImpl> issuesDetected) |
void |
setItems(Collection<software.amazon.awssdk.services.transcribestreaming.model.CallAnalyticsItem.BuilderImpl> items) |
void |
setParticipantRole(String participantRole) |
void |
setSentiment(String sentiment) |
void |
setTranscript(String transcript) |
void |
setUtteranceId(String utteranceId) |
UtteranceEvent.Builder |
transcript(String transcript)
Contains transcribed text.
|
UtteranceEvent.Builder |
utteranceId(String utteranceId)
The unique identifier that is associated with the specified
UtteranceEvent. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalsBySdkFieldscopyapplyMutationprotected BuilderImpl()
protected BuilderImpl(UtteranceEvent model)
public final String getUtteranceId()
public final void setUtteranceId(String utteranceId)
public final UtteranceEvent.Builder utteranceId(String utteranceId)
UtteranceEvent.Builder
The unique identifier that is associated with the specified UtteranceEvent.
utteranceId in interface UtteranceEvent.BuilderutteranceId - The unique identifier that is associated with the specified UtteranceEvent.public final Boolean getIsPartial()
public final void setIsPartial(Boolean isPartial)
public final UtteranceEvent.Builder isPartial(Boolean isPartial)
UtteranceEvent.Builder
Indicates whether the segment in the UtteranceEvent is complete (FALSE) or partial
(TRUE).
isPartial in interface UtteranceEvent.BuilderisPartial - Indicates whether the segment in the UtteranceEvent is complete (FALSE) or
partial (TRUE).public final String getParticipantRole()
public final void setParticipantRole(String participantRole)
public final UtteranceEvent.Builder participantRole(String participantRole)
UtteranceEvent.Builder
Provides the role of the speaker for each audio channel, either CUSTOMER or AGENT.
participantRole in interface UtteranceEvent.BuilderparticipantRole - Provides the role of the speaker for each audio channel, either CUSTOMER or
AGENT.ParticipantRole,
ParticipantRolepublic final UtteranceEvent.Builder participantRole(ParticipantRole participantRole)
UtteranceEvent.Builder
Provides the role of the speaker for each audio channel, either CUSTOMER or AGENT.
participantRole in interface UtteranceEvent.BuilderparticipantRole - Provides the role of the speaker for each audio channel, either CUSTOMER or
AGENT.ParticipantRole,
ParticipantRolepublic final Long getBeginOffsetMillis()
public final void setBeginOffsetMillis(Long beginOffsetMillis)
public final UtteranceEvent.Builder beginOffsetMillis(Long beginOffsetMillis)
UtteranceEvent.Builder
The time, in milliseconds, from the beginning of the audio stream to the start of the
UtteranceEvent.
beginOffsetMillis in interface UtteranceEvent.BuilderbeginOffsetMillis - The time, in milliseconds, from the beginning of the audio stream to the start of the
UtteranceEvent.public final Long getEndOffsetMillis()
public final void setEndOffsetMillis(Long endOffsetMillis)
public final UtteranceEvent.Builder endOffsetMillis(Long endOffsetMillis)
UtteranceEvent.Builder
The time, in milliseconds, from the beginning of the audio stream to the start of the
UtteranceEvent.
endOffsetMillis in interface UtteranceEvent.BuilderendOffsetMillis - The time, in milliseconds, from the beginning of the audio stream to the start of the
UtteranceEvent.public final String getTranscript()
public final void setTranscript(String transcript)
public final UtteranceEvent.Builder transcript(String transcript)
UtteranceEvent.BuilderContains transcribed text.
transcript in interface UtteranceEvent.Buildertranscript - Contains transcribed text.public final List<CallAnalyticsItem.Builder> getItems()
public final void setItems(Collection<software.amazon.awssdk.services.transcribestreaming.model.CallAnalyticsItem.BuilderImpl> items)
public final UtteranceEvent.Builder items(Collection<CallAnalyticsItem> items)
UtteranceEvent.Builder
Contains words, phrases, or punctuation marks that are associated with the specified
UtteranceEvent.
items in interface UtteranceEvent.Builderitems - Contains words, phrases, or punctuation marks that are associated with the specified
UtteranceEvent.@SafeVarargs public final UtteranceEvent.Builder items(CallAnalyticsItem... items)
UtteranceEvent.Builder
Contains words, phrases, or punctuation marks that are associated with the specified
UtteranceEvent.
items in interface UtteranceEvent.Builderitems - Contains words, phrases, or punctuation marks that are associated with the specified
UtteranceEvent.@SafeVarargs public final UtteranceEvent.Builder items(Consumer<CallAnalyticsItem.Builder>... items)
UtteranceEvent.Builder
Contains words, phrases, or punctuation marks that are associated with the specified
UtteranceEvent.
CallAnalyticsItem.Builder avoiding the need
to create one manually via
CallAnalyticsItem.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #items(List.
items in interface UtteranceEvent.Builderitems - a consumer that will call methods on
CallAnalyticsItem.Builder#items(java.util.Collection) public final List<CallAnalyticsEntity.Builder> getEntities()
public final void setEntities(Collection<software.amazon.awssdk.services.transcribestreaming.model.CallAnalyticsEntity.BuilderImpl> entities)
public final UtteranceEvent.Builder entities(Collection<CallAnalyticsEntity> entities)
UtteranceEvent.BuilderContains entities identified as personally identifiable information (PII) in your transcription output.
entities in interface UtteranceEvent.Builderentities - Contains entities identified as personally identifiable information (PII) in your transcription
output.@SafeVarargs public final UtteranceEvent.Builder entities(CallAnalyticsEntity... entities)
UtteranceEvent.BuilderContains entities identified as personally identifiable information (PII) in your transcription output.
entities in interface UtteranceEvent.Builderentities - Contains entities identified as personally identifiable information (PII) in your transcription
output.@SafeVarargs public final UtteranceEvent.Builder entities(Consumer<CallAnalyticsEntity.Builder>... entities)
UtteranceEvent.BuilderContains 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 via
CallAnalyticsEntity.builder().
When the Consumer completes,
SdkBuilder.build() is
called immediately and its result is passed to #entities(List.
entities in interface UtteranceEvent.Builderentities - a consumer that will call methods on
CallAnalyticsEntity.Builder#entities(java.util.Collection) public final String getSentiment()
public final void setSentiment(String sentiment)
public final UtteranceEvent.Builder sentiment(String sentiment)
UtteranceEvent.BuilderProvides the sentiment that was detected in the specified segment.
sentiment in interface UtteranceEvent.Buildersentiment - Provides the sentiment that was detected in the specified segment.Sentiment,
Sentimentpublic final UtteranceEvent.Builder sentiment(Sentiment sentiment)
UtteranceEvent.BuilderProvides the sentiment that was detected in the specified segment.
sentiment in interface UtteranceEvent.Buildersentiment - Provides the sentiment that was detected in the specified segment.Sentiment,
Sentimentpublic final List<IssueDetected.Builder> getIssuesDetected()
public final void setIssuesDetected(Collection<software.amazon.awssdk.services.transcribestreaming.model.IssueDetected.BuilderImpl> issuesDetected)
public final UtteranceEvent.Builder issuesDetected(Collection<IssueDetected> issuesDetected)
UtteranceEvent.BuilderProvides the issue that was detected in the specified segment.
issuesDetected in interface UtteranceEvent.BuilderissuesDetected - Provides the issue that was detected in the specified segment.@SafeVarargs public final UtteranceEvent.Builder issuesDetected(IssueDetected... issuesDetected)
UtteranceEvent.BuilderProvides the issue that was detected in the specified segment.
issuesDetected in interface UtteranceEvent.BuilderissuesDetected - Provides the issue that was detected in the specified segment.@SafeVarargs public final UtteranceEvent.Builder issuesDetected(Consumer<IssueDetected.Builder>... issuesDetected)
UtteranceEvent.BuilderProvides 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 via
IssueDetected.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #issuesDetected(List.
issuesDetected in interface UtteranceEvent.BuilderissuesDetected - a consumer that will call methods on
IssueDetected.Builder#issuesDetected(java.util.Collection) public UtteranceEvent build()
build in interface Buildablebuild in interface SdkBuilder<UtteranceEvent.Builder,UtteranceEvent>Copyright © 2023. All rights reserved.