@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricValue extends Object implements Serializable, Cloneable, StructuredPojo
The value to be compared with the metric
.
Constructor and Description |
---|
MetricValue() |
Modifier and Type | Method and Description |
---|---|
MetricValue |
clone() |
boolean |
equals(Object obj) |
List<String> |
getCidrs()
If the
comparisonOperator calls for a set of CIDRs, use this to specify that set to be compared with
the metric . |
Long |
getCount()
If the
comparisonOperator calls for a numeric value, use this to specify that numeric value to be
compared with the metric . |
Double |
getNumber()
The numeral value of a metric.
|
List<Double> |
getNumbers()
The numeral values of a metric.
|
List<Integer> |
getPorts()
If the
comparisonOperator calls for a set of ports, use this to specify that set to be compared with
the metric . |
List<String> |
getStrings()
The string values of a metric.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCidrs(Collection<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(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(Double number)
The numeral value of a metric.
|
void |
setNumbers(Collection<Double> numbers)
The numeral values of a metric.
|
void |
setPorts(Collection<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(Collection<String> strings)
The string values of a metric.
|
String |
toString()
Returns a string representation of this object.
|
MetricValue |
withCidrs(Collection<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(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(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(Double number)
The numeral value of a metric.
|
MetricValue |
withNumbers(Collection<Double> numbers)
The numeral values of a metric.
|
MetricValue |
withNumbers(Double... numbers)
The numeral values of a metric.
|
MetricValue |
withPorts(Collection<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(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(Collection<String> strings)
The string values of a metric.
|
MetricValue |
withStrings(String... strings)
The string values of a metric.
|
public void setCount(Long count)
If the comparisonOperator
calls for a numeric value, use this to specify that numeric value to be
compared with the metric
.
count
- If the comparisonOperator
calls for a numeric value, use this to specify that numeric value
to be compared with the metric
.public Long getCount()
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 MetricValue withCount(Long count)
If the comparisonOperator
calls for a numeric value, use this to specify that numeric value to be
compared with the metric
.
count
- If the comparisonOperator
calls for a numeric value, use this to specify that numeric value
to be compared with the metric
.public List<String> getCidrs()
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(Collection<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(String... cidrs)
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
setCidrs(java.util.Collection)
or withCidrs(java.util.Collection)
if you want to override the
existing values.
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(Collection<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 List<Integer> getPorts()
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(Collection<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(Integer... ports)
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
setPorts(java.util.Collection)
or withPorts(java.util.Collection)
if you want to override the
existing values.
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(Collection<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 void setNumber(Double number)
The numeral value of a metric.
number
- The numeral value of a metric.public Double getNumber()
The numeral value of a metric.
public MetricValue withNumber(Double number)
The numeral value of a metric.
number
- The numeral value of a metric.public List<Double> getNumbers()
The numeral values of a metric.
public void setNumbers(Collection<Double> numbers)
The numeral values of a metric.
numbers
- The numeral values of a metric.public MetricValue withNumbers(Double... numbers)
The numeral values of a metric.
NOTE: This method appends the values to the existing list (if any). Use
setNumbers(java.util.Collection)
or withNumbers(java.util.Collection)
if you want to override
the existing values.
numbers
- The numeral values of a metric.public MetricValue withNumbers(Collection<Double> numbers)
The numeral values of a metric.
numbers
- The numeral values of a metric.public List<String> getStrings()
The string values of a metric.
public void setStrings(Collection<String> strings)
The string values of a metric.
strings
- The string values of a metric.public MetricValue withStrings(String... strings)
The string values of a metric.
NOTE: This method appends the values to the existing list (if any). Use
setStrings(java.util.Collection)
or withStrings(java.util.Collection)
if you want to override
the existing values.
strings
- The string values of a metric.public MetricValue withStrings(Collection<String> strings)
The string values of a metric.
strings
- The string values of a metric.public String toString()
toString
in class Object
Object.toString()
public MetricValue clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.