public CreateEventSubscriptionRequest withSourceType(String sourceType) {
        setSourceType(sourceType);
        return this;
    }
<p>
The type of source that is generating the events. For example, if you want to be notified of events generated by
an instance, you would set this parameter to <code>db-instance</code>. If this value is not specified, all events
are returned.
</p>
<p>
Valid values: <code>db-instance</code>, <code>db-cluster</code>, <code>db-parameter-group</code>,
<code>db-security-group</code>, <code>db-cluster-snapshot</code>
</p>

@param sourceType
       The type of source that is generating the events. For example, if you want to be notified of events
       generated by an instance, you would set this parameter to <code>db-instance</code>. If this value is not
       specified, all events are returned.</p>
       <p>
       Valid values: <code>db-instance</code>, <code>db-cluster</code>, <code>db-parameter-group</code>,
       <code>db-security-group</code>, <code>db-cluster-snapshot</code>
@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