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(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(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(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.
|
copy
apply, build
SecurityGroup.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 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 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 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.