Class CreateNetworkInterfaceRequest

    • Constructor Detail

      • CreateNetworkInterfaceRequest

        public CreateNetworkInterfaceRequest()
    • Method Detail

      • setSubnetId

        public void setSubnetId​(String subnetId)

        The ID of the subnet to associate with the network interface.

        Parameters:
        subnetId - The ID of the subnet to associate with the network interface.
      • getSubnetId

        public String getSubnetId()

        The ID of the subnet to associate with the network interface.

        Returns:
        The ID of the subnet to associate with the network interface.
      • withSubnetId

        public CreateNetworkInterfaceRequest withSubnetId​(String subnetId)

        The ID of the subnet to associate with the network interface.

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

        public void setDescription​(String description)

        A description for the network interface.

        Parameters:
        description - A description for the network interface.
      • getDescription

        public String getDescription()

        A description for the network interface.

        Returns:
        A description for the network interface.
      • withDescription

        public CreateNetworkInterfaceRequest withDescription​(String description)

        A description for the network interface.

        Parameters:
        description - A description for the network interface.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setPrivateIpAddress

        public void setPrivateIpAddress​(String privateIpAddress)

        The primary private IP address of the network interface. If you don't specify an IP address, Amazon EC2 selects one for you from the subnet range. If you specify an IP address, you cannot indicate any IP addresses specified in privateIpAddresses as primary (only one IP address can be designated as primary).

        Parameters:
        privateIpAddress - The primary private IP address of the network interface. If you don't specify an IP address, Amazon EC2 selects one for you from the subnet range. If you specify an IP address, you cannot indicate any IP addresses specified in privateIpAddresses as primary (only one IP address can be designated as primary).
      • getPrivateIpAddress

        public String getPrivateIpAddress()

        The primary private IP address of the network interface. If you don't specify an IP address, Amazon EC2 selects one for you from the subnet range. If you specify an IP address, you cannot indicate any IP addresses specified in privateIpAddresses as primary (only one IP address can be designated as primary).

        Returns:
        The primary private IP address of the network interface. If you don't specify an IP address, Amazon EC2 selects one for you from the subnet range. If you specify an IP address, you cannot indicate any IP addresses specified in privateIpAddresses as primary (only one IP address can be designated as primary).
      • withPrivateIpAddress

        public CreateNetworkInterfaceRequest withPrivateIpAddress​(String privateIpAddress)

        The primary private IP address of the network interface. If you don't specify an IP address, Amazon EC2 selects one for you from the subnet range. If you specify an IP address, you cannot indicate any IP addresses specified in privateIpAddresses as primary (only one IP address can be designated as primary).

        Parameters:
        privateIpAddress - The primary private IP address of the network interface. If you don't specify an IP address, Amazon EC2 selects one for you from the subnet range. If you specify an IP address, you cannot indicate any IP addresses specified in privateIpAddresses as primary (only one IP address can be designated as primary).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getGroups

        public List<String> getGroups()

        The IDs of one or more security groups.

        Returns:
        The IDs of one or more security groups.
      • setGroups

        public void setGroups​(Collection<String> groups)

        The IDs of one or more security groups.

        Parameters:
        groups - The IDs of one or more security groups.
      • withGroups

        public CreateNetworkInterfaceRequest withGroups​(Collection<String> groups)

        The IDs of one or more security groups.

        Parameters:
        groups - The IDs of one or more security groups.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getPrivateIpAddresses

        public List<PrivateIpAddressSpecification> getPrivateIpAddresses()

        One or more private IP addresses.

        Returns:
        One or more private IP addresses.
      • setPrivateIpAddresses

        public void setPrivateIpAddresses​(Collection<PrivateIpAddressSpecification> privateIpAddresses)

        One or more private IP addresses.

        Parameters:
        privateIpAddresses - One or more private IP addresses.
      • withPrivateIpAddresses

        public CreateNetworkInterfaceRequest withPrivateIpAddresses​(Collection<PrivateIpAddressSpecification> privateIpAddresses)

        One or more private IP addresses.

        Parameters:
        privateIpAddresses - One or more private IP addresses.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setSecondaryPrivateIpAddressCount

        public void setSecondaryPrivateIpAddressCount​(Integer secondaryPrivateIpAddressCount)

        The number of secondary private IP addresses to assign to a network interface. When you specify a number of secondary IP addresses, Amazon EC2 selects these IP addresses within the subnet range. You can't specify this option and specify more than one private IP address using privateIpAddresses.

        The number of IP addresses you can assign to a network interface varies by instance type. For more information, see Private IP Addresses Per ENI Per Instance Type in the Amazon Elastic Compute Cloud User Guide.

        Parameters:
        secondaryPrivateIpAddressCount - The number of secondary private IP addresses to assign to a network interface. When you specify a number of secondary IP addresses, Amazon EC2 selects these IP addresses within the subnet range. You can't specify this option and specify more than one private IP address using privateIpAddresses.

        The number of IP addresses you can assign to a network interface varies by instance type. For more information, see Private IP Addresses Per ENI Per Instance Type in the Amazon Elastic Compute Cloud User Guide.

      • getSecondaryPrivateIpAddressCount

        public Integer getSecondaryPrivateIpAddressCount()

        The number of secondary private IP addresses to assign to a network interface. When you specify a number of secondary IP addresses, Amazon EC2 selects these IP addresses within the subnet range. You can't specify this option and specify more than one private IP address using privateIpAddresses.

        The number of IP addresses you can assign to a network interface varies by instance type. For more information, see Private IP Addresses Per ENI Per Instance Type in the Amazon Elastic Compute Cloud User Guide.

        Returns:
        The number of secondary private IP addresses to assign to a network interface. When you specify a number of secondary IP addresses, Amazon EC2 selects these IP addresses within the subnet range. You can't specify this option and specify more than one private IP address using privateIpAddresses.

        The number of IP addresses you can assign to a network interface varies by instance type. For more information, see Private IP Addresses Per ENI Per Instance Type in the Amazon Elastic Compute Cloud User Guide.

      • withSecondaryPrivateIpAddressCount

        public CreateNetworkInterfaceRequest withSecondaryPrivateIpAddressCount​(Integer secondaryPrivateIpAddressCount)

        The number of secondary private IP addresses to assign to a network interface. When you specify a number of secondary IP addresses, Amazon EC2 selects these IP addresses within the subnet range. You can't specify this option and specify more than one private IP address using privateIpAddresses.

        The number of IP addresses you can assign to a network interface varies by instance type. For more information, see Private IP Addresses Per ENI Per Instance Type in the Amazon Elastic Compute Cloud User Guide.

        Parameters:
        secondaryPrivateIpAddressCount - The number of secondary private IP addresses to assign to a network interface. When you specify a number of secondary IP addresses, Amazon EC2 selects these IP addresses within the subnet range. You can't specify this option and specify more than one private IP address using privateIpAddresses.

        The number of IP addresses you can assign to a network interface varies by instance type. For more information, see Private IP Addresses Per ENI Per Instance Type in the Amazon Elastic Compute Cloud User Guide.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object