Class CfnSubnetGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.dax.CfnSubnetGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubnetGroupProps>
- Enclosing interface:
CfnSubnetGroupProps
@Stability(Stable)
public static final class CfnSubnetGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSubnetGroupProps>
A builder for
CfnSubnetGroupProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnSubnetGroupProps.getDescription()
subnetGroupName
(String subnetGroupName) Sets the value ofCfnSubnetGroupProps.getSubnetGroupName()
Sets the value ofCfnSubnetGroupProps.getSubnetIds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
subnetIds
Sets the value ofCfnSubnetGroupProps.getSubnetIds()
- Parameters:
subnetIds
- A list of VPC subnet IDs for the subnet group. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnSubnetGroupProps.getDescription()
- Parameters:
description
- The description of the subnet group.- Returns:
this
-
subnetGroupName
Sets the value ofCfnSubnetGroupProps.getSubnetGroupName()
- Parameters:
subnetGroupName
- The name of the subnet group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSubnetGroupProps>
- Returns:
- a new instance of
CfnSubnetGroupProps
- Throws:
NullPointerException
- if any required attribute was not provided
-