@Generated(value="software.amazon.awssdk:codegen") public final class Anomaly extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Anomaly.Builder,Anomaly>
An unusual cost pattern. This consists of the detailed metadata and the current status of the anomaly object.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Anomaly.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
anomalyEndDate()
The last day the anomaly is detected.
|
String |
anomalyId()
The unique identifier for the anomaly.
|
AnomalyScore |
anomalyScore()
The latest and maximum score for the anomaly.
|
String |
anomalyStartDate()
The first day the anomaly is detected.
|
static Anomaly.Builder |
builder() |
String |
dimensionValue()
The dimension for the anomaly (for example, an Amazon Web Service in a service monitor).
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
AnomalyFeedbackType |
feedback()
The feedback value.
|
String |
feedbackAsString()
The feedback value.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasRootCauses()
For responses, this returns true if the service returned a value for the RootCauses property.
|
Impact |
impact()
The dollar impact for the anomaly.
|
String |
monitorArn()
The Amazon Resource Name (ARN) for the cost monitor that generated this anomaly.
|
List<RootCause> |
rootCauses()
The list of identified root causes for the anomaly.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Anomaly.Builder> |
serializableBuilderClass() |
Anomaly.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String anomalyId()
The unique identifier for the anomaly.
public final String anomalyStartDate()
The first day the anomaly is detected.
public final String anomalyEndDate()
The last day the anomaly is detected.
public final String dimensionValue()
The dimension for the anomaly (for example, an Amazon Web Service in a service monitor).
public final boolean hasRootCauses()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<RootCause> rootCauses()
The list of identified root causes for the anomaly.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasRootCauses() method.
public final AnomalyScore anomalyScore()
The latest and maximum score for the anomaly.
public final Impact impact()
The dollar impact for the anomaly.
public final String monitorArn()
The Amazon Resource Name (ARN) for the cost monitor that generated this anomaly.
public final AnomalyFeedbackType feedback()
The feedback value.
If the service returns an enum value that is not available in the current SDK version, feedback will
return AnomalyFeedbackType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from feedbackAsString().
AnomalyFeedbackTypepublic final String feedbackAsString()
The feedback value.
If the service returns an enum value that is not available in the current SDK version, feedback will
return AnomalyFeedbackType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from feedbackAsString().
AnomalyFeedbackTypepublic Anomaly.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Anomaly.Builder,Anomaly>public static Anomaly.Builder builder()
public static Class<? extends Anomaly.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.