2  * Copyright 2016-2017, Nokia Corporation
 
   4  * Licensed under the Apache License, Version 2.0 (the "License");
 
   5  * you may not use this file except in compliance with the License.
 
   6  * You may obtain a copy of the License at
 
   8  *     http://www.apache.org/licenses/LICENSE-2.0
 
  10  * Unless required by applicable law or agreed to in writing, software
 
  11  * distributed under the License is distributed on an "AS IS" BASIS,
 
  12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
  13  * See the License for the specific language governing permissions and
 
  14  * limitations under the License.
 
  17 package com.nokia.vfcadaptor.vnfmdriver.bo.entity;
 
  19 import java.util.List;
 
  21 import com.fasterxml.jackson.annotation.JsonProperty;
 
  23 public class ResponseDescriptor {
 
  26         @JsonProperty("status")
 
  27         private String  status;//started;processing;finished;error
 
  29         @JsonProperty("progress")
 
  30         private Integer  progress;//progress (1-100)
 
  32         @JsonProperty("statusDescription")
 
  33         private String  statusDescription;
 
  35         @JsonProperty("errorCode")
 
  36         private Integer errorCode;
 
  38         @JsonProperty("responseId")
 
  39         private Integer responseId;
 
  41         @JsonProperty("responseHistoryList")
 
  42         private List<ResponseHistoryList> responseHistoryList;
 
  44         public String getStatus() {
 
  48         public void setStatus(String status) {
 
  54         public Integer getProgress() {
 
  59         public void setProgress(Integer progr) {
 
  60                 if(progr>0 && progr<100) {
 
  65         public String getStatusDescription() {
 
  66                 return statusDescription;
 
  69         public void setStatusDescription(String statusDescription) {
 
  70                 this.statusDescription = statusDescription;
 
  73         public Integer getErrorCode() {
 
  77         public void setErrorCode(Integer errorCode) {
 
  78                 this.errorCode = errorCode;
 
  81         public Integer getResponseId() {
 
  85         public void setResponseId(Integer responseId) {
 
  86                 this.responseId = responseId;
 
  89         public List<ResponseHistoryList> getResponseHistoryList() {
 
  90                 return responseHistoryList;
 
  93         public void setResponseHistoryList(List<ResponseHistoryList> responseHistoryList) {
 
  94                 this.responseHistoryList = responseHistoryList;