Interface NetworkInterface.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<NetworkInterface.Builder,
,NetworkInterface> SdkBuilder<NetworkInterface.Builder,
,NetworkInterface> SdkPojo
- Enclosing class:
NetworkInterface
-
Method Summary
Modifier and TypeMethodDescriptionipv6Addresses
(String... ipv6Addresses) A list of IPv6 addresses for the EC2 instance.ipv6Addresses
(Collection<String> ipv6Addresses) A list of IPv6 addresses for the EC2 instance.networkInterfaceId
(String networkInterfaceId) The ID of the network interface.privateDnsName
(String privateDnsName) The private DNS name of the EC2 instance.privateIpAddress
(String privateIpAddress) The private IP address of the EC2 instance.privateIpAddresses
(Collection<PrivateIpAddressDetails> privateIpAddresses) Other private IP address information of the EC2 instance.privateIpAddresses
(Consumer<PrivateIpAddressDetails.Builder>... privateIpAddresses) Other private IP address information of the EC2 instance.privateIpAddresses
(PrivateIpAddressDetails... privateIpAddresses) Other private IP address information of the EC2 instance.publicDnsName
(String publicDnsName) The public DNS name of the EC2 instance.The public IP address of the EC2 instance.securityGroups
(Collection<SecurityGroup> securityGroups) The security groups associated with the EC2 instance.securityGroups
(Consumer<SecurityGroup.Builder>... securityGroups) The security groups associated with the EC2 instance.securityGroups
(SecurityGroup... securityGroups) The security groups associated with the EC2 instance.The subnet ID of the EC2 instance.The VPC ID of the 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, sdkFields
-
Method Details
-
ipv6Addresses
A list of IPv6 addresses for the EC2 instance.
- Parameters:
ipv6Addresses
- A list of IPv6 addresses for the 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 EC2 instance.
- Parameters:
ipv6Addresses
- A list of IPv6 addresses for the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaceId
The ID of the network interface.
- Parameters:
networkInterfaceId
- The ID of the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateDnsName
The private DNS name of the EC2 instance.
- Parameters:
privateDnsName
- The private DNS name of the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddress
The private IP address of the EC2 instance.
- Parameters:
privateIpAddress
- The private IP address of the 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 EC2 instance.
- Parameters:
privateIpAddresses
- Other private IP address information of the 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 EC2 instance.
- Parameters:
privateIpAddresses
- Other private IP address information of the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
NetworkInterface.Builder privateIpAddresses(Consumer<PrivateIpAddressDetails.Builder>... privateIpAddresses) Other private IP address information of the 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:
-
publicDnsName
The public DNS name of the EC2 instance.
- Parameters:
publicDnsName
- The public DNS name of the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publicIp
The public IP address of the EC2 instance.
- Parameters:
publicIp
- The public IP address of the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
The security groups associated with the EC2 instance.
- Parameters:
securityGroups
- The security groups associated with the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
The security groups associated with the EC2 instance.
- Parameters:
securityGroups
- The security groups associated with the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
The security groups associated with the 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 EC2 instance.
- Parameters:
subnetId
- The subnet ID of the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcId
The VPC ID of the EC2 instance.
- Parameters:
vpcId
- The VPC ID of the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-