public void setCurrentMetrics(java.util.Collection<CurrentMetric> currentMetrics) {
        if (currentMetrics == null) {
            this.currentMetrics = null;
            return;
        }

        this.currentMetrics = new java.util.ArrayList<CurrentMetric>(currentMetrics);
    }
<p>
The metrics to retrieve. Specify the name and unit for each metric. The following metrics are available. For a
description of all the metrics, see <a
href="https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html">Real-time Metrics
Definitions</a> in the <i>Amazon Connect Administrator Guide</i>.
</p>
<dl>
<dt>AGENTS_AFTER_CONTACT_WORK</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Name in real-time metrics report: <a href=
"https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#aftercallwork-real-time"
>ACW</a>
</p>
</dd>
<dt>AGENTS_AVAILABLE</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Name in real-time metrics report: <a href=
"https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#available-real-time"
>Available</a>
</p>
</dd>
<dt>AGENTS_ERROR</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Name in real-time metrics report: <a
href="https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#error-real-time"
>Error</a>
</p>
</dd>
<dt>AGENTS_NON_PRODUCTIVE</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Name in real-time metrics report: <a href=
"https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#non-productive-time-real-time"
>NPT (Non-Productive Time)</a>
</p>
</dd>
<dt>AGENTS_ON_CALL</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Name in real-time metrics report: <a href=
"https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#on-call-real-time">On
contact</a>
</p>
</dd>
<dt>AGENTS_ON_CONTACT</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Name in real-time metrics report: <a href=
"https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#on-call-real-time">On
contact</a>
</p>
</dd>
<dt>AGENTS_ONLINE</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Name in real-time metrics report: <a href=
"https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#online-real-time"
>Online</a>
</p>
</dd>
<dt>AGENTS_STAFFED</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Name in real-time metrics report: <a href=
"https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#staffed-real-time"
>Staffed</a>
</p>
</dd>
<dt>CONTACTS_IN_QUEUE</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Name in real-time metrics report: <a href=
"https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#in-queue-real-time">In
queue</a>
</p>
</dd>
<dt>CONTACTS_SCHEDULED</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Name in real-time metrics report: <a href=
"https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#scheduled-real-time"
>Scheduled</a>
</p>
</dd>
<dt>OLDEST_CONTACT_AGE</dt>
<dd>
<p>
Unit: SECONDS
</p>
<p>
When you use groupings, Unit says SECONDS and the Value is returned in SECONDS.
</p>
<p>
When you do not use groupings, Unit says SECONDS but the Value is returned in MILLISECONDS. For example, if you
get a response like this:
</p>
<p>
<code>{ "Metric": { "Name": "OLDEST_CONTACT_AGE", "Unit": "SECONDS" }, "Value": 24113.0 </code>
</p>
<p>
The actual OLDEST_CONTACT_AGE is 24 seconds.
</p>
<p>
When the filter <code>RoutingStepExpression</code> is used, this metric is still calculated from enqueue time.
For example, if a contact that has been queued under <code>&lt;Expression 1&gt;</code> for 10 seconds has expired
and <code>&lt;Expression 2&gt;</code> becomes active, then <code>OLDEST_CONTACT_AGE</code> for this queue will be
counted starting from 10, not 0.
</p>
<p>
Name in real-time metrics report: <a href=
"https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#oldest-real-time"
>Oldest</a>
</p>
</dd>
<dt>SLOTS_ACTIVE</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Name in real-time metrics report: <a href=
"https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#active-real-time"
>Active</a>
</p>
</dd>
<dt>SLOTS_AVAILABLE</dt>
<dd>
<p>
Unit: COUNT
</p>
<p>
Name in real-time metrics report: <a href=
"https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#availability-real-time"
>Availability</a>
</p>
</dd>
</dl>

@param currentMetrics
       The metrics to retrieve. Specify the name and unit for each metric. The following metrics are available.
       For a description of all the metrics, see <a
       href="https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html">Real-time
       Metrics Definitions</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
       <dl>
       <dt>AGENTS_AFTER_CONTACT_WORK</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Name in real-time metrics report: <a href=
       "https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#aftercallwork-real-time"
       >ACW</a>
       </p>
       </dd>
       <dt>AGENTS_AVAILABLE</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Name in real-time metrics report: <a href=
       "https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#available-real-time"
       >Available</a>
       </p>
       </dd>
       <dt>AGENTS_ERROR</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Name in real-time metrics report: <a href=
       "https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#error-real-time"
       >Error</a>
       </p>
       </dd>
       <dt>AGENTS_NON_PRODUCTIVE</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Name in real-time metrics report: <a href=
       "https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#non-productive-time-real-time"
       >NPT (Non-Productive Time)</a>
       </p>
       </dd>
       <dt>AGENTS_ON_CALL</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Name in real-time metrics report: <a href=
       "https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#on-call-real-time"
       >On contact</a>
       </p>
       </dd>
       <dt>AGENTS_ON_CONTACT</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Name in real-time metrics report: <a href=
       "https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#on-call-real-time"
       >On contact</a>
       </p>
       </dd>
       <dt>AGENTS_ONLINE</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Name in real-time metrics report: <a href=
       "https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#online-real-time"
       >Online</a>
       </p>
       </dd>
       <dt>AGENTS_STAFFED</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Name in real-time metrics report: <a href=
       "https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#staffed-real-time"
       >Staffed</a>
       </p>
       </dd>
       <dt>CONTACTS_IN_QUEUE</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Name in real-time metrics report: <a href=
       "https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#in-queue-real-time"
       >In queue</a>
       </p>
       </dd>
       <dt>CONTACTS_SCHEDULED</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Name in real-time metrics report: <a href=
       "https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#scheduled-real-time"
       >Scheduled</a>
       </p>
       </dd>
       <dt>OLDEST_CONTACT_AGE</dt>
       <dd>
       <p>
       Unit: SECONDS
       </p>
       <p>
       When you use groupings, Unit says SECONDS and the Value is returned in SECONDS.
       </p>
       <p>
       When you do not use groupings, Unit says SECONDS but the Value is returned in MILLISECONDS. For example,
       if you get a response like this:
       </p>
       <p>
       <code>{ "Metric": { "Name": "OLDEST_CONTACT_AGE", "Unit": "SECONDS" }, "Value": 24113.0 </code>
       </p>
       <p>
       The actual OLDEST_CONTACT_AGE is 24 seconds.
       </p>
       <p>
       When the filter <code>RoutingStepExpression</code> is used, this metric is still calculated from enqueue
       time. For example, if a contact that has been queued under <code>&lt;Expression 1&gt;</code> for 10
       seconds has expired and <code>&lt;Expression 2&gt;</code> becomes active, then
       <code>OLDEST_CONTACT_AGE</code> for this queue will be counted starting from 10, not 0.
       </p>
       <p>
       Name in real-time metrics report: <a href=
       "https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#oldest-real-time"
       >Oldest</a>
       </p>
       </dd>
       <dt>SLOTS_ACTIVE</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Name in real-time metrics report: <a href=
       "https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#active-real-time"
       >Active</a>
       </p>
       </dd>
       <dt>SLOTS_AVAILABLE</dt>
       <dd>
       <p>
       Unit: COUNT
       </p>
       <p>
       Name in real-time metrics report: <a href=
       "https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#availability-real-time"
       >Availability</a>
       </p>
       </dd>
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetCurrentMetricDataRequest.java