public java.util.List<Entity> getEntities() {
        return 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>

@return 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