Class CfnSubnetGroupPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.elasticache.CfnSubnetGroupPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubnetGroupPropsMixin>
- Enclosing class:
CfnSubnetGroupPropsMixin
@Stability(Stable)
public static final class CfnSubnetGroupPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSubnetGroupPropsMixin>
A fluent builder for
CfnSubnetGroupPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()cacheSubnetGroupName(String cacheSubnetGroupName) The name for the cache subnet group.create()create(CfnPropertyMixinOptions options) description(String description) The description for the cache subnet group.The EC2 subnet IDs for the cache subnet group.A tag that can be added to an ElastiCache subnet group.
-
Method Details
-
create
@Stability(Stable) public static CfnSubnetGroupPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnSubnetGroupPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnSubnetGroupPropsMixin.Builder.
-
cacheSubnetGroupName
@Stability(Stable) public CfnSubnetGroupPropsMixin.Builder cacheSubnetGroupName(String 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- Parameters:
cacheSubnetGroupName- The name for the cache subnet group. This value is stored as a lowercase string. This parameter is required.- Returns:
this- See Also:
-
description
The description for the cache subnet group.- Parameters:
description- The description for the cache subnet group. This parameter is required.- Returns:
this- See Also:
-
subnetIds
@Stability(Stable) public CfnSubnetGroupPropsMixin.Builder subnetIds(List<? extends Object> subnetIds) The EC2 subnet IDs for the cache subnet group.- Parameters:
subnetIds- The EC2 subnet IDs for the cache subnet group. This parameter is required.- Returns:
this- See Also:
-
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.
- Parameters:
tags- A tag that can be added to an ElastiCache subnet group. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSubnetGroupPropsMixin>- Returns:
- a newly built instance of
CfnSubnetGroupPropsMixin.
-