e1b8f9674405a952db943a98e264b91ddc5af9dd
[vfc/nfvo/driver/vnfm/svnfm.git] / nokia / vnfmdriver / vfcadaptorservice / vfcadaptor / src / main / java / org / onap / vfc / nfvo / driver / vnfm / svnfm / vnfmdriver / bo / entity / ResponseDescriptor.java
1 /*
2  * Copyright 2016-2017, Nokia Corporation
3  *
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
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 package org.onap.vfc.nfvo.driver.vnfm.svnfm.vnfmdriver.bo.entity;
18
19 import java.util.List;
20
21 import com.fasterxml.jackson.annotation.JsonProperty;
22
23 public class ResponseDescriptor {
24
25         
26         @JsonProperty("status")
27         private String  status;//started;processing;finished;error
28         
29         @JsonProperty("progress")
30         private Integer  progress;//progress (1-100)
31         
32         @JsonProperty("statusDescription")
33         private String  statusDescription;
34         
35         @JsonProperty("errorCode")
36         private Integer errorCode;
37         
38         @JsonProperty("responseId")
39         private Integer responseId;
40         
41         @JsonProperty("responseHistoryList")
42         private List<ResponseHistoryList> responseHistoryList;
43
44         public String getStatus() {
45                 return status;
46         }
47
48         public void setStatus(String status) {
49                 this.status = status;
50         }
51
52         
53
54         public Integer getProgress() {
55                 return progress;
56         }
57
58
59         public void setProgress(Integer progr) {
60                 if(progr>0 && progr<100) {
61                   progress = progr;
62                 }
63         }
64
65         public String getStatusDescription() {
66                 return statusDescription;
67         }
68
69         public void setStatusDescription(String statusDescription) {
70                 this.statusDescription = statusDescription;
71         }
72
73         public Integer getErrorCode() {
74                 return errorCode;
75         }
76
77         public void setErrorCode(Integer errorCode) {
78                 this.errorCode = errorCode;
79         }
80
81         public Integer getResponseId() {
82                 return responseId;
83         }
84
85         public void setResponseId(Integer responseId) {
86                 this.responseId = responseId;
87         }
88
89         public List<ResponseHistoryList> getResponseHistoryList() {
90                 return responseHistoryList;
91         }
92
93         public void setResponseHistoryList(List<ResponseHistoryList> responseHistoryList) {
94                 this.responseHistoryList = responseHistoryList;
95         }
96
97         
98
99         
100         
101         
102         
103         
104 }