Interface NetworkInterface.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<NetworkInterface.Builder,
,NetworkInterface> SdkBuilder<NetworkInterface.Builder,
,NetworkInterface> SdkPojo
- Enclosing class:
NetworkInterface
-
Method Summary
Modifier and TypeMethodDescriptiondefault NetworkInterface.Builder
association
(Consumer<NetworkInterfaceAssociation.Builder> association) The association information for an Elastic IP address (IPv4) associated with the network interface.association
(NetworkInterfaceAssociation association) The association information for an Elastic IP address (IPv4) associated with the network interface.default NetworkInterface.Builder
attachment
(Consumer<NetworkInterfaceAttachment.Builder> attachment) The network interface attachment.attachment
(NetworkInterfaceAttachment attachment) The network interface attachment.availabilityZone
(String availabilityZone) The Availability Zone.default NetworkInterface.Builder
connectionTrackingConfiguration
(Consumer<ConnectionTrackingConfiguration.Builder> connectionTrackingConfiguration) A security group connection tracking configuration that enables you to set the timeout for connection tracking on an Elastic network interface.connectionTrackingConfiguration
(ConnectionTrackingConfiguration connectionTrackingConfiguration) A security group connection tracking configuration that enables you to set the timeout for connection tracking on an Elastic network interface.denyAllIgwTraffic
(Boolean denyAllIgwTraffic) Indicates whether a network interface with an IPv6 address is unreachable from the public internet.description
(String description) A description.groups
(Collection<GroupIdentifier> groups) Any security groups for the network interface.groups
(Consumer<GroupIdentifier.Builder>... groups) Any security groups for the network interface.groups
(GroupIdentifier... groups) Any security groups for the network interface.interfaceType
(String interfaceType) The type of network interface.interfaceType
(NetworkInterfaceType interfaceType) The type of network interface.ipv4Prefixes
(Collection<Ipv4PrefixSpecification> ipv4Prefixes) The IPv4 prefixes that are assigned to the network interface.ipv4Prefixes
(Consumer<Ipv4PrefixSpecification.Builder>... ipv4Prefixes) The IPv4 prefixes that are assigned to the network interface.ipv4Prefixes
(Ipv4PrefixSpecification... ipv4Prefixes) The IPv4 prefixes that are assigned to the network interface.ipv6Address
(String ipv6Address) The IPv6 globally unique address associated with the network interface.ipv6Addresses
(Collection<NetworkInterfaceIpv6Address> ipv6Addresses) The IPv6 addresses associated with the network interface.ipv6Addresses
(Consumer<NetworkInterfaceIpv6Address.Builder>... ipv6Addresses) The IPv6 addresses associated with the network interface.ipv6Addresses
(NetworkInterfaceIpv6Address... ipv6Addresses) The IPv6 addresses associated with the network interface.ipv6Native
(Boolean ipv6Native) Indicates whether this is an IPv6 only network interface.ipv6Prefixes
(Collection<Ipv6PrefixSpecification> ipv6Prefixes) The IPv6 prefixes that are assigned to the network interface.ipv6Prefixes
(Consumer<Ipv6PrefixSpecification.Builder>... ipv6Prefixes) The IPv6 prefixes that are assigned to the network interface.ipv6Prefixes
(Ipv6PrefixSpecification... ipv6Prefixes) The IPv6 prefixes that are assigned to the network interface.macAddress
(String macAddress) The MAC address.networkInterfaceId
(String networkInterfaceId) The ID of the network interface.outpostArn
(String outpostArn) The Amazon Resource Name (ARN) of the Outpost.The Amazon Web Services account ID of the owner of the network interface.privateDnsName
(String privateDnsName) The private DNS name.privateIpAddress
(String privateIpAddress) The IPv4 address of the network interface within the subnet.privateIpAddresses
(Collection<NetworkInterfacePrivateIpAddress> privateIpAddresses) The private IPv4 addresses associated with the network interface.privateIpAddresses
(Consumer<NetworkInterfacePrivateIpAddress.Builder>... privateIpAddresses) The private IPv4 addresses associated with the network interface.privateIpAddresses
(NetworkInterfacePrivateIpAddress... privateIpAddresses) The private IPv4 addresses associated with the network interface.requesterId
(String requesterId) The alias or Amazon Web Services account ID of the principal or service that created the network interface.requesterManaged
(Boolean requesterManaged) Indicates whether the network interface is being managed by Amazon Web Services.sourceDestCheck
(Boolean sourceDestCheck) Indicates whether source/destination checking is enabled.The status of the network interface.status
(NetworkInterfaceStatus status) The status of the network interface.The ID of the subnet.tagSet
(Collection<Tag> tagSet) Any tags assigned to the network interface.tagSet
(Consumer<Tag.Builder>... tagSet) Any tags assigned to the network interface.Any tags assigned to the network interface.The ID of the VPC.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 Details
-
association
The association information for an Elastic IP address (IPv4) associated with the network interface.
- Parameters:
association
- The association information for an Elastic IP address (IPv4) associated with the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
association
default NetworkInterface.Builder association(Consumer<NetworkInterfaceAssociation.Builder> association) The association information for an Elastic IP address (IPv4) associated with the network interface.
This is a convenience method that creates an instance of theNetworkInterfaceAssociation.Builder
avoiding the need to create one manually viaNetworkInterfaceAssociation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toassociation(NetworkInterfaceAssociation)
.- Parameters:
association
- a consumer that will call methods onNetworkInterfaceAssociation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
attachment
The network interface attachment.
- Parameters:
attachment
- The network interface attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachment
default NetworkInterface.Builder attachment(Consumer<NetworkInterfaceAttachment.Builder> attachment) The network interface attachment.
This is a convenience method that creates an instance of theNetworkInterfaceAttachment.Builder
avoiding the need to create one manually viaNetworkInterfaceAttachment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattachment(NetworkInterfaceAttachment)
.- Parameters:
attachment
- a consumer that will call methods onNetworkInterfaceAttachment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
availabilityZone
The Availability Zone.
- Parameters:
availabilityZone
- The Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connectionTrackingConfiguration
NetworkInterface.Builder connectionTrackingConfiguration(ConnectionTrackingConfiguration connectionTrackingConfiguration) A security group connection tracking configuration that enables you to set the timeout for connection tracking on an Elastic network interface. For more information, see Connection tracking timeouts in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
connectionTrackingConfiguration
- A security group connection tracking configuration that enables you to set the timeout for connection tracking on an Elastic network interface. For more information, see Connection tracking timeouts in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connectionTrackingConfiguration
default NetworkInterface.Builder connectionTrackingConfiguration(Consumer<ConnectionTrackingConfiguration.Builder> connectionTrackingConfiguration) A security group connection tracking configuration that enables you to set the timeout for connection tracking on an Elastic network interface. For more information, see Connection tracking timeouts in the Amazon Elastic Compute Cloud User Guide.
This is a convenience method that creates an instance of theConnectionTrackingConfiguration.Builder
avoiding the need to create one manually viaConnectionTrackingConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconnectionTrackingConfiguration(ConnectionTrackingConfiguration)
.- Parameters:
connectionTrackingConfiguration
- a consumer that will call methods onConnectionTrackingConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
A description.
- Parameters:
description
- A description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
Any security groups for the network interface.
- Parameters:
groups
- Any security groups for the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
Any security groups for the network interface.
- Parameters:
groups
- Any security groups for the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
Any security groups for the network interface.
This is a convenience method that creates an instance of theGroupIdentifier.Builder
avoiding the need to create one manually viaGroupIdentifier.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togroups(List<GroupIdentifier>)
.- Parameters:
groups
- a consumer that will call methods onGroupIdentifier.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
interfaceType
The type of network interface.
- Parameters:
interfaceType
- The type of network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
interfaceType
The type of network interface.
- Parameters:
interfaceType
- The type of network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipv6Addresses
The IPv6 addresses associated with the network interface.
- Parameters:
ipv6Addresses
- The IPv6 addresses associated with the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Addresses
The IPv6 addresses associated with the network interface.
- Parameters:
ipv6Addresses
- The IPv6 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(Consumer<NetworkInterfaceIpv6Address.Builder>... ipv6Addresses) The IPv6 addresses associated with the network interface.
This is a convenience method that creates an instance of theNetworkInterfaceIpv6Address.Builder
avoiding the need to create one manually viaNetworkInterfaceIpv6Address.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toipv6Addresses(List<NetworkInterfaceIpv6Address>)
.- Parameters:
ipv6Addresses
- a consumer that will call methods onNetworkInterfaceIpv6Address.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
macAddress
The MAC address.
- Parameters:
macAddress
- The MAC address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
outpostArn
The Amazon Resource Name (ARN) of the Outpost.
- Parameters:
outpostArn
- The Amazon Resource Name (ARN) of the Outpost.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerId
The Amazon Web Services account ID of the owner of the network interface.
- Parameters:
ownerId
- The Amazon Web Services account ID of the owner of the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateDnsName
The private DNS name.
- Parameters:
privateDnsName
- The private DNS name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddress
The IPv4 address of the network interface within the subnet.
- Parameters:
privateIpAddress
- The IPv4 address of the network interface within the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
NetworkInterface.Builder privateIpAddresses(Collection<NetworkInterfacePrivateIpAddress> privateIpAddresses) The private IPv4 addresses associated with the network interface.
- Parameters:
privateIpAddresses
- The private IPv4 addresses associated with the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
The private IPv4 addresses associated with the network interface.
- Parameters:
privateIpAddresses
- The private IPv4 addresses associated with the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
NetworkInterface.Builder privateIpAddresses(Consumer<NetworkInterfacePrivateIpAddress.Builder>... privateIpAddresses) The private IPv4 addresses associated with the network interface.
This is a convenience method that creates an instance of theNetworkInterfacePrivateIpAddress.Builder
avoiding the need to create one manually viaNetworkInterfacePrivateIpAddress.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprivateIpAddresses(List<NetworkInterfacePrivateIpAddress>)
.- Parameters:
privateIpAddresses
- a consumer that will call methods onNetworkInterfacePrivateIpAddress.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipv4Prefixes
The IPv4 prefixes that are assigned to the network interface.
- Parameters:
ipv4Prefixes
- The IPv4 prefixes that are assigned to the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv4Prefixes
The IPv4 prefixes that are assigned to the network interface.
- Parameters:
ipv4Prefixes
- The IPv4 prefixes that are assigned to the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv4Prefixes
The IPv4 prefixes that are assigned to the network interface.
This is a convenience method that creates an instance of theIpv4PrefixSpecification.Builder
avoiding the need to create one manually viaIpv4PrefixSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toipv4Prefixes(List<Ipv4PrefixSpecification>)
.- Parameters:
ipv4Prefixes
- a consumer that will call methods onIpv4PrefixSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipv6Prefixes
The IPv6 prefixes that are assigned to the network interface.
- Parameters:
ipv6Prefixes
- The IPv6 prefixes that are assigned to the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Prefixes
The IPv6 prefixes that are assigned to the network interface.
- Parameters:
ipv6Prefixes
- The IPv6 prefixes that are assigned to the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Prefixes
The IPv6 prefixes that are assigned to the network interface.
This is a convenience method that creates an instance of theIpv6PrefixSpecification.Builder
avoiding the need to create one manually viaIpv6PrefixSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toipv6Prefixes(List<Ipv6PrefixSpecification>)
.- Parameters:
ipv6Prefixes
- a consumer that will call methods onIpv6PrefixSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
requesterId
The alias or Amazon Web Services account ID of the principal or service that created the network interface.
- Parameters:
requesterId
- The alias or Amazon Web Services account ID of the principal or service that created the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requesterManaged
Indicates whether the network interface is being managed by Amazon Web Services.
- Parameters:
requesterManaged
- Indicates whether the network interface is being managed by Amazon Web Services.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceDestCheck
Indicates whether source/destination checking is enabled.
- Parameters:
sourceDestCheck
- Indicates whether source/destination checking is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the network interface.
- Parameters:
status
- The status of the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the network interface.
- Parameters:
status
- The status of the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
subnetId
The ID of the subnet.
- Parameters:
subnetId
- The ID of the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSet
Any tags assigned to the network interface.
- Parameters:
tagSet
- Any tags assigned to the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSet
Any tags assigned to the network interface.
- Parameters:
tagSet
- Any tags assigned to the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSet
Any tags assigned to the network interface.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totagSet(List<Tag>)
.- Parameters:
tagSet
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vpcId
The ID of the VPC.
- Parameters:
vpcId
- The ID of the VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
denyAllIgwTraffic
Indicates whether a network interface with an IPv6 address is unreachable from the public internet. If the value is
true
, inbound traffic from the internet is dropped and you cannot assign an elastic IP address to the network interface. The network interface is reachable from peered VPCs and resources connected through a transit gateway, including on-premises networks.- Parameters:
denyAllIgwTraffic
- Indicates whether a network interface with an IPv6 address is unreachable from the public internet. If the value istrue
, inbound traffic from the internet is dropped and you cannot assign an elastic IP address to the network interface. The network interface is reachable from peered VPCs and resources connected through a transit gateway, including on-premises networks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Native
Indicates whether this is an IPv6 only network interface.
- Parameters:
ipv6Native
- Indicates whether this is an IPv6 only network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Address
The IPv6 globally unique address associated with the network interface.
- Parameters:
ipv6Address
- The IPv6 globally unique address associated with the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-