public RegisterTaskDefinitionRequest withVolumes(java.util.Collection<Volume> volumes) {
        setVolumes(volumes);
        return this;
    }
<p>
A list of volume definitions in JSON format that containers in your task might use.
</p>

@param volumes
       A list of volume definitions in JSON format that containers in your task might use.
@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/RegisterTaskDefinitionRequest.java