Interface CacheSecurityGroup.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CacheSecurityGroup.Builder,,CacheSecurityGroup> SdkBuilder<CacheSecurityGroup.Builder,,CacheSecurityGroup> SdkPojo
- Enclosing class:
CacheSecurityGroup
public static interface CacheSecurityGroup.Builder
extends SdkPojo, CopyableBuilder<CacheSecurityGroup.Builder,CacheSecurityGroup>
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the cache security group,cacheSecurityGroupName(String cacheSecurityGroupName) The name of the cache security group.description(String description) The description of the cache security group.ec2SecurityGroups(Collection<EC2SecurityGroup> ec2SecurityGroups) A list of Amazon EC2 security groups that are associated with this cache security group.ec2SecurityGroups(Consumer<EC2SecurityGroup.Builder>... ec2SecurityGroups) A list of Amazon EC2 security groups that are associated with this cache security group.ec2SecurityGroups(EC2SecurityGroup... ec2SecurityGroups) A list of Amazon EC2 security groups that are associated with this cache security group.The Amazon account ID of the cache security group owner.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
ownerId
The Amazon account ID of the cache security group owner.
- Parameters:
ownerId- The Amazon account ID of the cache security group owner.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cacheSecurityGroupName
The name of the cache security group.
- Parameters:
cacheSecurityGroupName- The name of the cache security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the cache security group.
- Parameters:
description- The description of the cache security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ec2SecurityGroups
A list of Amazon EC2 security groups that are associated with this cache security group.
- Parameters:
ec2SecurityGroups- A list of Amazon EC2 security groups that are associated with this cache security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ec2SecurityGroups
A list of Amazon EC2 security groups that are associated with this cache security group.
- Parameters:
ec2SecurityGroups- A list of Amazon EC2 security groups that are associated with this cache security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ec2SecurityGroups
CacheSecurityGroup.Builder ec2SecurityGroups(Consumer<EC2SecurityGroup.Builder>... ec2SecurityGroups) A list of Amazon EC2 security groups that are associated with this cache security group.
This is a convenience method that creates an instance of theEC2SecurityGroup.Builderavoiding the need to create one manually viaEC2SecurityGroup.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toec2SecurityGroups(List<EC2SecurityGroup>).- Parameters:
ec2SecurityGroups- a consumer that will call methods onEC2SecurityGroup.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
arn
The ARN of the cache security group,
- Parameters:
arn- The ARN of the cache security group,- Returns:
- Returns a reference to this object so that method calls can be chained together.
-