public void setMultiAttachEnabled(Boolean multiAttachEnabled) {
        this.multiAttachEnabled = multiAttachEnabled;
    }
<p>
Indicates whether to enable Amazon EBS Multi-Attach. If you enable Multi-Attach, you can attach the volume to up
to 16 <a href="https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html">Instances built on
the Nitro System</a> in the same Availability Zone. This parameter is supported with <code>io1</code> and
<code>io2</code> volumes only. For more information, see <a
href="https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volumes-multi.html"> Amazon EBS Multi-Attach</a> in
the <i>Amazon EBS User Guide</i>.
</p>

@param multiAttachEnabled
       Indicates whether to enable Amazon EBS Multi-Attach. If you enable Multi-Attach, you can attach the volume
       to up to 16 <a
       href="https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html">Instances built on
       the Nitro System</a> in the same Availability Zone. This parameter is supported with <code>io1</code> and
       <code>io2</code> volumes only. For more information, see <a
       href="https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volumes-multi.html"> Amazon EBS
       Multi-Attach</a> in the <i>Amazon EBS User Guide</i>.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/CreateVolumeRequest.java