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