@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 at which anomaly reports are sent over email.
|
String |
frequencyAsString()
The frequency at which anomaly reports are sent over email.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasMonitorArnList()
Returns true if the MonitorArnList property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasSubscribers()
Returns true if the Subscribers property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
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()
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.
You can use hasMonitorArnList() to see if a value was sent in this field.
public final boolean hasSubscribers()
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.
You can use hasSubscribers() to see if a value was sent in this field.
public final Double threshold()
The dollar value that triggers a notification if the threshold is exceeded.
public final AnomalySubscriptionFrequency frequency()
The frequency at which 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 at which 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 © 2021. All rights reserved.