Interface AwsEc2NetworkInterfaceDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsEc2NetworkInterfaceDetails.Builder,
,AwsEc2NetworkInterfaceDetails> SdkBuilder<AwsEc2NetworkInterfaceDetails.Builder,
,AwsEc2NetworkInterfaceDetails> SdkPojo
- Enclosing class:
AwsEc2NetworkInterfaceDetails
-
Method Summary
Modifier and TypeMethodDescriptionattachment
(Consumer<AwsEc2NetworkInterfaceAttachment.Builder> attachment) The network interface attachment.attachment
(AwsEc2NetworkInterfaceAttachment attachment) The network interface attachment.ipV6Addresses
(Collection<AwsEc2NetworkInterfaceIpV6AddressDetail> ipV6Addresses) The IPv6 addresses associated with the network interface.ipV6Addresses
(Consumer<AwsEc2NetworkInterfaceIpV6AddressDetail.Builder>... ipV6Addresses) The IPv6 addresses associated with the network interface.ipV6Addresses
(AwsEc2NetworkInterfaceIpV6AddressDetail... ipV6Addresses) The IPv6 addresses associated with the network interface.networkInterfaceId
(String networkInterfaceId) The ID of the network interface.privateIpAddresses
(Collection<AwsEc2NetworkInterfacePrivateIpAddressDetail> privateIpAddresses) The private IPv4 addresses associated with the network interface.privateIpAddresses
(Consumer<AwsEc2NetworkInterfacePrivateIpAddressDetail.Builder>... privateIpAddresses) The private IPv4 addresses associated with the network interface.privateIpAddresses
(AwsEc2NetworkInterfacePrivateIpAddressDetail... privateIpAddresses) The private IPv4 addresses associated with the network interface.publicDnsName
(String publicDnsName) The public DNS name of the network interface.The address of the Elastic IP address bound to the network interface.securityGroups
(Collection<AwsEc2NetworkInterfaceSecurityGroup> securityGroups) Security groups for the network interface.securityGroups
(Consumer<AwsEc2NetworkInterfaceSecurityGroup.Builder>... securityGroups) Security groups for the network interface.securityGroups
(AwsEc2NetworkInterfaceSecurityGroup... securityGroups) Security groups for the network interface.sourceDestCheck
(Boolean sourceDestCheck) Indicates whether traffic to or from the instance is validated.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
-
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 AwsEc2NetworkInterfaceDetails.Builder attachment(Consumer<AwsEc2NetworkInterfaceAttachment.Builder> attachment) The network interface attachment.
This is a convenience method that creates an instance of theAwsEc2NetworkInterfaceAttachment.Builder
avoiding the need to create one manually viaAwsEc2NetworkInterfaceAttachment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattachment(AwsEc2NetworkInterfaceAttachment)
.- Parameters:
attachment
- a consumer that will call methods onAwsEc2NetworkInterfaceAttachment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-
securityGroups
AwsEc2NetworkInterfaceDetails.Builder securityGroups(Collection<AwsEc2NetworkInterfaceSecurityGroup> securityGroups) Security groups for the network interface.
- Parameters:
securityGroups
- Security groups for the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
AwsEc2NetworkInterfaceDetails.Builder securityGroups(AwsEc2NetworkInterfaceSecurityGroup... securityGroups) Security groups for the network interface.
- Parameters:
securityGroups
- Security groups for the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
AwsEc2NetworkInterfaceDetails.Builder securityGroups(Consumer<AwsEc2NetworkInterfaceSecurityGroup.Builder>... securityGroups) Security groups for the network interface.
This is a convenience method that creates an instance of theAwsEc2NetworkInterfaceSecurityGroup.Builder
avoiding the need to create one manually viaAwsEc2NetworkInterfaceSecurityGroup.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosecurityGroups(List<AwsEc2NetworkInterfaceSecurityGroup>)
.- Parameters:
securityGroups
- a consumer that will call methods onAwsEc2NetworkInterfaceSecurityGroup.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourceDestCheck
Indicates whether traffic to or from the instance is validated.
- Parameters:
sourceDestCheck
- Indicates whether traffic to or from the instance is validated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipV6Addresses
AwsEc2NetworkInterfaceDetails.Builder ipV6Addresses(Collection<AwsEc2NetworkInterfaceIpV6AddressDetail> 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
AwsEc2NetworkInterfaceDetails.Builder ipV6Addresses(AwsEc2NetworkInterfaceIpV6AddressDetail... 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
AwsEc2NetworkInterfaceDetails.Builder ipV6Addresses(Consumer<AwsEc2NetworkInterfaceIpV6AddressDetail.Builder>... ipV6Addresses) The IPv6 addresses associated with the network interface.
This is a convenience method that creates an instance of theAwsEc2NetworkInterfaceIpV6AddressDetail.Builder
avoiding the need to create one manually viaAwsEc2NetworkInterfaceIpV6AddressDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toipV6Addresses(List<AwsEc2NetworkInterfaceIpV6AddressDetail>)
.- Parameters:
ipV6Addresses
- a consumer that will call methods onAwsEc2NetworkInterfaceIpV6AddressDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
privateIpAddresses
AwsEc2NetworkInterfaceDetails.Builder privateIpAddresses(Collection<AwsEc2NetworkInterfacePrivateIpAddressDetail> 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
AwsEc2NetworkInterfaceDetails.Builder privateIpAddresses(AwsEc2NetworkInterfacePrivateIpAddressDetail... 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
AwsEc2NetworkInterfaceDetails.Builder privateIpAddresses(Consumer<AwsEc2NetworkInterfacePrivateIpAddressDetail.Builder>... privateIpAddresses) The private IPv4 addresses associated with the network interface.
This is a convenience method that creates an instance of theAwsEc2NetworkInterfacePrivateIpAddressDetail.Builder
avoiding the need to create one manually viaAwsEc2NetworkInterfacePrivateIpAddressDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprivateIpAddresses(List<AwsEc2NetworkInterfacePrivateIpAddressDetail>)
.- Parameters:
privateIpAddresses
- a consumer that will call methods onAwsEc2NetworkInterfacePrivateIpAddressDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
publicDnsName
The public DNS name of the network interface.
- Parameters:
publicDnsName
- The public DNS name of the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publicIp
The address of the Elastic IP address bound to the network interface.
- Parameters:
publicIp
- The address of the Elastic IP address bound to the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-