public DetectPiiEntitiesResult withEntities(java.util.Collection<PiiEntity> entities) {
        setEntities(entities);
        return this;
    }
<p>
A collection of PII entities identified in the input text. For each entity, the response provides the entity
type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the
detection.
</p>

@param entities
       A collection of PII entities identified in the input text. For each entity, the response provides the
       entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has
       in the detection.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DetectPiiEntitiesResult.java