Interface SensitiveDataConfiguration.Builder

  • Method Details

    • detectionMode

      SensitiveDataConfiguration.Builder detectionMode(String detectionMode)

      The detection mode. Valid values:

      • DETECTION - Only detects sensitive data.

      • DETECTION_AND_REDACTION - Detects and redacts sensitive data in the output.

      • DISABLED - Does not detect sensitive data.

      Parameters:
      detectionMode - The detection mode. Valid values:

      • DETECTION - Only detects sensitive data.

      • DETECTION_AND_REDACTION - Detects and redacts sensitive data in the output.

      • DISABLED - Does not detect sensitive data.

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

      The detection mode. Valid values:

      • DETECTION - Only detects sensitive data.

      • DETECTION_AND_REDACTION - Detects and redacts sensitive data in the output.

      • DISABLED - Does not detect sensitive data.

      Parameters:
      detectionMode - The detection mode. Valid values:

      • DETECTION - Only detects sensitive data.

      • DETECTION_AND_REDACTION - Detects and redacts sensitive data in the output.

      • DISABLED - Does not detect sensitive data.

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

      SensitiveDataConfiguration.Builder piiEntitiesConfiguration(PIIEntitiesConfiguration piiEntitiesConfiguration)

      The configuration that specifies which PII entity types to detect and how to mask them. If you omit it, Amazon Textract detects all PII entity types (ALL) and masks them with ENTITY_TYPE.

      Parameters:
      piiEntitiesConfiguration - The configuration that specifies which PII entity types to detect and how to mask them. If you omit it, Amazon Textract detects all PII entity types (ALL) and masks them with ENTITY_TYPE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • piiEntitiesConfiguration

      default SensitiveDataConfiguration.Builder piiEntitiesConfiguration(Consumer<PIIEntitiesConfiguration.Builder> piiEntitiesConfiguration)

      The configuration that specifies which PII entity types to detect and how to mask them. If you omit it, Amazon Textract detects all PII entity types (ALL) and masks them with ENTITY_TYPE.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to piiEntitiesConfiguration(PIIEntitiesConfiguration).

      Parameters:
      piiEntitiesConfiguration - a consumer that will call methods on PIIEntitiesConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: