/* * 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.codeguruprofiler.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* The structure representing the BatchGetFrameMetricDataResponse. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class BatchGetFrameMetricDataResult extends com.amazonaws.AmazonWebServiceResult* The end time of the time period for the returned time series values. This is specified using the ISO 8601 format. * For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. *
*/ private java.util.Date endTime; /** *
     * List of instances, or time steps, in the time series. For example, if the period is one day (
     * PT24H)), and the resolution is five minutes (PT5M), then there are 288
     * endTimes in the list that are each five minutes appart.
     * 
* Details of the metrics to request a time series of values. The metric includes the name of the frame, the * aggregation type to calculate the metric value for the frame, and the thread states to use to get the count for * the metric value of the frame. *
*/ private java.util.List* Resolution or granularity of the profile data used to generate the time series. This is the value used to jump * through time steps in a time series. There are 3 valid values. *
*
     * P1D — 1 day
     * 
     * PT1H — 1 hour
     * 
     * PT5M — 5 minutes
     * 
* The start time of the time period for the returned time series values. This is specified using the ISO 8601 * format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. *
*/ private java.util.Date startTime; /** ** List of instances which remained unprocessed. This will create a missing time step in the list of end times. *
*/ private java.util.Map* The end time of the time period for the returned time series values. This is specified using the ISO 8601 format. * For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. *
* * @param endTime * The end time of the time period for the returned time series values. This is specified using the ISO 8601 * format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** ** The end time of the time period for the returned time series values. This is specified using the ISO 8601 format. * For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. *
* * @return The end time of the time period for the returned time series values. This is specified using the ISO 8601 * format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. */ public java.util.Date getEndTime() { return this.endTime; } /** ** The end time of the time period for the returned time series values. This is specified using the ISO 8601 format. * For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. *
* * @param endTime * The end time of the time period for the returned time series values. This is specified using the ISO 8601 * format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchGetFrameMetricDataResult withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** *
     * List of instances, or time steps, in the time series. For example, if the period is one day (
     * PT24H)), and the resolution is five minutes (PT5M), then there are 288
     * endTimes in the list that are each five minutes appart.
     * 
period is one day
     *         (PT24H)), and the resolution is five minutes (PT5M), then there
     *         are 288 endTimes in the list that are each five minutes appart.
     */
    public java.util.List
     * List of instances, or time steps, in the time series. For example, if the period is one day (
     * PT24H)), and the resolution is five minutes (PT5M), then there are 288
     * endTimes in the list that are each five minutes appart.
     * 
period is one day (
     *        PT24H)), and the resolution is five minutes (PT5M), then there are
     *        288 endTimes in the list that are each five minutes appart.
     */
    public void setEndTimes(java.util.Collection
     * List of instances, or time steps, in the time series. For example, if the period is one day (
     * PT24H)), and the resolution is five minutes (PT5M), then there are 288
     * endTimes in the list that are each five minutes appart.
     * 
