Interface GuardrailTopicPolicy.Builder

    • Method Detail

      • topics

        GuardrailTopicPolicy.Builder topics​(Collection<GuardrailTopic> topics)

        A list of policies related to topics that the guardrail should deny.

        Parameters:
        topics - A list of policies related to topics that the guardrail should deny.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • topics

        GuardrailTopicPolicy.Builder topics​(GuardrailTopic... topics)

        A list of policies related to topics that the guardrail should deny.

        Parameters:
        topics - A list of policies related to topics that the guardrail should deny.
        Returns:
        Returns a reference to this object so that method calls can be chained together.