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