Class AccessPolicyReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.iotsitewise.AccessPolicyReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AccessPolicyReference>
- Enclosing interface:
AccessPolicyReference
@Stability(Stable)
public static final class AccessPolicyReference.Builder
extends Object
implements software.amazon.jsii.Builder<AccessPolicyReference>
A builder for
AccessPolicyReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessPolicyArn(String accessPolicyArn) Sets the value ofAccessPolicyReference.getAccessPolicyArn()accessPolicyId(String accessPolicyId) Sets the value ofAccessPolicyReference.getAccessPolicyId()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessPolicyArn
Sets the value ofAccessPolicyReference.getAccessPolicyArn()- Parameters:
accessPolicyArn- The ARN of the AccessPolicy resource. This parameter is required.- Returns:
this
-
accessPolicyId
Sets the value ofAccessPolicyReference.getAccessPolicyId()- Parameters:
accessPolicyId- The AccessPolicyId of the AccessPolicy resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AccessPolicyReference>- Returns:
- a new instance of
AccessPolicyReference - Throws:
NullPointerException- if any required attribute was not provided
-