Interface NetworkInterface.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<NetworkInterface.Builder,NetworkInterface>,SdkBuilder<NetworkInterface.Builder,NetworkInterface>,SdkPojo
- Enclosing class:
- NetworkInterface
public static interface NetworkInterface.Builder extends SdkPojo, CopyableBuilder<NetworkInterface.Builder,NetworkInterface>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NetworkInterface.Builderipv6Addresses(String... ipv6Addresses)A list of IPv6 addresses for the EC2 instance.NetworkInterface.Builderipv6Addresses(Collection<String> ipv6Addresses)A list of IPv6 addresses for the EC2 instance.NetworkInterface.BuildernetworkInterfaceId(String networkInterfaceId)The ID of the network interface.NetworkInterface.BuilderprivateDnsName(String privateDnsName)The private DNS name of the EC2 instance.NetworkInterface.BuilderprivateIpAddress(String privateIpAddress)The private IP address of the EC2 instance.NetworkInterface.BuilderprivateIpAddresses(Collection<PrivateIpAddressDetails> privateIpAddresses)Other private IP address information of the EC2 instance.NetworkInterface.BuilderprivateIpAddresses(Consumer<PrivateIpAddressDetails.Builder>... privateIpAddresses)Other private IP address information of the EC2 instance.NetworkInterface.BuilderprivateIpAddresses(PrivateIpAddressDetails... privateIpAddresses)Other private IP address information of the EC2 instance.NetworkInterface.BuilderpublicDnsName(String publicDnsName)The public DNS name of the EC2 instance.NetworkInterface.BuilderpublicIp(String publicIp)The public IP address of the EC2 instance.NetworkInterface.BuildersecurityGroups(Collection<SecurityGroup> securityGroups)The security groups associated with the EC2 instance.NetworkInterface.BuildersecurityGroups(Consumer<SecurityGroup.Builder>... securityGroups)The security groups associated with the EC2 instance.NetworkInterface.BuildersecurityGroups(SecurityGroup... securityGroups)The security groups associated with the EC2 instance.NetworkInterface.BuildersubnetId(String subnetId)The subnet ID of the EC2 instance.NetworkInterface.BuildervpcId(String vpcId)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 Detail
-
ipv6Addresses
NetworkInterface.Builder ipv6Addresses(Collection<String> 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
NetworkInterface.Builder ipv6Addresses(String... 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
NetworkInterface.Builder networkInterfaceId(String 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
NetworkInterface.Builder privateDnsName(String 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
NetworkInterface.Builder privateIpAddress(String 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
NetworkInterface.Builder privateIpAddresses(Collection<PrivateIpAddressDetails> 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(PrivateIpAddressDetails... 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.Builderavoiding the need to create one manually viaPrivateIpAddressDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#privateIpAddresses(List.) - 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:
#privateIpAddresses(java.util.Collection)
-
publicDnsName
NetworkInterface.Builder publicDnsName(String 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
NetworkInterface.Builder publicIp(String 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
NetworkInterface.Builder securityGroups(Collection<SecurityGroup> 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
NetworkInterface.Builder securityGroups(SecurityGroup... 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
NetworkInterface.Builder securityGroups(Consumer<SecurityGroup.Builder>... securityGroups)
The security groups associated with the EC2 instance.
This is a convenience method that creates an instance of theSecurityGroup.Builderavoiding the need to create one manually viaSecurityGroup.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#securityGroups(List.) - 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:
#securityGroups(java.util.Collection)
-
subnetId
NetworkInterface.Builder subnetId(String 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
NetworkInterface.Builder vpcId(String 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.
-
-