public RedactionConfig withPiiEntityTypes(PiiEntityType... piiEntityTypes) {
        java.util.ArrayList<String> piiEntityTypesCopy = new java.util.ArrayList<String>(piiEntityTypes.length);
        for (PiiEntityType value : piiEntityTypes) {
            piiEntityTypesCopy.add(value.toString());
        }
        if (getPiiEntityTypes() == null) {
            setPiiEntityTypes(piiEntityTypesCopy);
        } else {
            getPiiEntityTypes().addAll(piiEntityTypesCopy);
        }
        return this;
    }
<p>
An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
</p>

@param piiEntityTypes
       An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
@return Returns a reference to this object so that method calls can be chained together.
@see PiiEntityType
aws-java-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/RedactionConfig.java