Class RolePolicyReference.Builder
java.lang.Object
software.amazon.awscdk.services.iam.RolePolicyReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RolePolicyReference>
- Enclosing interface:
RolePolicyReference
@Stability(Stable)
public static final class RolePolicyReference.Builder
extends Object
implements software.amazon.jsii.Builder<RolePolicyReference>
A builder for
RolePolicyReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.policyName(String policyName) Sets the value ofRolePolicyReference.getPolicyName()Sets the value ofRolePolicyReference.getRoleName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyName
Sets the value ofRolePolicyReference.getPolicyName()- Parameters:
policyName- The PolicyName of the RolePolicy resource. This parameter is required.- Returns:
this
-
roleName
Sets the value ofRolePolicyReference.getRoleName()- Parameters:
roleName- The RoleName of the RolePolicy resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<RolePolicyReference>- Returns:
- a new instance of
RolePolicyReference - Throws:
NullPointerException- if any required attribute was not provided
-