Class CfnBudgetPropsMixin.NotificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.budgets.CfnBudgetPropsMixin.NotificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBudgetPropsMixin.NotificationProperty>
- Enclosing interface:
CfnBudgetPropsMixin.NotificationProperty
@Stability(Stable)
public static final class CfnBudgetPropsMixin.NotificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBudgetPropsMixin.NotificationProperty>
A builder for
CfnBudgetPropsMixin.NotificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.comparisonOperator(String comparisonOperator) Sets the value ofCfnBudgetPropsMixin.NotificationProperty.getComparisonOperator()notificationType(String notificationType) Sets the value ofCfnBudgetPropsMixin.NotificationProperty.getNotificationType()Sets the value ofCfnBudgetPropsMixin.NotificationProperty.getThreshold()thresholdType(String thresholdType) Sets the value ofCfnBudgetPropsMixin.NotificationProperty.getThresholdType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
comparisonOperator
@Stability(Stable) public CfnBudgetPropsMixin.NotificationProperty.Builder comparisonOperator(String comparisonOperator) Sets the value ofCfnBudgetPropsMixin.NotificationProperty.getComparisonOperator()- Parameters:
comparisonOperator- The comparison that's used for this notification.- Returns:
this
-
notificationType
@Stability(Stable) public CfnBudgetPropsMixin.NotificationProperty.Builder notificationType(String notificationType) Sets the value ofCfnBudgetPropsMixin.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).- Returns:
this
-
threshold
@Stability(Stable) public CfnBudgetPropsMixin.NotificationProperty.Builder threshold(Number threshold) Sets the value ofCfnBudgetPropsMixin.NotificationProperty.getThreshold()- Parameters:
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:
this
-
thresholdType
@Stability(Stable) public CfnBudgetPropsMixin.NotificationProperty.Builder thresholdType(String thresholdType) Sets the value ofCfnBudgetPropsMixin.NotificationProperty.getThresholdType()- Parameters:
thresholdType- The type of threshold for a notification. ForABSOLUTE_VALUEthresholds, AWS notifies you when you go over or are forecasted to go over your total cost threshold. ForPERCENTAGEthresholds, 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 aPERCENTAGEthreshold of 80%, AWS notifies you when you go over 160 dollars.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBudgetPropsMixin.NotificationProperty>- Returns:
- a new instance of
CfnBudgetPropsMixin.NotificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-