public LaunchTemplateEbsBlockDeviceRequest withVolumeSize(Integer volumeSize) {
        setVolumeSize(volumeSize);
        return this;
    }
<p>
The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. The following are the
supported volumes sizes for each volume type:
</p>
<ul>
<li>
<p>
<code>gp2</code> and <code>gp3</code>: 1 - 16,384 GiB
</p>
</li>
<li>
<p>
<code>io1</code>: 4 - 16,384 GiB
</p>
</li>
<li>
<p>
<code>io2</code>: 4 - 65,536 GiB
</p>
</li>
<li>
<p>
<code>st1</code> and <code>sc1</code>: 125 - 16,384 GiB
</p>
</li>
<li>
<p>
<code>standard</code>: 1 - 1024 GiB
</p>
</li>
</ul>

@param volumeSize
       The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. The following are
       the supported volumes sizes for each volume type:</p>
       <ul>
       <li>
       <p>
       <code>gp2</code> and <code>gp3</code>: 1 - 16,384 GiB
       </p>
       </li>
       <li>
       <p>
       <code>io1</code>: 4 - 16,384 GiB
       </p>
       </li>
       <li>
       <p>
       <code>io2</code>: 4 - 65,536 GiB
       </p>
       </li>
       <li>
       <p>
       <code>st1</code> and <code>sc1</code>: 125 - 16,384 GiB
       </p>
       </li>
       <li>
       <p>
       <code>standard</code>: 1 - 1024 GiB
       </p>
       </li>
@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/LaunchTemplateEbsBlockDeviceRequest.java