public static interface EC2SecurityGroup.Builder extends CopyableBuilder<EC2SecurityGroup.Builder,EC2SecurityGroup>
Modifier and Type | Method and Description |
---|---|
EC2SecurityGroup.Builder |
ec2SecurityGroupName(String ec2SecurityGroupName)
The name of the EC2 Security Group.
|
EC2SecurityGroup.Builder |
ec2SecurityGroupOwnerId(String ec2SecurityGroupOwnerId)
The AWS ID of the owner of the EC2 security group specified in the
EC2SecurityGroupName field. |
EC2SecurityGroup.Builder |
status(String status)
The status of the EC2 security group.
|
EC2SecurityGroup.Builder |
tags(Collection<Tag> tags)
The list of tags for the EC2 security group.
|
EC2SecurityGroup.Builder |
tags(Consumer<Tag.Builder>... tags)
The list of tags for the EC2 security group.
|
EC2SecurityGroup.Builder |
tags(Tag... tags)
The list of tags for the EC2 security group.
|
copy
applyMutation, build
EC2SecurityGroup.Builder status(String status)
The status of the EC2 security group.
status
- The status of the EC2 security group.EC2SecurityGroup.Builder ec2SecurityGroupName(String ec2SecurityGroupName)
The name of the EC2 Security Group.
ec2SecurityGroupName
- The name of the EC2 Security Group.EC2SecurityGroup.Builder ec2SecurityGroupOwnerId(String ec2SecurityGroupOwnerId)
The AWS ID of the owner of the EC2 security group specified in the EC2SecurityGroupName
field.
ec2SecurityGroupOwnerId
- The AWS ID of the owner of the EC2 security group specified in the EC2SecurityGroupName
field.EC2SecurityGroup.Builder tags(Collection<Tag> tags)
The list of tags for the EC2 security group.
tags
- The list of tags for the EC2 security group.EC2SecurityGroup.Builder tags(Tag... tags)
The list of tags for the EC2 security group.
tags
- The list of tags for the EC2 security group.EC2SecurityGroup.Builder tags(Consumer<Tag.Builder>... tags)
The list of tags for the EC2 security group.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.