public CloudWatchLogsLogStream withEncoding(String encoding) {
        setEncoding(encoding);
        return this;
    }
<p>
Specifies the encoding of the log file so that the file can be read correctly. The default is <code>utf_8</code>.
Encodings supported by Python <code>codecs.decode()</code> can be used here.
</p>

@param encoding
       Specifies the encoding of the log file so that the file can be read correctly. The default is
       <code>utf_8</code>. Encodings supported by Python <code>codecs.decode()</code> can be used here.
@return Returns a reference to this object so that method calls can be chained together.
@see CloudWatchLogsEncoding
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/CloudWatchLogsLogStream.java