* NOTE: 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. *
* * @param endTimes * List of instances, or time steps, in the time series. For example, if theperiod is one day (
     *        PT24H)), and the resolution is five minutes (PT5M), then there are
     *        288 endTimes in the list that are each five minutes appart.
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public BatchGetFrameMetricDataResult withEndTimes(TimestampStructure... endTimes) {
        if (this.endTimes == null) {
            setEndTimes(new java.util.ArrayList
     * List of instances, or time steps, in the time series. For example, if the period is one day (
     * PT24H)), and the resolution is five minutes (PT5M), then there are 288
     * endTimes in the list that are each five minutes appart.
     * 
period is one day (
     *        PT24H)), and the resolution is five minutes (PT5M), then there are
     *        288 endTimes in the list that are each five minutes appart.
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public BatchGetFrameMetricDataResult withEndTimes(java.util.Collection* Details of the metrics to request a time series of values. The metric includes the name of the frame, the * aggregation type to calculate the metric value for the frame, and the thread states to use to get the count for * the metric value of the frame. *
* * @return Details of the metrics to request a time series of values. The metric includes the name of the frame, the * aggregation type to calculate the metric value for the frame, and the thread states to use to get the * count for the metric value of the frame. */ public java.util.List* Details of the metrics to request a time series of values. The metric includes the name of the frame, the * aggregation type to calculate the metric value for the frame, and the thread states to use to get the count for * the metric value of the frame. *
* * @param frameMetricData * Details of the metrics to request a time series of values. The metric includes the name of the frame, the * aggregation type to calculate the metric value for the frame, and the thread states to use to get the * count for the metric value of the frame. */ public void setFrameMetricData(java.util.Collection* Details of the metrics to request a time series of values. The metric includes the name of the frame, the * aggregation type to calculate the metric value for the frame, and the thread states to use to get the count for * the metric value of the frame. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setFrameMetricData(java.util.Collection)} or {@link #withFrameMetricData(java.util.Collection)} if you * want to override the existing values. *
* * @param frameMetricData * Details of the metrics to request a time series of values. The metric includes the name of the frame, the * aggregation type to calculate the metric value for the frame, and the thread states to use to get the * count for the metric value of the frame. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchGetFrameMetricDataResult withFrameMetricData(FrameMetricDatum... frameMetricData) { if (this.frameMetricData == null) { setFrameMetricData(new java.util.ArrayList* Details of the metrics to request a time series of values. The metric includes the name of the frame, the * aggregation type to calculate the metric value for the frame, and the thread states to use to get the count for * the metric value of the frame. *
* * @param frameMetricData * Details of the metrics to request a time series of values. The metric includes the name of the frame, the * aggregation type to calculate the metric value for the frame, and the thread states to use to get the * count for the metric value of the frame. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchGetFrameMetricDataResult withFrameMetricData(java.util.Collection* Resolution or granularity of the profile data used to generate the time series. This is the value used to jump * through time steps in a time series. There are 3 valid values. *
*
     * P1D — 1 day
     * 
     * PT1H — 1 hour
     * 
     * PT5M — 5 minutes
     * 
     *        P1D — 1 day
     *        
     *        PT1H — 1 hour
     *        
     *        PT5M — 5 minutes
     *        
* Resolution or granularity of the profile data used to generate the time series. This is the value used to jump * through time steps in a time series. There are 3 valid values. *
*
     * P1D — 1 day
     * 
     * PT1H — 1 hour
     * 
     * PT5M — 5 minutes
     * 
     *         P1D — 1 day
     *         
     *         PT1H — 1 hour
     *         
     *         PT5M — 5 minutes
     *         
* Resolution or granularity of the profile data used to generate the time series. This is the value used to jump * through time steps in a time series. There are 3 valid values. *
*
     * P1D — 1 day
     * 
     * PT1H — 1 hour
     * 
     * PT5M — 5 minutes
     * 
     *        P1D — 1 day
     *        
     *        PT1H — 1 hour
     *        
     *        PT5M — 5 minutes
     *        
* Resolution or granularity of the profile data used to generate the time series. This is the value used to jump * through time steps in a time series. There are 3 valid values. *
*
     * P1D — 1 day
     * 
     * PT1H — 1 hour
     * 
     * PT5M — 5 minutes
     * 
     *        P1D — 1 day
     *        
     *        PT1H — 1 hour
     *        
     *        PT5M — 5 minutes
     *        
* The start time of the time period for the returned time series values. This is specified using the ISO 8601 * format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. *
* * @param startTime * The start time of the time period for the returned time series values. This is specified using the ISO * 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM * UTC. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** ** The start time of the time period for the returned time series values. This is specified using the ISO 8601 * format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. *
* * @return The start time of the time period for the returned time series values. This is specified using the ISO * 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM * UTC. */ public java.util.Date getStartTime() { return this.startTime; } /** ** The start time of the time period for the returned time series values. This is specified using the ISO 8601 * format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. *
* * @param startTime * The start time of the time period for the returned time series values. This is specified using the ISO * 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM * UTC. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchGetFrameMetricDataResult withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** ** List of instances which remained unprocessed. This will create a missing time step in the list of end times. *
* * @return List of instances which remained unprocessed. This will create a missing time step in the list of end * times. */ public java.util.Map* List of instances which remained unprocessed. This will create a missing time step in the list of end times. *
* * @param unprocessedEndTimes * List of instances which remained unprocessed. This will create a missing time step in the list of end * times. */ public void setUnprocessedEndTimes(java.util.Map* List of instances which remained unprocessed. This will create a missing time step in the list of end times. *
* * @param unprocessedEndTimes * List of instances which remained unprocessed. This will create a missing time step in the list of end * times. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchGetFrameMetricDataResult withUnprocessedEndTimes(java.util.Map