/* * 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.iot.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* 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
.
*
* 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
.
*
comparisonOperator
calls for a numeric value, use this to specify that numeric value
* to be compared with the metric
.
*/
public void setCount(Long count) {
this.count = count;
}
/**
*
* If the comparisonOperator
calls for a numeric value, use this to specify that numeric value to be
* compared with the metric
.
*
comparisonOperator
calls for a numeric value, use this to specify that numeric value
* to be compared with the metric
.
*/
public Long getCount() {
return this.count;
}
/**
*
* If the comparisonOperator
calls for a numeric value, use this to specify that numeric value to be
* compared with the metric
.
*
comparisonOperator
calls for a numeric value, use this to specify that numeric value
* to be compared with the metric
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MetricValue withCount(Long count) {
setCount(count);
return this;
}
/**
*
* If the comparisonOperator
calls for a set of CIDRs, use this to specify that set to be compared with
* the metric
.
*
comparisonOperator
calls for a set of CIDRs, use this to specify that set to be
* compared with the metric
.
*/
public java.util.List
* If the comparisonOperator
calls for a set of CIDRs, use this to specify that set to be compared with
* the metric
.
*
comparisonOperator
calls for a set of CIDRs, use this to specify that set to be
* compared with the metric
.
*/
public void setCidrs(java.util.Collection
* If the comparisonOperator
calls for a set of CIDRs, use this to specify that set to be compared with
* the metric
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setCidrs(java.util.Collection)} or {@link #withCidrs(java.util.Collection)} if you want to override the * existing values. *
* * @param cidrs * If thecomparisonOperator
calls for a set of CIDRs, use this to specify that set to be
* compared with the metric
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MetricValue withCidrs(String... cidrs) {
if (this.cidrs == null) {
setCidrs(new java.util.ArrayList
* If the comparisonOperator
calls for a set of CIDRs, use this to specify that set to be compared with
* the metric
.
*
comparisonOperator
calls for a set of CIDRs, use this to specify that set to be
* compared with the metric
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MetricValue withCidrs(java.util.Collection
* If the comparisonOperator
calls for a set of ports, use this to specify that set to be compared with
* the metric
.
*
comparisonOperator
calls for a set of ports, use this to specify that set to be
* compared with the metric
.
*/
public java.util.List
* If the comparisonOperator
calls for a set of ports, use this to specify that set to be compared with
* the metric
.
*
comparisonOperator
calls for a set of ports, use this to specify that set to be
* compared with the metric
.
*/
public void setPorts(java.util.Collection
* If the comparisonOperator
calls for a set of ports, use this to specify that set to be compared with
* the metric
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setPorts(java.util.Collection)} or {@link #withPorts(java.util.Collection)} if you want to override the * existing values. *
* * @param ports * If thecomparisonOperator
calls for a set of ports, use this to specify that set to be
* compared with the metric
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MetricValue withPorts(Integer... ports) {
if (this.ports == null) {
setPorts(new java.util.ArrayList
* If the comparisonOperator
calls for a set of ports, use this to specify that set to be compared with
* the metric
.
*
comparisonOperator
calls for a set of ports, use this to specify that set to be
* compared with the metric
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MetricValue withPorts(java.util.Collection* 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. *
* * @return The numeral value of a metric. */ public Double getNumber() { return this.number; } /** ** The numeral value of a metric. *
* * @param number * The numeral value of a metric. * @return Returns a reference to this object so that method calls can be chained together. */ public MetricValue withNumber(Double number) { setNumber(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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setNumbers(java.util.Collection)} or {@link #withNumbers(java.util.Collection)} if you want to override * the existing values. *
* * @param numbers * The numeral values of a metric. * @return Returns a reference to this object so that method calls can be chained together. */ public MetricValue withNumbers(Double... numbers) { if (this.numbers == null) { setNumbers(new java.util.ArrayList* The numeral values of a metric. *
* * @param numbers * The numeral values of a metric. * @return Returns a reference to this 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setStrings(java.util.Collection)} or {@link #withStrings(java.util.Collection)} if you want to override * the existing values. *
* * @param strings * The string values of a metric. * @return Returns a reference to this object so that method calls can be chained together. */ public MetricValue withStrings(String... strings) { if (this.strings == null) { setStrings(new java.util.ArrayList* The string values of a metric. *
* * @param strings * The string values of a metric. * @return Returns a reference to this object so that method calls can be chained together. */ public MetricValue withStrings(java.util.Collection