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