/* * Copyright 2010-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.iot.model; import java.io.Serializable; /** *
* The value to be compared with the metric
.
*
* If the comparisonOperator
calls for a numeric value, use
* this to specify that numeric value to be compared with the
* metric
.
*
* Constraints:
* Range: 0 -
*/
private Long count;
/**
*
* If the comparisonOperator
calls for a set of CIDRs, use this
* to specify that set to be compared with the metric
.
*
* If the comparisonOperator
calls for a set of ports, use this
* to specify that set to be compared with the metric
.
*
* The numeral value of a metric. *
*/ private Double number; /** ** The numeral values of a metric. *
*/ private java.util.List* The string values of a metric. *
*/ private java.util.List
* If the comparisonOperator
calls for a numeric value, use
* this to specify that numeric value to be compared with the
* metric
.
*
* Constraints:
* Range: 0 -
*
* @return
* If the comparisonOperator
calls for a numeric value,
* use this to specify that numeric value to be compared with the
* metric
.
*
* If the comparisonOperator
calls for a numeric value, use
* this to specify that numeric value to be compared with the
* metric
.
*
* Constraints:
* Range: 0 -
*
* @param count
* If the comparisonOperator
calls for a numeric
* value, use this to specify that numeric value to be compared
* with the metric
.
*
* If the comparisonOperator
calls for a numeric value, use
* this to specify that numeric value to be compared with the
* metric
.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Range: 0 -
*
* @param count
* If the comparisonOperator
calls for a numeric
* value, use this to specify that numeric value to be compared
* with the metric
.
*
* If the comparisonOperator
calls for a set of CIDRs, use this
* to specify that set to be compared with the metric
.
*
* If the comparisonOperator
calls for a set of CIDRs,
* use this to specify that set to be compared with the
* metric
.
*
* If the comparisonOperator
calls for a set of CIDRs, use this
* to specify that set to be compared with the metric
.
*
* If the comparisonOperator
calls for a set of
* CIDRs, use this to specify that set to be compared with the
* metric
.
*
* If the comparisonOperator
calls for a set of CIDRs, use this
* to specify that set to be compared with the metric
.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param cidrs
* If the comparisonOperator
calls for a set of
* CIDRs, use this to specify that set to be compared with the
* metric
.
*
* If the comparisonOperator
calls for a set of CIDRs, use this
* to specify that set to be compared with the metric
.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param cidrs
* If the comparisonOperator
calls for a set of
* CIDRs, use this to specify that set to be compared with the
* metric
.
*
* If the comparisonOperator
calls for a set of ports, use this
* to specify that set to be compared with the metric
.
*
* If the comparisonOperator
calls for a set of ports,
* use this to specify that set to be compared with the
* metric
.
*
* If the comparisonOperator
calls for a set of ports, use this
* to specify that set to be compared with the metric
.
*
* If the comparisonOperator
calls for a set of
* ports, use this to specify that set to be compared with the
* metric
.
*
* If the comparisonOperator
calls for a set of ports, use this
* to specify that set to be compared with the metric
.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param ports
* If the comparisonOperator
calls for a set of
* ports, use this to specify that set to be compared with the
* metric
.
*
* If the comparisonOperator
calls for a set of ports, use this
* to specify that set to be compared with the metric
.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param ports
* If the comparisonOperator
calls for a set of
* ports, use this to specify that set to be compared with the
* metric
.
*
* The numeral value of a metric. *
* * @return* The numeral value of a metric. *
*/ public Double getNumber() { return number; } /** ** The numeral value of a metric. *
* * @param number* The numeral value of a metric. *
*/ public void setNumber(Double number) { this.number = number; } /** ** The numeral value of a metric. *
** Returns a reference to this object so that method calls can be chained * together. * * @param number
* The numeral value of a metric. *
* @return A reference to this updated object so that method calls can be * chained together. */ public MetricValue withNumber(Double number) { this.number = number; return this; } /** ** The numeral values of a metric. *
* * @return* The numeral values of a metric. *
*/ public java.util.List* The numeral values of a metric. *
* * @param numbers* The numeral values of a metric. *
*/ public void setNumbers(java.util.Collection* The numeral values of a metric. *
** Returns a reference to this object so that method calls can be chained * together. * * @param numbers
* The numeral values of a metric. *
* @return A reference to this updated object so that method calls can be * chained together. */ public MetricValue withNumbers(Double... numbers) { if (getNumbers() == null) { this.numbers = new java.util.ArrayList* The numeral values of a metric. *
** Returns a reference to this object so that method calls can be chained * together. * * @param numbers
* The numeral values of a metric. *
* @return A reference to this updated object so that method calls can be * chained together. */ public MetricValue withNumbers(java.util.Collection* The string values of a metric. *
* * @return* The string values of a metric. *
*/ public java.util.List* The string values of a metric. *
* * @param strings* The string values of a metric. *
*/ public void setStrings(java.util.Collection* The string values of a metric. *
** Returns a reference to this object so that method calls can be chained * together. * * @param strings
* The string values of a metric. *
* @return A reference to this updated object so that method calls can be * chained together. */ public MetricValue withStrings(String... strings) { if (getStrings() == null) { this.strings = new java.util.ArrayList* The string values of a metric. *
** Returns a reference to this object so that method calls can be chained * together. * * @param strings
* The string values of a metric. *
* @return A reference to this updated object so that method calls can be * chained together. */ public MetricValue withStrings(java.util.Collection