public static interface SecurityGroup.Builder extends SdkPojo, 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)
The inbound rules associated with the security group.
|
SecurityGroup.Builder |
ipPermissions(Consumer<IpPermission.Builder>... ipPermissions)
The inbound rules associated with the security group.
|
SecurityGroup.Builder |
ipPermissions(IpPermission... ipPermissions)
The inbound rules associated with the security group.
|
SecurityGroup.Builder |
ipPermissionsEgress(Collection<IpPermission> ipPermissionsEgress)
[VPC only] The outbound rules associated with the security group.
|
SecurityGroup.Builder |
ipPermissionsEgress(Consumer<IpPermission.Builder>... ipPermissionsEgress)
[VPC only] The outbound rules associated with the security group.
|
SecurityGroup.Builder |
ipPermissionsEgress(IpPermission... ipPermissionsEgress)
[VPC only] The outbound rules associated with the security group.
|
SecurityGroup.Builder |
ownerId(String ownerId)
The Amazon Web Services 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)
[VPC only] The ID of the VPC for the security group.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, 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)
The inbound rules associated with the security group.
ipPermissions - The inbound rules associated with the security group.SecurityGroup.Builder ipPermissions(IpPermission... ipPermissions)
The inbound rules associated with the security group.
ipPermissions - The inbound rules associated with the security group.SecurityGroup.Builder ipPermissions(Consumer<IpPermission.Builder>... ipPermissions)
The inbound rules associated with the security group.
This is a convenience method that creates an instance of theIpPermission.Builder avoiding the need to create one
manually via IpPermission.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #ipPermissions(List.
ipPermissions - a consumer that will call methods on
IpPermission.Builder#ipPermissions(java.util.Collection) SecurityGroup.Builder ownerId(String ownerId)
The Amazon Web Services account ID of the owner of the security group.
ownerId - The Amazon Web Services 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)
[VPC only] The outbound rules associated with the security group.
ipPermissionsEgress - [VPC only] The outbound rules associated with the security group.SecurityGroup.Builder ipPermissionsEgress(IpPermission... ipPermissionsEgress)
[VPC only] The outbound rules associated with the security group.
ipPermissionsEgress - [VPC only] The outbound rules associated with the security group.SecurityGroup.Builder ipPermissionsEgress(Consumer<IpPermission.Builder>... ipPermissionsEgress)
[VPC only] The outbound rules associated with the security group.
This is a convenience method that creates an instance of theIpPermission.Builder avoiding the need to create one
manually via IpPermission.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #ipPermissionsEgress(List.
ipPermissionsEgress - a consumer that will call methods on
IpPermission.Builder#ipPermissionsEgress(java.util.Collection) 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 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) SecurityGroup.Builder vpcId(String vpcId)
[VPC only] The ID of the VPC for the security group.
vpcId - [VPC only] The ID of the VPC for the security group.Copyright © 2023. All rights reserved.