public CreateNatGatewayRequest withAllocationId(String allocationId) {
        setAllocationId(allocationId);
        return this;
    }
<p>
[Public NAT gateways only] The allocation ID of an Elastic IP address to associate with the NAT gateway. You
cannot specify an Elastic IP address with a private NAT gateway. If the Elastic IP address is associated with
another resource, you must first disassociate it.
</p>

@param allocationId
       [Public NAT gateways only] The allocation ID of an Elastic IP address to associate with the NAT gateway.
       You cannot specify an Elastic IP address with a private NAT gateway. If the Elastic IP address is
       associated with another resource, you must first disassociate it.
@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