Interface AwsEc2SecurityGroupDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsEc2SecurityGroupDetails.Builder,
,AwsEc2SecurityGroupDetails> SdkBuilder<AwsEc2SecurityGroupDetails.Builder,
,AwsEc2SecurityGroupDetails> SdkPojo
- Enclosing class:
AwsEc2SecurityGroupDetails
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the security group.The name of the security group.ipPermissions
(Collection<AwsEc2SecurityGroupIpPermission> ipPermissions) The inbound rules associated with the security group.ipPermissions
(Consumer<AwsEc2SecurityGroupIpPermission.Builder>... ipPermissions) The inbound rules associated with the security group.ipPermissions
(AwsEc2SecurityGroupIpPermission... ipPermissions) The inbound rules associated with the security group.ipPermissionsEgress
(Collection<AwsEc2SecurityGroupIpPermission> ipPermissionsEgress) [VPC only] The outbound rules associated with the security group.ipPermissionsEgress
(Consumer<AwsEc2SecurityGroupIpPermission.Builder>... ipPermissionsEgress) [VPC only] The outbound rules associated with the security group.ipPermissionsEgress
(AwsEc2SecurityGroupIpPermission... ipPermissionsEgress) [VPC only] The outbound rules associated with the security group.The Amazon Web Services account ID of the owner of the security group.[VPC only] 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, sdkFieldNameToField, sdkFields
-
Method Details
-
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.
-
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.
-
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.
-
vpcId
[VPC only] The ID of the VPC for the security group.
- Parameters:
vpcId
- [VPC only] The ID of the VPC for the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipPermissions
AwsEc2SecurityGroupDetails.Builder ipPermissions(Collection<AwsEc2SecurityGroupIpPermission> 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
AwsEc2SecurityGroupDetails.Builder ipPermissions(Consumer<AwsEc2SecurityGroupIpPermission.Builder>... ipPermissions) The inbound rules associated with the security group.
This is a convenience method that creates an instance of theAwsEc2SecurityGroupIpPermission.Builder
avoiding the need to create one manually viaAwsEc2SecurityGroupIpPermission.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toipPermissions(List<AwsEc2SecurityGroupIpPermission>)
.- Parameters:
ipPermissions
- a consumer that will call methods onAwsEc2SecurityGroupIpPermission.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipPermissionsEgress
AwsEc2SecurityGroupDetails.Builder ipPermissionsEgress(Collection<AwsEc2SecurityGroupIpPermission> ipPermissionsEgress) [VPC only] The outbound rules associated with the security group.
- Parameters:
ipPermissionsEgress
- [VPC only] The outbound rules associated with the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipPermissionsEgress
AwsEc2SecurityGroupDetails.Builder ipPermissionsEgress(AwsEc2SecurityGroupIpPermission... ipPermissionsEgress) [VPC only] The outbound rules associated with the security group.
- Parameters:
ipPermissionsEgress
- [VPC only] The outbound rules associated with the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipPermissionsEgress
AwsEc2SecurityGroupDetails.Builder ipPermissionsEgress(Consumer<AwsEc2SecurityGroupIpPermission.Builder>... ipPermissionsEgress) [VPC only] The outbound rules associated with the security group.
This is a convenience method that creates an instance of theAwsEc2SecurityGroupIpPermission.Builder
avoiding the need to create one manually viaAwsEc2SecurityGroupIpPermission.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toipPermissionsEgress(List<AwsEc2SecurityGroupIpPermission>)
.- Parameters:
ipPermissionsEgress
- a consumer that will call methods onAwsEc2SecurityGroupIpPermission.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-