Interface ApplyGuardrailRequest.Builder

    • Method Detail

      • guardrailIdentifier

        ApplyGuardrailRequest.Builder guardrailIdentifier​(String guardrailIdentifier)

        The guardrail identifier used in the request to apply the guardrail.

        Parameters:
        guardrailIdentifier - The guardrail identifier used in the request to apply the guardrail.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • guardrailVersion

        ApplyGuardrailRequest.Builder guardrailVersion​(String guardrailVersion)

        The guardrail version used in the request to apply the guardrail.

        Parameters:
        guardrailVersion - The guardrail version used in the request to apply the guardrail.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • content

        ApplyGuardrailRequest.Builder content​(Collection<GuardrailContentBlock> content)

        The content details used in the request to apply the guardrail.

        Parameters:
        content - The content details used in the request to apply the guardrail.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • content

        ApplyGuardrailRequest.Builder content​(GuardrailContentBlock... content)

        The content details used in the request to apply the guardrail.

        Parameters:
        content - The content details used in the request to apply the guardrail.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • outputScope

        ApplyGuardrailRequest.Builder outputScope​(String outputScope)

        Specifies the scope of the output that you get in the response. Set to FULL to return the entire output, including any detected and non-detected entries in the response for enhanced debugging.

        Note that the full output scope doesn't apply to word filters or regex in sensitive information filters. It does apply to all other filtering policies, including sensitive information with filters that can detect personally identifiable information (PII).

        Parameters:
        outputScope - Specifies the scope of the output that you get in the response. Set to FULL to return the entire output, including any detected and non-detected entries in the response for enhanced debugging.

        Note that the full output scope doesn't apply to word filters or regex in sensitive information filters. It does apply to all other filtering policies, including sensitive information with filters that can detect personally identifiable information (PII).

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        GuardrailOutputScope, GuardrailOutputScope
      • outputScope

        ApplyGuardrailRequest.Builder outputScope​(GuardrailOutputScope outputScope)

        Specifies the scope of the output that you get in the response. Set to FULL to return the entire output, including any detected and non-detected entries in the response for enhanced debugging.

        Note that the full output scope doesn't apply to word filters or regex in sensitive information filters. It does apply to all other filtering policies, including sensitive information with filters that can detect personally identifiable information (PII).

        Parameters:
        outputScope - Specifies the scope of the output that you get in the response. Set to FULL to return the entire output, including any detected and non-detected entries in the response for enhanced debugging.

        Note that the full output scope doesn't apply to word filters or regex in sensitive information filters. It does apply to all other filtering policies, including sensitive information with filters that can detect personally identifiable information (PII).

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        GuardrailOutputScope, GuardrailOutputScope