Interface Ec2NetworkInterface.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Ec2NetworkInterface.Builder,Ec2NetworkInterface>,SdkBuilder<Ec2NetworkInterface.Builder,Ec2NetworkInterface>,SdkPojo
- Enclosing class:
- Ec2NetworkInterface
public static interface Ec2NetworkInterface.Builder extends SdkPojo, CopyableBuilder<Ec2NetworkInterface.Builder,Ec2NetworkInterface>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Ec2NetworkInterface.Builderipv6Addresses(String... ipv6Addresses)A list of IPv6 addresses for the Amazon EC2 instance.Ec2NetworkInterface.Builderipv6Addresses(Collection<String> ipv6Addresses)A list of IPv6 addresses for the Amazon EC2 instance.Ec2NetworkInterface.BuilderprivateIpAddresses(Collection<PrivateIpAddressDetails> privateIpAddresses)Other private IP address information of the Amazon EC2 instance.Ec2NetworkInterface.BuilderprivateIpAddresses(Consumer<PrivateIpAddressDetails.Builder>... privateIpAddresses)Other private IP address information of the Amazon EC2 instance.Ec2NetworkInterface.BuilderprivateIpAddresses(PrivateIpAddressDetails... privateIpAddresses)Other private IP address information of the Amazon EC2 instance.Ec2NetworkInterface.BuilderpublicIp(String publicIp)The public IP address of the Amazon EC2 instance.Ec2NetworkInterface.BuildersecurityGroups(Collection<SecurityGroup> securityGroups)The security groups associated with the Amazon EC2 instance.Ec2NetworkInterface.BuildersecurityGroups(Consumer<SecurityGroup.Builder>... securityGroups)The security groups associated with the Amazon EC2 instance.Ec2NetworkInterface.BuildersecurityGroups(SecurityGroup... securityGroups)The security groups associated with the Amazon EC2 instance.Ec2NetworkInterface.BuildersubNetId(String subNetId)The subnet ID of the Amazon EC2 instance.Ec2NetworkInterface.BuildervpcId(String vpcId)The VPC ID of the Amazon EC2 instance.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
ipv6Addresses
Ec2NetworkInterface.Builder ipv6Addresses(Collection<String> ipv6Addresses)
A list of IPv6 addresses for the Amazon EC2 instance.
- Parameters:
ipv6Addresses- A list of IPv6 addresses for the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Addresses
Ec2NetworkInterface.Builder ipv6Addresses(String... ipv6Addresses)
A list of IPv6 addresses for the Amazon EC2 instance.
- Parameters:
ipv6Addresses- A list of IPv6 addresses for the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
Ec2NetworkInterface.Builder privateIpAddresses(Collection<PrivateIpAddressDetails> privateIpAddresses)
Other private IP address information of the Amazon EC2 instance.
- Parameters:
privateIpAddresses- Other private IP address information of the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
Ec2NetworkInterface.Builder privateIpAddresses(PrivateIpAddressDetails... privateIpAddresses)
Other private IP address information of the Amazon EC2 instance.
- Parameters:
privateIpAddresses- Other private IP address information of the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
Ec2NetworkInterface.Builder privateIpAddresses(Consumer<PrivateIpAddressDetails.Builder>... privateIpAddresses)
Other private IP address information of the Amazon EC2 instance.
This is a convenience method that creates an instance of thePrivateIpAddressDetails.Builderavoiding the need to create one manually viaPrivateIpAddressDetails.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 onPrivateIpAddressDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#privateIpAddresses(java.util.Collection)
-
publicIp
Ec2NetworkInterface.Builder publicIp(String publicIp)
The public IP address of the Amazon EC2 instance.
- Parameters:
publicIp- The public IP address of the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
Ec2NetworkInterface.Builder securityGroups(Collection<SecurityGroup> securityGroups)
The security groups associated with the Amazon EC2 instance.
- Parameters:
securityGroups- The security groups associated with the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
Ec2NetworkInterface.Builder securityGroups(SecurityGroup... securityGroups)
The security groups associated with the Amazon EC2 instance.
- Parameters:
securityGroups- The security groups associated with the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
Ec2NetworkInterface.Builder securityGroups(Consumer<SecurityGroup.Builder>... securityGroups)
The security groups associated with the Amazon EC2 instance.
This is a convenience method that creates an instance of theSecurityGroup.Builderavoiding the need to create one manually viaSecurityGroup.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#securityGroups(List.) - Parameters:
securityGroups- a consumer that will call methods onSecurityGroup.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#securityGroups(java.util.Collection)
-
subNetId
Ec2NetworkInterface.Builder subNetId(String subNetId)
The subnet ID of the Amazon EC2 instance.
- Parameters:
subNetId- The subnet ID of the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcId
Ec2NetworkInterface.Builder vpcId(String vpcId)
The VPC ID of the Amazon EC2 instance.
- Parameters:
vpcId- The VPC ID of the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-