@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Notification extends Object implements Serializable, Cloneable, StructuredPojo
A notification associated with a budget. A budget can have up to five notifications.
Each notification must have at least one subscriber. A notification can have one SNS subscriber and up to ten email subscribers, for a total of 11 subscribers.
For example, if you have a budget for 200 dollars and you want to be notified when you go over 160 dollars, create a notification with the following parameters:
A notificationType of ACTUAL
A comparisonOperator of GREATER_THAN
A notification threshold of 80
| Constructor and Description |
|---|
Notification() |
| Modifier and Type | Method and Description |
|---|---|
Notification |
clone() |
boolean |
equals(Object obj) |
String |
getComparisonOperator()
The comparison used for this notification.
|
String |
getNotificationType()
Whether the notification is for how much you have spent (
ACTUAL) or for how much you are forecasted
to spend (FORECASTED). |
Double |
getThreshold()
The threshold associated with a notification.
|
String |
getThresholdType()
The type of threshold for a notification.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setComparisonOperator(ComparisonOperator comparisonOperator)
The comparison used for this notification.
|
void |
setComparisonOperator(String comparisonOperator)
The comparison used for this notification.
|
void |
setNotificationType(NotificationType notificationType)
Whether the notification is for how much you have spent (
ACTUAL) or for how much you are forecasted
to spend (FORECASTED). |
void |
setNotificationType(String notificationType)
Whether the notification is for how much you have spent (
ACTUAL) or for how much you are forecasted
to spend (FORECASTED). |
void |
setThreshold(Double threshold)
The threshold associated with a notification.
|
void |
setThresholdType(String thresholdType)
The type of threshold for a notification.
|
void |
setThresholdType(ThresholdType thresholdType)
The type of threshold for a notification.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Notification |
withComparisonOperator(ComparisonOperator comparisonOperator)
The comparison used for this notification.
|
Notification |
withComparisonOperator(String comparisonOperator)
The comparison used for this notification.
|
Notification |
withNotificationType(NotificationType notificationType)
Whether the notification is for how much you have spent (
ACTUAL) or for how much you are forecasted
to spend (FORECASTED). |
Notification |
withNotificationType(String notificationType)
Whether the notification is for how much you have spent (
ACTUAL) or for how much you are forecasted
to spend (FORECASTED). |
Notification |
withThreshold(Double threshold)
The threshold associated with a notification.
|
Notification |
withThresholdType(String thresholdType)
The type of threshold for a notification.
|
Notification |
withThresholdType(ThresholdType thresholdType)
The type of threshold for a notification.
|
public void setNotificationType(String notificationType)
Whether the notification is for how much you have spent (ACTUAL) or for how much you are forecasted
to spend (FORECASTED).
notificationType - Whether the notification is for how much you have spent (ACTUAL) or for how much you are
forecasted to spend (FORECASTED).NotificationTypepublic String getNotificationType()
Whether the notification is for how much you have spent (ACTUAL) or for how much you are forecasted
to spend (FORECASTED).
ACTUAL) or for how much you are
forecasted to spend (FORECASTED).NotificationTypepublic Notification withNotificationType(String notificationType)
Whether the notification is for how much you have spent (ACTUAL) or for how much you are forecasted
to spend (FORECASTED).
notificationType - Whether the notification is for how much you have spent (ACTUAL) or for how much you are
forecasted to spend (FORECASTED).NotificationTypepublic void setNotificationType(NotificationType notificationType)
Whether the notification is for how much you have spent (ACTUAL) or for how much you are forecasted
to spend (FORECASTED).
notificationType - Whether the notification is for how much you have spent (ACTUAL) or for how much you are
forecasted to spend (FORECASTED).NotificationTypepublic Notification withNotificationType(NotificationType notificationType)
Whether the notification is for how much you have spent (ACTUAL) or for how much you are forecasted
to spend (FORECASTED).
notificationType - Whether the notification is for how much you have spent (ACTUAL) or for how much you are
forecasted to spend (FORECASTED).NotificationTypepublic void setComparisonOperator(String comparisonOperator)
The comparison used for this notification.
comparisonOperator - The comparison used for this notification.ComparisonOperatorpublic String getComparisonOperator()
The comparison used for this notification.
ComparisonOperatorpublic Notification withComparisonOperator(String comparisonOperator)
The comparison used for this notification.
comparisonOperator - The comparison used for this notification.ComparisonOperatorpublic void setComparisonOperator(ComparisonOperator comparisonOperator)
The comparison used for this notification.
comparisonOperator - The comparison used for this notification.ComparisonOperatorpublic Notification withComparisonOperator(ComparisonOperator comparisonOperator)
The comparison used for this notification.
comparisonOperator - The comparison used for this notification.ComparisonOperatorpublic void setThreshold(Double threshold)
The threshold associated with a notification. Thresholds are always a percentage.
threshold - The threshold associated with a notification. Thresholds are always a percentage.public Double getThreshold()
The threshold associated with a notification. Thresholds are always a percentage.
public Notification withThreshold(Double threshold)
The threshold associated with a notification. Thresholds are always a percentage.
threshold - The threshold associated with a notification. Thresholds are always a percentage.public void setThresholdType(String thresholdType)
The type of threshold for a notification. For ACTUAL thresholds, AWS notifies you when you go over
the threshold, and for FORECASTED thresholds AWS notifies you when you are forecasted to go over the
threshold.
thresholdType - The type of threshold for a notification. For ACTUAL thresholds, AWS notifies you when you go
over the threshold, and for FORECASTED thresholds AWS notifies you when you are forecasted to
go over the threshold.ThresholdTypepublic String getThresholdType()
The type of threshold for a notification. For ACTUAL thresholds, AWS notifies you when you go over
the threshold, and for FORECASTED thresholds AWS notifies you when you are forecasted to go over the
threshold.
ACTUAL thresholds, AWS notifies you when you
go over the threshold, and for FORECASTED thresholds AWS notifies you when you are
forecasted to go over the threshold.ThresholdTypepublic Notification withThresholdType(String thresholdType)
The type of threshold for a notification. For ACTUAL thresholds, AWS notifies you when you go over
the threshold, and for FORECASTED thresholds AWS notifies you when you are forecasted to go over the
threshold.
thresholdType - The type of threshold for a notification. For ACTUAL thresholds, AWS notifies you when you go
over the threshold, and for FORECASTED thresholds AWS notifies you when you are forecasted to
go over the threshold.ThresholdTypepublic void setThresholdType(ThresholdType thresholdType)
The type of threshold for a notification. For ACTUAL thresholds, AWS notifies you when you go over
the threshold, and for FORECASTED thresholds AWS notifies you when you are forecasted to go over the
threshold.
thresholdType - The type of threshold for a notification. For ACTUAL thresholds, AWS notifies you when you go
over the threshold, and for FORECASTED thresholds AWS notifies you when you are forecasted to
go over the threshold.ThresholdTypepublic Notification withThresholdType(ThresholdType thresholdType)
The type of threshold for a notification. For ACTUAL thresholds, AWS notifies you when you go over
the threshold, and for FORECASTED thresholds AWS notifies you when you are forecasted to go over the
threshold.
thresholdType - The type of threshold for a notification. For ACTUAL thresholds, AWS notifies you when you go
over the threshold, and for FORECASTED thresholds AWS notifies you when you are forecasted to
go over the threshold.ThresholdTypepublic String toString()
toString in class ObjectObject.toString()public Notification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2018. All rights reserved.