public ModifyEventSubscriptionRequest withSourceType(String sourceType) {
        setSourceType(sourceType);
        return this;
    }
<p>
The type of DMS resource that generates the events you want to subscribe to.
</p>
<p>
Valid values: replication-instance | replication-task
</p>

@param sourceType
       The type of DMS resource that generates the events you want to subscribe to. </p>
       <p>
       Valid values: replication-instance | replication-task
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-dms/src/main/java/com/amazonaws/services/databasemigrationservice/model/ModifyEventSubscriptionRequest.java