Class CfnAccessPolicyMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.opensearchserverless.CfnAccessPolicyMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAccessPolicyMixinProps>
- Enclosing interface:
CfnAccessPolicyMixinProps
@Stability(Stable)
public static final class CfnAccessPolicyMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAccessPolicyMixinProps>
A builder for
CfnAccessPolicyMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnAccessPolicyMixinProps.getDescription()Sets the value ofCfnAccessPolicyMixinProps.getName()Sets the value ofCfnAccessPolicyMixinProps.getPolicy()Sets the value ofCfnAccessPolicyMixinProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnAccessPolicyMixinProps.getDescription()- Parameters:
description- The description of the policy.- Returns:
this
-
name
Sets the value ofCfnAccessPolicyMixinProps.getName()- Parameters:
name- The name of the policy.- Returns:
this
-
policy
Sets the value ofCfnAccessPolicyMixinProps.getPolicy()- Parameters:
policy- The JSON policy document without any whitespaces.- Returns:
this
-
type
Sets the value ofCfnAccessPolicyMixinProps.getType()- Parameters:
type- The type of access policy. Currently the only option isdata.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAccessPolicyMixinProps>- Returns:
- a new instance of
CfnAccessPolicyMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-