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 Default Methods Modifier and Type Method Description default NetworkInterface.Builder
association(Consumer<NetworkInterfaceAssociation.Builder> association)
The association information for an Elastic IP address (IPv4) associated with the network interface.NetworkInterface.Builder
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.NetworkInterface.Builder
attachment(NetworkInterfaceAttachment attachment)
The network interface attachment.NetworkInterface.Builder
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.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.NetworkInterface.Builder
denyAllIgwTraffic(Boolean denyAllIgwTraffic)
Indicates whether a network interface with an IPv6 address is unreachable from the public internet.NetworkInterface.Builder
description(String description)
A description.NetworkInterface.Builder
groups(Collection<GroupIdentifier> groups)
Any security groups for the network interface.NetworkInterface.Builder
groups(Consumer<GroupIdentifier.Builder>... groups)
Any security groups for the network interface.NetworkInterface.Builder
groups(GroupIdentifier... groups)
Any security groups for the network interface.NetworkInterface.Builder
interfaceType(String interfaceType)
The type of network interface.NetworkInterface.Builder
interfaceType(NetworkInterfaceType interfaceType)
The type of network interface.NetworkInterface.Builder
ipv4Prefixes(Collection<Ipv4PrefixSpecification> ipv4Prefixes)
The IPv4 prefixes that are assigned to the network interface.NetworkInterface.Builder
ipv4Prefixes(Consumer<Ipv4PrefixSpecification.Builder>... ipv4Prefixes)
The IPv4 prefixes that are assigned to the network interface.NetworkInterface.Builder
ipv4Prefixes(Ipv4PrefixSpecification... ipv4Prefixes)
The IPv4 prefixes that are assigned to the network interface.NetworkInterface.Builder
ipv6Address(String ipv6Address)
The IPv6 globally unique address associated with the network interface.NetworkInterface.Builder
ipv6Addresses(Collection<NetworkInterfaceIpv6Address> ipv6Addresses)
The IPv6 addresses associated with the network interface.NetworkInterface.Builder
ipv6Addresses(Consumer<NetworkInterfaceIpv6Address.Builder>... ipv6Addresses)
The IPv6 addresses associated with the network interface.NetworkInterface.Builder
ipv6Addresses(NetworkInterfaceIpv6Address... ipv6Addresses)
The IPv6 addresses associated with the network interface.NetworkInterface.Builder
ipv6Native(Boolean ipv6Native)
Indicates whether this is an IPv6 only network interface.NetworkInterface.Builder
ipv6Prefixes(Collection<Ipv6PrefixSpecification> ipv6Prefixes)
The IPv6 prefixes that are assigned to the network interface.NetworkInterface.Builder
ipv6Prefixes(Consumer<Ipv6PrefixSpecification.Builder>... ipv6Prefixes)
The IPv6 prefixes that are assigned to the network interface.NetworkInterface.Builder
ipv6Prefixes(Ipv6PrefixSpecification... ipv6Prefixes)
The IPv6 prefixes that are assigned to the network interface.NetworkInterface.Builder
macAddress(String macAddress)
The MAC address.NetworkInterface.Builder
networkInterfaceId(String networkInterfaceId)
The ID of the network interface.NetworkInterface.Builder
outpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost.NetworkInterface.Builder
ownerId(String ownerId)
The Amazon Web Services account ID of the owner of the network interface.NetworkInterface.Builder
privateDnsName(String privateDnsName)
The private DNS name.NetworkInterface.Builder
privateIpAddress(String privateIpAddress)
The IPv4 address of the network interface within the subnet.NetworkInterface.Builder
privateIpAddresses(Collection<NetworkInterfacePrivateIpAddress> privateIpAddresses)
The private IPv4 addresses associated with the network interface.NetworkInterface.Builder
privateIpAddresses(Consumer<NetworkInterfacePrivateIpAddress.Builder>... privateIpAddresses)
The private IPv4 addresses associated with the network interface.NetworkInterface.Builder
privateIpAddresses(NetworkInterfacePrivateIpAddress... privateIpAddresses)
The private IPv4 addresses associated with the network interface.NetworkInterface.Builder
requesterId(String requesterId)
The alias or Amazon Web Services account ID of the principal or service that created the network interface.NetworkInterface.Builder
requesterManaged(Boolean requesterManaged)
Indicates whether the network interface is being managed by Amazon Web Services.NetworkInterface.Builder
sourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.NetworkInterface.Builder
status(String status)
The status of the network interface.NetworkInterface.Builder
status(NetworkInterfaceStatus status)
The status of the network interface.NetworkInterface.Builder
subnetId(String subnetId)
The ID of the subnet.NetworkInterface.Builder
tagSet(Collection<Tag> tagSet)
Any tags assigned to the network interface.NetworkInterface.Builder
tagSet(Consumer<Tag.Builder>... tagSet)
Any tags assigned to the network interface.NetworkInterface.Builder
tagSet(Tag... tagSet)
Any tags assigned to the network interface.NetworkInterface.Builder
vpcId(String vpcId)
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 Detail
-
association
NetworkInterface.Builder association(NetworkInterfaceAssociation 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:
association(NetworkInterfaceAssociation)
-
attachment
NetworkInterface.Builder attachment(NetworkInterfaceAttachment 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:
attachment(NetworkInterfaceAttachment)
-
availabilityZone
NetworkInterface.Builder availabilityZone(String 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:
connectionTrackingConfiguration(ConnectionTrackingConfiguration)
-
description
NetworkInterface.Builder description(String description)
A description.
- Parameters:
description
- A description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
NetworkInterface.Builder groups(Collection<GroupIdentifier> 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
NetworkInterface.Builder groups(GroupIdentifier... 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
NetworkInterface.Builder groups(Consumer<GroupIdentifier.Builder>... 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 to#groups(List
.) - 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:
#groups(java.util.Collection
)
-
interfaceType
NetworkInterface.Builder interfaceType(String 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:
NetworkInterfaceType
,NetworkInterfaceType
-
interfaceType
NetworkInterface.Builder interfaceType(NetworkInterfaceType 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:
NetworkInterfaceType
,NetworkInterfaceType
-
ipv6Addresses
NetworkInterface.Builder ipv6Addresses(Collection<NetworkInterfaceIpv6Address> 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(NetworkInterfaceIpv6Address... 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 to#ipv6Addresses(List
.) - 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:
#ipv6Addresses(java.util.Collection
)
-
macAddress
NetworkInterface.Builder macAddress(String 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
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.
-
outpostArn
NetworkInterface.Builder outpostArn(String 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
NetworkInterface.Builder ownerId(String 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
NetworkInterface.Builder privateDnsName(String 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
NetworkInterface.Builder privateIpAddress(String 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
NetworkInterface.Builder privateIpAddresses(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
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 to#privateIpAddresses(List
.) - 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:
#privateIpAddresses(java.util.Collection
)
-
ipv4Prefixes
NetworkInterface.Builder ipv4Prefixes(Collection<Ipv4PrefixSpecification> 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
NetworkInterface.Builder ipv4Prefixes(Ipv4PrefixSpecification... 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
NetworkInterface.Builder ipv4Prefixes(Consumer<Ipv4PrefixSpecification.Builder>... 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 to#ipv4Prefixes(List
.) - 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:
#ipv4Prefixes(java.util.Collection
)
-
ipv6Prefixes
NetworkInterface.Builder ipv6Prefixes(Collection<Ipv6PrefixSpecification> 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
NetworkInterface.Builder ipv6Prefixes(Ipv6PrefixSpecification... 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
NetworkInterface.Builder ipv6Prefixes(Consumer<Ipv6PrefixSpecification.Builder>... 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 to#ipv6Prefixes(List
.) - 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:
#ipv6Prefixes(java.util.Collection
)
-
requesterId
NetworkInterface.Builder requesterId(String 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
NetworkInterface.Builder requesterManaged(Boolean 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
NetworkInterface.Builder sourceDestCheck(Boolean 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
NetworkInterface.Builder status(String 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:
NetworkInterfaceStatus
,NetworkInterfaceStatus
-
status
NetworkInterface.Builder status(NetworkInterfaceStatus 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:
NetworkInterfaceStatus
,NetworkInterfaceStatus
-
subnetId
NetworkInterface.Builder subnetId(String 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
NetworkInterface.Builder tagSet(Collection<Tag> 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
NetworkInterface.Builder tagSet(Tag... 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
NetworkInterface.Builder tagSet(Consumer<Tag.Builder>... 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 to#tagSet(List
.) - 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:
#tagSet(java.util.Collection
)
-
vpcId
NetworkInterface.Builder vpcId(String 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
NetworkInterface.Builder denyAllIgwTraffic(Boolean 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
NetworkInterface.Builder ipv6Native(Boolean 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
NetworkInterface.Builder ipv6Address(String 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.
-
-