Class UtteranceEvent.BuilderImpl
- java.lang.Object
-
- software.amazon.awssdk.services.transcribestreaming.model.UtteranceEvent.BuilderImpl
-
- All Implemented Interfaces:
SdkPojo,UtteranceEvent.Builder,Buildable,CopyableBuilder<UtteranceEvent.Builder,UtteranceEvent>,SdkBuilder<UtteranceEvent.Builder,UtteranceEvent>
- Enclosing class:
- UtteranceEvent
protected static class UtteranceEvent.BuilderImpl extends Object implements UtteranceEvent.Builder
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilderImpl()protectedBuilderImpl(UtteranceEvent model)
-
Method Summary
All Methods Instance Methods Concrete 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.UtteranceEventbuild()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.LonggetBeginOffsetMillis()LonggetEndOffsetMillis()List<CallAnalyticsEntity.Builder>getEntities()BooleangetIsPartial()List<IssueDetected.Builder>getIssuesDetected()List<CallAnalyticsItem.Builder>getItems()StringgetParticipantRole()StringgetSentiment()StringgetTranscript()StringgetUtteranceId()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.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()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.voidsetBeginOffsetMillis(Long beginOffsetMillis)voidsetEndOffsetMillis(Long endOffsetMillis)voidsetEntities(Collection<software.amazon.awssdk.services.transcribestreaming.model.CallAnalyticsEntity.BuilderImpl> entities)voidsetIsPartial(Boolean isPartial)voidsetIssuesDetected(Collection<software.amazon.awssdk.services.transcribestreaming.model.IssueDetected.BuilderImpl> issuesDetected)voidsetItems(Collection<software.amazon.awssdk.services.transcribestreaming.model.CallAnalyticsItem.BuilderImpl> items)voidsetParticipantRole(String participantRole)voidsetSentiment(String sentiment)voidsetTranscript(String transcript)voidsetUtteranceId(String utteranceId)UtteranceEvent.Buildertranscript(String transcript)Contains transcribed text.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, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields
-
-
-
-
Constructor Detail
-
BuilderImpl
protected BuilderImpl()
-
BuilderImpl
protected BuilderImpl(UtteranceEvent model)
-
-
Method Detail
-
getUtteranceId
public final String getUtteranceId()
-
setUtteranceId
public final void setUtteranceId(String utteranceId)
-
utteranceId
public final UtteranceEvent.Builder utteranceId(String 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
public final Boolean getIsPartial()
-
setIsPartial
public final void setIsPartial(Boolean isPartial)
-
isPartial
public final UtteranceEvent.Builder isPartial(Boolean 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
public final String getParticipantRole()
-
setParticipantRole
public final void setParticipantRole(String participantRole)
-
participantRole
public final UtteranceEvent.Builder participantRole(String 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,ParticipantRole
-
participantRole
public final UtteranceEvent.Builder participantRole(ParticipantRole 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,ParticipantRole
-
getBeginOffsetMillis
public final Long getBeginOffsetMillis()
-
setBeginOffsetMillis
public final void setBeginOffsetMillis(Long beginOffsetMillis)
-
beginOffsetMillis
public final UtteranceEvent.Builder beginOffsetMillis(Long 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
public final Long getEndOffsetMillis()
-
setEndOffsetMillis
public final void setEndOffsetMillis(Long endOffsetMillis)
-
endOffsetMillis
public final UtteranceEvent.Builder endOffsetMillis(Long 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
public final String getTranscript()
-
setTranscript
public final void setTranscript(String transcript)
-
transcript
public final UtteranceEvent.Builder transcript(String 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
public final List<CallAnalyticsItem.Builder> getItems()
-
setItems
public final void setItems(Collection<software.amazon.awssdk.services.transcribestreaming.model.CallAnalyticsItem.BuilderImpl> items)
-
items
public final UtteranceEvent.Builder items(Collection<CallAnalyticsItem> 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(CallAnalyticsItem... 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 to#items(List.) - 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:
#items(java.util.Collection)
-
getEntities
public final List<CallAnalyticsEntity.Builder> getEntities()
-
setEntities
public final void setEntities(Collection<software.amazon.awssdk.services.transcribestreaming.model.CallAnalyticsEntity.BuilderImpl> entities)
-
entities
public final UtteranceEvent.Builder entities(Collection<CallAnalyticsEntity> 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(CallAnalyticsEntity... 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 to#entities(List.) - 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:
#entities(java.util.Collection)
-
getSentiment
public final String getSentiment()
-
setSentiment
public final void setSentiment(String sentiment)
-
sentiment
public final UtteranceEvent.Builder sentiment(String 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,Sentiment
-
sentiment
public final UtteranceEvent.Builder sentiment(Sentiment 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,Sentiment
-
getIssuesDetected
public final List<IssueDetected.Builder> getIssuesDetected()
-
setIssuesDetected
public final void setIssuesDetected(Collection<software.amazon.awssdk.services.transcribestreaming.model.IssueDetected.BuilderImpl> issuesDetected)
-
issuesDetected
public final UtteranceEvent.Builder issuesDetected(Collection<IssueDetected> 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(IssueDetected... 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 to#issuesDetected(List.) - 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:
#issuesDetected(java.util.Collection)
-
build
public UtteranceEvent build()
- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<UtteranceEvent.Builder,UtteranceEvent>
-
sdkFieldNameToField
public Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-