@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. |
List<Integer> |
getPorts()
If the
comparisonOperator calls for a set of ports, use this to specify that set to be compared with
the 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 |
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. |
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 |
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. |
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 String toString()
toString in class ObjectObject.toString()public MetricValue clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.