public class MetricValue
extends java.lang.Object
implements java.io.Serializable
The value to be compared with the metric
.
Constructor and Description |
---|
MetricValue() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getCidrs()
If the
comparisonOperator calls for a set of CIDRs, use this
to specify that set to be compared with the metric . |
java.lang.Long |
getCount()
If the
comparisonOperator calls for a numeric value, use
this to specify that numeric value to be compared with the
metric . |
java.lang.Double |
getNumber()
The numeral value of a metric.
|
java.util.List<java.lang.Double> |
getNumbers()
The numeral values of a metric.
|
java.util.List<java.lang.Integer> |
getPorts()
If the
comparisonOperator calls for a set of ports, use this
to specify that set to be compared with the metric . |
java.util.List<java.lang.String> |
getStrings()
The string values of a metric.
|
int |
hashCode() |
void |
setCidrs(java.util.Collection<java.lang.String> cidrs)
If the
comparisonOperator calls for a set of CIDRs, use this
to specify that set to be compared with the metric . |
void |
setCount(java.lang.Long count)
If the
comparisonOperator calls for a numeric value, use
this to specify that numeric value to be compared with the
metric . |
void |
setNumber(java.lang.Double number)
The numeral value of a metric.
|
void |
setNumbers(java.util.Collection<java.lang.Double> numbers)
The numeral values of a metric.
|
void |
setPorts(java.util.Collection<java.lang.Integer> ports)
If the
comparisonOperator calls for a set of ports, use this
to specify that set to be compared with the metric . |
void |
setStrings(java.util.Collection<java.lang.String> strings)
The string values of a metric.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MetricValue |
withCidrs(java.util.Collection<java.lang.String> cidrs)
If the
comparisonOperator calls for a set of CIDRs, use this
to specify that set to be compared with the metric . |
MetricValue |
withCidrs(java.lang.String... cidrs)
If the
comparisonOperator calls for a set of CIDRs, use this
to specify that set to be compared with the metric . |
MetricValue |
withCount(java.lang.Long count)
If the
comparisonOperator calls for a numeric value, use
this to specify that numeric value to be compared with the
metric . |
MetricValue |
withNumber(java.lang.Double number)
The numeral value of a metric.
|
MetricValue |
withNumbers(java.util.Collection<java.lang.Double> numbers)
The numeral values of a metric.
|
MetricValue |
withNumbers(java.lang.Double... numbers)
The numeral values of a metric.
|
MetricValue |
withPorts(java.util.Collection<java.lang.Integer> ports)
If the
comparisonOperator calls for a set of ports, use this
to specify that set to be compared with the metric . |
MetricValue |
withPorts(java.lang.Integer... ports)
If the
comparisonOperator calls for a set of ports, use this
to specify that set to be compared with the metric . |
MetricValue |
withStrings(java.util.Collection<java.lang.String> strings)
The string values of a metric.
|
MetricValue |
withStrings(java.lang.String... strings)
The string values of a metric.
|
public java.lang.Long getCount()
If the comparisonOperator
calls for a numeric value, use
this to specify that numeric value to be compared with the
metric
.
Constraints:
Range: 0 -
If the comparisonOperator
calls for a numeric value,
use this to specify that numeric value to be compared with the
metric
.
public void setCount(java.lang.Long count)
If the comparisonOperator
calls for a numeric value, use
this to specify that numeric value to be compared with the
metric
.
Constraints:
Range: 0 -
count
-
If the comparisonOperator
calls for a numeric
value, use this to specify that numeric value to be compared
with the metric
.
public MetricValue withCount(java.lang.Long count)
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 -
count
-
If the comparisonOperator
calls for a numeric
value, use this to specify that numeric value to be compared
with the metric
.
public java.util.List<java.lang.String> getCidrs()
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
.
public void setCidrs(java.util.Collection<java.lang.String> cidrs)
If the comparisonOperator
calls for a set of CIDRs, use this
to specify that set to be compared with the metric
.
cidrs
-
If the comparisonOperator
calls for a set of
CIDRs, use this to specify that set to be compared with the
metric
.
public MetricValue withCidrs(java.lang.String... cidrs)
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.
cidrs
-
If the comparisonOperator
calls for a set of
CIDRs, use this to specify that set to be compared with the
metric
.
public MetricValue withCidrs(java.util.Collection<java.lang.String> cidrs)
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.
cidrs
-
If the comparisonOperator
calls for a set of
CIDRs, use this to specify that set to be compared with the
metric
.
public java.util.List<java.lang.Integer> getPorts()
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
.
public void setPorts(java.util.Collection<java.lang.Integer> ports)
If the comparisonOperator
calls for a set of ports, use this
to specify that set to be compared with the metric
.
ports
-
If the comparisonOperator
calls for a set of
ports, use this to specify that set to be compared with the
metric
.
public MetricValue withPorts(java.lang.Integer... ports)
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.
ports
-
If the comparisonOperator
calls for a set of
ports, use this to specify that set to be compared with the
metric
.
public MetricValue withPorts(java.util.Collection<java.lang.Integer> ports)
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.
ports
-
If the comparisonOperator
calls for a set of
ports, use this to specify that set to be compared with the
metric
.
public java.lang.Double getNumber()
The numeral value of a metric.
The numeral value of a metric.
public void setNumber(java.lang.Double number)
The numeral value of a metric.
number
- The numeral value of a metric.
public MetricValue withNumber(java.lang.Double number)
The numeral value of a metric.
Returns a reference to this object so that method calls can be chained together.
number
- The numeral value of a metric.
public java.util.List<java.lang.Double> getNumbers()
The numeral values of a metric.
The numeral values of a metric.
public void setNumbers(java.util.Collection<java.lang.Double> numbers)
The numeral values of a metric.
numbers
- The numeral values of a metric.
public MetricValue withNumbers(java.lang.Double... numbers)
The numeral values of a metric.
Returns a reference to this object so that method calls can be chained together.
numbers
- The numeral values of a metric.
public MetricValue withNumbers(java.util.Collection<java.lang.Double> numbers)
The numeral values of a metric.
Returns a reference to this object so that method calls can be chained together.
numbers
- The numeral values of a metric.
public java.util.List<java.lang.String> getStrings()
The string values of a metric.
The string values of a metric.
public void setStrings(java.util.Collection<java.lang.String> strings)
The string values of a metric.
strings
- The string values of a metric.
public MetricValue withStrings(java.lang.String... strings)
The string values of a metric.
Returns a reference to this object so that method calls can be chained together.
strings
- The string values of a metric.
public MetricValue withStrings(java.util.Collection<java.lang.String> strings)
The string values of a metric.
Returns a reference to this object so that method calls can be chained together.
strings
- The string values of a metric.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.