public PutPartnerEventsRequest withEntries(PutPartnerEventsRequestEntry... entries) {
        if (this.entries == null) {
            setEntries(new java.util.ArrayList<PutPartnerEventsRequestEntry>(entries.length));
        }
        for (PutPartnerEventsRequestEntry ele : entries) {
            this.entries.add(ele);
        }
        return this;
    }
<p>
The list of events to write to the event bus.
</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 list of events to write to the event bus.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/PutPartnerEventsRequest.java