public GetMetricDataRequest withHistoricalMetrics(java.util.Collection<HistoricalMetric> historicalMetrics) {
        setHistoricalMetrics(historicalMetrics);
        return this;
    }
<p>
The metrics to retrieve. Specify the name, unit, and statistic for each metric. The following historical metrics
are available. For a description of each metric, see <a
href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html">Historical
Metrics Definitions</a> in the <i>Amazon Connect Administrator Guide</i>.
</p>
<note>
<p>
This API does not support a contacts incoming metric (there's no CONTACTS_INCOMING metric missing from the
documented list).
</p>
</note>
<dl>
<dt>ABANDON_TIME</dt>
<dd>
<p>
Unit: SECONDS
</p>
<p>
Statistic: AVG
</p>
</dd>
<dt>AFTER_CONTACT_WORK_TIME</dt>
<dd>
<p>
Unit: SECONDS
</p>
<p>
Statistic: AVG
</p>
</dd>
<dt>API_CONTACTS_HANDLED</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Statistic: SUM
</p>
</dd>
<dt>CALLBACK_CONTACTS_HANDLED</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Statistic: SUM
</p>
</dd>
<dt>CONTACTS_ABANDONED</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Statistic: SUM
</p>
</dd>
<dt>CONTACTS_AGENT_HUNG_UP_FIRST</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Statistic: SUM
</p>
</dd>
<dt>CONTACTS_CONSULTED</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Statistic: SUM
</p>
</dd>
<dt>CONTACTS_HANDLED</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Statistic: SUM
</p>
</dd>
<dt>CONTACTS_HANDLED_INCOMING</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Statistic: SUM
</p>
</dd>
<dt>CONTACTS_HANDLED_OUTBOUND</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Statistic: SUM
</p>
</dd>
<dt>CONTACTS_HOLD_ABANDONS</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Statistic: SUM
</p>
</dd>
<dt>CONTACTS_MISSED</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Statistic: SUM
</p>
</dd>
<dt>CONTACTS_QUEUED</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Statistic: SUM
</p>
</dd>
<dt>CONTACTS_TRANSFERRED_IN</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Statistic: SUM
</p>
</dd>
<dt>CONTACTS_TRANSFERRED_IN_FROM_QUEUE</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Statistic: SUM
</p>
</dd>
<dt>CONTACTS_TRANSFERRED_OUT</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Statistic: SUM
</p>
</dd>
<dt>CONTACTS_TRANSFERRED_OUT_FROM_QUEUE</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Statistic: SUM
</p>
</dd>
<dt>HANDLE_TIME</dt>
<dd>
<p>
Unit: SECONDS
</p>
<p>
Statistic: AVG
</p>
</dd>
<dt>HOLD_TIME</dt>
<dd>
<p>
Unit: SECONDS
</p>
<p>
Statistic: AVG
</p>
</dd>
<dt>INTERACTION_AND_HOLD_TIME</dt>
<dd>
<p>
Unit: SECONDS
</p>
<p>
Statistic: AVG
</p>
</dd>
<dt>INTERACTION_TIME</dt>
<dd>
<p>
Unit: SECONDS
</p>
<p>
Statistic: AVG
</p>
</dd>
<dt>OCCUPANCY</dt>
<dd>
<p>
Unit: PERCENT
</p>
<p>
Statistic: AVG
</p>
</dd>
<dt>QUEUE_ANSWER_TIME</dt>
<dd>
<p>
Unit: SECONDS
</p>
<p>
Statistic: AVG
</p>
</dd>
<dt>QUEUED_TIME</dt>
<dd>
<p>
Unit: SECONDS
</p>
<p>
Statistic: MAX
</p>
</dd>
<dt>SERVICE_LEVEL</dt>
<dd>
<p>
You can include up to 20 SERVICE_LEVEL metrics in a request.
</p>
<p>
Unit: PERCENT
</p>
<p>
Statistic: AVG
</p>
<p>
Threshold: For <code>ThresholdValue</code>, enter any whole number from 1 to 604800 (inclusive), in seconds. For
<code>Comparison</code>, you must enter <code>LT</code> (for "Less than").
</p>
</dd>
</dl>

