public CreateNatGatewayRequest withSecondaryPrivateIpAddresses(String... secondaryPrivateIpAddresses) {
        if (this.secondaryPrivateIpAddresses == null) {
            setSecondaryPrivateIpAddresses(new com.amazonaws.internal.SdkInternalList<String>(secondaryPrivateIpAddresses.length));
        }
        for (String ele : secondaryPrivateIpAddresses) {
            this.secondaryPrivateIpAddresses.add(ele);
        }
        return this;
    }
<p>
Secondary private IPv4 addresses. For more information about secondary addresses, see <a
href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-creating">Create a NAT
gateway</a> in the <i>Amazon VPC User Guide</i>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSecondaryPrivateIpAddresses(java.util.Collection)} or
{@link #withSecondaryPrivateIpAddresses(java.util.Collection)} if you want to override the existing values.
</p>

@param secondaryPrivateIpAddresses
       Secondary private IPv4 addresses. For more information about secondary addresses, see <a
       href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-creating">Create a
       NAT gateway</a> in the <i>Amazon VPC User Guide</i>.
@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/CreateNatGatewayRequest.java