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