Class CfnSubnetGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.memorydb.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()
Sets the value ofCfnSubnetGroupProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
subnetGroupName
Sets the value ofCfnSubnetGroupProps.getSubnetGroupName()
- Parameters:
subnetGroupName
- The name of the subnet group to be used for the cluster . This parameter is required.- Returns:
this
-
subnetIds
Sets the value ofCfnSubnetGroupProps.getSubnetIds()
- Parameters:
subnetIds
- A list of Amazon VPC subnet IDs for the subnet group. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnSubnetGroupProps.getDescription()
- Parameters:
description
- A description of the subnet group.- Returns:
this
-
tags
Sets the value ofCfnSubnetGroupProps.getTags()
- Parameters:
tags
- An array of key-value pairs to apply to this resource. For more information, see Tag .- 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
-