Interface BedrockGuardrailResource.Builder

  • Method Details

    • version

      The version of the Amazon Bedrock guardrail. Valid values are a numeric version, DRAFT, or ENFORCED.

      Parameters:
      version - The version of the Amazon Bedrock guardrail. Valid values are a numeric version, DRAFT, or ENFORCED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • guardrailAction

      BedrockGuardrailResource.Builder guardrailAction(String guardrailAction)

      Indicates whether the guardrail intervened during the model invocation.

      Parameters:
      guardrailAction - Indicates whether the guardrail intervened during the model invocation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • guardrailAction

      BedrockGuardrailResource.Builder guardrailAction(GuardrailAction guardrailAction)

      Indicates whether the guardrail intervened during the model invocation.

      Parameters:
      guardrailAction - Indicates whether the guardrail intervened during the model invocation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • guardrailSource

      BedrockGuardrailResource.Builder guardrailSource(String guardrailSource)

      Indicates whether the guardrail was applied on the input or output of the model invocation.

      Parameters:
      guardrailSource - Indicates whether the guardrail was applied on the input or output of the model invocation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • guardrailSource

      BedrockGuardrailResource.Builder guardrailSource(GuardrailSource guardrailSource)

      Indicates whether the guardrail was applied on the input or output of the model invocation.

      Parameters:
      guardrailSource - Indicates whether the guardrail was applied on the input or output of the model invocation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: