Interface Transcript.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Transcript.Builder,Transcript>, SdkBuilder<Transcript.Builder,Transcript>, SdkPojo
Enclosing class:
Transcript

public static interface Transcript.Builder extends SdkPojo, CopyableBuilder<Transcript.Builder,Transcript>
  • Method Details

    • id

      The identifier of the transcript.

      Parameters:
      id - The identifier of the transcript.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • participantId

      Transcript.Builder participantId(String participantId)

      The identifier of the participant. Valid values are CUSTOMER or AGENT.

      Parameters:
      participantId - The identifier of the participant. Valid values are CUSTOMER or AGENT.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • participantRole

      Transcript.Builder participantRole(String participantRole)

      The role of participant. For example, is it a customer, agent, or system.

      Parameters:
      participantRole - The role of participant. For example, is it a customer, agent, or system.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • content

      Transcript.Builder content(String content)

      The content of the transcript.

      Parameters:
      content - The content of the transcript.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • beginOffsetMillis

      Transcript.Builder beginOffsetMillis(Integer beginOffsetMillis)

      The beginning offset in the contact for this transcript.

      Parameters:
      beginOffsetMillis - The beginning offset in the contact for this transcript.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endOffsetMillis

      Transcript.Builder endOffsetMillis(Integer endOffsetMillis)

      The end offset in the contact for this transcript.

      Parameters:
      endOffsetMillis - The end offset in the contact for this transcript.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sentiment

      Transcript.Builder sentiment(String sentiment)

      The sentiment detected for this piece of transcript.

      Parameters:
      sentiment - The sentiment detected for this piece of transcript.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • sentiment

      Transcript.Builder sentiment(SentimentValue sentiment)

      The sentiment detected for this piece of transcript.

      Parameters:
      sentiment - The sentiment detected for this piece of transcript.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • issuesDetected

      Transcript.Builder issuesDetected(Collection<IssueDetected> issuesDetected)

      List of positions where issues were detected on the transcript.

      Parameters:
      issuesDetected - List of positions where issues were detected on the transcript.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • issuesDetected

      Transcript.Builder issuesDetected(IssueDetected... issuesDetected)

      List of positions where issues were detected on the transcript.

      Parameters:
      issuesDetected - List of positions where issues were detected on the transcript.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • issuesDetected

      Transcript.Builder issuesDetected(Consumer<IssueDetected.Builder>... issuesDetected)

      List of positions where issues were detected on the transcript.

      This is a convenience method that creates an instance of the IssueDetected.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<IssueDetected>).

      Parameters:
      issuesDetected - a consumer that will call methods on IssueDetected.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: