Interface CacheSecurityGroup.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<CacheSecurityGroup.Builder,CacheSecurityGroup>
,SdkBuilder<CacheSecurityGroup.Builder,CacheSecurityGroup>
,SdkPojo
- Enclosing class:
- CacheSecurityGroup
@Mutable @NotThreadSafe public static interface CacheSecurityGroup.Builder extends SdkPojo, CopyableBuilder<CacheSecurityGroup.Builder,CacheSecurityGroup>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CacheSecurityGroup.Builder
arn(String arn)
The ARN of the cache security group,CacheSecurityGroup.Builder
cacheSecurityGroupName(String cacheSecurityGroupName)
The name of the cache security group.CacheSecurityGroup.Builder
description(String description)
The description of the cache security group.CacheSecurityGroup.Builder
ec2SecurityGroups(Collection<EC2SecurityGroup> ec2SecurityGroups)
A list of Amazon EC2 security groups that are associated with this cache security group.CacheSecurityGroup.Builder
ec2SecurityGroups(Consumer<EC2SecurityGroup.Builder>... ec2SecurityGroups)
A list of Amazon EC2 security groups that are associated with this cache security group.CacheSecurityGroup.Builder
ec2SecurityGroups(EC2SecurityGroup... ec2SecurityGroups)
A list of Amazon EC2 security groups that are associated with this cache security group.CacheSecurityGroup.Builder
ownerId(String ownerId)
The Amazon account ID of the cache security group owner.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
ownerId
CacheSecurityGroup.Builder ownerId(String 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
CacheSecurityGroup.Builder cacheSecurityGroupName(String 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
CacheSecurityGroup.Builder description(String 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
CacheSecurityGroup.Builder ec2SecurityGroups(Collection<EC2SecurityGroup> 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(EC2SecurityGroup... 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.Builder
avoiding the need to create one manually viaEC2SecurityGroup.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#ec2SecurityGroups(List
.) - 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:
#ec2SecurityGroups(java.util.Collection
)
-
arn
CacheSecurityGroup.Builder arn(String 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.
-
-