public void setVolumes(java.util.Collection<AwsEcsTaskDefinitionVolumesDetails> volumes) {
        if (volumes == null) {
            this.volumes = null;
            return;
        }

        this.volumes = new java.util.ArrayList<AwsEcsTaskDefinitionVolumesDetails>(volumes);
    }
<p>
The data volume definitions for the task.
</p>

@param volumes
       The data volume definitions for the task.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsEcsTaskDefinitionDetails.java