Interface InstanceNetworkInterface.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceNetworkInterface.Builder,InstanceNetworkInterface>,SdkBuilder<InstanceNetworkInterface.Builder,InstanceNetworkInterface>,SdkPojo
- Enclosing class:
- InstanceNetworkInterface
public static interface InstanceNetworkInterface.Builder extends SdkPojo, CopyableBuilder<InstanceNetworkInterface.Builder,InstanceNetworkInterface>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default InstanceNetworkInterface.Builderassociation(Consumer<InstanceNetworkInterfaceAssociation.Builder> association)The association information for an Elastic IPv4 associated with the network interface.InstanceNetworkInterface.Builderassociation(InstanceNetworkInterfaceAssociation association)The association information for an Elastic IPv4 associated with the network interface.default InstanceNetworkInterface.Builderattachment(Consumer<InstanceNetworkInterfaceAttachment.Builder> attachment)The network interface attachment.InstanceNetworkInterface.Builderattachment(InstanceNetworkInterfaceAttachment attachment)The network interface attachment.default InstanceNetworkInterface.BuilderconnectionTrackingConfiguration(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.InstanceNetworkInterface.BuilderconnectionTrackingConfiguration(ConnectionTrackingSpecificationResponse connectionTrackingConfiguration)A security group connection tracking configuration that enables you to set the timeout for connection tracking on an Elastic network interface.InstanceNetworkInterface.Builderdescription(String description)The description.InstanceNetworkInterface.Buildergroups(Collection<GroupIdentifier> groups)The security groups.InstanceNetworkInterface.Buildergroups(Consumer<GroupIdentifier.Builder>... groups)The security groups.InstanceNetworkInterface.Buildergroups(GroupIdentifier... groups)The security groups.InstanceNetworkInterface.BuilderinterfaceType(String interfaceType)The type of network interface.InstanceNetworkInterface.Builderipv4Prefixes(Collection<InstanceIpv4Prefix> ipv4Prefixes)The IPv4 delegated prefixes that are assigned to the network interface.InstanceNetworkInterface.Builderipv4Prefixes(Consumer<InstanceIpv4Prefix.Builder>... ipv4Prefixes)The IPv4 delegated prefixes that are assigned to the network interface.InstanceNetworkInterface.Builderipv4Prefixes(InstanceIpv4Prefix... ipv4Prefixes)The IPv4 delegated prefixes that are assigned to the network interface.InstanceNetworkInterface.Builderipv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)The IPv6 addresses associated with the network interface.InstanceNetworkInterface.Builderipv6Addresses(Consumer<InstanceIpv6Address.Builder>... ipv6Addresses)The IPv6 addresses associated with the network interface.InstanceNetworkInterface.Builderipv6Addresses(InstanceIpv6Address... ipv6Addresses)The IPv6 addresses associated with the network interface.InstanceNetworkInterface.Builderipv6Prefixes(Collection<InstanceIpv6Prefix> ipv6Prefixes)The IPv6 delegated prefixes that are assigned to the network interface.InstanceNetworkInterface.Builderipv6Prefixes(Consumer<InstanceIpv6Prefix.Builder>... ipv6Prefixes)The IPv6 delegated prefixes that are assigned to the network interface.InstanceNetworkInterface.Builderipv6Prefixes(InstanceIpv6Prefix... ipv6Prefixes)The IPv6 delegated prefixes that are assigned to the network interface.InstanceNetworkInterface.BuildermacAddress(String macAddress)The MAC address.InstanceNetworkInterface.BuildernetworkInterfaceId(String networkInterfaceId)The ID of the network interface.InstanceNetworkInterface.BuilderownerId(String ownerId)The ID of the Amazon Web Services account that created the network interface.InstanceNetworkInterface.BuilderprivateDnsName(String privateDnsName)The private DNS name.InstanceNetworkInterface.BuilderprivateIpAddress(String privateIpAddress)The IPv4 address of the network interface within the subnet.InstanceNetworkInterface.BuilderprivateIpAddresses(Collection<InstancePrivateIpAddress> privateIpAddresses)The private IPv4 addresses associated with the network interface.InstanceNetworkInterface.BuilderprivateIpAddresses(Consumer<InstancePrivateIpAddress.Builder>... privateIpAddresses)The private IPv4 addresses associated with the network interface.InstanceNetworkInterface.BuilderprivateIpAddresses(InstancePrivateIpAddress... privateIpAddresses)The private IPv4 addresses associated with the network interface.InstanceNetworkInterface.BuildersourceDestCheck(Boolean sourceDestCheck)Indicates whether source/destination checking is enabled.InstanceNetworkInterface.Builderstatus(String status)The status of the network interface.InstanceNetworkInterface.Builderstatus(NetworkInterfaceStatus status)The status of the network interface.InstanceNetworkInterface.BuildersubnetId(String subnetId)The ID of the subnet.InstanceNetworkInterface.BuildervpcId(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
InstanceNetworkInterface.Builder association(InstanceNetworkInterfaceAssociation 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.Builderavoiding the need to create one manually viaInstanceNetworkInterfaceAssociation.builder().When the
Consumercompletes,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:
association(InstanceNetworkInterfaceAssociation)
-
attachment
InstanceNetworkInterface.Builder attachment(InstanceNetworkInterfaceAttachment 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.Builderavoiding the need to create one manually viaInstanceNetworkInterfaceAttachment.builder().When the
Consumercompletes,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:
attachment(InstanceNetworkInterfaceAttachment)
-
description
InstanceNetworkInterface.Builder description(String description)
The description.
- Parameters:
description- The description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
InstanceNetworkInterface.Builder groups(Collection<GroupIdentifier> 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
InstanceNetworkInterface.Builder groups(GroupIdentifier... 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
InstanceNetworkInterface.Builder groups(Consumer<GroupIdentifier.Builder>... groups)
The security groups.
This is a convenience method that creates an instance of theGroupIdentifier.Builderavoiding the need to create one manually viaGroupIdentifier.builder().When the
Consumercompletes,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)
-
ipv6Addresses
InstanceNetworkInterface.Builder ipv6Addresses(Collection<InstanceIpv6Address> 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(InstanceIpv6Address... 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.Builderavoiding the need to create one manually viaInstanceIpv6Address.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#ipv6Addresses(List.) - 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:
#ipv6Addresses(java.util.Collection)
-
macAddress
InstanceNetworkInterface.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
InstanceNetworkInterface.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.
-
ownerId
InstanceNetworkInterface.Builder ownerId(String 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
InstanceNetworkInterface.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
InstanceNetworkInterface.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
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
InstanceNetworkInterface.Builder privateIpAddresses(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
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.Builderavoiding the need to create one manually viaInstancePrivateIpAddress.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 onInstancePrivateIpAddress.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#privateIpAddresses(java.util.Collection)
-
sourceDestCheck
InstanceNetworkInterface.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
InstanceNetworkInterface.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
InstanceNetworkInterface.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
InstanceNetworkInterface.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.
-
vpcId
InstanceNetworkInterface.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.
-
interfaceType
InstanceNetworkInterface.Builder interfaceType(String 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
InstanceNetworkInterface.Builder ipv4Prefixes(Collection<InstanceIpv4Prefix> 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
InstanceNetworkInterface.Builder ipv4Prefixes(InstanceIpv4Prefix... 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
InstanceNetworkInterface.Builder ipv4Prefixes(Consumer<InstanceIpv4Prefix.Builder>... ipv4Prefixes)
The IPv4 delegated prefixes that are assigned to the network interface.
This is a convenience method that creates an instance of theInstanceIpv4Prefix.Builderavoiding the need to create one manually viaInstanceIpv4Prefix.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#ipv4Prefixes(List.) - 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:
#ipv4Prefixes(java.util.Collection)
-
ipv6Prefixes
InstanceNetworkInterface.Builder ipv6Prefixes(Collection<InstanceIpv6Prefix> 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
InstanceNetworkInterface.Builder ipv6Prefixes(InstanceIpv6Prefix... 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
InstanceNetworkInterface.Builder ipv6Prefixes(Consumer<InstanceIpv6Prefix.Builder>... ipv6Prefixes)
The IPv6 delegated prefixes that are assigned to the network interface.
This is a convenience method that creates an instance of theInstanceIpv6Prefix.Builderavoiding the need to create one manually viaInstanceIpv6Prefix.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#ipv6Prefixes(List.) - 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:
#ipv6Prefixes(java.util.Collection)
-
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.Builderavoiding the need to create one manually viaConnectionTrackingSpecificationResponse.builder().When the
Consumercompletes,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:
connectionTrackingConfiguration(ConnectionTrackingSpecificationResponse)
-
-