Class CfnSecurityGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.CfnSecurityGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecurityGroupProps>
- Enclosing interface:
- CfnSecurityGroupProps
@Stability(Stable)
public static final class CfnSecurityGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSecurityGroupProps>
A builder for
CfnSecurityGroupProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnSecurityGroupProps.getDescription()Sets the value ofCfnSecurityGroupProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnSecurityGroupProps.getDescription()- Parameters:
description- A description for the cache security group. This parameter is required.- Returns:
this
-
tags
Sets the value ofCfnSecurityGroupProps.getTags()- Parameters:
tags- A tag that can be added to an ElastiCache security group. Tags are composed of a Key/Value pair. You can use tags to categorize and track all your security groups. A tag with a null Value is permitted.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSecurityGroupProps>- Returns:
- a new instance of
CfnSecurityGroupProps - Throws:
NullPointerException- if any required attribute was not provided
-