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>
The list of identifiers of the event sources for which events are returned. If not specified, then all sources
are included in the response. An identifier must begin with a letter and must contain only ASCII letters, digits,
and hyphens. It can't end with a hyphen or contain two consecutive hyphens.
</p>
<p>
Constraints:
</p>
<ul>
<li>
<p>
If <code>SourceIds</code> are supplied, <code>SourceType</code> must also be provided.
</p>
</li>
<li>
<p>
If the source type is a DB instance, a <code>DBInstanceIdentifier</code> value must be supplied.
</p>
</li>
<li>
<p>
If the source type is a DB cluster, a <code>DBClusterIdentifier</code> value must be supplied.
</p>
</li>
<li>
<p>
If the source type is a DB parameter group, a <code>DBParameterGroupName</code> value must be supplied.
</p>
</li>
<li>
<p>
If the source type is a DB security group, a <code>DBSecurityGroupName</code> value must be supplied.
</p>
</li>
<li>
<p>
If the source type is a DB snapshot, a <code>DBSnapshotIdentifier</code> value must be supplied.
</p>
</li>
<li>
<p>
If the source type is a DB cluster snapshot, a <code>DBClusterSnapshotIdentifier</code> value must be supplied.
</p>
</li>
<li>
<p>
If the source type is an RDS Proxy, a <code>DBProxyName</code> value must be supplied.
</p>
</li>
</ul>
<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
       The list of identifiers of the event sources for which events are returned. If not specified, then all
       sources are included in the response. An identifier must begin with a letter and must contain only ASCII
       letters, digits, and hyphens. It can't end with a hyphen or contain two consecutive hyphens.</p>
       <p>
       Constraints:
       </p>
       <ul>
       <li>
       <p>
       If <code>SourceIds</code> are supplied, <code>SourceType</code> must also be provided.
       </p>
       </li>
       <li>
       <p>
       If the source type is a DB instance, a <code>DBInstanceIdentifier</code> value must be supplied.
       </p>
       </li>
       <li>
       <p>
       If the source type is a DB cluster, a <code>DBClusterIdentifier</code> value must be supplied.
       </p>
       </li>
       <li>
       <p>
       If the source type is a DB parameter group, a <code>DBParameterGroupName</code> value must be supplied.
       </p>
       </li>
       <li>
       <p>
       If the source type is a DB security group, a <code>DBSecurityGroupName</code> value must be supplied.
       </p>
       </li>
       <li>
       <p>
       If the source type is a DB snapshot, a <code>DBSnapshotIdentifier</code> value must be supplied.
       </p>
       </li>
       <li>
       <p>
       If the source type is a DB cluster snapshot, a <code>DBClusterSnapshotIdentifier</code> value must be
       supplied.
       </p>
       </li>
       <li>
       <p>
       If the source type is an RDS Proxy, a <code>DBProxyName</code> value must be supplied.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-rds/src/main/java/com/amazonaws/services/rds/model/CreateEventSubscriptionRequest.java