Merge 1806 code of vid-common
[vid.git] / vid-app-common / src / main / java / org / onap / vid / job / NextCommand.java
1 package org.onap.vid.job;
2
3 public class NextCommand {
4     private final Job.JobStatus status;
5     private final JobCommand command;
6
7     public NextCommand(Job.JobStatus nextStatus, JobCommand nextCommand) {
8         this.status = nextStatus;
9         this.command = nextCommand;
10     }
11
12     public NextCommand(Job.JobStatus nextStatus) {
13         this.status = nextStatus;
14         this.command = null;
15     }
16
17     public Job.JobStatus getStatus() {
18         return status;
19     }
20
21     public JobCommand getCommand() {
22         return command;
23     }
24
25 }