Class CfnSecurityGroupIngressProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.CfnSecurityGroupIngressProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecurityGroupIngressProps>
- Enclosing interface:
CfnSecurityGroupIngressProps
@Stability(Stable)
public static final class CfnSecurityGroupIngressProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSecurityGroupIngressProps>
A builder for
CfnSecurityGroupIngressProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.cacheSecurityGroupName
(String cacheSecurityGroupName) Sets the value ofCfnSecurityGroupIngressProps.getCacheSecurityGroupName()
ec2SecurityGroupName
(String ec2SecurityGroupName) Sets the value ofCfnSecurityGroupIngressProps.getEc2SecurityGroupName()
ec2SecurityGroupOwnerId
(String ec2SecurityGroupOwnerId) Sets the value ofCfnSecurityGroupIngressProps.getEc2SecurityGroupOwnerId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cacheSecurityGroupName
@Stability(Stable) public CfnSecurityGroupIngressProps.Builder cacheSecurityGroupName(String cacheSecurityGroupName) Sets the value ofCfnSecurityGroupIngressProps.getCacheSecurityGroupName()
- Parameters:
cacheSecurityGroupName
- The name of the Cache Security Group to authorize. This parameter is required.- Returns:
this
-
ec2SecurityGroupName
@Stability(Stable) public CfnSecurityGroupIngressProps.Builder ec2SecurityGroupName(String ec2SecurityGroupName) Sets the value ofCfnSecurityGroupIngressProps.getEc2SecurityGroupName()
- Parameters:
ec2SecurityGroupName
- Name of the EC2 Security Group to include in the authorization. This parameter is required.- Returns:
this
-
ec2SecurityGroupOwnerId
@Stability(Stable) public CfnSecurityGroupIngressProps.Builder ec2SecurityGroupOwnerId(String ec2SecurityGroupOwnerId) Sets the value ofCfnSecurityGroupIngressProps.getEc2SecurityGroupOwnerId()
- Parameters:
ec2SecurityGroupOwnerId
- Specifies the Amazon Account ID of the owner of the EC2 security group specified in the EC2SecurityGroupName property. The Amazon access key ID is not an acceptable value.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSecurityGroupIngressProps>
- Returns:
- a new instance of
CfnSecurityGroupIngressProps
- Throws:
NullPointerException
- if any required attribute was not provided
-