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