public DescribeEventsRequest withSourceIdentifier(String sourceIdentifier) {
        setSourceIdentifier(sourceIdentifier);
        return this;
    }
<p>
The identifier of the event source for which events are returned. If not specified, then all sources are included
in the response.
</p>
<p>
Constraints:
</p>
<ul>
<li>
<p>
If SourceIdentifier is supplied, SourceType must also be provided.
</p>
</li>
<li>
<p>
If the source type is <code>DBInstance</code>, then a <code>DBInstanceIdentifier</code> must be supplied.
</p>
</li>
<li>
<p>
If the source type is <code>DBSecurityGroup</code>, a <code>DBSecurityGroupName</code> must be supplied.
</p>
</li>
<li>
<p>
If the source type is <code>DBParameterGroup</code>, a <code>DBParameterGroupName</code> must be supplied.
</p>
</li>
<li>
<p>
If the source type is <code>DBSnapshot</code>, a <code>DBSnapshotIdentifier</code> must be supplied.
</p>
</li>
<li>
<p>
Cannot end with a hyphen or contain two consecutive hyphens.
</p>
</li>
</ul>

@param sourceIdentifier
       The identifier of the event source for which events are returned. If not specified, then all sources are
       included in the response.</p>
       <p>
       Constraints:
       </p>
       <ul>
       <li>
       <p>
       If SourceIdentifier is supplied, SourceType must also be provided.
       </p>
       </li>
       <li>
       <p>
       If the source type is <code>DBInstance</code>, then a <code>DBInstanceIdentifier</code> must be supplied.
       </p>
       </li>
       <li>
       <p>
       If the source type is <code>DBSecurityGroup</code>, a <code>DBSecurityGroupName</code> must be supplied.
       </p>
       </li>
       <li>
       <p>
       If the source type is <code>DBParameterGroup</code>, a <code>DBParameterGroupName</code> must be supplied.
       </p>
       </li>
       <li>
       <p>
       If the source type is <code>DBSnapshot</code>, a <code>DBSnapshotIdentifier</code> must be supplied.
       </p>
       </li>
       <li>
       <p>
       Cannot end with a hyphen or contain two consecutive hyphens.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-neptune/src/main/java/com/amazonaws/services/neptune/model/DescribeEventsRequest.java