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