public static interface NetworkInterface.Builder extends SdkPojo, CopyableBuilder<NetworkInterface.Builder,NetworkInterface>
| Modifier and Type | Method and Description |
|---|---|
NetworkInterface.Builder |
ipv6Addresses(Collection<String> ipv6Addresses)
A list of IPv6 addresses for the EC2 instance.
|
NetworkInterface.Builder |
ipv6Addresses(String... ipv6Addresses)
A list of IPv6 addresses for the EC2 instance.
|
NetworkInterface.Builder |
networkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
NetworkInterface.Builder |
privateDnsName(String privateDnsName)
The private DNS name of the EC2 instance.
|
NetworkInterface.Builder |
privateIpAddress(String privateIpAddress)
The private IP address of the EC2 instance.
|
NetworkInterface.Builder |
privateIpAddresses(Collection<PrivateIpAddressDetails> privateIpAddresses)
Other private IP address information of the EC2 instance.
|
NetworkInterface.Builder |
privateIpAddresses(Consumer<PrivateIpAddressDetails.Builder>... privateIpAddresses)
Other private IP address information of the EC2 instance.
|
NetworkInterface.Builder |
privateIpAddresses(PrivateIpAddressDetails... privateIpAddresses)
Other private IP address information of the EC2 instance.
|
NetworkInterface.Builder |
publicDnsName(String publicDnsName)
The public DNS name of the EC2 instance.
|
NetworkInterface.Builder |
publicIp(String publicIp)
The public IP address of the EC2 instance.
|
NetworkInterface.Builder |
securityGroups(Collection<SecurityGroup> securityGroups)
The security groups associated with the EC2 instance.
|
NetworkInterface.Builder |
securityGroups(Consumer<SecurityGroup.Builder>... securityGroups)
The security groups associated with the EC2 instance.
|
NetworkInterface.Builder |
securityGroups(SecurityGroup... securityGroups)
The security groups associated with the EC2 instance.
|
NetworkInterface.Builder |
subnetId(String subnetId)
The subnet ID of the EC2 instance.
|
NetworkInterface.Builder |
vpcId(String vpcId)
The VPC ID of the EC2 instance.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildNetworkInterface.Builder ipv6Addresses(Collection<String> ipv6Addresses)
A list of IPv6 addresses for the EC2 instance.
ipv6Addresses - A list of IPv6 addresses for the EC2 instance.NetworkInterface.Builder ipv6Addresses(String... ipv6Addresses)
A list of IPv6 addresses for the EC2 instance.
ipv6Addresses - A list of IPv6 addresses for the EC2 instance.NetworkInterface.Builder networkInterfaceId(String networkInterfaceId)
The ID of the network interface.
networkInterfaceId - The ID of the network interface.NetworkInterface.Builder privateDnsName(String privateDnsName)
The private DNS name of the EC2 instance.
privateDnsName - The private DNS name of the EC2 instance.NetworkInterface.Builder privateIpAddress(String privateIpAddress)
The private IP address of the EC2 instance.
privateIpAddress - The private IP address of the EC2 instance.NetworkInterface.Builder privateIpAddresses(Collection<PrivateIpAddressDetails> privateIpAddresses)
Other private IP address information of the EC2 instance.
privateIpAddresses - Other private IP address information of the EC2 instance.NetworkInterface.Builder privateIpAddresses(PrivateIpAddressDetails... privateIpAddresses)
Other private IP address information of the EC2 instance.
privateIpAddresses - Other private IP address information of the EC2 instance.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 via
PrivateIpAddressDetails.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #privateIpAddresses(List.
privateIpAddresses - a consumer that will call methods on
PrivateIpAddressDetails.Builder#privateIpAddresses(java.util.Collection) NetworkInterface.Builder publicDnsName(String publicDnsName)
The public DNS name of the EC2 instance.
publicDnsName - The public DNS name of the EC2 instance.NetworkInterface.Builder publicIp(String publicIp)
The public IP address of the EC2 instance.
publicIp - The public IP address of the EC2 instance.NetworkInterface.Builder securityGroups(Collection<SecurityGroup> securityGroups)
The security groups associated with the EC2 instance.
securityGroups - The security groups associated with the EC2 instance.NetworkInterface.Builder securityGroups(SecurityGroup... securityGroups)
The security groups associated with the EC2 instance.
securityGroups - The security groups associated with the EC2 instance.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.Builder avoiding the need to create one
manually via SecurityGroup.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #securityGroups(List.
securityGroups - a consumer that will call methods on
SecurityGroup.Builder#securityGroups(java.util.Collection) NetworkInterface.Builder subnetId(String subnetId)
The subnet ID of the EC2 instance.
subnetId - The subnet ID of the EC2 instance.NetworkInterface.Builder vpcId(String vpcId)
The VPC ID of the EC2 instance.
vpcId - The VPC ID of the EC2 instance.Copyright © 2023. All rights reserved.