@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Threshold extends Object implements Serializable, Cloneable, StructuredPojo
A Threshold
object that includes a comparison and ThresholdValue
to compare to. Used with
service level metrics.
Constructor and Description |
---|
Threshold() |
Modifier and Type | Method and Description |
---|---|
Threshold |
clone() |
boolean |
equals(Object obj) |
String |
getComparison()
The Threshold to use to compare service level metrics to.
|
Double |
getThresholdValue()
The value of the threshold to compare the metric to.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setComparison(String comparison)
The Threshold to use to compare service level metrics to.
|
void |
setThresholdValue(Double thresholdValue)
The value of the threshold to compare the metric to.
|
String |
toString()
Returns a string representation of this object.
|
Threshold |
withComparison(Comparison comparison)
The Threshold to use to compare service level metrics to.
|
Threshold |
withComparison(String comparison)
The Threshold to use to compare service level metrics to.
|
Threshold |
withThresholdValue(Double thresholdValue)
The value of the threshold to compare the metric to.
|
public void setComparison(String comparison)
The Threshold to use to compare service level metrics to. Only "Less than" (LT) comparisons are supported.
comparison
- The Threshold to use to compare service level metrics to. Only "Less than" (LT) comparisons are supported.Comparison
public String getComparison()
The Threshold to use to compare service level metrics to. Only "Less than" (LT) comparisons are supported.
Comparison
public Threshold withComparison(String comparison)
The Threshold to use to compare service level metrics to. Only "Less than" (LT) comparisons are supported.
comparison
- The Threshold to use to compare service level metrics to. Only "Less than" (LT) comparisons are supported.Comparison
public Threshold withComparison(Comparison comparison)
The Threshold to use to compare service level metrics to. Only "Less than" (LT) comparisons are supported.
comparison
- The Threshold to use to compare service level metrics to. Only "Less than" (LT) comparisons are supported.Comparison
public void setThresholdValue(Double thresholdValue)
The value of the threshold to compare the metric to. Only "Less than" (LT) comparisons are supported.
thresholdValue
- The value of the threshold to compare the metric to. Only "Less than" (LT) comparisons are supported.public Double getThresholdValue()
The value of the threshold to compare the metric to. Only "Less than" (LT) comparisons are supported.
public Threshold withThresholdValue(Double thresholdValue)
The value of the threshold to compare the metric to. Only "Less than" (LT) comparisons are supported.
thresholdValue
- The value of the threshold to compare the metric to. Only "Less than" (LT) comparisons are supported.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.