public PutPartnerEventsRequestEntry withResources(String... resources) {
        if (this.resources == null) {
            setResources(new java.util.ArrayList<String>(resources.length));
        }
        for (String ele : resources) {
            this.resources.add(ele);
        }
        return this;
    }
<p>
Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any
number, including zero, may be present.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setResources(java.util.Collection)} or {@link #withResources(java.util.Collection)} if you want to
override the existing values.
</p>

@param resources
       Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily
       concerns. Any number, including zero, may be present.
@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/PutPartnerEventsRequestEntry.java