public CreateEventSubscriptionRequest withSourceIds(java.util.Collection<String> sourceIds) {
        setSourceIds(sourceIds);
        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 provided, <code>SourceType</code> must also be provided.
</p>
</li>
<li>
<p>
If the source type is an instance, a <code>DBInstanceIdentifier</code> must be provided.
</p>
</li>
<li>
<p>
If the source type is a security group, a <code>DBSecurityGroupName</code> must be provided.
</p>
</li>
<li>
<p>
If the source type is a parameter group, a <code>DBParameterGroupName</code> must be provided.
</p>
</li>
<li>
<p>
If the source type is a snapshot, a <code>DBSnapshotIdentifier</code> must be provided.
</p>
</li>
</ul>

@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 provided, <code>SourceType</code> must also be provided.
       </p>
       </li>
       <li>
       <p>
       If the source type is an instance, a <code>DBInstanceIdentifier</code> must be provided.
       </p>
       </li>
       <li>
       <p>
       If the source type is a security group, a <code>DBSecurityGroupName</code> must be provided.
       </p>
       </li>
       <li>
       <p>
       If the source type is a parameter group, a <code>DBParameterGroupName</code> must be provided.
       </p>
       </li>
       <li>
       <p>
       If the source type is a snapshot, a <code>DBSnapshotIdentifier</code> must be provided.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-docdb/src/main/java/com/amazonaws/services/docdb/model/CreateEventSubscriptionRequest.java