@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 ten 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) |
boolean |
equalsBySdkFields(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() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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).NotificationTypepublic final 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).NotificationTypepublic final 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().
ComparisonOperatorpublic final 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().
ComparisonOperatorpublic final Double threshold()
The threshold that is associated with a notification. Thresholds are always a percentage, and many customers find value being alerted between 50% - 200% of the budgeted amount. The maximum limit for your threshold is 1,000,000% above the budgeted amount.
public final 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.ThresholdTypepublic final 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.ThresholdTypepublic final 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.NotificationStatepublic final 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.NotificationStatepublic Notification.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Notification.Builder,Notification>public static Notification.Builder builder()
public static Class<? extends Notification.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.