@param historicalMetrics
       The metrics to retrieve. Specify the name, unit, and statistic for each metric. The following historical
       metrics are available. For a description of each metric, see <a
       href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html"
       >Historical Metrics Definitions</a> in the <i>Amazon Connect Administrator Guide</i>.</p> <note>
       <p>
       This API does not support a contacts incoming metric (there's no CONTACTS_INCOMING metric missing from the
       documented list).
       </p>
       </note>
       <dl>
       <dt>ABANDON_TIME</dt>
       <dd>
       <p>
       Unit: SECONDS
       </p>
       <p>
       Statistic: AVG
       </p>
       </dd>
       <dt>AFTER_CONTACT_WORK_TIME</dt>
       <dd>
       <p>
       Unit: SECONDS
       </p>
       <p>
       Statistic: AVG
       </p>
       </dd>
       <dt>API_CONTACTS_HANDLED</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Statistic: SUM
       </p>
       </dd>
       <dt>CALLBACK_CONTACTS_HANDLED</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Statistic: SUM
       </p>
       </dd>
       <dt>CONTACTS_ABANDONED</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Statistic: SUM
       </p>
       </dd>
       <dt>CONTACTS_AGENT_HUNG_UP_FIRST</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Statistic: SUM
       </p>
       </dd>
       <dt>CONTACTS_CONSULTED</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Statistic: SUM
       </p>
       </dd>
       <dt>CONTACTS_HANDLED</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Statistic: SUM
       </p>
       </dd>
       <dt>CONTACTS_HANDLED_INCOMING</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Statistic: SUM
       </p>
       </dd>
       <dt>CONTACTS_HANDLED_OUTBOUND</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Statistic: SUM
       </p>
       </dd>
       <dt>CONTACTS_HOLD_ABANDONS</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Statistic: SUM
       </p>
       </dd>
       <dt>CONTACTS_MISSED</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Statistic: SUM
       </p>
       </dd>
       <dt>CONTACTS_QUEUED</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Statistic: SUM
       </p>
       </dd>
       <dt>CONTACTS_TRANSFERRED_IN</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Statistic: SUM
       </p>
       </dd>
       <dt>CONTACTS_TRANSFERRED_IN_FROM_QUEUE</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Statistic: SUM
       </p>
       </dd>
       <dt>CONTACTS_TRANSFERRED_OUT</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Statistic: SUM
       </p>
       </dd>
       <dt>CONTACTS_TRANSFERRED_OUT_FROM_QUEUE</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Statistic: SUM
       </p>
       </dd>
       <dt>HANDLE_TIME</dt>
       <dd>
       <p>
       Unit: SECONDS
       </p>
       <p>
       Statistic: AVG
       </p>
       </dd>
       <dt>HOLD_TIME</dt>
       <dd>
       <p>
       Unit: SECONDS
       </p>
       <p>
       Statistic: AVG
       </p>
       </dd>
       <dt>INTERACTION_AND_HOLD_TIME</dt>
       <dd>
       <p>
       Unit: SECONDS
       </p>
       <p>
       Statistic: AVG
       </p>
       </dd>
       <dt>INTERACTION_TIME</dt>
       <dd>
       <p>
       Unit: SECONDS
       </p>
       <p>
       Statistic: AVG
       </p>
       </dd>
       <dt>OCCUPANCY</dt>
       <dd>
       <p>
       Unit: PERCENT
       </p>
       <p>
       Statistic: AVG
       </p>
       </dd>
       <dt>QUEUE_ANSWER_TIME</dt>
       <dd>
       <p>
       Unit: SECONDS
       </p>
       <p>
       Statistic: AVG
       </p>
       </dd>
       <dt>QUEUED_TIME</dt>
       <dd>
       <p>
       Unit: SECONDS
       </p>
       <p>
       Statistic: MAX
       </p>
       </dd>
       <dt>SERVICE_LEVEL</dt>
       <dd>
       <p>
       You can include up to 20 SERVICE_LEVEL metrics in a request.
       </p>
       <p>
       Unit: PERCENT
       </p>
       <p>
       Statistic: AVG
       </p>
       <p>
       Threshold: For <code>ThresholdValue</code>, enter any whole number from 1 to 604800 (inclusive), in
       seconds. For <code>Comparison</code>, you must enter <code>LT</code> (for "Less than").
       </p>
       </dd>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetMetricDataRequest.java