Interface Captions.Builder

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

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

    • mergePolicy

      @Deprecated Captions.Builder mergePolicy(String mergePolicy)
      Deprecated.

      A policy that determines how Elastic Transcoder handles the existence of multiple captions.

      • MergeOverride: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the sidecar captions and ignores the embedded captions for that language.

      • MergeRetain: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the embedded captions and ignores the sidecar captions for that language. If CaptionSources is empty, Elastic Transcoder omits all sidecar captions from the output files.

      • Override: Elastic Transcoder transcodes only the sidecar captions that you specify in CaptionSources.

      MergePolicy cannot be null.

      Parameters:
      mergePolicy - A policy that determines how Elastic Transcoder handles the existence of multiple captions.

      • MergeOverride: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the sidecar captions and ignores the embedded captions for that language.

      • MergeRetain: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the embedded captions and ignores the sidecar captions for that language. If CaptionSources is empty, Elastic Transcoder omits all sidecar captions from the output files.

      • Override: Elastic Transcoder transcodes only the sidecar captions that you specify in CaptionSources.

      MergePolicy cannot be null.

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

      @Deprecated Captions.Builder captionSources(Collection<CaptionSource> captionSources)
      Deprecated.

      Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave CaptionSources blank.

      Parameters:
      captionSources - Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave CaptionSources blank.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • captionSources

      @Deprecated Captions.Builder captionSources(CaptionSource... captionSources)
      Deprecated.

      Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave CaptionSources blank.

      Parameters:
      captionSources - Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave CaptionSources blank.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • captionSources

      @Deprecated Captions.Builder captionSources(Consumer<CaptionSource.Builder>... captionSources)
      Deprecated.

      Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave CaptionSources blank.

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

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

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

      Captions.Builder captionFormats(Collection<CaptionFormat> captionFormats)

      The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.

      Parameters:
      captionFormats - The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • captionFormats

      Captions.Builder captionFormats(CaptionFormat... captionFormats)

      The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.

      Parameters:
      captionFormats - The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • captionFormats

      Captions.Builder captionFormats(Consumer<CaptionFormat.Builder>... captionFormats)

      The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.

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

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

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