public static interface EC2SecurityGroup.Builder extends SdkPojo, 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 Amazon Web Services account 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.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildEC2SecurityGroup.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 Amazon Web Services account ID of the owner of the EC2 security group specified in the
EC2SecurityGroupName field.
ec2SecurityGroupOwnerId - The Amazon Web Services account 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 method that creates an instance of theTag.Builder avoiding the need to create one manually
via Tag.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #tags(List.
tags - a consumer that will call methods on
Tag.Builder#tags(java.util.Collection) Copyright © 2022. All rights reserved.