Class CfnBudgetsActionProps.Builder
java.lang.Object
software.amazon.awscdk.services.budgets.CfnBudgetsActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBudgetsActionProps>
- Enclosing interface:
- CfnBudgetsActionProps
@Stability(Stable)
public static final class CfnBudgetsActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBudgetsActionProps>
A builder for
CfnBudgetsActionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactionThreshold
(IResolvable actionThreshold) Sets the value ofCfnBudgetsActionProps.getActionThreshold()
actionThreshold
(CfnBudgetsAction.ActionThresholdProperty actionThreshold) Sets the value ofCfnBudgetsActionProps.getActionThreshold()
actionType
(String actionType) Sets the value ofCfnBudgetsActionProps.getActionType()
approvalModel
(String approvalModel) Sets the value ofCfnBudgetsActionProps.getApprovalModel()
budgetName
(String budgetName) Sets the value ofCfnBudgetsActionProps.getBudgetName()
build()
Builds the configured instance.definition
(IResolvable definition) Sets the value ofCfnBudgetsActionProps.getDefinition()
definition
(CfnBudgetsAction.DefinitionProperty definition) Sets the value ofCfnBudgetsActionProps.getDefinition()
executionRoleArn
(String executionRoleArn) Sets the value ofCfnBudgetsActionProps.getExecutionRoleArn()
notificationType
(String notificationType) Sets the value ofCfnBudgetsActionProps.getNotificationType()
subscribers
(List<? extends Object> subscribers) Sets the value ofCfnBudgetsActionProps.getSubscribers()
subscribers
(IResolvable subscribers) Sets the value ofCfnBudgetsActionProps.getSubscribers()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actionThreshold
@Stability(Stable) public CfnBudgetsActionProps.Builder actionThreshold(IResolvable actionThreshold) Sets the value ofCfnBudgetsActionProps.getActionThreshold()
- Parameters:
actionThreshold
- The trigger threshold of the action. This parameter is required.- Returns:
this
-
actionThreshold
@Stability(Stable) public CfnBudgetsActionProps.Builder actionThreshold(CfnBudgetsAction.ActionThresholdProperty actionThreshold) Sets the value ofCfnBudgetsActionProps.getActionThreshold()
- Parameters:
actionThreshold
- The trigger threshold of the action. This parameter is required.- Returns:
this
-
actionType
Sets the value ofCfnBudgetsActionProps.getActionType()
- Parameters:
actionType
- The type of action. This parameter is required. This defines the type of tasks that can be carried out by this action. This field also determines the format for definition.- Returns:
this
-
budgetName
Sets the value ofCfnBudgetsActionProps.getBudgetName()
- Parameters:
budgetName
- A string that represents the budget name. This parameter is required. ":" and "" characters aren't allowed.- Returns:
this
-
definition
Sets the value ofCfnBudgetsActionProps.getDefinition()
- Parameters:
definition
- Specifies all of the type-specific parameters. This parameter is required.- Returns:
this
-
definition
@Stability(Stable) public CfnBudgetsActionProps.Builder definition(CfnBudgetsAction.DefinitionProperty definition) Sets the value ofCfnBudgetsActionProps.getDefinition()
- Parameters:
definition
- Specifies all of the type-specific parameters. This parameter is required.- Returns:
this
-
executionRoleArn
Sets the value ofCfnBudgetsActionProps.getExecutionRoleArn()
- Parameters:
executionRoleArn
- The role passed for action execution and reversion. This parameter is required. Roles and actions must be in the same account.- Returns:
this
-
notificationType
Sets the value ofCfnBudgetsActionProps.getNotificationType()
- Parameters:
notificationType
- The type of a notification. This parameter is required.- Returns:
this
-
subscribers
Sets the value ofCfnBudgetsActionProps.getSubscribers()
- Parameters:
subscribers
- A list of subscribers. This parameter is required.- Returns:
this
-
subscribers
@Stability(Stable) public CfnBudgetsActionProps.Builder subscribers(List<? extends Object> subscribers) Sets the value ofCfnBudgetsActionProps.getSubscribers()
- Parameters:
subscribers
- A list of subscribers. This parameter is required.- Returns:
this
-
approvalModel
Sets the value ofCfnBudgetsActionProps.getApprovalModel()
- Parameters:
approvalModel
- This specifies if the action needs manual or automatic approval.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBudgetsActionProps>
- Returns:
- a new instance of
CfnBudgetsActionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-