Class CfnBudgetProps.Builder
java.lang.Object
software.amazon.awscdk.services.budgets.CfnBudgetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBudgetProps>
- Enclosing interface:
CfnBudgetProps
@Stability(Stable)
public static final class CfnBudgetProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBudgetProps>
A builder for
CfnBudgetProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbudget
(IResolvable budget) Sets the value ofCfnBudgetProps.getBudget()
budget
(CfnBudget.BudgetDataProperty budget) Sets the value ofCfnBudgetProps.getBudget()
build()
Builds the configured instance.notificationsWithSubscribers
(List<? extends Object> notificationsWithSubscribers) Sets the value ofCfnBudgetProps.getNotificationsWithSubscribers()
notificationsWithSubscribers
(IResolvable notificationsWithSubscribers) Sets the value ofCfnBudgetProps.getNotificationsWithSubscribers()
resourceTags
(List<? extends Object> resourceTags) Sets the value ofCfnBudgetProps.getResourceTags()
resourceTags
(IResolvable resourceTags) Sets the value ofCfnBudgetProps.getResourceTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
budget
Sets the value ofCfnBudgetProps.getBudget()
- Parameters:
budget
- The budget object that you want to create. This parameter is required.- Returns:
this
-
budget
Sets the value ofCfnBudgetProps.getBudget()
- Parameters:
budget
- The budget object that you want to create. This parameter is required.- Returns:
this
-
notificationsWithSubscribers
@Stability(Stable) public CfnBudgetProps.Builder notificationsWithSubscribers(IResolvable notificationsWithSubscribers) Sets the value ofCfnBudgetProps.getNotificationsWithSubscribers()
- Parameters:
notificationsWithSubscribers
- A notification that you want to associate with a budget. A budget can have up to five notifications, and each notification can have one SNS subscriber and up to 10 email subscribers. If you include notifications and subscribers in yourCreateBudget
call, AWS creates the notifications and subscribers for you.- Returns:
this
-
notificationsWithSubscribers
@Stability(Stable) public CfnBudgetProps.Builder notificationsWithSubscribers(List<? extends Object> notificationsWithSubscribers) Sets the value ofCfnBudgetProps.getNotificationsWithSubscribers()
- Parameters:
notificationsWithSubscribers
- A notification that you want to associate with a budget. A budget can have up to five notifications, and each notification can have one SNS subscriber and up to 10 email subscribers. If you include notifications and subscribers in yourCreateBudget
call, AWS creates the notifications and subscribers for you.- Returns:
this
-
resourceTags
Sets the value ofCfnBudgetProps.getResourceTags()
- Parameters:
resourceTags
- An optional list of tags to associate with the specified budget. Each tag consists of a key and a value, and each key must be unique for the resource.- Returns:
this
-
resourceTags
Sets the value ofCfnBudgetProps.getResourceTags()
- Parameters:
resourceTags
- An optional list of tags to associate with the specified budget. Each tag consists of a key and a value, and each key must be unique for the resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBudgetProps>
- Returns:
- a new instance of
CfnBudgetProps
- Throws:
NullPointerException
- if any required attribute was not provided
-