/* * Copyright 2010-2019 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.cloudwatch.model; import java.io.Serializable; /** *
* The output for the GetMetricStatistics action. *
*/ public class GetMetricStatisticsResult implements Serializable { /** ** A label describing the specified metric. *
*/ private String label; /** ** The datapoints for the specified metric. *
*/ private java.util.List* A label describing the specified metric. *
* * @return* A label describing the specified metric. *
*/ public String getLabel() { return label; } /** ** A label describing the specified metric. *
* * @param label* A label describing the specified metric. *
*/ public void setLabel(String label) { this.label = label; } /** ** A label describing the specified metric. *
** Returns a reference to this object so that method calls can be chained * together. * * @param label
* A label describing the specified metric. *
* @return A reference to this updated object so that method calls can be * chained together. */ public GetMetricStatisticsResult withLabel(String label) { this.label = label; return this; } /** ** The datapoints for the specified metric. *
* * @return* The datapoints for the specified metric. *
*/ public java.util.List* The datapoints for the specified metric. *
* * @param datapoints* The datapoints for the specified metric. *
*/ public void setDatapoints(java.util.Collection* The datapoints for the specified metric. *
** Returns a reference to this object so that method calls can be chained * together. * * @param datapoints
* The datapoints for the specified metric. *
* @return A reference to this updated object so that method calls can be * chained together. */ public GetMetricStatisticsResult withDatapoints(Datapoint... datapoints) { if (getDatapoints() == null) { this.datapoints = new java.util.ArrayList* The datapoints for the specified metric. *
** Returns a reference to this object so that method calls can be chained * together. * * @param datapoints
* The datapoints for the specified metric. *
* @return A reference to this updated object so that method calls can be * chained together. */ public GetMetricStatisticsResult withDatapoints(java.util.Collection