public DirectKafkaSource withDataPreviewOptions(StreamingDataPreviewOptions dataPreviewOptions) {
        setDataPreviewOptions(dataPreviewOptions);
        return this;
    }
<p>
Specifies options related to data preview for viewing a sample of your data.
</p>

@param dataPreviewOptions
       Specifies options related to data preview for viewing a sample of your data.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-glue/src/main/java/com/amazonaws/services/glue/model/DirectKafkaSource.java