Interface UpdateFunctionResponse.Builder

  • Method Details

    • name

      The name of the function.

      Parameters:
      name - The name of the function.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • target

      The destination for the request that the function builds.

      Parameters:
      target - The destination for the request that the function builds.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • target

      The destination for the request that the function builds.

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

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

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

      UpdateFunctionResponse.Builder requestExpression(String requestExpression)

      The JSONata expression that builds the request. Elemental Inference evaluates it against the media object of the feed, which holds the media and metadata that the function asked for.

      Parameters:
      requestExpression - The JSONata expression that builds the request. Elemental Inference evaluates it against the media object of the feed, which holds the media and metadata that the function asked for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • responseExpression

      UpdateFunctionResponse.Builder responseExpression(String responseExpression)

      The JSONata expression that selects what to store. Elemental Inference evaluates it against the result as its root: the model response for a Bedrock target, or the output of the request expression for a passthrough target. If a function has no response expression, Elemental Inference stores the entire result.

      Parameters:
      responseExpression - The JSONata expression that selects what to store. Elemental Inference evaluates it against the result as its root: the model response for a Bedrock target, or the output of the request expression for a passthrough target. If a function has no response expression, Elemental Inference stores the entire result.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      UpdateFunctionResponse.Builder description(String description)

      The description of the function.

      Parameters:
      description - The description of the function.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • eventBridgeDelivery

      UpdateFunctionResponse.Builder eventBridgeDelivery(String eventBridgeDelivery)

      Indicates whether Elemental Inference also sends this function's results to Amazon EventBridge. With ENABLED, each result that is a JSON object with a top-level eventBridge field set to true is also sent as a Function Metadata Generated event to the default event bus in your account.

      Parameters:
      eventBridgeDelivery - Indicates whether Elemental Inference also sends this function's results to Amazon EventBridge. With ENABLED, each result that is a JSON object with a top-level eventBridge field set to true is also sent as a Function Metadata Generated event to the default event bus in your account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • eventBridgeDelivery

      UpdateFunctionResponse.Builder eventBridgeDelivery(EventBridgeDeliveryMode eventBridgeDelivery)

      Indicates whether Elemental Inference also sends this function's results to Amazon EventBridge. With ENABLED, each result that is a JSON object with a top-level eventBridge field set to true is also sent as a Function Metadata Generated event to the default event bus in your account.

      Parameters:
      eventBridgeDelivery - Indicates whether Elemental Inference also sends this function's results to Amazon EventBridge. With ENABLED, each result that is a JSON object with a top-level eventBridge field set to true is also sent as a Function Metadata Generated event to the default event bus in your account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • arn

      The ARN of the function.

      Parameters:
      arn - The ARN of the function.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • id

      The ID of the function.

      Parameters:
      id - The ID of the function.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The status of the function.

      Parameters:
      status - The status of the function.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The status of the function.

      Parameters:
      status - The status of the function.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • references

      The IDs of the feeds that have a function output, enabled or disabled, that references this function. While this list isn't empty, the function can't be deleted, and its name and target can't be changed.

      Parameters:
      references - The IDs of the feeds that have a function output, enabled or disabled, that references this function. While this list isn't empty, the function can't be deleted, and its name and target can't be changed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • references

      UpdateFunctionResponse.Builder references(String... references)

      The IDs of the feeds that have a function output, enabled or disabled, that references this function. While this list isn't empty, the function can't be deleted, and its name and target can't be changed.

      Parameters:
      references - The IDs of the feeds that have a function output, enabled or disabled, that references this function. While this list isn't empty, the function can't be deleted, and its name and target can't be changed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contextTypesWithStrings

      UpdateFunctionResponse.Builder contextTypesWithStrings(Collection<String> contextTypes)

      The kinds of media context that this function uses. Elemental Inference derives this field from the media paths that the request expression references; you can't set it. An empty list means that the expression references no media, so Elemental Inference supplies none at run time.

      Parameters:
      contextTypes - The kinds of media context that this function uses. Elemental Inference derives this field from the media paths that the request expression references; you can't set it. An empty list means that the expression references no media, so Elemental Inference supplies none at run time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contextTypesWithStrings

      UpdateFunctionResponse.Builder contextTypesWithStrings(String... contextTypes)

      The kinds of media context that this function uses. Elemental Inference derives this field from the media paths that the request expression references; you can't set it. An empty list means that the expression references no media, so Elemental Inference supplies none at run time.

      Parameters:
      contextTypes - The kinds of media context that this function uses. Elemental Inference derives this field from the media paths that the request expression references; you can't set it. An empty list means that the expression references no media, so Elemental Inference supplies none at run time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contextTypes

      The kinds of media context that this function uses. Elemental Inference derives this field from the media paths that the request expression references; you can't set it. An empty list means that the expression references no media, so Elemental Inference supplies none at run time.

      Parameters:
      contextTypes - The kinds of media context that this function uses. Elemental Inference derives this field from the media paths that the request expression references; you can't set it. An empty list means that the expression references no media, so Elemental Inference supplies none at run time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contextTypes

      UpdateFunctionResponse.Builder contextTypes(ContextType... contextTypes)

      The kinds of media context that this function uses. Elemental Inference derives this field from the media paths that the request expression references; you can't set it. An empty list means that the expression references no media, so Elemental Inference supplies none at run time.

      Parameters:
      contextTypes - The kinds of media context that this function uses. Elemental Inference derives this field from the media paths that the request expression references; you can't set it. An empty list means that the expression references no media, so Elemental Inference supplies none at run time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags associated with the function.

      Parameters:
      tags - The tags associated with the function.
      Returns:
      Returns a reference to this object so that method calls can be chained together.