SERVER-139352Needs Scheduling

Refactor SampleSpec to better describe different spec types

Currently we have one SampleSpec class that describes all sample requests, of which there are 3 types: * request to generate an OTF sample * request to load a persistent sample * request to refresh a persistent sample These types all have different parameter requirements, and it's messy to manage which fields should be filled out for which types. It would be better to handle in an object oriented way by defining each of the 3 spec types as subclasses.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification
speedups