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) The IP addresses associated with the network interface.ipv6Addresses(Collection<String> ipv6Addresses) The IP addresses associated with the network interface.networkInterfaceId(String networkInterfaceId) The ID of the network interface.privateDnsName(String privateDnsName) The name of a private DNS associated with the network interface.privateIpAddress(String privateIpAddress) The private IP address associated with the network interface.privateIpAddresses(Collection<PrivateIp> privateIpAddresses) A list of the private IP addresses associated with the network interface.privateIpAddresses(Consumer<PrivateIp.Builder>... privateIpAddresses) A list of the private IP addresses associated with the network interface.privateIpAddresses(PrivateIp... privateIpAddresses) A list of the private IP addresses associated with the network interface.publicDnsName(String publicDnsName) The name of a public DNS associated with the network interface.The public IP address from which the network interface is reachable.securityGroups(Collection<SecurityGroup> securityGroups) A list of the security groups associated with the network interface.securityGroups(Consumer<SecurityGroup.Builder>... securityGroups) A list of the security groups associated with the network interface.securityGroups(SecurityGroup... securityGroups) A list of the security groups associated with the network interface.The ID of a subnet associated with the network interface.The ID of a VPC associated with the network interface.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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
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
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
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
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
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 toprivateIpAddresses(List<PrivateIp>).- 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:
-
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
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
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
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
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
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
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 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:
-