/**
 * Copyright 2016, RadiantBlue Technologies, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 **/
package model.response;

import io.swagger.annotations.ApiModelProperty;
import model.job.type.ExecuteServiceJob;
import model.service.taskmanaged.ServiceJob;

/**
 * Response containing a Service Job, and the input data for execution
 * 
 * @author Patrick.Doody
 *
 */
public class ServiceJobResponse extends PiazzaResponse {
	@ApiModelProperty(value = "The Service Job Metadata.", required = true)
	public ServiceJobData data = new ServiceJobData();

	public ServiceJobResponse(ExecuteServiceJob serviceData) {
		data.setServiceData(serviceData);
	}

	public ServiceJobResponse() {
	}

	/**
	 * Used to wrap the Service Job in an annotatable class.
	 */
	public class ServiceJobData {
		@ApiModelProperty(value = "The Service Job Execution Metadata", required = true)
		private ExecuteServiceJob serviceData;

		public ExecuteServiceJob getServiceData() {
			return serviceData;
		}

		public void setServiceData(ExecuteServiceJob serviceData) {
			this.serviceData = serviceData;
		}
	}
}

@@ -1118,20 +1118,34 @@
 viceData
+, String jobId
 ) %7B%0A
-
 %09%09data.s
@@ -1172,16 +1172,40 @@
 eData);%0A
+%09%09data.setJobId(jobId);%0A
 %09%7D%0A%0A%09pub
@@ -1457,16 +1457,106 @@
 iceData;
+%0A%09%09@ApiModelProperty(value = %22The Id of the Job%22, required = true)%0A%09%09private String jobId;
 %0A%0A%09%09publ
@@ -1685,16 +1685,16 @@
 Data) %7B%0A
-
 %09%09%09this.
@@ -1723,14 +1723,132 @@
 ata;%0A%09%09%7D
+%0A%0A%09%09public String getJobId() %7B%0A%09%09%09return jobId;%0A%09%09%7D%0A%0A%09%09public void setJobId(String jobId) %7B%0A%09%09%09this.jobId = jobId;%0A%09%09%7D
 %0A%09%7D%0A%7D%0A

Add JobID field in ServiceJobResponse