public AwsEcsTaskDefinitionDetails withVolumes(java.util.Collection<AwsEcsTaskDefinitionVolumesDetails> volumes) {
        setVolumes(volumes);
        return this;
    }
<p>
The data volume definitions for the task.
</p>

@param volumes
       The data volume definitions for the task.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsEcsTaskDefinitionDetails.java