Class CfnPolicyTemplateProps.Builder
java.lang.Object
software.amazon.awscdk.services.verifiedpermissions.CfnPolicyTemplateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicyTemplateProps>
- Enclosing interface:
CfnPolicyTemplateProps
@Stability(Stable)
public static final class CfnPolicyTemplateProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPolicyTemplateProps>
A builder for
CfnPolicyTemplateProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnPolicyTemplateProps.getDescription()policyStoreId(String policyStoreId) Sets the value ofCfnPolicyTemplateProps.getPolicyStoreId()Sets the value ofCfnPolicyTemplateProps.getStatement()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyStoreId
Sets the value ofCfnPolicyTemplateProps.getPolicyStoreId()- Parameters:
policyStoreId- The unique identifier of the policy store that contains the template. This parameter is required.- Returns:
this
-
statement
Sets the value ofCfnPolicyTemplateProps.getStatement()- Parameters:
statement- Specifies the content that you want to use for the new policy template, written in the Cedar policy language. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnPolicyTemplateProps.getDescription()- Parameters:
description- The description to attach to the new or updated policy template.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPolicyTemplateProps>- Returns:
- a new instance of
CfnPolicyTemplateProps - Throws:
NullPointerException- if any required attribute was not provided
-