Class CfnDomain.VPCOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticsearch.CfnDomain.VPCOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomain.VPCOptionsProperty>
- Enclosing interface:
CfnDomain.VPCOptionsProperty
@Stability(Stable)
public static final class CfnDomain.VPCOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomain.VPCOptionsProperty>
A builder for
CfnDomain.VPCOptionsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.securityGroupIds
(List<String> securityGroupIds) Sets the value ofCfnDomain.VPCOptionsProperty.getSecurityGroupIds()
Sets the value ofCfnDomain.VPCOptionsProperty.getSubnetIds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityGroupIds
@Stability(Stable) public CfnDomain.VPCOptionsProperty.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnDomain.VPCOptionsProperty.getSecurityGroupIds()
- Parameters:
securityGroupIds
- The list of security group IDs that are associated with the VPC endpoints for the domain. If you don't provide a security group ID, OpenSearch Service uses the default security group for the VPC. To learn more, see Security groups for your VPC in the Amazon VPC User Guide .- Returns:
this
-
subnetIds
Sets the value ofCfnDomain.VPCOptionsProperty.getSubnetIds()
- Parameters:
subnetIds
- Provide one subnet ID for each Availability Zone that your domain uses. For example, you must specify three subnet IDs for a three Availability Zone domain. To learn more, see VPCs and subnets in the Amazon VPC User Guide .Required if you're creating your domain inside a VPC.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDomain.VPCOptionsProperty>
- Returns:
- a new instance of
CfnDomain.VPCOptionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-