@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Notification extends Object implements Serializable, Cloneable, StructuredPojo
A notification that is 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 10 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 thresholdType
of PERCENTAGE
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 that is used for this notification.
|
String |
getNotificationState()
Whether this notification is in alarm.
|
String |
getNotificationType()
Whether the notification is for how much you have spent (
ACTUAL ) or for how much you're forecasted
to spend (FORECASTED ). |
Double |
getThreshold()
The threshold that is associated with a notification.
|
String |
getThresholdType()
The type of threshold for a notification.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setComparisonOperator(ComparisonOperator comparisonOperator)
The comparison that is used for this notification.
|
void |
setComparisonOperator(String comparisonOperator)
The comparison that is used for this notification.
|
void |
setNotificationState(NotificationState notificationState)
Whether this notification is in alarm.
|
void |
setNotificationState(String notificationState)
Whether this notification is in alarm.
|
void |
setNotificationType(NotificationType notificationType)
Whether the notification is for how much you have spent (
ACTUAL ) or for how much you're forecasted
to spend (FORECASTED ). |
void |
setNotificationType(String notificationType)
Whether the notification is for how much you have spent (
ACTUAL ) or for how much you're forecasted
to spend (FORECASTED ). |
void |
setThreshold(Double threshold)
The threshold that is 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.
|
Notification |
withComparisonOperator(ComparisonOperator comparisonOperator)
The comparison that is used for this notification.
|
Notification |
withComparisonOperator(String comparisonOperator)
The comparison that is used for this notification.
|
Notification |
withNotificationState(NotificationState notificationState)
Whether this notification is in alarm.
|
Notification |
withNotificationState(String notificationState)
Whether this notification is in alarm.
|
Notification |
withNotificationType(NotificationType notificationType)
Whether the notification is for how much you have spent (
ACTUAL ) or for how much you're forecasted
to spend (FORECASTED ). |
Notification |
withNotificationType(String notificationType)
Whether the notification is for how much you have spent (
ACTUAL ) or for how much you're forecasted
to spend (FORECASTED ). |
Notification |
withThreshold(Double threshold)
The threshold that is 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're forecasted
to spend (FORECASTED
).
notificationType
- Whether the notification is for how much you have spent (ACTUAL
) or for how much you're
forecasted to spend (FORECASTED
).NotificationType
public String getNotificationType()
Whether the notification is for how much you have spent (ACTUAL
) or for how much you're forecasted
to spend (FORECASTED
).
ACTUAL
) or for how much you're
forecasted to spend (FORECASTED
).NotificationType
public Notification withNotificationType(String notificationType)
Whether the notification is for how much you have spent (ACTUAL
) or for how much you're forecasted
to spend (FORECASTED
).
notificationType
- Whether the notification is for how much you have spent (ACTUAL
) or for how much you're
forecasted to spend (FORECASTED
).NotificationType
public void setNotificationType(NotificationType notificationType)
Whether the notification is for how much you have spent (ACTUAL
) or for how much you're forecasted
to spend (FORECASTED
).
notificationType
- Whether the notification is for how much you have spent (ACTUAL
) or for how much you're
forecasted to spend (FORECASTED
).NotificationType
public Notification withNotificationType(NotificationType notificationType)
Whether the notification is for how much you have spent (ACTUAL
) or for how much you're forecasted
to spend (FORECASTED
).
notificationType
- Whether the notification is for how much you have spent (ACTUAL
) or for how much you're
forecasted to spend (FORECASTED
).NotificationType
public void setComparisonOperator(String comparisonOperator)
The comparison that is used for this notification.
comparisonOperator
- The comparison that is used for this notification.ComparisonOperator
public String getComparisonOperator()
The comparison that is used for this notification.
ComparisonOperator
public Notification withComparisonOperator(String comparisonOperator)
The comparison that is used for this notification.
comparisonOperator
- The comparison that is used for this notification.ComparisonOperator
public void setComparisonOperator(ComparisonOperator comparisonOperator)
The comparison that is used for this notification.
comparisonOperator
- The comparison that is used for this notification.ComparisonOperator
public Notification withComparisonOperator(ComparisonOperator comparisonOperator)
The comparison that is used for this notification.
comparisonOperator
- The comparison that is used for this notification.ComparisonOperator
public void setThreshold(Double threshold)
The threshold that is associated with a notification. Thresholds are always a percentage.
threshold
- The threshold that is associated with a notification. Thresholds are always a percentage.public Double getThreshold()
The threshold that is associated with a notification. Thresholds are always a percentage.
public Notification withThreshold(Double threshold)
The threshold that is associated with a notification. Thresholds are always a percentage.
threshold
- The threshold that is associated with a notification. Thresholds are always a percentage.public void setThresholdType(String thresholdType)
The type of threshold for a notification. For ABSOLUTE_VALUE
thresholds, AWS notifies you when you
go over or are forecasted to go over your total cost threshold. For PERCENTAGE
thresholds, AWS
notifies you when you go over or are forecasted to go over a certain percentage of your forecasted spend. For
example, if you have a budget for 200 dollars and you have a PERCENTAGE
threshold of 80%, AWS
notifies you when you go over 160 dollars.
thresholdType
- The type of threshold for a notification. For ABSOLUTE_VALUE
thresholds, AWS notifies you
when you go over or are forecasted to go over your total cost threshold. For PERCENTAGE
thresholds, AWS notifies you when you go over or are forecasted to go over a certain percentage of your
forecasted spend. For example, if you have a budget for 200 dollars and you have a PERCENTAGE
threshold of 80%, AWS notifies you when you go over 160 dollars.ThresholdType
public String getThresholdType()
The type of threshold for a notification. For ABSOLUTE_VALUE
thresholds, AWS notifies you when you
go over or are forecasted to go over your total cost threshold. For PERCENTAGE
thresholds, AWS
notifies you when you go over or are forecasted to go over a certain percentage of your forecasted spend. For
example, if you have a budget for 200 dollars and you have a PERCENTAGE
threshold of 80%, AWS
notifies you when you go over 160 dollars.
ABSOLUTE_VALUE
thresholds, AWS notifies you
when you go over or are forecasted to go over your total cost threshold. For PERCENTAGE
thresholds, AWS notifies you when you go over or are forecasted to go over a certain percentage of your
forecasted spend. For example, if you have a budget for 200 dollars and you have a
PERCENTAGE
threshold of 80%, AWS notifies you when you go over 160 dollars.ThresholdType
public Notification withThresholdType(String thresholdType)
The type of threshold for a notification. For ABSOLUTE_VALUE
thresholds, AWS notifies you when you
go over or are forecasted to go over your total cost threshold. For PERCENTAGE
thresholds, AWS
notifies you when you go over or are forecasted to go over a certain percentage of your forecasted spend. For
example, if you have a budget for 200 dollars and you have a PERCENTAGE
threshold of 80%, AWS
notifies you when you go over 160 dollars.
thresholdType
- The type of threshold for a notification. For ABSOLUTE_VALUE
thresholds, AWS notifies you
when you go over or are forecasted to go over your total cost threshold. For PERCENTAGE
thresholds, AWS notifies you when you go over or are forecasted to go over a certain percentage of your
forecasted spend. For example, if you have a budget for 200 dollars and you have a PERCENTAGE
threshold of 80%, AWS notifies you when you go over 160 dollars.ThresholdType
public void setThresholdType(ThresholdType thresholdType)
The type of threshold for a notification. For ABSOLUTE_VALUE
thresholds, AWS notifies you when you
go over or are forecasted to go over your total cost threshold. For PERCENTAGE
thresholds, AWS
notifies you when you go over or are forecasted to go over a certain percentage of your forecasted spend. For
example, if you have a budget for 200 dollars and you have a PERCENTAGE
threshold of 80%, AWS
notifies you when you go over 160 dollars.
thresholdType
- The type of threshold for a notification. For ABSOLUTE_VALUE
thresholds, AWS notifies you
when you go over or are forecasted to go over your total cost threshold. For PERCENTAGE
thresholds, AWS notifies you when you go over or are forecasted to go over a certain percentage of your
forecasted spend. For example, if you have a budget for 200 dollars and you have a PERCENTAGE
threshold of 80%, AWS notifies you when you go over 160 dollars.ThresholdType
public Notification withThresholdType(ThresholdType thresholdType)
The type of threshold for a notification. For ABSOLUTE_VALUE
thresholds, AWS notifies you when you
go over or are forecasted to go over your total cost threshold. For PERCENTAGE
thresholds, AWS
notifies you when you go over or are forecasted to go over a certain percentage of your forecasted spend. For
example, if you have a budget for 200 dollars and you have a PERCENTAGE
threshold of 80%, AWS
notifies you when you go over 160 dollars.
thresholdType
- The type of threshold for a notification. For ABSOLUTE_VALUE
thresholds, AWS notifies you
when you go over or are forecasted to go over your total cost threshold. For PERCENTAGE
thresholds, AWS notifies you when you go over or are forecasted to go over a certain percentage of your
forecasted spend. For example, if you have a budget for 200 dollars and you have a PERCENTAGE
threshold of 80%, AWS notifies you when you go over 160 dollars.ThresholdType
public void setNotificationState(String notificationState)
Whether this notification is in alarm. If a budget notification is in the ALARM
state, you have
passed the set threshold for the budget.
notificationState
- Whether this notification is in alarm. If a budget notification is in the ALARM
state, you
have passed the set threshold for the budget.NotificationState
public String getNotificationState()
Whether this notification is in alarm. If a budget notification is in the ALARM
state, you have
passed the set threshold for the budget.
ALARM
state, you
have passed the set threshold for the budget.NotificationState
public Notification withNotificationState(String notificationState)
Whether this notification is in alarm. If a budget notification is in the ALARM
state, you have
passed the set threshold for the budget.
notificationState
- Whether this notification is in alarm. If a budget notification is in the ALARM
state, you
have passed the set threshold for the budget.NotificationState
public void setNotificationState(NotificationState notificationState)
Whether this notification is in alarm. If a budget notification is in the ALARM
state, you have
passed the set threshold for the budget.
notificationState
- Whether this notification is in alarm. If a budget notification is in the ALARM
state, you
have passed the set threshold for the budget.NotificationState
public Notification withNotificationState(NotificationState notificationState)
Whether this notification is in alarm. If a budget notification is in the ALARM
state, you have
passed the set threshold for the budget.
notificationState
- Whether this notification is in alarm. If a budget notification is in the ALARM
state, you
have passed the set threshold for the budget.NotificationState
public String toString()
toString
in class Object
Object.toString()
public Notification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.