/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.connect.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetMetricDataRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The identifier of the Amazon Connect instance. You can find the instance ID in * the Amazon Resource Name (ARN) of the instance. *

*/ private String instanceId; /** *

* The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of * historical metrics data. The time must be specified using a multiple of 5 minutes, such as 10:05, 10:10, 10:15. *

*

* The start time cannot be earlier than 24 hours before the time of the request. Historical metrics are available * only for 24 hours. *

*/ private java.util.Date startTime; /** *

* The timestamp, in UNIX Epoch time format, at which to end the reporting interval for the retrieval of historical * metrics data. The time must be specified using an interval of 5 minutes, such as 11:00, 11:05, 11:10, and must be * later than the start time timestamp. *

*

* The time range between the start and end time must be less than 24 hours. *

*/ private java.util.Date endTime; /** *

* The queues, up to 100, or channels, to use to filter the metrics returned. Metric data is retrieved only for the * resources associated with the queues or channels included in the filter. You can include both queue IDs and queue * ARNs in the same request. VOICE, CHAT, and TASK channels are supported. *

* *

* To filter by Queues, enter the queue ID/ARN, not the name of the queue. *

*
*/ private Filters filters; /** *

* The grouping applied to the metrics returned. For example, when results are grouped by queue, the metrics * returned are grouped by queue. The values returned apply to the metrics for each queue rather than aggregated for * all queues. *

*

* If no grouping is specified, a summary of metrics for all queues is returned. *

*/ private java.util.List groupings; /** *

* 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 Historical * Metrics Definitions in the Amazon Connect Administrator Guide. *

* *

* This API does not support a contacts incoming metric (there's no CONTACTS_INCOMING metric missing from the * documented list). *

*
*
*
ABANDON_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
AFTER_CONTACT_WORK_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
API_CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CALLBACK_CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_ABANDONED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_AGENT_HUNG_UP_FIRST
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_CONSULTED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED_INCOMING
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED_OUTBOUND
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HOLD_ABANDONS
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_MISSED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_QUEUED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_IN
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_IN_FROM_QUEUE
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_OUT
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
HANDLE_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
HOLD_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
INTERACTION_AND_HOLD_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
INTERACTION_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
OCCUPANCY
*
*

* Unit: PERCENT *

*

* Statistic: AVG *

*
*
QUEUE_ANSWER_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
QUEUED_TIME
*
*

* Unit: SECONDS *

*

* Statistic: MAX *

*
*
SERVICE_LEVEL
*
*

* You can include up to 20 SERVICE_LEVEL metrics in a request. *

*

* Unit: PERCENT *

*

* Statistic: AVG *

*

* Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For * Comparison, you must enter LT (for "Less than"). *

*
*
*/ private java.util.List historicalMetrics; /** *

* The token for the next set of results. Use the value returned in the previous response in the next request to * retrieve the next set of results. *

*/ private String nextToken; /** *

* The maximum number of results to return per page. *

*/ private Integer maxResults; /** *

* The identifier of the Amazon Connect instance. You can find the instance ID in * the Amazon Resource Name (ARN) of the instance. *

* * @param instanceId * The identifier of the Amazon Connect instance. You can find the instance * ID in the Amazon Resource Name (ARN) of the instance. */ public void setInstanceId(String instanceId) { this.instanceId = instanceId; } /** *

* The identifier of the Amazon Connect instance. You can find the instance ID in * the Amazon Resource Name (ARN) of the instance. *

* * @return The identifier of the Amazon Connect instance. You can find the instance * ID in the Amazon Resource Name (ARN) of the instance. */ public String getInstanceId() { return this.instanceId; } /** *

* The identifier of the Amazon Connect instance. You can find the instance ID in * the Amazon Resource Name (ARN) of the instance. *

* * @param instanceId * The identifier of the Amazon Connect instance. You can find the instance * ID in the Amazon Resource Name (ARN) of the instance. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMetricDataRequest withInstanceId(String instanceId) { setInstanceId(instanceId); return this; } /** *

* The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of * historical metrics data. The time must be specified using a multiple of 5 minutes, such as 10:05, 10:10, 10:15. *

*

* The start time cannot be earlier than 24 hours before the time of the request. Historical metrics are available * only for 24 hours. *

* * @param startTime * The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of * historical metrics data. The time must be specified using a multiple of 5 minutes, such as 10:05, 10:10, * 10:15.

*

* The start time cannot be earlier than 24 hours before the time of the request. Historical metrics are * available only for 24 hours. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** *

* The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of * historical metrics data. The time must be specified using a multiple of 5 minutes, such as 10:05, 10:10, 10:15. *

*

* The start time cannot be earlier than 24 hours before the time of the request. Historical metrics are available * only for 24 hours. *

* * @return The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of * historical metrics data. The time must be specified using a multiple of 5 minutes, such as 10:05, 10:10, * 10:15.

*

* The start time cannot be earlier than 24 hours before the time of the request. Historical metrics are * available only for 24 hours. */ public java.util.Date getStartTime() { return this.startTime; } /** *

* The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of * historical metrics data. The time must be specified using a multiple of 5 minutes, such as 10:05, 10:10, 10:15. *

*

* The start time cannot be earlier than 24 hours before the time of the request. Historical metrics are available * only for 24 hours. *

* * @param startTime * The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of * historical metrics data. The time must be specified using a multiple of 5 minutes, such as 10:05, 10:10, * 10:15.

*

* The start time cannot be earlier than 24 hours before the time of the request. Historical metrics are * available only for 24 hours. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMetricDataRequest withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** *

* The timestamp, in UNIX Epoch time format, at which to end the reporting interval for the retrieval of historical * metrics data. The time must be specified using an interval of 5 minutes, such as 11:00, 11:05, 11:10, and must be * later than the start time timestamp. *

*

* The time range between the start and end time must be less than 24 hours. *

* * @param endTime * The timestamp, in UNIX Epoch time format, at which to end the reporting interval for the retrieval of * historical metrics data. The time must be specified using an interval of 5 minutes, such as 11:00, 11:05, * 11:10, and must be later than the start time timestamp.

*

* The time range between the start and end time must be less than 24 hours. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** *

* The timestamp, in UNIX Epoch time format, at which to end the reporting interval for the retrieval of historical * metrics data. The time must be specified using an interval of 5 minutes, such as 11:00, 11:05, 11:10, and must be * later than the start time timestamp. *

*

* The time range between the start and end time must be less than 24 hours. *

* * @return The timestamp, in UNIX Epoch time format, at which to end the reporting interval for the retrieval of * historical metrics data. The time must be specified using an interval of 5 minutes, such as 11:00, 11:05, * 11:10, and must be later than the start time timestamp.

*

* The time range between the start and end time must be less than 24 hours. */ public java.util.Date getEndTime() { return this.endTime; } /** *

* The timestamp, in UNIX Epoch time format, at which to end the reporting interval for the retrieval of historical * metrics data. The time must be specified using an interval of 5 minutes, such as 11:00, 11:05, 11:10, and must be * later than the start time timestamp. *

*

* The time range between the start and end time must be less than 24 hours. *

* * @param endTime * The timestamp, in UNIX Epoch time format, at which to end the reporting interval for the retrieval of * historical metrics data. The time must be specified using an interval of 5 minutes, such as 11:00, 11:05, * 11:10, and must be later than the start time timestamp.

*

* The time range between the start and end time must be less than 24 hours. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMetricDataRequest withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** *

* The queues, up to 100, or channels, to use to filter the metrics returned. Metric data is retrieved only for the * resources associated with the queues or channels included in the filter. You can include both queue IDs and queue * ARNs in the same request. VOICE, CHAT, and TASK channels are supported. *

* *

* To filter by Queues, enter the queue ID/ARN, not the name of the queue. *

*
* * @param filters * The queues, up to 100, or channels, to use to filter the metrics returned. Metric data is retrieved only * for the resources associated with the queues or channels included in the filter. You can include both * queue IDs and queue ARNs in the same request. VOICE, CHAT, and TASK channels are supported.

*

* To filter by Queues, enter the queue ID/ARN, not the name of the queue. *

*/ public void setFilters(Filters filters) { this.filters = filters; } /** *

* The queues, up to 100, or channels, to use to filter the metrics returned. Metric data is retrieved only for the * resources associated with the queues or channels included in the filter. You can include both queue IDs and queue * ARNs in the same request. VOICE, CHAT, and TASK channels are supported. *

* *

* To filter by Queues, enter the queue ID/ARN, not the name of the queue. *

*
* * @return The queues, up to 100, or channels, to use to filter the metrics returned. Metric data is retrieved only * for the resources associated with the queues or channels included in the filter. You can include both * queue IDs and queue ARNs in the same request. VOICE, CHAT, and TASK channels are supported.

*

* To filter by Queues, enter the queue ID/ARN, not the name of the queue. *

*/ public Filters getFilters() { return this.filters; } /** *

* The queues, up to 100, or channels, to use to filter the metrics returned. Metric data is retrieved only for the * resources associated with the queues or channels included in the filter. You can include both queue IDs and queue * ARNs in the same request. VOICE, CHAT, and TASK channels are supported. *

* *

* To filter by Queues, enter the queue ID/ARN, not the name of the queue. *

*
* * @param filters * The queues, up to 100, or channels, to use to filter the metrics returned. Metric data is retrieved only * for the resources associated with the queues or channels included in the filter. You can include both * queue IDs and queue ARNs in the same request. VOICE, CHAT, and TASK channels are supported.

*

* To filter by Queues, enter the queue ID/ARN, not the name of the queue. *

* @return Returns a reference to this object so that method calls can be chained together. */ public GetMetricDataRequest withFilters(Filters filters) { setFilters(filters); return this; } /** *

* The grouping applied to the metrics returned. For example, when results are grouped by queue, the metrics * returned are grouped by queue. The values returned apply to the metrics for each queue rather than aggregated for * all queues. *

*

* If no grouping is specified, a summary of metrics for all queues is returned. *

* * @return The grouping applied to the metrics returned. For example, when results are grouped by queue, the metrics * returned are grouped by queue. The values returned apply to the metrics for each queue rather than * aggregated for all queues.

*

* If no grouping is specified, a summary of metrics for all queues is returned. * @see Grouping */ public java.util.List getGroupings() { return groupings; } /** *

* The grouping applied to the metrics returned. For example, when results are grouped by queue, the metrics * returned are grouped by queue. The values returned apply to the metrics for each queue rather than aggregated for * all queues. *

*

* If no grouping is specified, a summary of metrics for all queues is returned. *

* * @param groupings * The grouping applied to the metrics returned. For example, when results are grouped by queue, the metrics * returned are grouped by queue. The values returned apply to the metrics for each queue rather than * aggregated for all queues.

*

* If no grouping is specified, a summary of metrics for all queues is returned. * @see Grouping */ public void setGroupings(java.util.Collection groupings) { if (groupings == null) { this.groupings = null; return; } this.groupings = new java.util.ArrayList(groupings); } /** *

* The grouping applied to the metrics returned. For example, when results are grouped by queue, the metrics * returned are grouped by queue. The values returned apply to the metrics for each queue rather than aggregated for * all queues. *

*

* If no grouping is specified, a summary of metrics for all queues is returned. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setGroupings(java.util.Collection)} or {@link #withGroupings(java.util.Collection)} if you want to * override the existing values. *

* * @param groupings * The grouping applied to the metrics returned. For example, when results are grouped by queue, the metrics * returned are grouped by queue. The values returned apply to the metrics for each queue rather than * aggregated for all queues.

*

* If no grouping is specified, a summary of metrics for all queues is returned. * @return Returns a reference to this object so that method calls can be chained together. * @see Grouping */ public GetMetricDataRequest withGroupings(String... groupings) { if (this.groupings == null) { setGroupings(new java.util.ArrayList(groupings.length)); } for (String ele : groupings) { this.groupings.add(ele); } return this; } /** *

* The grouping applied to the metrics returned. For example, when results are grouped by queue, the metrics * returned are grouped by queue. The values returned apply to the metrics for each queue rather than aggregated for * all queues. *

*

* If no grouping is specified, a summary of metrics for all queues is returned. *

* * @param groupings * The grouping applied to the metrics returned. For example, when results are grouped by queue, the metrics * returned are grouped by queue. The values returned apply to the metrics for each queue rather than * aggregated for all queues.

*

* If no grouping is specified, a summary of metrics for all queues is returned. * @return Returns a reference to this object so that method calls can be chained together. * @see Grouping */ public GetMetricDataRequest withGroupings(java.util.Collection groupings) { setGroupings(groupings); return this; } /** *

* The grouping applied to the metrics returned. For example, when results are grouped by queue, the metrics * returned are grouped by queue. The values returned apply to the metrics for each queue rather than aggregated for * all queues. *

*

* If no grouping is specified, a summary of metrics for all queues is returned. *

* * @param groupings * The grouping applied to the metrics returned. For example, when results are grouped by queue, the metrics * returned are grouped by queue. The values returned apply to the metrics for each queue rather than * aggregated for all queues.

*

* If no grouping is specified, a summary of metrics for all queues is returned. * @return Returns a reference to this object so that method calls can be chained together. * @see Grouping */ public GetMetricDataRequest withGroupings(Grouping... groupings) { java.util.ArrayList groupingsCopy = new java.util.ArrayList(groupings.length); for (Grouping value : groupings) { groupingsCopy.add(value.toString()); } if (getGroupings() == null) { setGroupings(groupingsCopy); } else { getGroupings().addAll(groupingsCopy); } return this; } /** *

* 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 Historical * Metrics Definitions in the Amazon Connect Administrator Guide. *

* *

* This API does not support a contacts incoming metric (there's no CONTACTS_INCOMING metric missing from the * documented list). *

*
*
*
ABANDON_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
AFTER_CONTACT_WORK_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
API_CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CALLBACK_CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_ABANDONED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_AGENT_HUNG_UP_FIRST
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_CONSULTED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED_INCOMING
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED_OUTBOUND
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HOLD_ABANDONS
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_MISSED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_QUEUED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_IN
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_IN_FROM_QUEUE
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_OUT
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
HANDLE_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
HOLD_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
INTERACTION_AND_HOLD_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
INTERACTION_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
OCCUPANCY
*
*

* Unit: PERCENT *

*

* Statistic: AVG *

*
*
QUEUE_ANSWER_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
QUEUED_TIME
*
*

* Unit: SECONDS *

*

* Statistic: MAX *

*
*
SERVICE_LEVEL
*
*

* You can include up to 20 SERVICE_LEVEL metrics in a request. *

*

* Unit: PERCENT *

*

* Statistic: AVG *

*

* Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For * Comparison, you must enter LT (for "Less than"). *

*
*
* * @return 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 Historical Metrics Definitions in the Amazon Connect Administrator Guide.

*

* This API does not support a contacts incoming metric (there's no CONTACTS_INCOMING metric missing from * the documented list). *

*
*
*
ABANDON_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
AFTER_CONTACT_WORK_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
API_CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CALLBACK_CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_ABANDONED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_AGENT_HUNG_UP_FIRST
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_CONSULTED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED_INCOMING
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED_OUTBOUND
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HOLD_ABANDONS
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_MISSED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_QUEUED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_IN
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_IN_FROM_QUEUE
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_OUT
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
HANDLE_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
HOLD_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
INTERACTION_AND_HOLD_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
INTERACTION_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
OCCUPANCY
*
*

* Unit: PERCENT *

*

* Statistic: AVG *

*
*
QUEUE_ANSWER_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
QUEUED_TIME
*
*

* Unit: SECONDS *

*

* Statistic: MAX *

*
*
SERVICE_LEVEL
*
*

* You can include up to 20 SERVICE_LEVEL metrics in a request. *

*

* Unit: PERCENT *

*

* Statistic: AVG *

*

* Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in * seconds. For Comparison, you must enter LT (for "Less than"). *

*
*/ public java.util.List getHistoricalMetrics() { return 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 Historical * Metrics Definitions in the Amazon Connect Administrator Guide. *

* *

* This API does not support a contacts incoming metric (there's no CONTACTS_INCOMING metric missing from the * documented list). *

*
*
*
ABANDON_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
AFTER_CONTACT_WORK_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
API_CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CALLBACK_CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_ABANDONED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_AGENT_HUNG_UP_FIRST
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_CONSULTED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED_INCOMING
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED_OUTBOUND
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HOLD_ABANDONS
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_MISSED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_QUEUED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_IN
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_IN_FROM_QUEUE
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_OUT
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
HANDLE_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
HOLD_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
INTERACTION_AND_HOLD_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
INTERACTION_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
OCCUPANCY
*
*

* Unit: PERCENT *

*

* Statistic: AVG *

*
*
QUEUE_ANSWER_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
QUEUED_TIME
*
*

* Unit: SECONDS *

*

* Statistic: MAX *

*
*
SERVICE_LEVEL
*
*

* You can include up to 20 SERVICE_LEVEL metrics in a request. *

*

* Unit: PERCENT *

*

* Statistic: AVG *

*

* Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For * Comparison, you must enter LT (for "Less than"). *

*
*
* * @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 Historical Metrics Definitions in the Amazon Connect Administrator Guide.

*

* This API does not support a contacts incoming metric (there's no CONTACTS_INCOMING metric missing from the * documented list). *

*
*
*
ABANDON_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
AFTER_CONTACT_WORK_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
API_CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CALLBACK_CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_ABANDONED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_AGENT_HUNG_UP_FIRST
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_CONSULTED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED_INCOMING
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED_OUTBOUND
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HOLD_ABANDONS
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_MISSED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_QUEUED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_IN
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_IN_FROM_QUEUE
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_OUT
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
HANDLE_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
HOLD_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
INTERACTION_AND_HOLD_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
INTERACTION_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
OCCUPANCY
*
*

* Unit: PERCENT *

*

* Statistic: AVG *

*
*
QUEUE_ANSWER_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
QUEUED_TIME
*
*

* Unit: SECONDS *

*

* Statistic: MAX *

*
*
SERVICE_LEVEL
*
*

* You can include up to 20 SERVICE_LEVEL metrics in a request. *

*

* Unit: PERCENT *

*

* Statistic: AVG *

*

* Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in * seconds. For Comparison, you must enter LT (for "Less than"). *

*
*/ public void setHistoricalMetrics(java.util.Collection historicalMetrics) { if (historicalMetrics == null) { this.historicalMetrics = null; return; } this.historicalMetrics = new java.util.ArrayList(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 Historical * Metrics Definitions in the Amazon Connect Administrator Guide. *

* *

* This API does not support a contacts incoming metric (there's no CONTACTS_INCOMING metric missing from the * documented list). *

*
*
*
ABANDON_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
AFTER_CONTACT_WORK_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
API_CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CALLBACK_CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_ABANDONED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_AGENT_HUNG_UP_FIRST
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_CONSULTED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED_INCOMING
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED_OUTBOUND
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HOLD_ABANDONS
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_MISSED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_QUEUED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_IN
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_IN_FROM_QUEUE
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_OUT
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
HANDLE_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
HOLD_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
INTERACTION_AND_HOLD_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
INTERACTION_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
OCCUPANCY
*
*

* Unit: PERCENT *

*

* Statistic: AVG *

*
*
QUEUE_ANSWER_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
QUEUED_TIME
*
*

* Unit: SECONDS *

*

* Statistic: MAX *

*
*
SERVICE_LEVEL
*
*

* You can include up to 20 SERVICE_LEVEL metrics in a request. *

*

* Unit: PERCENT *

*

* Statistic: AVG *

*

* Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For * Comparison, you must enter LT (for "Less than"). *

*
*
*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setHistoricalMetrics(java.util.Collection)} or {@link #withHistoricalMetrics(java.util.Collection)} if * you want to override the existing values. *

* * @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 Historical Metrics Definitions in the Amazon Connect Administrator Guide.

*

* This API does not support a contacts incoming metric (there's no CONTACTS_INCOMING metric missing from the * documented list). *

*
*
*
ABANDON_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
AFTER_CONTACT_WORK_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
API_CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CALLBACK_CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_ABANDONED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_AGENT_HUNG_UP_FIRST
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_CONSULTED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED_INCOMING
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED_OUTBOUND
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HOLD_ABANDONS
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_MISSED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_QUEUED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_IN
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_IN_FROM_QUEUE
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_OUT
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
HANDLE_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
HOLD_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
INTERACTION_AND_HOLD_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
INTERACTION_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
OCCUPANCY
*
*

* Unit: PERCENT *

*

* Statistic: AVG *

*
*
QUEUE_ANSWER_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
QUEUED_TIME
*
*

* Unit: SECONDS *

*

* Statistic: MAX *

*
*
SERVICE_LEVEL
*
*

* You can include up to 20 SERVICE_LEVEL metrics in a request. *

*

* Unit: PERCENT *

*

* Statistic: AVG *

*

* Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in * seconds. For Comparison, you must enter LT (for "Less than"). *

*
* @return Returns a reference to this object so that method calls can be chained together. */ public GetMetricDataRequest withHistoricalMetrics(HistoricalMetric... historicalMetrics) { if (this.historicalMetrics == null) { setHistoricalMetrics(new java.util.ArrayList(historicalMetrics.length)); } for (HistoricalMetric ele : historicalMetrics) { this.historicalMetrics.add(ele); } return this; } /** *

* 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 Historical * Metrics Definitions in the Amazon Connect Administrator Guide. *

* *

* This API does not support a contacts incoming metric (there's no CONTACTS_INCOMING metric missing from the * documented list). *

*
*
*
ABANDON_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
AFTER_CONTACT_WORK_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
API_CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CALLBACK_CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_ABANDONED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_AGENT_HUNG_UP_FIRST
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_CONSULTED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED_INCOMING
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED_OUTBOUND
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HOLD_ABANDONS
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_MISSED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_QUEUED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_IN
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_IN_FROM_QUEUE
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_OUT
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
HANDLE_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
HOLD_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
INTERACTION_AND_HOLD_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
INTERACTION_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
OCCUPANCY
*
*

* Unit: PERCENT *

*

* Statistic: AVG *

*
*
QUEUE_ANSWER_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
QUEUED_TIME
*
*

* Unit: SECONDS *

*

* Statistic: MAX *

*
*
SERVICE_LEVEL
*
*

* You can include up to 20 SERVICE_LEVEL metrics in a request. *

*

* Unit: PERCENT *

*

* Statistic: AVG *

*

* Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For * Comparison, you must enter LT (for "Less than"). *

*
*
* * @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 Historical Metrics Definitions in the Amazon Connect Administrator Guide.

*

* This API does not support a contacts incoming metric (there's no CONTACTS_INCOMING metric missing from the * documented list). *

*
*
*
ABANDON_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
AFTER_CONTACT_WORK_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
API_CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CALLBACK_CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_ABANDONED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_AGENT_HUNG_UP_FIRST
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_CONSULTED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED_INCOMING
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HANDLED_OUTBOUND
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_HOLD_ABANDONS
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_MISSED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_QUEUED
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_IN
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_IN_FROM_QUEUE
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_OUT
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
*
*

* Unit: COUNT *

*

* Statistic: SUM *

*
*
HANDLE_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
HOLD_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
INTERACTION_AND_HOLD_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
INTERACTION_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
OCCUPANCY
*
*

* Unit: PERCENT *

*

* Statistic: AVG *

*
*
QUEUE_ANSWER_TIME
*
*

* Unit: SECONDS *

*

* Statistic: AVG *

*
*
QUEUED_TIME
*
*

* Unit: SECONDS *

*

* Statistic: MAX *

*
*
SERVICE_LEVEL
*
*

* You can include up to 20 SERVICE_LEVEL metrics in a request. *

*

* Unit: PERCENT *

*

* Statistic: AVG *

*

* Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in * seconds. For Comparison, you must enter LT (for "Less than"). *

*
* @return Returns a reference to this object so that method calls can be chained together. */ public GetMetricDataRequest withHistoricalMetrics(java.util.Collection historicalMetrics) { setHistoricalMetrics(historicalMetrics); return this; } /** *

* The token for the next set of results. Use the value returned in the previous response in the next request to * retrieve the next set of results. *

* * @param nextToken * The token for the next set of results. Use the value returned in the previous response in the next request * to retrieve the next set of results. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* The token for the next set of results. Use the value returned in the previous response in the next request to * retrieve the next set of results. *

* * @return The token for the next set of results. Use the value returned in the previous response in the next * request to retrieve the next set of results. */ public String getNextToken() { return this.nextToken; } /** *

* The token for the next set of results. Use the value returned in the previous response in the next request to * retrieve the next set of results. *

* * @param nextToken * The token for the next set of results. Use the value returned in the previous response in the next request * to retrieve the next set of results. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMetricDataRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* The maximum number of results to return per page. *

* * @param maxResults * The maximum number of results to return per page. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

* The maximum number of results to return per page. *

* * @return The maximum number of results to return per page. */ public Integer getMaxResults() { return this.maxResults; } /** *

* The maximum number of results to return per page. *

* * @param maxResults * The maximum number of results to return per page. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMetricDataRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getInstanceId() != null) sb.append("InstanceId: ").append(getInstanceId()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getEndTime() != null) sb.append("EndTime: ").append(getEndTime()).append(","); if (getFilters() != null) sb.append("Filters: ").append(getFilters()).append(","); if (getGroupings() != null) sb.append("Groupings: ").append(getGroupings()).append(","); if (getHistoricalMetrics() != null) sb.append("HistoricalMetrics: ").append(getHistoricalMetrics()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetMetricDataRequest == false) return false; GetMetricDataRequest other = (GetMetricDataRequest) obj; if (other.getInstanceId() == null ^ this.getInstanceId() == null) return false; if (other.getInstanceId() != null && other.getInstanceId().equals(this.getInstanceId()) == false) return false; if (other.getStartTime() == null ^ this.getStartTime() == null) return false; if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false) return false; if (other.getEndTime() == null ^ this.getEndTime() == null) return false; if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) return false; if (other.getFilters() == null ^ this.getFilters() == null) return false; if (other.getFilters() != null && other.getFilters().equals(this.getFilters()) == false) return false; if (other.getGroupings() == null ^ this.getGroupings() == null) return false; if (other.getGroupings() != null && other.getGroupings().equals(this.getGroupings()) == false) return false; if (other.getHistoricalMetrics() == null ^ this.getHistoricalMetrics() == null) return false; if (other.getHistoricalMetrics() != null && other.getHistoricalMetrics().equals(this.getHistoricalMetrics()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().hashCode()); hashCode = prime * hashCode + ((getGroupings() == null) ? 0 : getGroupings().hashCode()); hashCode = prime * hashCode + ((getHistoricalMetrics() == null) ? 0 : getHistoricalMetrics().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); return hashCode; } @Override public GetMetricDataRequest clone() { return (GetMetricDataRequest) super.clone(); } }