Interface SyncItem.Builder

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

@Mutable @NotThreadSafe public static interface SyncItem.Builder extends SdkPojo, CopyableBuilder<SyncItem.Builder,SyncItem>
  • Method Details

    • id

      The position of this item in the transcript, starting at 0.

      Parameters:
      id - The position of this item in the transcript, starting at 0.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • content

      SyncItem.Builder content(String content)

      The word or punctuation mark. In RedactedResults, Amazon Transcribe replaces redacted words with [PII].

      Parameters:
      content - The word or punctuation mark. In RedactedResults, Amazon Transcribe replaces redacted words with [PII].
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startTime

      SyncItem.Builder startTime(Double startTime)

      The time, in seconds from the start of your audio, when this item starts.

      Parameters:
      startTime - The time, in seconds from the start of your audio, when this item starts.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endTime

      SyncItem.Builder endTime(Double endTime)

      The time, in seconds from the start of your audio, when this item ends.

      Parameters:
      endTime - The time, in seconds from the start of your audio, when this item ends.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • languageCode

      SyncItem.Builder languageCode(String languageCode)

      The language of this item, as a locale (for example, en-US).

      Parameters:
      languageCode - The language of this item, as a locale (for example, en-US).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • languageCode

      SyncItem.Builder languageCode(SyncLanguageCode languageCode)

      The language of this item, as a locale (for example, en-US).

      Parameters:
      languageCode - The language of this item, as a locale (for example, en-US).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • channelLabel

      SyncItem.Builder channelLabel(String channelLabel)

      The audio channel this item came from (ch_0 or ch_1). Present if you enabled ChannelIdentification.

      Item start and end times are measured from the start of the audio, separately for each channel.

      Parameters:
      channelLabel - The audio channel this item came from (ch_0 or ch_1). Present if you enabled ChannelIdentification.

      Item start and end times are measured from the start of the audio, separately for each channel.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • speakerLabel

      SyncItem.Builder speakerLabel(String speakerLabel)

      The speaker of this item (for example, spk_0). Present if you enabled ShowSpeakerLabels.

      Parameters:
      speakerLabel - The speaker of this item (for example, spk_0). Present if you enabled ShowSpeakerLabels.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • vocabularyFilterMatch

      SyncItem.Builder vocabularyFilterMatch(Boolean vocabularyFilterMatch)

      Indicates whether this item matched a word in your custom vocabulary filter. Present if you included VocabularyFilterSettings.

      Parameters:
      vocabularyFilterMatch - Indicates whether this item matched a word in your custom vocabulary filter. Present if you included VocabularyFilterSettings.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • redactions

      SyncItem.Builder redactions(Collection<SyncRedaction> redactions)

      The types of personally identifiable information (PII) that Amazon Transcribe redacted from this item. Present only on redacted items in RedactedResults.

      Parameters:
      redactions - The types of personally identifiable information (PII) that Amazon Transcribe redacted from this item. Present only on redacted items in RedactedResults.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • redactions

      SyncItem.Builder redactions(SyncRedaction... redactions)

      The types of personally identifiable information (PII) that Amazon Transcribe redacted from this item. Present only on redacted items in RedactedResults.

      Parameters:
      redactions - The types of personally identifiable information (PII) that Amazon Transcribe redacted from this item. Present only on redacted items in RedactedResults.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • redactions

      SyncItem.Builder redactions(Consumer<SyncRedaction.Builder>... redactions)

      The types of personally identifiable information (PII) that Amazon Transcribe redacted from this item. Present only on redacted items in RedactedResults.

      This is a convenience method that creates an instance of the SyncRedaction.Builder avoiding the need to create one manually via SyncRedaction.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to redactions(List<SyncRedaction>).

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