public TopicRule withSql(String sql) {
        setSql(sql);
        return this;
    }
<p>
The SQL statement used to query the topic. When using a SQL query with multiple lines, be sure to escape the
newline characters.
</p>

@param sql
       The SQL statement used to query the topic. When using a SQL query with multiple lines, be sure to escape
       the newline characters.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/TopicRule.java