public class Threshold
extends java.lang.Object
implements java.io.Serializable
Contains information about the threshold for service level metrics.
| Constructor and Description |
|---|
Threshold() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getComparison()
The type of comparison.
|
java.lang.Double |
getThresholdValue()
The threshold value to compare.
|
int |
hashCode() |
void |
setComparison(Comparison comparison)
The type of comparison.
|
void |
setComparison(java.lang.String comparison)
The type of comparison.
|
void |
setThresholdValue(java.lang.Double thresholdValue)
The threshold value to compare.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Threshold |
withComparison(Comparison comparison)
The type of comparison.
|
Threshold |
withComparison(java.lang.String comparison)
The type of comparison.
|
Threshold |
withThresholdValue(java.lang.Double thresholdValue)
The threshold value to compare.
|
public java.lang.String getComparison()
The type of comparison. Only "less than" (LT) comparisons are supported.
Constraints:
Allowed Values: LT
The type of comparison. Only "less than" (LT) comparisons are supported.
Comparisonpublic void setComparison(java.lang.String comparison)
The type of comparison. Only "less than" (LT) comparisons are supported.
Constraints:
Allowed Values: LT
comparison - The type of comparison. Only "less than" (LT) comparisons are supported.
Comparisonpublic Threshold withComparison(java.lang.String comparison)
The type of comparison. Only "less than" (LT) comparisons are supported.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: LT
comparison - The type of comparison. Only "less than" (LT) comparisons are supported.
Comparisonpublic void setComparison(Comparison comparison)
The type of comparison. Only "less than" (LT) comparisons are supported.
Constraints:
Allowed Values: LT
comparison - The type of comparison. Only "less than" (LT) comparisons are supported.
Comparisonpublic Threshold withComparison(Comparison comparison)
The type of comparison. Only "less than" (LT) comparisons are supported.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: LT
comparison - The type of comparison. Only "less than" (LT) comparisons are supported.
Comparisonpublic java.lang.Double getThresholdValue()
The threshold value to compare.
The threshold value to compare.
public void setThresholdValue(java.lang.Double thresholdValue)
The threshold value to compare.
thresholdValue - The threshold value to compare.
public Threshold withThresholdValue(java.lang.Double thresholdValue)
The threshold value to compare.
Returns a reference to this object so that method calls can be chained together.
thresholdValue - The threshold value to compare.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.