Interface GuardrailUsage.Builder

  • Method Details

    • topicPolicyUnits

      GuardrailUsage.Builder topicPolicyUnits(Integer topicPolicyUnits)

      The topic policy units processed by the guardrail.

      Parameters:
      topicPolicyUnits - The topic policy units processed by the guardrail.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contentPolicyUnits

      GuardrailUsage.Builder contentPolicyUnits(Integer contentPolicyUnits)

      The content policy units processed by the guardrail.

      Parameters:
      contentPolicyUnits - The content policy units processed by the guardrail.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • wordPolicyUnits

      GuardrailUsage.Builder wordPolicyUnits(Integer wordPolicyUnits)

      The word policy units processed by the guardrail.

      Parameters:
      wordPolicyUnits - The word policy units processed by the guardrail.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sensitiveInformationPolicyUnits

      GuardrailUsage.Builder sensitiveInformationPolicyUnits(Integer sensitiveInformationPolicyUnits)

      The sensitive information policy units processed by the guardrail.

      Parameters:
      sensitiveInformationPolicyUnits - The sensitive information policy units processed by the guardrail.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sensitiveInformationPolicyFreeUnits

      GuardrailUsage.Builder sensitiveInformationPolicyFreeUnits(Integer sensitiveInformationPolicyFreeUnits)

      The sensitive information policy free units processed by the guardrail.

      Parameters:
      sensitiveInformationPolicyFreeUnits - The sensitive information policy free units processed by the guardrail.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contextualGroundingPolicyUnits

      GuardrailUsage.Builder contextualGroundingPolicyUnits(Integer contextualGroundingPolicyUnits)

      The contextual grounding policy units processed by the guardrail.

      Parameters:
      contextualGroundingPolicyUnits - The contextual grounding policy units processed by the guardrail.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contentPolicyImageUnits

      GuardrailUsage.Builder contentPolicyImageUnits(Integer contentPolicyImageUnits)

      The content policy image units processed by the guardrail.

      Parameters:
      contentPolicyImageUnits - The content policy image units processed by the guardrail.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • automatedReasoningPolicyUnits

      GuardrailUsage.Builder automatedReasoningPolicyUnits(Integer automatedReasoningPolicyUnits)

      The number of text units processed by the automated reasoning policy.

      Parameters:
      automatedReasoningPolicyUnits - The number of text units processed by the automated reasoning policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • automatedReasoningPolicies

      GuardrailUsage.Builder automatedReasoningPolicies(Integer automatedReasoningPolicies)

      The number of automated reasoning policies that were processed during the guardrail evaluation.

      Parameters:
      automatedReasoningPolicies - The number of automated reasoning policies that were processed during the guardrail evaluation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.