public RedactionConfig withPiiEntityTypes(String... piiEntityTypes) {
        if (this.piiEntityTypes == null) {
            setPiiEntityTypes(new java.util.ArrayList<String>(piiEntityTypes.length));
        }
        for (String ele : piiEntityTypes) {
            this.piiEntityTypes.add(ele);
        }
        return this;
    }
<p>
An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPiiEntityTypes(java.util.Collection)} or {@link #withPiiEntityTypes(java.util.Collection)} if you want
to override the existing values.
</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