public CloudwatchLogsAction withBatchMode(Boolean batchMode) {
        setBatchMode(batchMode);
        return this;
    }
<p>
Indicates whether batches of log records will be extracted and uploaded into CloudWatch. Values include
<code>true</code> or <code>false</code> <i>(default)</i>.
</p>

@param batchMode
       Indicates whether batches of log records will be extracted and uploaded into CloudWatch. Values include
       <code>true</code> or <code>false</code> <i>(default)</i>.
@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/CloudwatchLogsAction.java