Interface FunctionConfig.Builder

  • Method Details

    • functionArn

      FunctionConfig.Builder functionArn(String functionArn)

      The ARN of the function to run. The function must exist in the same account and the same Region as the feed.

      Parameters:
      functionArn - The ARN of the function to run. The function must exist in the same account and the same Region as the feed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trigger

      FunctionConfig.Builder trigger(Trigger trigger)

      Determines when the function runs.

      Parameters:
      trigger - Determines when the function runs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trigger

      default FunctionConfig.Builder trigger(Consumer<Trigger.Builder> trigger)

      Determines when the function runs.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to trigger(Trigger).

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

      FunctionConfig.Builder frameSettings(FrameSettings frameSettings)

      The frames to send on each run: how many, which ones, and at what size. Applies to a function that references media.frames. If you omit this structure, Elemental Inference sends the first frame of the window, at its source size.

      Parameters:
      frameSettings - The frames to send on each run: how many, which ones, and at what size. Applies to a function that references media.frames. If you omit this structure, Elemental Inference sends the first frame of the window, at its source size.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • frameSettings

      default FunctionConfig.Builder frameSettings(Consumer<FrameSettings.Builder> frameSettings)

      The frames to send on each run: how many, which ones, and at what size. Applies to a function that references media.frames. If you omit this structure, Elemental Inference sends the first frame of the window, at its source size.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to frameSettings(FrameSettings).

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

      FunctionConfig.Builder subtitlingSettings(SubtitlingSettings subtitlingSettings)

      The smart subtitles output on this feed to read the transcript from. Required for a function that references media.transcript.

      Parameters:
      subtitlingSettings - The smart subtitles output on this feed to read the transcript from. Required for a function that references media.transcript.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subtitlingSettings

      default FunctionConfig.Builder subtitlingSettings(Consumer<SubtitlingSettings.Builder> subtitlingSettings)

      The smart subtitles output on this feed to read the transcript from. Required for a function that references media.transcript.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to subtitlingSettings(SubtitlingSettings).

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

      FunctionConfig.Builder contextualMetadataSettings(ContextualMetadataSettings contextualMetadataSettings)

      The contextual metadata output on this feed to read scenes and classifications from. Required for a perScene trigger, and for a function that references media.contextual on a perShot trigger.

      Parameters:
      contextualMetadataSettings - The contextual metadata output on this feed to read scenes and classifications from. Required for a perScene trigger, and for a function that references media.contextual on a perShot trigger.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contextualMetadataSettings

      default FunctionConfig.Builder contextualMetadataSettings(Consumer<ContextualMetadataSettings.Builder> contextualMetadataSettings)

      The contextual metadata output on this feed to read scenes and classifications from. Required for a perScene trigger, and for a function that references media.contextual on a perShot trigger.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to contextualMetadataSettings(ContextualMetadataSettings).

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

      FunctionConfig.Builder clippingSettings(ClippingSettings clippingSettings)

      The event clipping output on this feed to read clips from. Required for a perClip trigger, and for a function that references media.clip.

      Parameters:
      clippingSettings - The event clipping output on this feed to read clips from. Required for a perClip trigger, and for a function that references media.clip.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clippingSettings

      default FunctionConfig.Builder clippingSettings(Consumer<ClippingSettings.Builder> clippingSettings)

      The event clipping output on this feed to read clips from. Required for a perClip trigger, and for a function that references media.clip.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to clippingSettings(ClippingSettings).

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