Class CfnBudget.NotificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.budgets.CfnBudget.NotificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBudget.NotificationProperty>
- Enclosing interface:
CfnBudget.NotificationProperty
@Stability(Stable)
public static final class CfnBudget.NotificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBudget.NotificationProperty>
A builder for
CfnBudget.NotificationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.comparisonOperator
(String comparisonOperator) Sets the value ofCfnBudget.NotificationProperty.getComparisonOperator()
notificationType
(String notificationType) Sets the value ofCfnBudget.NotificationProperty.getNotificationType()
Sets the value ofCfnBudget.NotificationProperty.getThreshold()
thresholdType
(String thresholdType) Sets the value ofCfnBudget.NotificationProperty.getThresholdType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
comparisonOperator
@Stability(Stable) public CfnBudget.NotificationProperty.Builder comparisonOperator(String comparisonOperator) Sets the value ofCfnBudget.NotificationProperty.getComparisonOperator()
- Parameters:
comparisonOperator
- The comparison that's used for this notification. This parameter is required.- Returns:
this
-
notificationType
@Stability(Stable) public CfnBudget.NotificationProperty.Builder notificationType(String notificationType) Sets the value ofCfnBudget.NotificationProperty.getNotificationType()
- Parameters:
notificationType
- Specifies whether the notification is for how much you have spent (ACTUAL
) or for how much that you're forecasted to spend (FORECASTED
). This parameter is required.- Returns:
this
-
threshold
Sets the value ofCfnBudget.NotificationProperty.getThreshold()
- Parameters:
threshold
- The threshold that's associated with a notification. This parameter is required. 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:
this
-
thresholdType
@Stability(Stable) public CfnBudget.NotificationProperty.Builder thresholdType(String thresholdType) Sets the value ofCfnBudget.NotificationProperty.getThresholdType()
- Parameters:
thresholdType
- The type of threshold for a notification. ForABSOLUTE_VALUE
thresholds, AWS notifies you when you go over or are forecasted to go over your total cost threshold. ForPERCENTAGE
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 aPERCENTAGE
threshold of 80%, AWS notifies you when you go over 160 dollars.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBudget.NotificationProperty>
- Returns:
- a new instance of
CfnBudget.NotificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-