Class CfnPolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicyProps>
- Enclosing interface:
- CfnPolicyProps
@Stability(Stable)
public static final class CfnPolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPolicyProps>
A builder for
CfnPolicyProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.policyDocument
(Object policyDocument) Sets the value ofCfnPolicyProps.getPolicyDocument()
policyName
(String policyName) Sets the value ofCfnPolicyProps.getPolicyName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyDocument
Sets the value ofCfnPolicyProps.getPolicyDocument()
- Parameters:
policyDocument
- The JSON document that describes the policy. This parameter is required.- Returns:
this
-
policyName
Sets the value ofCfnPolicyProps.getPolicyName()
- Parameters:
policyName
- The policy name.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPolicyProps>
- Returns:
- a new instance of
CfnPolicyProps
- Throws:
NullPointerException
- if any required attribute was not provided
-