Class JobRequestModelAssembler.JobRequestWrapper

java.lang.Object
com.netflix.genie.web.apis.rest.v3.hateoas.assemblers.JobRequestModelAssembler.JobRequestWrapper
Enclosing class:
JobRequestModelAssembler

public static class JobRequestModelAssembler.JobRequestWrapper extends Object
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 Details

    • JobRequestWrapper

      public JobRequestWrapper(String id, JobRequest jobRequest)
      Constructor.
      Parameters:
      id - The actual id of the job
      jobRequest - The original job request
  • Method Details

    • getId

      public String 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 JobRequest getJobRequest()
      Get the original job request sent to the system by the user.
      Returns:
      The JobRequest