Interface NetworkInterface.Builder

    • Method Detail

      • 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.
      • subnetId

        NetworkInterface.Builder subnetId​(String subnetId)

        The ID of a subnet associated with the network interface.

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

        NetworkInterface.Builder vpcId​(String vpcId)

        The ID of a VPC associated with the network interface.

        Parameters:
        vpcId - The ID of a VPC associated with 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 name of a private DNS associated with the network interface.

        Parameters:
        privateDnsName - The name of a private DNS associated with the network interface.
        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 associated with the network interface.

        Parameters:
        privateIpAddress - The private IP address associated with the network interface.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • privateIpAddresses

        NetworkInterface.Builder privateIpAddresses​(Collection<PrivateIp> privateIpAddresses)

        A list of the private IP addresses associated with the network interface. Includes the privateDnsName and privateIpAddress.

        Parameters:
        privateIpAddresses - A list of the private IP addresses associated with the network interface. Includes the privateDnsName and privateIpAddress.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • privateIpAddresses

        NetworkInterface.Builder privateIpAddresses​(PrivateIp... privateIpAddresses)

        A list of the private IP addresses associated with the network interface. Includes the privateDnsName and privateIpAddress.

        Parameters:
        privateIpAddresses - A list of the private IP addresses associated with the network interface. Includes the privateDnsName and privateIpAddress.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • privateIpAddresses

        NetworkInterface.Builder privateIpAddresses​(Consumer<PrivateIp.Builder>... privateIpAddresses)

        A list of the private IP addresses associated with the network interface. Includes the privateDnsName and privateIpAddress.

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

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

        Parameters:
        privateIpAddresses - a consumer that will call methods on PrivateIp.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #privateIpAddresses(java.util.Collection)
      • publicDnsName

        NetworkInterface.Builder publicDnsName​(String publicDnsName)

        The name of a public DNS associated with the network interface.

        Parameters:
        publicDnsName - The name of a public DNS associated with the network interface.
        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 from which the network interface is reachable.

        Parameters:
        publicIp - The public IP address from which the network interface is reachable.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ipv6Addresses

        NetworkInterface.Builder ipv6Addresses​(Collection<String> ipv6Addresses)

        The IP addresses associated with the network interface.

        Parameters:
        ipv6Addresses - The IP addresses associated with the network interface.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ipv6Addresses

        NetworkInterface.Builder ipv6Addresses​(String... ipv6Addresses)

        The IP addresses associated with the network interface.

        Parameters:
        ipv6Addresses - The IP addresses associated with the network interface.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • securityGroups

        NetworkInterface.Builder securityGroups​(Collection<SecurityGroup> securityGroups)

        A list of the security groups associated with the network interface. Includes the groupId and groupName.

        Parameters:
        securityGroups - A list of the security groups associated with the network interface. Includes the groupId and groupName.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • securityGroups

        NetworkInterface.Builder securityGroups​(SecurityGroup... securityGroups)

        A list of the security groups associated with the network interface. Includes the groupId and groupName.

        Parameters:
        securityGroups - A list of the security groups associated with the network interface. Includes the groupId and groupName.
        Returns:
        Returns a reference to this object so that method calls can be chained together.