Interface RedactionConfig.Builder

    • Method Detail

      • piiEntityTypesWithStrings

        RedactionConfig.Builder piiEntityTypesWithStrings​(Collection<String> piiEntityTypes)

        An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.

        Parameters:
        piiEntityTypes - An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • piiEntityTypesWithStrings

        RedactionConfig.Builder piiEntityTypesWithStrings​(String... piiEntityTypes)

        An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.

        Parameters:
        piiEntityTypes - An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • piiEntityTypes

        RedactionConfig.Builder piiEntityTypes​(Collection<PiiEntityType> piiEntityTypes)

        An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.

        Parameters:
        piiEntityTypes - An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • piiEntityTypes

        RedactionConfig.Builder piiEntityTypes​(PiiEntityType... piiEntityTypes)

        An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.

        Parameters:
        piiEntityTypes - An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • maskMode

        RedactionConfig.Builder maskMode​(String maskMode)

        Specifies whether the PII entity is redacted with the mask character or the entity type.

        Parameters:
        maskMode - Specifies whether the PII entity is redacted with the mask character or the entity type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PiiEntitiesDetectionMaskMode, PiiEntitiesDetectionMaskMode
      • maskCharacter

        RedactionConfig.Builder maskCharacter​(String maskCharacter)

        A character that replaces each character in the redacted PII entity.

        Parameters:
        maskCharacter - A character that replaces each character in the redacted PII entity.
        Returns:
        Returns a reference to this object so that method calls can be chained together.