public static interface SecurityGroup.Builder extends CopyableBuilder<SecurityGroup.Builder,SecurityGroup>
| Modifier and Type | Method and Description |
|---|---|
SecurityGroup.Builder |
description(String description)
A description of the security group.
|
SecurityGroup.Builder |
groupId(String groupId)
The ID of the security group.
|
SecurityGroup.Builder |
groupName(String groupName)
The name of the security group.
|
SecurityGroup.Builder |
ipPermissions(Collection<IpPermission> ipPermissions)
One or more inbound rules associated with the security group.
|
SecurityGroup.Builder |
ipPermissions(Consumer<IpPermission.Builder>... ipPermissions)
One or more inbound rules associated with the security group.
|
SecurityGroup.Builder |
ipPermissions(IpPermission... ipPermissions)
One or more inbound rules associated with the security group.
|
SecurityGroup.Builder |
ipPermissionsEgress(Collection<IpPermission> ipPermissionsEgress)
[EC2-VPC] One or more outbound rules associated with the security group.
|
SecurityGroup.Builder |
ipPermissionsEgress(Consumer<IpPermission.Builder>... ipPermissionsEgress)
[EC2-VPC] One or more outbound rules associated with the security group.
|
SecurityGroup.Builder |
ipPermissionsEgress(IpPermission... ipPermissionsEgress)
[EC2-VPC] One or more outbound rules associated with the security group.
|
SecurityGroup.Builder |
ownerId(String ownerId)
The AWS account ID of the owner of the security group.
|
SecurityGroup.Builder |
tags(Collection<Tag> tags)
Any tags assigned to the security group.
|
SecurityGroup.Builder |
tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the security group.
|
SecurityGroup.Builder |
tags(Tag... tags)
Any tags assigned to the security group.
|
SecurityGroup.Builder |
vpcId(String vpcId)
[EC2-VPC] The ID of the VPC for the security group.
|
copyapply, buildSecurityGroup.Builder description(String description)
A description of the security group.
description - A description of the security group.SecurityGroup.Builder groupName(String groupName)
The name of the security group.
groupName - The name of the security group.SecurityGroup.Builder ipPermissions(Collection<IpPermission> ipPermissions)
One or more inbound rules associated with the security group.
ipPermissions - One or more inbound rules associated with the security group.SecurityGroup.Builder ipPermissions(IpPermission... ipPermissions)
One or more inbound rules associated with the security group.
ipPermissions - One or more inbound rules associated with the security group.SecurityGroup.Builder ipPermissions(Consumer<IpPermission.Builder>... ipPermissions)
One or more inbound rules associated with the 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 #ipPermissions(List) .ipPermissions - a consumer that will call methods on List.Builder #ipPermissions(List) SecurityGroup.Builder ownerId(String ownerId)
The AWS account ID of the owner of the security group.
ownerId - The AWS account ID of the owner of the security group.SecurityGroup.Builder groupId(String groupId)
The ID of the security group.
groupId - The ID of the security group.SecurityGroup.Builder ipPermissionsEgress(Collection<IpPermission> ipPermissionsEgress)
[EC2-VPC] One or more outbound rules associated with the security group.
ipPermissionsEgress - [EC2-VPC] One or more outbound rules associated with the security group.SecurityGroup.Builder ipPermissionsEgress(IpPermission... ipPermissionsEgress)
[EC2-VPC] One or more outbound rules associated with the security group.
ipPermissionsEgress - [EC2-VPC] One or more outbound rules associated with the security group.SecurityGroup.Builder ipPermissionsEgress(Consumer<IpPermission.Builder>... ipPermissionsEgress)
[EC2-VPC] One or more outbound rules associated with the 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 #ipPermissionsEgress(List) .ipPermissionsEgress - a consumer that will call methods on List.Builder #ipPermissionsEgress(List) SecurityGroup.Builder tags(Collection<Tag> tags)
Any tags assigned to the security group.
tags - Any tags assigned to the security group.SecurityGroup.Builder tags(Tag... tags)
Any tags assigned to the security group.
tags - Any tags assigned to the security group.SecurityGroup.Builder tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the 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) SecurityGroup.Builder vpcId(String vpcId)
[EC2-VPC] The ID of the VPC for the security group.
vpcId - [EC2-VPC] The ID of the VPC for the security group.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.