public GetResourceMetricsRequest withStartTime(java.util.Date startTime) {
        setStartTime(startTime);
        return this;
    }
<p>
The date and time specifying the beginning of the requested time series query range. You can't specify a
<code>StartTime</code> that is earlier than 7 days ago. By default, Performance Insights has 7 days of retention,
but you can extend this range up to 2 years. The value specified is <i>inclusive</i>. Thus, the command returns
data points equal to or greater than <code>StartTime</code>.
</p>
<p>
The value for <code>StartTime</code> must be earlier than the value for <code>EndTime</code>.
</p>

@param startTime
       The date and time specifying the beginning of the requested time series query range. You can't specify a
       <code>StartTime</code> that is earlier than 7 days ago. By default, Performance Insights has 7 days of
       retention, but you can extend this range up to 2 years. The value specified is <i>inclusive</i>. Thus, the
       command returns data points equal to or greater than <code>StartTime</code>.</p>
       <p>
       The value for <code>StartTime</code> must be earlier than the value for <code>EndTime</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-pi/src/main/java/com/amazonaws/services/pi/model/GetResourceMetricsRequest.java