public CreateNetworkInterfaceRequest withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount) {
        setSecondaryPrivateIpAddressCount(secondaryPrivateIpAddressCount);
        return this;
    }
<p>
The number of secondary private IPv4 addresses to assign to a network interface. When you specify a number of
secondary IPv4 addresses, Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR range. You can't
specify this option and specify more than one private IP address using <code>privateIpAddresses</code>.
</p>
<p>
You can't specify a count of private IPv4 addresses if you've specified one of the following: specific private
IPv4 addresses, specific IPv4 prefixes, or a count of IPv4 prefixes.
</p>

@param secondaryPrivateIpAddressCount
       The number of secondary private IPv4 addresses to assign to a network interface. When you specify a number
       of secondary IPv4 addresses, Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR range.
       You can't specify this option and specify more than one private IP address using
       <code>privateIpAddresses</code>.</p>
       <p>
       You can't specify a count of private IPv4 addresses if you've specified one of the following: specific
       private IPv4 addresses, specific IPv4 prefixes, or a count of IPv4 prefixes.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/CreateNetworkInterfaceRequest.java