@Generated(value="software.amazon.awssdk:codegen") public final class Notification extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Notification.Builder,Notification>
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
Modifier and Type | Class and Description |
---|---|
static interface |
Notification.Builder |
Modifier and Type | Method and Description |
---|---|
static Notification.Builder |
builder() |
ComparisonOperator |
comparisonOperator()
The comparison that is used for this notification.
|
String |
comparisonOperatorAsString()
The comparison that is used for this notification.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
NotificationState |
notificationState()
Whether this notification is in alarm.
|
String |
notificationStateAsString()
Whether this notification is in alarm.
|
NotificationType |
notificationType()
Whether the notification is for how much you have spent (
ACTUAL ) or for how much you're forecasted
to spend (FORECASTED ). |
String |
notificationTypeAsString()
Whether the notification is for how much you have spent (
ACTUAL ) or for how much you're forecasted
to spend (FORECASTED ). |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Notification.Builder> |
serializableBuilderClass() |
Double |
threshold()
The threshold that is associated with a notification.
|
ThresholdType |
thresholdType()
The type of threshold for a notification.
|
String |
thresholdTypeAsString()
The type of threshold for a notification.
|
Notification.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public NotificationType notificationType()
Whether the notification is for how much you have spent (ACTUAL
) or for how much you're forecasted
to spend (FORECASTED
).
If the service returns an enum value that is not available in the current SDK version, notificationType
will return NotificationType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from notificationTypeAsString()
.
ACTUAL
) or for how much you're
forecasted to spend (FORECASTED
).NotificationType
public String notificationTypeAsString()
Whether the notification is for how much you have spent (ACTUAL
) or for how much you're forecasted
to spend (FORECASTED
).
If the service returns an enum value that is not available in the current SDK version, notificationType
will return NotificationType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from notificationTypeAsString()
.
ACTUAL
) or for how much you're
forecasted to spend (FORECASTED
).NotificationType
public ComparisonOperator comparisonOperator()
The comparison that is used for this notification.
If the service returns an enum value that is not available in the current SDK version,
comparisonOperator
will return ComparisonOperator.UNKNOWN_TO_SDK_VERSION
. The raw value returned
by the service is available from comparisonOperatorAsString()
.
ComparisonOperator
public String comparisonOperatorAsString()
The comparison that is used for this notification.
If the service returns an enum value that is not available in the current SDK version,
comparisonOperator
will return ComparisonOperator.UNKNOWN_TO_SDK_VERSION
. The raw value returned
by the service is available from comparisonOperatorAsString()
.
ComparisonOperator
public Double threshold()
The threshold that is associated with a notification. Thresholds are always a percentage.
public 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.
If the service returns an enum value that is not available in the current SDK version, thresholdType
will return ThresholdType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
thresholdTypeAsString()
.
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 thresholdTypeAsString()
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.
If the service returns an enum value that is not available in the current SDK version, thresholdType
will return ThresholdType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
thresholdTypeAsString()
.
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 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.
If the service returns an enum value that is not available in the current SDK version, notificationState
will return NotificationState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from notificationStateAsString()
.
ALARM
state, you
have passed the set threshold for the budget.NotificationState
public String notificationStateAsString()
Whether this notification is in alarm. If a budget notification is in the ALARM
state, you have
passed the set threshold for the budget.
If the service returns an enum value that is not available in the current SDK version, notificationState
will return NotificationState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from notificationStateAsString()
.
ALARM
state, you
have passed the set threshold for the budget.NotificationState
public Notification.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Notification.Builder,Notification>
public static Notification.Builder builder()
public static Class<? extends Notification.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.