public EcsTaskProperties withVolumes(java.util.Collection<Volume> volumes) {
        setVolumes(volumes);
        return this;
    }
<p>
A list of volumes that are associated with the job.
</p>

@param volumes
       A list of volumes that are associated with the job.
@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/EcsTaskProperties.java