Class AddToResourcePolicyResult.Builder
java.lang.Object
software.amazon.awscdk.services.iam.AddToResourcePolicyResult.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AddToResourcePolicyResult>
- Enclosing interface:
AddToResourcePolicyResult
@Stability(Stable)
public static final class AddToResourcePolicyResult.Builder
extends Object
implements software.amazon.jsii.Builder<AddToResourcePolicyResult>
A builder for
AddToResourcePolicyResult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.policyDependable
(IDependable policyDependable) Sets the value ofAddToResourcePolicyResult.getPolicyDependable()
statementAdded
(Boolean statementAdded) Sets the value ofAddToResourcePolicyResult.getStatementAdded()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
statementAdded
Sets the value ofAddToResourcePolicyResult.getStatementAdded()
- Parameters:
statementAdded
- Whether the statement was added. This parameter is required.- Returns:
this
-
policyDependable
@Stability(Stable) public AddToResourcePolicyResult.Builder policyDependable(IDependable policyDependable) Sets the value ofAddToResourcePolicyResult.getPolicyDependable()
- Parameters:
policyDependable
- Dependable which allows depending on the policy change being applied.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AddToResourcePolicyResult>
- Returns:
- a new instance of
AddToResourcePolicyResult
- Throws:
NullPointerException
- if any required attribute was not provided
-