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 Details

    • ipv6Addresses

      NetworkInterface.Builder ipv6Addresses(Collection<String> ipv6Addresses)

      A list of IPv6 addresses for the EC2 instance.

      Parameters:
      ipv6Addresses - A list of IPv6 addresses for the EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ipv6Addresses

      NetworkInterface.Builder ipv6Addresses(String... ipv6Addresses)

      A list of IPv6 addresses for the EC2 instance.

      Parameters:
      ipv6Addresses - A list of IPv6 addresses for the EC2 instance.
      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.
    • privateDnsName

      NetworkInterface.Builder privateDnsName(String privateDnsName)

      The private DNS name of the EC2 instance.

      Parameters:
      privateDnsName - The private DNS name of the EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • privateIpAddress

      NetworkInterface.Builder privateIpAddress(String privateIpAddress)

      The private IP address of the EC2 instance.

      Parameters:
      privateIpAddress - The private IP address of the EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • privateIpAddresses

      NetworkInterface.Builder privateIpAddresses(Collection<PrivateIpAddressDetails> privateIpAddresses)

      Other private IP address information of the EC2 instance.

      Parameters:
      privateIpAddresses - Other private IP address information of the EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • privateIpAddresses

      NetworkInterface.Builder privateIpAddresses(PrivateIpAddressDetails... privateIpAddresses)

      Other private IP address information of the EC2 instance.

      Parameters:
      privateIpAddresses - Other private IP address information of the EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • privateIpAddresses

      NetworkInterface.Builder privateIpAddresses(Consumer<PrivateIpAddressDetails.Builder>... privateIpAddresses)

      Other private IP address information of the EC2 instance.

      This is a convenience method that creates an instance of the PrivateIpAddressDetails.Builder avoiding the need to create one manually via PrivateIpAddressDetails.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to privateIpAddresses(List<PrivateIpAddressDetails>).

      Parameters:
      privateIpAddresses - a consumer that will call methods on PrivateIpAddressDetails.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • publicDnsName

      NetworkInterface.Builder publicDnsName(String publicDnsName)

      The public DNS name of the EC2 instance.

      Parameters:
      publicDnsName - The public DNS name of the EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • publicIp

      NetworkInterface.Builder publicIp(String publicIp)

      The public IP address of the EC2 instance.

      Parameters:
      publicIp - The public IP address of the EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • securityGroups

      NetworkInterface.Builder securityGroups(Collection<SecurityGroup> securityGroups)

      The security groups associated with the EC2 instance.

      Parameters:
      securityGroups - The security groups associated with the EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • securityGroups

      NetworkInterface.Builder securityGroups(SecurityGroup... securityGroups)

      The security groups associated with the EC2 instance.

      Parameters:
      securityGroups - The security groups associated with the EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • securityGroups

      NetworkInterface.Builder securityGroups(Consumer<SecurityGroup.Builder>... securityGroups)

      The security groups associated with the EC2 instance.

      This is a convenience method that creates an instance of the SecurityGroup.Builder avoiding the need to create one manually via SecurityGroup.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to securityGroups(List<SecurityGroup>).

      Parameters:
      securityGroups - a consumer that will call methods on SecurityGroup.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • subnetId

      NetworkInterface.Builder subnetId(String subnetId)

      The subnet ID of the EC2 instance.

      Parameters:
      subnetId - The subnet ID of the EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • vpcId

      The VPC ID of the EC2 instance.

      Parameters:
      vpcId - The VPC ID of the EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.