public BatchGetFrameMetricDataResult withEndTimes(TimestampStructure... endTimes) {
        if (this.endTimes == null) {
            setEndTimes(new java.util.ArrayList<TimestampStructure>(endTimes.length));
        }
        for (TimestampStructure ele : endTimes) {
            this.endTimes.add(ele);
        }
        return this;
    }
<p>
List of instances, or time steps, in the time series. For example, if the <code>period</code> is one day (
<code>PT24H)</code>), and the <code>resolution</code> is five minutes (<code>PT5M</code>), then there are 288
<code>endTimes</code> in the list that are each five minutes appart.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEndTimes(java.util.Collection)} or {@link #withEndTimes(java.util.Collection)} if you want to override
the existing values.
</p>

@param endTimes
       List of instances, or time steps, in the time series. For example, if the <code>period</code> is one day (
       <code>PT24H)</code>), and the <code>resolution</code> is five minutes (<code>PT5M</code>), then there are
       288 <code>endTimes</code> in the list that are each five minutes appart.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codeguruprofiler/src/main/java/com/amazonaws/services/codeguruprofiler/model/BatchGetFrameMetricDataResult.java