public CreateNatGatewayRequest withSecondaryAllocationIds(String... secondaryAllocationIds) {
        if (this.secondaryAllocationIds == null) {
            setSecondaryAllocationIds(new com.amazonaws.internal.SdkInternalList<String>(secondaryAllocationIds.length));
        }
        for (String ele : secondaryAllocationIds) {
            this.secondaryAllocationIds.add(ele);
        }
        return this;
    }
<p>
Secondary EIP allocation IDs. For more information, 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 #setSecondaryAllocationIds(java.util.Collection)} or
{@link #withSecondaryAllocationIds(java.util.Collection)} if you want to override the existing values.
</p>

@param secondaryAllocationIds
       Secondary EIP allocation IDs. For more information, 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