public static interface NetworkInterface.Builder extends CopyableBuilder<NetworkInterface.Builder,NetworkInterface>
Modifier and Type | Method and Description |
---|---|
NetworkInterface.Builder |
ipv6Addresses(Collection<String> ipv6Addresses)
A list of EC2 instance IPv6 address information.
|
NetworkInterface.Builder |
ipv6Addresses(String... ipv6Addresses)
A list of EC2 instance IPv6 address information.
|
NetworkInterface.Builder |
privateDnsName(String privateDnsName)
Private DNS name of the EC2 instance.
|
NetworkInterface.Builder |
privateIpAddress(String privateIpAddress)
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)
Public DNS name of the EC2 instance.
|
NetworkInterface.Builder |
publicIp(String publicIp)
Public IP address of the EC2 instance.
|
NetworkInterface.Builder |
securityGroups(Collection<SecurityGroup> securityGroups)
Security groups associated with the EC2 instance.
|
NetworkInterface.Builder |
securityGroups(Consumer<SecurityGroup.Builder>... securityGroups)
Security groups associated with the EC2 instance.
|
NetworkInterface.Builder |
securityGroups(SecurityGroup... securityGroups)
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.
|
copy
applyMutation, build
NetworkInterface.Builder ipv6Addresses(Collection<String> ipv6Addresses)
ipv6Addresses
- A list of EC2 instance IPv6 address information.NetworkInterface.Builder ipv6Addresses(String... ipv6Addresses)
ipv6Addresses
- A list of EC2 instance IPv6 address information.NetworkInterface.Builder privateDnsName(String privateDnsName)
privateDnsName
- Private DNS name of the EC2 instance.NetworkInterface.Builder privateIpAddress(String privateIpAddress)
privateIpAddress
- Private IP address of the EC2 instance.NetworkInterface.Builder privateIpAddresses(Collection<PrivateIpAddressDetails> privateIpAddresses)
privateIpAddresses
- Other private IP address information of the EC2 instance.NetworkInterface.Builder privateIpAddresses(PrivateIpAddressDetails... privateIpAddresses)
privateIpAddresses
- Other private IP address information of the EC2 instance.NetworkInterface.Builder privateIpAddresses(Consumer<PrivateIpAddressDetails.Builder>... privateIpAddresses)
List.Builder
avoiding the need to create one manually via #builder()
.
When the Consumer
completes, List.Builder#build()
is called
immediately and its result is passed to #privateIpAddresses(List)
.privateIpAddresses
- a consumer that will call methods on List.Builder
#privateIpAddresses(List)
NetworkInterface.Builder publicDnsName(String publicDnsName)
publicDnsName
- Public DNS name of the EC2 instance.NetworkInterface.Builder publicIp(String publicIp)
publicIp
- Public IP address of the EC2 instance.NetworkInterface.Builder securityGroups(Collection<SecurityGroup> securityGroups)
securityGroups
- Security groups associated with the EC2 instance.NetworkInterface.Builder securityGroups(SecurityGroup... securityGroups)
securityGroups
- Security groups associated with the EC2 instance.NetworkInterface.Builder securityGroups(Consumer<SecurityGroup.Builder>... securityGroups)
List.Builder
avoiding the need to create one manually via #builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #securityGroups(List)
.securityGroups
- a consumer that will call methods on List.Builder
#securityGroups(List)
NetworkInterface.Builder subnetId(String subnetId)
subnetId
- The subnet ID of the EC2 instance.NetworkInterface.Builder vpcId(String vpcId)
vpcId
- The VPC ID of the EC2 instance.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.