public AmazonRedshiftNodeData withSampleQuery(String sampleQuery) {
        setSampleQuery(sampleQuery);
        return this;
    }
<p>
The SQL used to fetch the data from a Redshift sources when the SourceType is 'query'.
</p>

@param sampleQuery
       The SQL used to fetch the data from a Redshift sources when the SourceType is 'query'.
@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/AmazonRedshiftNodeData.java