@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricDimension extends Object implements Serializable, Cloneable, StructuredPojo
Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.
Constructor and Description |
---|
MetricDimension() |
Modifier and Type | Method and Description |
---|---|
MetricDimension |
clone() |
boolean |
equals(Object obj) |
String |
getComparisonOperator()
The operator to use when comparing metric values.
|
Double |
getValue()
The value to compare.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setComparisonOperator(String comparisonOperator)
The operator to use when comparing metric values.
|
void |
setValue(Double value)
The value to compare.
|
String |
toString()
Returns a string representation of this object.
|
MetricDimension |
withComparisonOperator(String comparisonOperator)
The operator to use when comparing metric values.
|
MetricDimension |
withValue(Double value)
The value to compare.
|
public void setComparisonOperator(String comparisonOperator)
The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.
comparisonOperator
- The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN,
GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.public String getComparisonOperator()
The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.
public MetricDimension withComparisonOperator(String comparisonOperator)
The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.
comparisonOperator
- The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN,
GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.public void setValue(Double value)
The value to compare.
value
- The value to compare.public Double getValue()
The value to compare.
public MetricDimension withValue(Double value)
The value to compare.
value
- The value to compare.public String toString()
toString
in class Object
Object.toString()
public MetricDimension clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.