public void setEntities(java.util.Collection<Entity> entities) {
        if (entities == null) {
            this.entities = null;
            return;
        }

        this.entities = new java.util.ArrayList<Entity>(entities);
    }
<p>
A collection of entities identified in the input text. For each entity, the response provides the entity text,
entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the
detection.
</p>
<p>
If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is
trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see <a
href="https://docs.aws.amazon.com/comprehend/latest/dg/how-entities.html">Entities</a> in the Comprehend
Developer Guide.
</p>

@param entities
       A collection of entities identified in the input text. For each entity, the response provides the entity
       text, entity type, where the entity text begins and ends, and the level of confidence that Amazon
       Comprehend has in the detection. </p>
       <p>
       If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the
       model is trained to recognize. Otherwise, it detects the default entity types. For a list of default
       entity types, see <a
       href="https://docs.aws.amazon.com/comprehend/latest/dg/how-entities.html">Entities</a> in the Comprehend
       Developer Guide.
aws-java-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DetectEntitiesResult.java