public TaskVolumeConfiguration withName(String name) {
        setName(name);
        return this;
    }
<p>
The name of the volume. This value must match the volume name from the <code>Volume</code> object in the task
definition.
</p>

@param name
       The name of the volume. This value must match the volume name from the <code>Volume</code> object in the
       task definition.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/TaskVolumeConfiguration.java