Class CfnBudgetsAction.IamActionDefinitionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.budgets.CfnBudgetsAction.IamActionDefinitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBudgetsAction.IamActionDefinitionProperty>
- Enclosing interface:
CfnBudgetsAction.IamActionDefinitionProperty
@Stability(Stable)
public static final class CfnBudgetsAction.IamActionDefinitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBudgetsAction.IamActionDefinitionProperty>
A builder for
CfnBudgetsAction.IamActionDefinitionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnBudgetsAction.IamActionDefinitionProperty.getGroups()Sets the value ofCfnBudgetsAction.IamActionDefinitionProperty.getPolicyArn()Sets the value ofCfnBudgetsAction.IamActionDefinitionProperty.getRoles()Sets the value ofCfnBudgetsAction.IamActionDefinitionProperty.getUsers()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyArn
@Stability(Stable) public CfnBudgetsAction.IamActionDefinitionProperty.Builder policyArn(String policyArn) Sets the value ofCfnBudgetsAction.IamActionDefinitionProperty.getPolicyArn()- Parameters:
policyArn- The Amazon Resource Name (ARN) of the policy to be attached. This parameter is required.- Returns:
this
-
groups
@Stability(Stable) public CfnBudgetsAction.IamActionDefinitionProperty.Builder groups(List<String> groups) Sets the value ofCfnBudgetsAction.IamActionDefinitionProperty.getGroups()- Parameters:
groups- A list of groups to be attached. There must be at least one group.- Returns:
this
-
roles
@Stability(Stable) public CfnBudgetsAction.IamActionDefinitionProperty.Builder roles(List<String> roles) Sets the value ofCfnBudgetsAction.IamActionDefinitionProperty.getRoles()- Parameters:
roles- A list of roles to be attached. There must be at least one role.- Returns:
this
-
users
@Stability(Stable) public CfnBudgetsAction.IamActionDefinitionProperty.Builder users(List<String> users) Sets the value ofCfnBudgetsAction.IamActionDefinitionProperty.getUsers()- Parameters:
users- A list of users to be attached. There must be at least one user.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBudgetsAction.IamActionDefinitionProperty>- Returns:
- a new instance of
CfnBudgetsAction.IamActionDefinitionProperty - Throws:
NullPointerException- if any required attribute was not provided
-