public RunInstancesRequest withMaxCount(Integer maxCount) {
        setMaxCount(maxCount);
        return this;
    }
<p>
The maximum number of instances to launch. If you specify a value that is more capacity than Amazon EC2 can
launch in the target Availability Zone, Amazon EC2 launches the largest possible number of instances above the
specified minimum count.
</p>
<p>
Constraints: Between 1 and the quota for the specified instance type for your account for this Region. For more
information, see <a href="https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-instance-quotas.html">Amazon
EC2 instance type quotas</a>.
</p>

@param maxCount
       The maximum number of instances to launch. If you specify a value that is more capacity than Amazon EC2
       can launch in the target Availability Zone, Amazon EC2 launches the largest possible number of instances
       above the specified minimum count.</p>
       <p>
       Constraints: Between 1 and the quota for the specified instance type for your account for this Region. For
       more information, see <a
       href="https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-instance-quotas.html">Amazon EC2 instance
       type quotas</a>.
@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/RunInstancesRequest.java