Interface SecurityGroup.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<SecurityGroup.Builder,SecurityGroup>
,SdkBuilder<SecurityGroup.Builder,SecurityGroup>
,SdkPojo
- Enclosing class:
- SecurityGroup
public static interface SecurityGroup.Builder extends SdkPojo, CopyableBuilder<SecurityGroup.Builder,SecurityGroup>
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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)
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)
The outbound rules associated with the security group.SecurityGroup.Builder
ipPermissionsEgress(Consumer<IpPermission.Builder>... ipPermissionsEgress)
The outbound rules associated with the security group.SecurityGroup.Builder
ipPermissionsEgress(IpPermission... ipPermissionsEgress)
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)
The ID of the VPC for the security group.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
description
SecurityGroup.Builder description(String description)
A description of the security group.
- Parameters:
description
- A description of the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupName
SecurityGroup.Builder groupName(String groupName)
The name of the security group.
- Parameters:
groupName
- The name of the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipPermissions
SecurityGroup.Builder ipPermissions(Collection<IpPermission> ipPermissions)
The inbound rules associated with the security group.
- Parameters:
ipPermissions
- The inbound rules associated with the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipPermissions
SecurityGroup.Builder ipPermissions(IpPermission... ipPermissions)
The inbound rules associated with the security group.
- Parameters:
ipPermissions
- The inbound rules associated with the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipPermissions
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 viaIpPermission.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#ipPermissions(List
.) - Parameters:
ipPermissions
- a consumer that will call methods onIpPermission.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#ipPermissions(java.util.Collection
)
-
ownerId
SecurityGroup.Builder ownerId(String ownerId)
The Amazon Web Services account ID of the owner of the security group.
- Parameters:
ownerId
- The Amazon Web Services account ID of the owner of the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupId
SecurityGroup.Builder groupId(String groupId)
The ID of the security group.
- Parameters:
groupId
- The ID of the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipPermissionsEgress
SecurityGroup.Builder ipPermissionsEgress(Collection<IpPermission> ipPermissionsEgress)
The outbound rules associated with the security group.
- Parameters:
ipPermissionsEgress
- The outbound rules associated with the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipPermissionsEgress
SecurityGroup.Builder ipPermissionsEgress(IpPermission... ipPermissionsEgress)
The outbound rules associated with the security group.
- Parameters:
ipPermissionsEgress
- The outbound rules associated with the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipPermissionsEgress
SecurityGroup.Builder ipPermissionsEgress(Consumer<IpPermission.Builder>... ipPermissionsEgress)
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 viaIpPermission.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#ipPermissionsEgress(List
.) - Parameters:
ipPermissionsEgress
- a consumer that will call methods onIpPermission.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#ipPermissionsEgress(java.util.Collection
)
-
tags
SecurityGroup.Builder tags(Collection<Tag> tags)
Any tags assigned to the security group.
- Parameters:
tags
- Any tags assigned to the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
SecurityGroup.Builder tags(Tag... tags)
Any tags assigned to the security group.
- Parameters:
tags
- Any tags assigned to the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
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 viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#tags(List
.) - Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection
)
-
vpcId
SecurityGroup.Builder vpcId(String vpcId)
The ID of the VPC for the security group.
- Parameters:
vpcId
- The ID of the VPC for the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-