@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AnomalySubscription extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
AnomalySubscription() |
Modifier and Type | Method and Description |
---|---|
AnomalySubscription |
clone() |
boolean |
equals(Object obj) |
String |
getAccountId()
Your unique account identifier.
|
String |
getFrequency()
The frequency that anomaly reports are sent over email.
|
List<String> |
getMonitorArnList()
A list of cost anomaly monitors.
|
List<Subscriber> |
getSubscribers()
A list of subscribers to notify.
|
String |
getSubscriptionArn()
The
AnomalySubscription Amazon Resource Name (ARN). |
String |
getSubscriptionName()
The name for the subscription.
|
Double |
getThreshold()
The dollar value that triggers a notification if the threshold is exceeded.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccountId(String accountId)
Your unique account identifier.
|
void |
setFrequency(String frequency)
The frequency that anomaly reports are sent over email.
|
void |
setMonitorArnList(Collection<String> monitorArnList)
A list of cost anomaly monitors.
|
void |
setSubscribers(Collection<Subscriber> subscribers)
A list of subscribers to notify.
|
void |
setSubscriptionArn(String subscriptionArn)
The
AnomalySubscription Amazon Resource Name (ARN). |
void |
setSubscriptionName(String subscriptionName)
The name for the subscription.
|
void |
setThreshold(Double threshold)
The dollar value that triggers a notification if the threshold is exceeded.
|
String |
toString()
Returns a string representation of this object.
|
AnomalySubscription |
withAccountId(String accountId)
Your unique account identifier.
|
AnomalySubscription |
withFrequency(AnomalySubscriptionFrequency frequency)
The frequency that anomaly reports are sent over email.
|
AnomalySubscription |
withFrequency(String frequency)
The frequency that anomaly reports are sent over email.
|
AnomalySubscription |
withMonitorArnList(Collection<String> monitorArnList)
A list of cost anomaly monitors.
|
AnomalySubscription |
withMonitorArnList(String... monitorArnList)
A list of cost anomaly monitors.
|
AnomalySubscription |
withSubscribers(Collection<Subscriber> subscribers)
A list of subscribers to notify.
|
AnomalySubscription |
withSubscribers(Subscriber... subscribers)
A list of subscribers to notify.
|
AnomalySubscription |
withSubscriptionArn(String subscriptionArn)
The
AnomalySubscription Amazon Resource Name (ARN). |
AnomalySubscription |
withSubscriptionName(String subscriptionName)
The name for the subscription.
|
AnomalySubscription |
withThreshold(Double threshold)
The dollar value that triggers a notification if the threshold is exceeded.
|
public void setSubscriptionArn(String subscriptionArn)
The AnomalySubscription
Amazon Resource Name (ARN).
subscriptionArn
- The AnomalySubscription
Amazon Resource Name (ARN).public String getSubscriptionArn()
The AnomalySubscription
Amazon Resource Name (ARN).
AnomalySubscription
Amazon Resource Name (ARN).public AnomalySubscription withSubscriptionArn(String subscriptionArn)
The AnomalySubscription
Amazon Resource Name (ARN).
subscriptionArn
- The AnomalySubscription
Amazon Resource Name (ARN).public void setAccountId(String accountId)
Your unique account identifier.
accountId
- Your unique account identifier.public String getAccountId()
Your unique account identifier.
public AnomalySubscription withAccountId(String accountId)
Your unique account identifier.
accountId
- Your unique account identifier.public List<String> getMonitorArnList()
A list of cost anomaly monitors.
public void setMonitorArnList(Collection<String> monitorArnList)
A list of cost anomaly monitors.
monitorArnList
- A list of cost anomaly monitors.public AnomalySubscription withMonitorArnList(String... monitorArnList)
A list of cost anomaly monitors.
NOTE: This method appends the values to the existing list (if any). Use
setMonitorArnList(java.util.Collection)
or withMonitorArnList(java.util.Collection)
if you want
to override the existing values.
monitorArnList
- A list of cost anomaly monitors.public AnomalySubscription withMonitorArnList(Collection<String> monitorArnList)
A list of cost anomaly monitors.
monitorArnList
- A list of cost anomaly monitors.public List<Subscriber> getSubscribers()
A list of subscribers to notify.
public void setSubscribers(Collection<Subscriber> subscribers)
A list of subscribers to notify.
subscribers
- A list of subscribers to notify.public AnomalySubscription withSubscribers(Subscriber... subscribers)
A list of subscribers to notify.
NOTE: This method appends the values to the existing list (if any). Use
setSubscribers(java.util.Collection)
or withSubscribers(java.util.Collection)
if you want to
override the existing values.
subscribers
- A list of subscribers to notify.public AnomalySubscription withSubscribers(Collection<Subscriber> subscribers)
A list of subscribers to notify.
subscribers
- A list of subscribers to notify.public void setThreshold(Double threshold)
The dollar value that triggers a notification if the threshold is exceeded.
threshold
- The dollar value that triggers a notification if the threshold is exceeded.public Double getThreshold()
The dollar value that triggers a notification if the threshold is exceeded.
public AnomalySubscription withThreshold(Double threshold)
The dollar value that triggers a notification if the threshold is exceeded.
threshold
- The dollar value that triggers a notification if the threshold is exceeded.public void setFrequency(String frequency)
The frequency that anomaly reports are sent over email.
frequency
- The frequency that anomaly reports are sent over email.AnomalySubscriptionFrequency
public String getFrequency()
The frequency that anomaly reports are sent over email.
AnomalySubscriptionFrequency
public AnomalySubscription withFrequency(String frequency)
The frequency that anomaly reports are sent over email.
frequency
- The frequency that anomaly reports are sent over email.AnomalySubscriptionFrequency
public AnomalySubscription withFrequency(AnomalySubscriptionFrequency frequency)
The frequency that anomaly reports are sent over email.
frequency
- The frequency that anomaly reports are sent over email.AnomalySubscriptionFrequency
public void setSubscriptionName(String subscriptionName)
The name for the subscription.
subscriptionName
- The name for the subscription.public String getSubscriptionName()
The name for the subscription.
public AnomalySubscription withSubscriptionName(String subscriptionName)
The name for the subscription.
subscriptionName
- The name for the subscription.public String toString()
toString
in class Object
Object.toString()
public AnomalySubscription clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.