Interface SecurityGroup.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SecurityGroup.Builder,,SecurityGroup> SdkBuilder<SecurityGroup.Builder,,SecurityGroup> SdkPojo
- Enclosing class:
SecurityGroup
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) A description of the security group.The ID of the security group.The name of the security group.ipPermissions(Collection<IpPermission> ipPermissions) The inbound rules associated with the security group.ipPermissions(Consumer<IpPermission.Builder>... ipPermissions) The inbound rules associated with the security group.ipPermissions(IpPermission... ipPermissions) The inbound rules associated with the security group.ipPermissionsEgress(Collection<IpPermission> ipPermissionsEgress) The outbound rules associated with the security group.ipPermissionsEgress(Consumer<IpPermission.Builder>... ipPermissionsEgress) The outbound rules associated with the security group.ipPermissionsEgress(IpPermission... ipPermissionsEgress) The outbound rules associated with the security group.The Amazon Web Services account ID of the owner of the security group.tags(Collection<Tag> tags) Any tags assigned to the security group.tags(Consumer<Tag.Builder>... tags) Any tags assigned to the security group.Any tags assigned to the security group.The ID of the VPC for the security group.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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
The outbound rules associated with the security group.
This is a convenience method that creates an instance of theIpPermission.Builderavoiding the need to create one manually viaIpPermission.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toipPermissionsEgress(List<IpPermission>).- 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:
-
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
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
Any tags assigned to the security group.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- 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:
-
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.
-
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.
-
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.
-
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.
-
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
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
The inbound rules associated with the security group.
This is a convenience method that creates an instance of theIpPermission.Builderavoiding the need to create one manually viaIpPermission.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toipPermissions(List<IpPermission>).- 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:
-