Class CfnSubnetGroupMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.elasticache.CfnSubnetGroupMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubnetGroupMixinProps>
- Enclosing interface:
CfnSubnetGroupMixinProps
@Stability(Stable)
public static final class CfnSubnetGroupMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSubnetGroupMixinProps>
A builder for
CfnSubnetGroupMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cacheSubnetGroupName(String cacheSubnetGroupName) Sets the value ofCfnSubnetGroupMixinProps.getCacheSubnetGroupName()description(String description) Sets the value ofCfnSubnetGroupMixinProps.getDescription()Sets the value ofCfnSubnetGroupMixinProps.getSubnetIds()Sets the value ofCfnSubnetGroupMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cacheSubnetGroupName
@Stability(Stable) public CfnSubnetGroupMixinProps.Builder cacheSubnetGroupName(String cacheSubnetGroupName) Sets the value ofCfnSubnetGroupMixinProps.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
-
description
Sets the value ofCfnSubnetGroupMixinProps.getDescription()- Parameters:
description- The description for the cache subnet group.- Returns:
this
-
subnetIds
@Stability(Stable) public CfnSubnetGroupMixinProps.Builder subnetIds(List<? extends Object> subnetIds) Sets the value ofCfnSubnetGroupMixinProps.getSubnetIds()- Parameters:
subnetIds- The EC2 subnet IDs for the cache subnet group.- Returns:
this
-
tags
Sets the value ofCfnSubnetGroupMixinProps.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnSubnetGroupMixinProps>- Returns:
- a new instance of
CfnSubnetGroupMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-