Class CfnSubnetGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.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.cacheSubnetGroupName
(String cacheSubnetGroupName) Sets the value ofCfnSubnetGroupProps.getCacheSubnetGroupName()
description
(String description) Sets the value ofCfnSubnetGroupProps.getDescription()
Sets the value ofCfnSubnetGroupProps.getSubnetIds()
Sets the value ofCfnSubnetGroupProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnSubnetGroupProps.getDescription()
- Parameters:
description
- The description for the cache subnet group. This parameter is required.- Returns:
this
-
subnetIds
Sets the value ofCfnSubnetGroupProps.getSubnetIds()
- Parameters:
subnetIds
- The EC2 subnet IDs for the cache subnet group. This parameter is required.- Returns:
this
-
cacheSubnetGroupName
@Stability(Stable) public CfnSubnetGroupProps.Builder cacheSubnetGroupName(String cacheSubnetGroupName) Sets the value ofCfnSubnetGroupProps.getCacheSubnetGroupName()
- Parameters:
cacheSubnetGroupName
- The name for the cache subnet group. This value is stored as a lowercase string. Constraints: Must contain no more than 255 alphanumeric characters or hyphens.Example:
mysubnetgroup
- Returns:
this
-
tags
Sets the value ofCfnSubnetGroupProps.getTags()
- Parameters:
tags
- A tag that can be added to an ElastiCache subnet group. Tags are composed of a Key/Value pair. You can use tags to categorize and track all your subnet groups. A tag with a null Value is permitted.- 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
-