Class JobRequestModelAssembler.JobRequestWrapper
java.lang.Object
com.netflix.genie.web.apis.rest.v3.hateoas.assemblers.JobRequestModelAssembler.JobRequestWrapper
- Enclosing class:
- JobRequestModelAssembler
A simple wrapper class because the job request may not have an id available (there wasn't one
originally sent) so need to use the one the system provided later in order to generate the links properly.
- Since:
- 4.3.0
-
Constructor Summary
ConstructorsConstructorDescriptionJobRequestWrapper(String id, com.netflix.genie.common.dto.JobRequest jobRequest) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetId()Get the actual id of the job the system assigned after job submission if none was already supplied.com.netflix.genie.common.dto.JobRequestGet the original job request sent to the system by the user.
-
Constructor Details
-
JobRequestWrapper
Constructor.- Parameters:
id- The actual id of the jobjobRequest- The original job request
-
-
Method Details
-
getId
Get the actual id of the job the system assigned after job submission if none was already supplied.- Returns:
- The jobs' unique id
-
getJobRequest
public com.netflix.genie.common.dto.JobRequest getJobRequest()Get the original job request sent to the system by the user.- Returns:
- The
JobRequest
-