/* * 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.lookoutmetrics.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Details about a metric. A metric is an aggregation of the values of a measure for a dimension value, such as * availability in the us-east-1 Region. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TimeSeries implements Serializable, Cloneable, StructuredPojo { /** ** The ID of the metric. *
*/ private String timeSeriesId; /** ** The dimensions of the metric. *
*/ private java.util.List* The values for the metric. *
*/ private java.util.List* The ID of the metric. *
* * @param timeSeriesId * The ID of the metric. */ public void setTimeSeriesId(String timeSeriesId) { this.timeSeriesId = timeSeriesId; } /** ** The ID of the metric. *
* * @return The ID of the metric. */ public String getTimeSeriesId() { return this.timeSeriesId; } /** ** The ID of the metric. *
* * @param timeSeriesId * The ID of the metric. * @return Returns a reference to this object so that method calls can be chained together. */ public TimeSeries withTimeSeriesId(String timeSeriesId) { setTimeSeriesId(timeSeriesId); return this; } /** ** The dimensions of the metric. *
* * @return The dimensions of the metric. */ public java.util.List* The dimensions of the metric. *
* * @param dimensionList * The dimensions of the metric. */ public void setDimensionList(java.util.Collection* The dimensions of the metric. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDimensionList(java.util.Collection)} or {@link #withDimensionList(java.util.Collection)} if you want * to override the existing values. *
* * @param dimensionList * The dimensions of the metric. * @return Returns a reference to this object so that method calls can be chained together. */ public TimeSeries withDimensionList(DimensionNameValue... dimensionList) { if (this.dimensionList == null) { setDimensionList(new java.util.ArrayList* The dimensions of the metric. *
* * @param dimensionList * The dimensions of the metric. * @return Returns a reference to this object so that method calls can be chained together. */ public TimeSeries withDimensionList(java.util.Collection* The values for the metric. *
* * @return The values for the metric. */ public java.util.List* The values for the metric. *
* * @param metricValueList * The values for the metric. */ public void setMetricValueList(java.util.Collection* The values for the metric. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setMetricValueList(java.util.Collection)} or {@link #withMetricValueList(java.util.Collection)} if you * want to override the existing values. *
* * @param metricValueList * The values for the metric. * @return Returns a reference to this object so that method calls can be chained together. */ public TimeSeries withMetricValueList(Double... metricValueList) { if (this.metricValueList == null) { setMetricValueList(new java.util.ArrayList* The values for the metric. *
* * @param metricValueList * The values for the metric. * @return Returns a reference to this object so that method calls can be chained together. */ public TimeSeries withMetricValueList(java.util.Collection