@Generated(value="software.amazon.awssdk:codegen") public final class Threshold extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Threshold.Builder,Threshold>
A Threshold
object that includes a comparison and ThresholdValue
to compare to. Used with
service level metrics.
Modifier and Type | Class and Description |
---|---|
static interface |
Threshold.Builder |
Modifier and Type | Method and Description |
---|---|
static Threshold.Builder |
builder() |
Comparison |
comparison()
The Threshold to use to compare service level metrics to.
|
String |
comparisonAsString()
The Threshold to use to compare service level metrics to.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Threshold.Builder> |
serializableBuilderClass() |
Double |
thresholdValue()
The value of the threshold to compare the metric to.
|
Threshold.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public Comparison comparison()
The Threshold to use to compare service level metrics to. Only "Less than" (LT) comparisons are supported.
If the service returns an enum value that is not available in the current SDK version, comparison
will
return Comparison.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
comparisonAsString()
.
Comparison
public String comparisonAsString()
The Threshold to use to compare service level metrics to. Only "Less than" (LT) comparisons are supported.
If the service returns an enum value that is not available in the current SDK version, comparison
will
return Comparison.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
comparisonAsString()
.
Comparison
public Double thresholdValue()
The value of the threshold to compare the metric to. Only "Less than" (LT) comparisons are supported.
public Threshold.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Threshold.Builder,Threshold>
public static Threshold.Builder builder()
public static Class<? extends Threshold.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.