CopyableBuilder<SecurityGroup.Builder,SecurityGroup>, SdkBuilder<SecurityGroup.Builder,SecurityGroup>public static interface SecurityGroup.Builder extends CopyableBuilder<SecurityGroup.Builder,SecurityGroup>
| Modifier and Type | Method | 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.
|
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.
NOTE: This method appends the values to the existing list (if any). Use
#setIpPermissions(java.util.Collection) or #withIpPermissions(java.util.Collection) if you
want to override the existing values.
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.
NOTE: This method appends the values to the existing list (if any). Use
#setIpPermissionsEgress(java.util.Collection) or
#withIpPermissionsEgress(java.util.Collection) if you want to override the existing values.
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.
NOTE: This method appends the values to the existing list (if any). Use
#setTags(java.util.Collection) or #withTags(java.util.Collection) if you want to override the
existing values.
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.