Interface GuardrailTextBlock.Builder

    • Method Detail

      • text

        GuardrailTextBlock.Builder text​(String text)

        The input text details to be evaluated by the guardrail.

        Parameters:
        text - The input text details to be evaluated by the guardrail.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • qualifiersWithStrings

        GuardrailTextBlock.Builder qualifiersWithStrings​(Collection<String> qualifiers)

        The qualifiers describing the text block.

        Parameters:
        qualifiers - The qualifiers describing the text block.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • qualifiersWithStrings

        GuardrailTextBlock.Builder qualifiersWithStrings​(String... qualifiers)

        The qualifiers describing the text block.

        Parameters:
        qualifiers - The qualifiers describing the text block.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • qualifiers

        GuardrailTextBlock.Builder qualifiers​(GuardrailContentQualifier... qualifiers)

        The qualifiers describing the text block.

        Parameters:
        qualifiers - The qualifiers describing the text block.
        Returns:
        Returns a reference to this object so that method calls can be chained together.