public CloudWatchLogsLogStream withDatetimeFormat(String datetimeFormat) {
        setDatetimeFormat(datetimeFormat);
        return this;
    }
<p>
Specifies how the time stamp is extracted from logs. For more information, see the <a
href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html">CloudWatch Logs Agent
Reference</a>.
</p>

@param datetimeFormat
       Specifies how the time stamp is extracted from logs. For more information, see the <a
       href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html">CloudWatch Logs Agent
       Reference</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/CloudWatchLogsLogStream.java