public GetEventPredictionRequest withEntities(Entity... entities) {
        if (this.entities == null) {
            setEntities(new java.util.ArrayList<Entity>(entities.length));
        }
        for (Entity ele : entities) {
            this.entities.add(ele);
        }
        return this;
    }
<p>
The entity type (associated with the detector's event type) and specific entity ID representing who performed the
event. If an entity id is not available, use "UNKNOWN."
</p>
<p>
<b>NOTE:</b> 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.
</p>

@param entities
       The entity type (associated with the detector's event type) and specific entity ID representing who
       performed the event. If an entity id is not available, use "UNKNOWN."
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-frauddetector/src/main/java/com/amazonaws/services/frauddetector/model/GetEventPredictionRequest.java