code: public MetricDataResult withTimestamps(java.util.Date... timestamps) {
          if (this.timestamps == null) {
              setTimestamps(new com.amazonaws.internal.SdkInternalList<java.util.Date>(timestamps.length));
          }
          for (java.util.Date ele : timestamps) {
              this.timestamps.add(ele);
          }
          return this;
      }
docs: <p>
  The timestamps for the data points, formatted in Unix timestamp format. The number of timestamps always matches
  the number of values and the value for Timestamps[x] is Values[x].
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setTimestamps(java.util.Collection)} or {@link #withTimestamps(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param timestamps
  The timestamps for the data points, formatted in Unix timestamp format. The number of timestamps always
  matches the number of values and the value for Timestamps[x] is Values[x].
  @return Returns a reference to this object so that method calls can be chained together.