public CreateEventSubscriptionRequest withSourceIds(String... sourceIds) {
        if (this.sourceIds == null) {
            setSourceIds(new com.amazonaws.internal.SdkInternalList<String>(sourceIds.length));
        }
        for (String ele : sourceIds) {
            this.sourceIds.add(ele);
        }
        return this;
    }
<p>
A list of one or more identifiers of Amazon Redshift source objects. All of the objects must be of the same type
as was specified in the source type parameter. The event subscription will return only events generated by the
specified objects. If not specified, then events are returned for all objects within the source type specified.
</p>
<p>
Example: my-cluster-1, my-cluster-2
</p>
<p>
Example: my-snapshot-20131010
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSourceIds(java.util.Collection)} or {@link #withSourceIds(java.util.Collection)} if you want to
override the existing values.
</p>

@param sourceIds
       A list of one or more identifiers of Amazon Redshift source objects. All of the objects must be of the
       same type as was specified in the source type parameter. The event subscription will return only events
       generated by the specified objects. If not specified, then events are returned for all objects within the
       source type specified.</p>
       <p>
       Example: my-cluster-1, my-cluster-2
       </p>
       <p>
       Example: my-snapshot-20131010
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/model/CreateEventSubscriptionRequest.java