Interface AwsEc2SecurityGroupDetails.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AwsEc2SecurityGroupDetails.Builder,AwsEc2SecurityGroupDetails>,SdkBuilder<AwsEc2SecurityGroupDetails.Builder,AwsEc2SecurityGroupDetails>,SdkPojo
- Enclosing class:
- AwsEc2SecurityGroupDetails
public static interface AwsEc2SecurityGroupDetails.Builder extends SdkPojo, CopyableBuilder<AwsEc2SecurityGroupDetails.Builder,AwsEc2SecurityGroupDetails>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AwsEc2SecurityGroupDetails.BuildergroupId(String groupId)The ID of the security group.AwsEc2SecurityGroupDetails.BuildergroupName(String groupName)The name of the security group.AwsEc2SecurityGroupDetails.BuilderipPermissions(Collection<AwsEc2SecurityGroupIpPermission> ipPermissions)The inbound rules associated with the security group.AwsEc2SecurityGroupDetails.BuilderipPermissions(Consumer<AwsEc2SecurityGroupIpPermission.Builder>... ipPermissions)The inbound rules associated with the security group.AwsEc2SecurityGroupDetails.BuilderipPermissions(AwsEc2SecurityGroupIpPermission... ipPermissions)The inbound rules associated with the security group.AwsEc2SecurityGroupDetails.BuilderipPermissionsEgress(Collection<AwsEc2SecurityGroupIpPermission> ipPermissionsEgress)[VPC only] The outbound rules associated with the security group.AwsEc2SecurityGroupDetails.BuilderipPermissionsEgress(Consumer<AwsEc2SecurityGroupIpPermission.Builder>... ipPermissionsEgress)[VPC only] The outbound rules associated with the security group.AwsEc2SecurityGroupDetails.BuilderipPermissionsEgress(AwsEc2SecurityGroupIpPermission... ipPermissionsEgress)[VPC only] The outbound rules associated with the security group.AwsEc2SecurityGroupDetails.BuilderownerId(String ownerId)The Amazon Web Services account ID of the owner of the security group.AwsEc2SecurityGroupDetails.BuildervpcId(String vpcId)[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, sdkFields
-
-
-
-
Method Detail
-
groupName
AwsEc2SecurityGroupDetails.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.
-
groupId
AwsEc2SecurityGroupDetails.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.
-
ownerId
AwsEc2SecurityGroupDetails.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.
-
vpcId
AwsEc2SecurityGroupDetails.Builder vpcId(String 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
AwsEc2SecurityGroupDetails.Builder ipPermissions(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
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.Builderavoiding the need to create one manually viaAwsEc2SecurityGroupIpPermission.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#ipPermissions(List.) - 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:
#ipPermissions(java.util.Collection)
-
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.Builderavoiding the need to create one manually viaAwsEc2SecurityGroupIpPermission.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#ipPermissionsEgress(List.) - 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:
#ipPermissionsEgress(java.util.Collection)
-
-