public void setBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings) {
        if (blockDeviceMappings == null) {
            this.blockDeviceMappings = null;
            return;
        }

        this.blockDeviceMappings = new com.amazonaws.internal.SdkInternalList<BlockDeviceMapping>(blockDeviceMappings);
    }
<p>
The block device mapping entries.
</p>
<p>
If you specify an Amazon EBS volume using the ID of an Amazon EBS snapshot, you can't specify the encryption
state of the volume.
</p>
<p>
If you create an AMI on an Outpost, then all backing snapshots must be on the same Outpost or in the Region of
that Outpost. AMIs on an Outpost that include local snapshots can be used to launch instances on the same Outpost
only. For more information, <a
href="https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#ami">Amazon EBS local snapshots on
Outposts</a> in the <i>Amazon EBS User Guide</i>.
</p>

@param blockDeviceMappings
       The block device mapping entries.</p>
       <p>
       If you specify an Amazon EBS volume using the ID of an Amazon EBS snapshot, you can't specify the
       encryption state of the volume.
       </p>
       <p>
       If you create an AMI on an Outpost, then all backing snapshots must be on the same Outpost or in the
       Region of that Outpost. AMIs on an Outpost that include local snapshots can be used to launch instances on
       the same Outpost only. For more information, <a
       href="https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#ami">Amazon EBS local
       snapshots on Outposts</a> in the <i>Amazon EBS User Guide</i>.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/RegisterImageRequest.java