public GetLogEventsRequest withStartFromHead(Boolean startFromHead) {
        setStartFromHead(startFromHead);
        return this;
    }
<p>
If the value is true, the earliest log events are returned first. If the value is false, the latest log events
are returned first. The default value is false.
</p>
<p>
If you are using a previous <code>nextForwardToken</code> value as the <code>nextToken</code> in this operation,
you must specify <code>true</code> for <code>startFromHead</code>.
</p>

@param startFromHead
       If the value is true, the earliest log events are returned first. If the value is false, the latest log
       events are returned first. The default value is false.</p>
       <p>
       If you are using a previous <code>nextForwardToken</code> value as the <code>nextToken</code> in this
       operation, you must specify <code>true</code> for <code>startFromHead</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-logs/src/main/java/com/amazonaws/services/logs/model/GetLogEventsRequest.java