Interface Ec2NetworkInterface.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Ec2NetworkInterface.Builder,
,Ec2NetworkInterface> SdkBuilder<Ec2NetworkInterface.Builder,
,Ec2NetworkInterface> SdkPojo
- Enclosing class:
Ec2NetworkInterface
-
Method Summary
Modifier and TypeMethodDescriptionipv6Addresses
(String... ipv6Addresses) A list of IPv6 addresses for the Amazon EC2 instance.ipv6Addresses
(Collection<String> ipv6Addresses) A list of IPv6 addresses for the Amazon EC2 instance.privateIpAddresses
(Collection<PrivateIpAddressDetails> privateIpAddresses) Other private IP address information of the Amazon EC2 instance.privateIpAddresses
(Consumer<PrivateIpAddressDetails.Builder>... privateIpAddresses) Other private IP address information of the Amazon EC2 instance.privateIpAddresses
(PrivateIpAddressDetails... privateIpAddresses) Other private IP address information of the Amazon EC2 instance.The public IP address of the Amazon EC2 instance.securityGroups
(Collection<SecurityGroup> securityGroups) The security groups associated with the Amazon EC2 instance.securityGroups
(Consumer<SecurityGroup.Builder>... securityGroups) The security groups associated with the Amazon EC2 instance.securityGroups
(SecurityGroup... securityGroups) The security groups associated with the Amazon EC2 instance.The subnet ID of the Amazon EC2 instance.The VPC ID of the Amazon EC2 instance.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
-
ipv6Addresses
A list of IPv6 addresses for the Amazon EC2 instance.
- Parameters:
ipv6Addresses
- A list of IPv6 addresses for the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Addresses
A list of IPv6 addresses for the Amazon EC2 instance.
- Parameters:
ipv6Addresses
- A list of IPv6 addresses for the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
Ec2NetworkInterface.Builder privateIpAddresses(Collection<PrivateIpAddressDetails> privateIpAddresses) Other private IP address information of the Amazon EC2 instance.
- Parameters:
privateIpAddresses
- Other private IP address information of the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
Other private IP address information of the Amazon EC2 instance.
- Parameters:
privateIpAddresses
- Other private IP address information of the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
Ec2NetworkInterface.Builder privateIpAddresses(Consumer<PrivateIpAddressDetails.Builder>... privateIpAddresses) Other private IP address information of the Amazon EC2 instance.
This is a convenience method that creates an instance of thePrivateIpAddressDetails.Builder
avoiding the need to create one manually viaPrivateIpAddressDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprivateIpAddresses(List<PrivateIpAddressDetails>)
.- Parameters:
privateIpAddresses
- a consumer that will call methods onPrivateIpAddressDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
publicIp
The public IP address of the Amazon EC2 instance.
- Parameters:
publicIp
- The public IP address of the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
The security groups associated with the Amazon EC2 instance.
- Parameters:
securityGroups
- The security groups associated with the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
The security groups associated with the Amazon EC2 instance.
- Parameters:
securityGroups
- The security groups associated with the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
The security groups associated with the Amazon EC2 instance.
This is a convenience method that creates an instance of theSecurityGroup.Builder
avoiding the need to create one manually viaSecurityGroup.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosecurityGroups(List<SecurityGroup>)
.- Parameters:
securityGroups
- a consumer that will call methods onSecurityGroup.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
subNetId
The subnet ID of the Amazon EC2 instance.
- Parameters:
subNetId
- The subnet ID of the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcId
The VPC ID of the Amazon EC2 instance.
- Parameters:
vpcId
- The VPC ID of the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-