public GetDataSourceResult withDataSourceType(DataSourceType dataSourceType) {
        setDataSourceType(dataSourceType);
        return this;
    }
<p>
The type of data source.
</p>

@param dataSourceType
       The type of data source.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/model/GetDataSourceResult.java