Interface ApplyGuardrailRequest.Builder

  • Method Details

    • 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.
    • source

      The source of data used in the request to apply the guardrail.

      Parameters:
      source - The source of data used in the request to apply the guardrail.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • source

      The source of data used in the request to apply the guardrail.

      Parameters:
      source - The source of data used in the request to apply the guardrail.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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

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

      This is a convenience method that creates an instance of the GuardrailContentBlock.Builder avoiding the need to create one manually via GuardrailContentBlock.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to content(List<GuardrailContentBlock>).

      Parameters:
      content - a consumer that will call methods on GuardrailContentBlock.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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:
    • 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:
    • overrideConfiguration

      ApplyGuardrailRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.