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
a DB instance, you set this parameter to <code>db-instance</code>. For RDS Proxy events, specify
<code>db-proxy</code>. If this value isn't specified, all events are returned.
</p>
<p>
Valid Values:
<code> db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | blue-green-deployment </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 a DB instance, you set this parameter to <code>db-instance</code>. For RDS Proxy events,
       specify <code>db-proxy</code>. If this value isn't specified, all events are returned.</p>
       <p>
       Valid Values:
       <code> db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | blue-green-deployment </code>
@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