public BlockDeviceMapping withDeviceName(String deviceName) {
        setDeviceName(deviceName);
        return this;
    }
<p>
The device name assigned to the volume (for example, <code>/dev/sdh</code> or <code>xvdh</code>). For more
information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html">Device naming
on Linux instances</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.
</p>
<note>
<p>
To define a block device mapping, set the device name and exactly one of the following properties:
<code>Ebs</code>, <code>NoDevice</code>, or <code>VirtualName</code>.
</p>
</note>

@param deviceName
       The device name assigned to the volume (for example, <code>/dev/sdh</code> or <code>xvdh</code>). For more
       information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html">Device
       naming on Linux instances</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.</p> <note>
       <p>
       To define a block device mapping, set the device name and exactly one of the following properties:
       <code>Ebs</code>, <code>NoDevice</code>, or <code>VirtualName</code>.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/model/BlockDeviceMapping.java