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)The IP addresses associated with the network interface.NetworkInterface.Builderipv6Addresses(Collection<String> ipv6Addresses)The IP addresses associated with the network interface.NetworkInterface.BuildernetworkInterfaceId(String networkInterfaceId)The ID of the network interface.NetworkInterface.BuilderprivateDnsName(String privateDnsName)The name of a private DNS associated with the network interface.NetworkInterface.BuilderprivateIpAddress(String privateIpAddress)The private IP address associated with the network interface.NetworkInterface.BuilderprivateIpAddresses(Collection<PrivateIp> privateIpAddresses)A list of the private IP addresses associated with the network interface.NetworkInterface.BuilderprivateIpAddresses(Consumer<PrivateIp.Builder>... privateIpAddresses)A list of the private IP addresses associated with the network interface.NetworkInterface.BuilderprivateIpAddresses(PrivateIp... privateIpAddresses)A list of the private IP addresses associated with the network interface.NetworkInterface.BuilderpublicDnsName(String publicDnsName)The name of a public DNS associated with the network interface.NetworkInterface.BuilderpublicIp(String publicIp)The public IP address from which the network interface is reachable.NetworkInterface.BuildersecurityGroups(Collection<SecurityGroup> securityGroups)A list of the security groups associated with the network interface.NetworkInterface.BuildersecurityGroups(Consumer<SecurityGroup.Builder>... securityGroups)A list of the security groups associated with the network interface.NetworkInterface.BuildersecurityGroups(SecurityGroup... securityGroups)A list of the security groups associated with the network interface.NetworkInterface.BuildersubnetId(String subnetId)The ID of a subnet associated with the network interface.NetworkInterface.BuildervpcId(String vpcId)The ID of a VPC associated with the network interface.-
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
-
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.
-
subnetId
NetworkInterface.Builder subnetId(String subnetId)
The ID of a subnet associated with the network interface.
- Parameters:
subnetId- The ID of a subnet associated with the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcId
NetworkInterface.Builder vpcId(String vpcId)
The ID of a VPC associated with the network interface.
- Parameters:
vpcId- The ID of a VPC associated with 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 name of a private DNS associated with the network interface.
- Parameters:
privateDnsName- The name of a private DNS associated with the network interface.- 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 associated with the network interface.
- Parameters:
privateIpAddress- The private IP address associated with the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
NetworkInterface.Builder privateIpAddresses(Collection<PrivateIp> privateIpAddresses)
A list of the private IP addresses associated with the network interface. Includes the privateDnsName and privateIpAddress.
- Parameters:
privateIpAddresses- A list of the private IP addresses associated with the network interface. Includes the privateDnsName and privateIpAddress.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
NetworkInterface.Builder privateIpAddresses(PrivateIp... privateIpAddresses)
A list of the private IP addresses associated with the network interface. Includes the privateDnsName and privateIpAddress.
- Parameters:
privateIpAddresses- A list of the private IP addresses associated with the network interface. Includes the privateDnsName and privateIpAddress.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
NetworkInterface.Builder privateIpAddresses(Consumer<PrivateIp.Builder>... privateIpAddresses)
A list of the private IP addresses associated with the network interface. Includes the privateDnsName and privateIpAddress.
This is a convenience method that creates an instance of thePrivateIp.Builderavoiding the need to create one manually viaPrivateIp.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 onPrivateIp.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 name of a public DNS associated with the network interface.
- Parameters:
publicDnsName- The name of a public DNS associated with the network interface.- 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 from which the network interface is reachable.
- Parameters:
publicIp- The public IP address from which the network interface is reachable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Addresses
NetworkInterface.Builder ipv6Addresses(Collection<String> ipv6Addresses)
The IP addresses associated with the network interface.
- Parameters:
ipv6Addresses- The IP addresses associated with the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Addresses
NetworkInterface.Builder ipv6Addresses(String... ipv6Addresses)
The IP addresses associated with the network interface.
- Parameters:
ipv6Addresses- The IP addresses associated with the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
NetworkInterface.Builder securityGroups(Collection<SecurityGroup> securityGroups)
A list of the security groups associated with the network interface. Includes the groupId and groupName.
- Parameters:
securityGroups- A list of the security groups associated with the network interface. Includes the groupId and groupName.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
NetworkInterface.Builder securityGroups(SecurityGroup... securityGroups)
A list of the security groups associated with the network interface. Includes the groupId and groupName.
- Parameters:
securityGroups- A list of the security groups associated with the network interface. Includes the groupId and groupName.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
NetworkInterface.Builder securityGroups(Consumer<SecurityGroup.Builder>... securityGroups)
A list of the security groups associated with the network interface. Includes the groupId and groupName.
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)
-
-