public SubStatementData withDuration(Long duration) {
        setDuration(duration);
        return this;
    }
<p>
The amount of time in nanoseconds that the statement ran.
</p>

@param duration
       The amount of time in nanoseconds that the statement ran.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-redshiftdataapi/src/main/java/com/amazonaws/services/redshiftdataapi/model/SubStatementData.java