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
Constructors -
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()Sets the value ofCfnPolicyProps.getTags()
-
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
-
tags
Sets the value ofCfnPolicyProps.getTags()- Parameters:
tags- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPolicyProps>- Returns:
- a new instance of
CfnPolicyProps - Throws:
NullPointerException- if any required attribute was not provided
-