public CreateInstanceRequest withBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings) {
        setBlockDeviceMappings(blockDeviceMappings);
        return this;
    }
<p>
An array of <code>BlockDeviceMapping</code> objects that specify the instance's block devices. For more
information, see <a
href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html">Block Device
Mapping</a>. Note that block device mappings are not supported for custom AMIs.
</p>

@param blockDeviceMappings
       An array of <code>BlockDeviceMapping</code> objects that specify the instance's block devices. For more
       information, see <a
       href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html">Block Device
       Mapping</a>. Note that block device mappings are not supported for custom AMIs.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/CreateInstanceRequest.java