Welcome to the Ranch.
What is "the class object"?
Note that MultipartEntity is deprecated,
you should use MultipartEntityBuilder instead. But regardless, the 2nd parameter to addPart is a ContentBody, so the ServiceJobFileModel class needs to implement that interface.