Interface InstanceNetworkInterface.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceNetworkInterface.Builder,
,InstanceNetworkInterface> SdkBuilder<InstanceNetworkInterface.Builder,
,InstanceNetworkInterface> SdkPojo
- Enclosing class:
InstanceNetworkInterface
-
Method Summary
Modifier and TypeMethodDescriptiondefault InstanceNetworkInterface.Builder
association
(Consumer<InstanceNetworkInterfaceAssociation.Builder> association) The association information for an Elastic IPv4 associated with the network interface.association
(InstanceNetworkInterfaceAssociation association) The association information for an Elastic IPv4 associated with the network interface.default InstanceNetworkInterface.Builder
attachment
(Consumer<InstanceNetworkInterfaceAttachment.Builder> attachment) The network interface attachment.attachment
(InstanceNetworkInterfaceAttachment attachment) The network interface attachment.default InstanceNetworkInterface.Builder
connectionTrackingConfiguration
(Consumer<ConnectionTrackingSpecificationResponse.Builder> connectionTrackingConfiguration) A security group connection tracking configuration that enables you to set the timeout for connection tracking on an Elastic network interface.connectionTrackingConfiguration
(ConnectionTrackingSpecificationResponse connectionTrackingConfiguration) A security group connection tracking configuration that enables you to set the timeout for connection tracking on an Elastic network interface.description
(String description) The description.groups
(Collection<GroupIdentifier> groups) The security groups.groups
(Consumer<GroupIdentifier.Builder>... groups) The security groups.groups
(GroupIdentifier... groups) The security groups.interfaceType
(String interfaceType) The type of network interface.ipv4Prefixes
(Collection<InstanceIpv4Prefix> ipv4Prefixes) The IPv4 delegated prefixes that are assigned to the network interface.ipv4Prefixes
(Consumer<InstanceIpv4Prefix.Builder>... ipv4Prefixes) The IPv4 delegated prefixes that are assigned to the network interface.ipv4Prefixes
(InstanceIpv4Prefix... ipv4Prefixes) The IPv4 delegated prefixes that are assigned to the network interface.ipv6Addresses
(Collection<InstanceIpv6Address> ipv6Addresses) The IPv6 addresses associated with the network interface.ipv6Addresses
(Consumer<InstanceIpv6Address.Builder>... ipv6Addresses) The IPv6 addresses associated with the network interface.ipv6Addresses
(InstanceIpv6Address... ipv6Addresses) The IPv6 addresses associated with the network interface.ipv6Prefixes
(Collection<InstanceIpv6Prefix> ipv6Prefixes) The IPv6 delegated prefixes that are assigned to the network interface.ipv6Prefixes
(Consumer<InstanceIpv6Prefix.Builder>... ipv6Prefixes) The IPv6 delegated prefixes that are assigned to the network interface.ipv6Prefixes
(InstanceIpv6Prefix... ipv6Prefixes) The IPv6 delegated prefixes that are assigned to the network interface.macAddress
(String macAddress) The MAC address.networkInterfaceId
(String networkInterfaceId) The ID of the network interface.The ID of the Amazon Web Services account that created 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<InstancePrivateIpAddress> privateIpAddresses) The private IPv4 addresses associated with the network interface.privateIpAddresses
(Consumer<InstancePrivateIpAddress.Builder>... privateIpAddresses) The private IPv4 addresses associated with the network interface.privateIpAddresses
(InstancePrivateIpAddress... privateIpAddresses) The private IPv4 addresses associated with the network interface.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.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 IPv4 associated with the network interface.
- Parameters:
association
- The association information for an Elastic IPv4 associated with the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
association
default InstanceNetworkInterface.Builder association(Consumer<InstanceNetworkInterfaceAssociation.Builder> association) The association information for an Elastic IPv4 associated with the network interface.
This is a convenience method that creates an instance of theInstanceNetworkInterfaceAssociation.Builder
avoiding the need to create one manually viaInstanceNetworkInterfaceAssociation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toassociation(InstanceNetworkInterfaceAssociation)
.- Parameters:
association
- a consumer that will call methods onInstanceNetworkInterfaceAssociation.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 InstanceNetworkInterface.Builder attachment(Consumer<InstanceNetworkInterfaceAttachment.Builder> attachment) The network interface attachment.
This is a convenience method that creates an instance of theInstanceNetworkInterfaceAttachment.Builder
avoiding the need to create one manually viaInstanceNetworkInterfaceAttachment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattachment(InstanceNetworkInterfaceAttachment)
.- Parameters:
attachment
- a consumer that will call methods onInstanceNetworkInterfaceAttachment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
The description.
- Parameters:
description
- The description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
The security groups.
- Parameters:
groups
- The security groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
The security groups.
- Parameters:
groups
- The security groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
The security groups.
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:
-
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
InstanceNetworkInterface.Builder ipv6Addresses(Consumer<InstanceIpv6Address.Builder>... ipv6Addresses) The IPv6 addresses associated with the network interface.
This is a convenience method that creates an instance of theInstanceIpv6Address.Builder
avoiding the need to create one manually viaInstanceIpv6Address.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toipv6Addresses(List<InstanceIpv6Address>)
.- Parameters:
ipv6Addresses
- a consumer that will call methods onInstanceIpv6Address.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.
-
ownerId
The ID of the Amazon Web Services account that created the network interface.
- Parameters:
ownerId
- The ID of the Amazon Web Services account that created 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
InstanceNetworkInterface.Builder privateIpAddresses(Collection<InstancePrivateIpAddress> 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
InstanceNetworkInterface.Builder privateIpAddresses(Consumer<InstancePrivateIpAddress.Builder>... privateIpAddresses) The private IPv4 addresses associated with the network interface.
This is a convenience method that creates an instance of theInstancePrivateIpAddress.Builder
avoiding the need to create one manually viaInstancePrivateIpAddress.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprivateIpAddresses(List<InstancePrivateIpAddress>)
.- Parameters:
privateIpAddresses
- a consumer that will call methods onInstancePrivateIpAddress.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-
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.
-
interfaceType
The type of network interface.
Valid values:
interface
|efa
|trunk
- Parameters:
interfaceType
- The type of network interface.Valid values:
interface
|efa
|trunk
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv4Prefixes
The IPv4 delegated prefixes that are assigned to the network interface.
- Parameters:
ipv4Prefixes
- The IPv4 delegated 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 delegated prefixes that are assigned to the network interface.
- Parameters:
ipv4Prefixes
- The IPv4 delegated 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 delegated prefixes that are assigned to the network interface.
This is a convenience method that creates an instance of theInstanceIpv4Prefix.Builder
avoiding the need to create one manually viaInstanceIpv4Prefix.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toipv4Prefixes(List<InstanceIpv4Prefix>)
.- Parameters:
ipv4Prefixes
- a consumer that will call methods onInstanceIpv4Prefix.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipv6Prefixes
The IPv6 delegated prefixes that are assigned to the network interface.
- Parameters:
ipv6Prefixes
- The IPv6 delegated 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 delegated prefixes that are assigned to the network interface.
- Parameters:
ipv6Prefixes
- The IPv6 delegated 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 delegated prefixes that are assigned to the network interface.
This is a convenience method that creates an instance of theInstanceIpv6Prefix.Builder
avoiding the need to create one manually viaInstanceIpv6Prefix.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toipv6Prefixes(List<InstanceIpv6Prefix>)
.- Parameters:
ipv6Prefixes
- a consumer that will call methods onInstanceIpv6Prefix.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
connectionTrackingConfiguration
InstanceNetworkInterface.Builder connectionTrackingConfiguration(ConnectionTrackingSpecificationResponse 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 EC2 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 EC2 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connectionTrackingConfiguration
default InstanceNetworkInterface.Builder connectionTrackingConfiguration(Consumer<ConnectionTrackingSpecificationResponse.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 EC2 User Guide.
This is a convenience method that creates an instance of theConnectionTrackingSpecificationResponse.Builder
avoiding the need to create one manually viaConnectionTrackingSpecificationResponse.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconnectionTrackingConfiguration(ConnectionTrackingSpecificationResponse)
.- Parameters:
connectionTrackingConfiguration
- a consumer that will call methods onConnectionTrackingSpecificationResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-