@Generated(value="software.amazon.awssdk:codegen") public final class AnomalySubscription extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AnomalySubscription.Builder,AnomalySubscription>
The association between a monitor, threshold, and list of subscribers used to deliver notifications about anomalies
detected by a monitor that exceeds a threshold. The content consists of the detailed metadata and the current status
of the AnomalySubscription object.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AnomalySubscription.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
accountId()
Your unique account identifier.
|
static AnomalySubscription.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
AnomalySubscriptionFrequency |
frequency()
The frequency that anomaly reports are sent over email.
|
String |
frequencyAsString()
The frequency that anomaly reports are sent over email.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasMonitorArnList()
For responses, this returns true if the service returned a value for the MonitorArnList property.
|
boolean |
hasSubscribers()
For responses, this returns true if the service returned a value for the Subscribers property.
|
List<String> |
monitorArnList()
A list of cost anomaly monitors.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AnomalySubscription.Builder> |
serializableBuilderClass() |
List<Subscriber> |
subscribers()
A list of subscribers to notify.
|
String |
subscriptionArn()
The
AnomalySubscription Amazon Resource Name (ARN). |
String |
subscriptionName()
The name for the subscription.
|
Double |
threshold()
The dollar value that triggers a notification if the threshold is exceeded.
|
AnomalySubscription.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String subscriptionArn()
The AnomalySubscription Amazon Resource Name (ARN).
AnomalySubscription Amazon Resource Name (ARN).public final String accountId()
Your unique account identifier.
public final boolean hasMonitorArnList()
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<String> monitorArnList()
A list of cost anomaly monitors.
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 hasMonitorArnList() method.
public final boolean hasSubscribers()
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<Subscriber> subscribers()
A list of subscribers to notify.
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 hasSubscribers() method.
public final Double threshold()
The dollar value that triggers a notification if the threshold is exceeded.
public final AnomalySubscriptionFrequency frequency()
The frequency that anomaly reports are sent over email.
If the service returns an enum value that is not available in the current SDK version, frequency will
return AnomalySubscriptionFrequency.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from frequencyAsString().
AnomalySubscriptionFrequencypublic final String frequencyAsString()
The frequency that anomaly reports are sent over email.
If the service returns an enum value that is not available in the current SDK version, frequency will
return AnomalySubscriptionFrequency.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from frequencyAsString().
AnomalySubscriptionFrequencypublic final String subscriptionName()
The name for the subscription.
public AnomalySubscription.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AnomalySubscription.Builder,AnomalySubscription>public static AnomalySubscription.Builder builder()
public static Class<? extends AnomalySubscription.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.