public Volume withName(String name) {
        setName(name);
        return this;
    }
<p>
The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase letters,
numbers, hyphens (-), and underscores (_). This name is referenced in the <code>sourceVolume</code> parameter of
container definition <code>mountPoints</code>.
</p>

@param name
       The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase
       letters, numbers, hyphens (-), and underscores (_). This name is referenced in the
       <code>sourceVolume</code> parameter of container definition <code>mountPoints</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-batch/src/main/java/com/amazonaws/services/batch/model/Volume.java