* 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. *
*/ private java.util.List* 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 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. */ public java.util.List* 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. *
* * @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. */ public void setEntities(java.util.Collection* 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEntities(java.util.Collection)} or {@link #withEntities(java.util.Collection)} if you want to override * the existing values. *
* * @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. */ public DetectPiiEntitiesResult withEntities(PiiEntity... entities) { if (this.entities == null) { setEntities(new java.util.ArrayList* 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. *
* * @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. */ public DetectPiiEntitiesResult withEntities(java.util.Collection