Class Notification
- java.lang.Object
-
- software.amazon.awssdk.services.budgets.model.Notification
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Notification.Builder,Notification>
@Generated("software.amazon.awssdk:codegen") public final class Notification extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Notification.Builder,Notification>
A notification that's 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
thresholdTypeofPERCENTAGE -
A
comparisonOperatorofGREATER_THAN -
A notification
thresholdof80
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNotification.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Notification.Builderbuilder()ComparisonOperatorcomparisonOperator()The comparison that's used for this notification.StringcomparisonOperatorAsString()The comparison that's used for this notification.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()NotificationStatenotificationState()Specifies whether this notification is in alarm.StringnotificationStateAsString()Specifies whether this notification is in alarm.NotificationTypenotificationType()Specifies whether the notification is for how much you have spent (ACTUAL) or for how much that you're forecasted to spend (FORECASTED).StringnotificationTypeAsString()Specifies whether the notification is for how much you have spent (ACTUAL) or for how much that you're forecasted to spend (FORECASTED).Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Notification.Builder>serializableBuilderClass()Doublethreshold()The threshold that's associated with a notification.ThresholdTypethresholdType()The type of threshold for a notification.StringthresholdTypeAsString()The type of threshold for a notification.Notification.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
notificationType
public final NotificationType notificationType()
Specifies whether the notification is for how much you have spent (
ACTUAL) or for how much that you're forecasted to spend (FORECASTED).If the service returns an enum value that is not available in the current SDK version,
notificationTypewill returnNotificationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnotificationTypeAsString().- Returns:
- Specifies whether the notification is for how much you have spent (
ACTUAL) or for how much that you're forecasted to spend (FORECASTED). - See Also:
NotificationType
-
notificationTypeAsString
public final String notificationTypeAsString()
Specifies whether the notification is for how much you have spent (
ACTUAL) or for how much that you're forecasted to spend (FORECASTED).If the service returns an enum value that is not available in the current SDK version,
notificationTypewill returnNotificationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnotificationTypeAsString().- Returns:
- Specifies whether the notification is for how much you have spent (
ACTUAL) or for how much that you're forecasted to spend (FORECASTED). - See Also:
NotificationType
-
comparisonOperator
public final ComparisonOperator comparisonOperator()
The comparison that's used for this notification.
If the service returns an enum value that is not available in the current SDK version,
comparisonOperatorwill returnComparisonOperator.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcomparisonOperatorAsString().- Returns:
- The comparison that's used for this notification.
- See Also:
ComparisonOperator
-
comparisonOperatorAsString
public final String comparisonOperatorAsString()
The comparison that's used for this notification.
If the service returns an enum value that is not available in the current SDK version,
comparisonOperatorwill returnComparisonOperator.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcomparisonOperatorAsString().- Returns:
- The comparison that's used for this notification.
- See Also:
ComparisonOperator
-
threshold
public final Double threshold()
The threshold that's 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.
- Returns:
- The threshold that's 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.
-
thresholdType
public final ThresholdType thresholdType()
The type of threshold for a notification. For
ABSOLUTE_VALUEthresholds, Amazon Web Services notifies you when you go over or are forecasted to go over your total cost threshold. ForPERCENTAGEthresholds, Amazon Web Services 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 aPERCENTAGEthreshold of 80%, Amazon Web Services notifies you when you go over 160 dollars.If the service returns an enum value that is not available in the current SDK version,
thresholdTypewill returnThresholdType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromthresholdTypeAsString().- Returns:
- The type of threshold for a notification. For
ABSOLUTE_VALUEthresholds, Amazon Web Services notifies you when you go over or are forecasted to go over your total cost threshold. ForPERCENTAGEthresholds, Amazon Web Services 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 aPERCENTAGEthreshold of 80%, Amazon Web Services notifies you when you go over 160 dollars. - See Also:
ThresholdType
-
thresholdTypeAsString
public final String thresholdTypeAsString()
The type of threshold for a notification. For
ABSOLUTE_VALUEthresholds, Amazon Web Services notifies you when you go over or are forecasted to go over your total cost threshold. ForPERCENTAGEthresholds, Amazon Web Services 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 aPERCENTAGEthreshold of 80%, Amazon Web Services notifies you when you go over 160 dollars.If the service returns an enum value that is not available in the current SDK version,
thresholdTypewill returnThresholdType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromthresholdTypeAsString().- Returns:
- The type of threshold for a notification. For
ABSOLUTE_VALUEthresholds, Amazon Web Services notifies you when you go over or are forecasted to go over your total cost threshold. ForPERCENTAGEthresholds, Amazon Web Services 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 aPERCENTAGEthreshold of 80%, Amazon Web Services notifies you when you go over 160 dollars. - See Also:
ThresholdType
-
notificationState
public final NotificationState notificationState()
Specifies whether this notification is in alarm. If a budget notification is in the
ALARMstate, you passed the set threshold for the budget.If the service returns an enum value that is not available in the current SDK version,
notificationStatewill returnNotificationState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnotificationStateAsString().- Returns:
- Specifies whether this notification is in alarm. If a budget notification is in the
ALARMstate, you passed the set threshold for the budget. - See Also:
NotificationState
-
notificationStateAsString
public final String notificationStateAsString()
Specifies whether this notification is in alarm. If a budget notification is in the
ALARMstate, you passed the set threshold for the budget.If the service returns an enum value that is not available in the current SDK version,
notificationStatewill returnNotificationState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnotificationStateAsString().- Returns:
- Specifies whether this notification is in alarm. If a budget notification is in the
ALARMstate, you passed the set threshold for the budget. - See Also:
NotificationState
-
toBuilder
public Notification.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Notification.Builder,Notification>
-
builder
public static Notification.Builder builder()
-
serializableBuilderClass
public static Class<? extends Notification.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-