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 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

      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 the EC2SecurityGroup.Builder avoiding the need to create one manually via EC2SecurityGroup.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to ec2SecurityGroups(List<EC2SecurityGroup>).

      Parameters:
      ec2SecurityGroups - a consumer that will call methods on EC2SecurityGroup.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.