public PutEventsRequest withEntries(PutEventsRequestEntry... entries) {
        if (this.entries == null) {
            setEntries(new java.util.ArrayList<PutEventsRequestEntry>(entries.length));
        }
        for (PutEventsRequestEntry ele : entries) {
            this.entries.add(ele);
        }
        return this;
    }
<p>
The entry that defines an event in your system. You can specify several parameters for the entry such as the
source and type of the event, resources associated with the event, and so on.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEntries(java.util.Collection)} or {@link #withEntries(java.util.Collection)} if you want to override
the existing values.
</p>

@param entries
       The entry that defines an event in your system. You can specify several parameters for the entry such as
       the source and type of the event, resources associated with the event, and so on.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-events/src/main/java/com/amazonaws/services/cloudwatchevents/model/PutEventsRequest.java