/* * 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; import com.amazonaws.AmazonWebServiceRequest; /** *
* The structure representing the BatchGetFrameMetricDataRequest. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class BatchGetFrameMetricDataRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** 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; /** ** The details of the metrics that are used 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
* The duration of the frame metrics used to return the time series values. Specify using the ISO 8601 format. The
* maximum period duration is one day (PT24H
or P1D
).
*
* The name of the profiling group associated with the the frame metrics used to return the time series values. *
*/ private String profilingGroupName; /** ** The start time of the time period for the frame metrics used to return the 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; /** ** The requested resolution of time steps for the returned time series of values. If the requested target resolution * is not available due to data not being retained we provide a best effort result by falling back to the most * granular available resolution after the target resolution. There are 3 valid values. *
*
* P1D
— 1 day
*
* PT1H
— 1 hour
*
* PT5M
— 5 minutes
*
* 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 BatchGetFrameMetricDataRequest withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** ** The details of the metrics that are used 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 The details of the metrics that are used 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* The details of the metrics that are used 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 frameMetrics * The details of the metrics that are used 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 setFrameMetrics(java.util.Collection* The details of the metrics that are used 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 #setFrameMetrics(java.util.Collection)} or {@link #withFrameMetrics(java.util.Collection)} if you want to * override the existing values. *
* * @param frameMetrics * The details of the metrics that are used 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 BatchGetFrameMetricDataRequest withFrameMetrics(FrameMetric... frameMetrics) { if (this.frameMetrics == null) { setFrameMetrics(new java.util.ArrayList* The details of the metrics that are used 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 frameMetrics * The details of the metrics that are used 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 BatchGetFrameMetricDataRequest withFrameMetrics(java.util.Collection
* The duration of the frame metrics used to return the time series values. Specify using the ISO 8601 format. The
* maximum period duration is one day (PT24H
or P1D
).
*
PT24H
or P1D
).
*/
public void setPeriod(String period) {
this.period = period;
}
/**
*
* The duration of the frame metrics used to return the time series values. Specify using the ISO 8601 format. The
* maximum period duration is one day (PT24H
or P1D
).
*
PT24H
or P1D
).
*/
public String getPeriod() {
return this.period;
}
/**
*
* The duration of the frame metrics used to return the time series values. Specify using the ISO 8601 format. The
* maximum period duration is one day (PT24H
or P1D
).
*
PT24H
or P1D
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BatchGetFrameMetricDataRequest withPeriod(String period) {
setPeriod(period);
return this;
}
/**
* * The name of the profiling group associated with the the frame metrics used to return the time series values. *
* * @param profilingGroupName * The name of the profiling group associated with the the frame metrics used to return the time series * values. */ public void setProfilingGroupName(String profilingGroupName) { this.profilingGroupName = profilingGroupName; } /** ** The name of the profiling group associated with the the frame metrics used to return the time series values. *
* * @return The name of the profiling group associated with the the frame metrics used to return the time series * values. */ public String getProfilingGroupName() { return this.profilingGroupName; } /** ** The name of the profiling group associated with the the frame metrics used to return the time series values. *
* * @param profilingGroupName * The name of the profiling group associated with the the frame metrics used to return the time series * values. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchGetFrameMetricDataRequest withProfilingGroupName(String profilingGroupName) { setProfilingGroupName(profilingGroupName); return this; } /** ** The start time of the time period for the frame metrics used to return the 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 frame metrics used to return the 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 frame metrics used to return the 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 frame metrics used to return the 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 frame metrics used to return the 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 frame metrics used to return the 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 BatchGetFrameMetricDataRequest withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** ** The requested resolution of time steps for the returned time series of values. If the requested target resolution * is not available due to data not being retained we provide a best effort result by falling back to the most * granular available resolution after the target resolution. There are 3 valid values. *
*
* P1D
— 1 day
*
* PT1H
— 1 hour
*
* PT5M
— 5 minutes
*
* P1D
— 1 day
*
* PT1H
— 1 hour
*
* PT5M
— 5 minutes
*
* The requested resolution of time steps for the returned time series of values. If the requested target resolution * is not available due to data not being retained we provide a best effort result by falling back to the most * granular available resolution after the target resolution. There are 3 valid values. *
*
* P1D
— 1 day
*
* PT1H
— 1 hour
*
* PT5M
— 5 minutes
*
* P1D
— 1 day
*
* PT1H
— 1 hour
*
* PT5M
— 5 minutes
*
* The requested resolution of time steps for the returned time series of values. If the requested target resolution * is not available due to data not being retained we provide a best effort result by falling back to the most * granular available resolution after the target resolution. There are 3 valid values. *
*
* P1D
— 1 day
*
* PT1H
— 1 hour
*
* PT5M
— 5 minutes
*
* P1D
— 1 day
*
* PT1H
— 1 hour
*
* PT5M
— 5 minutes
*
* The requested resolution of time steps for the returned time series of values. If the requested target resolution * is not available due to data not being retained we provide a best effort result by falling back to the most * granular available resolution after the target resolution. There are 3 valid values. *
*
* P1D
— 1 day
*
* PT1H
— 1 hour
*
* PT5M
— 5 minutes
*
* P1D
— 1 day
*
* PT1H
— 1 hour
*
* PT5M
— 5 minutes
*