public EbsInstanceBlockDeviceSpecification withVolumeSize(Integer volumeSize) {
        setVolumeSize(volumeSize);
        return this;
    }
<p>
Use to override the device's volume size.
</p>

@param volumeSize
       Use to override the device's volume size.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-imagebuilder/src/main/java/com/amazonaws/services/imagebuilder/model/EbsInstanceBlockDeviceSpecification.java