e6dfbc879c770cf0bc60bdb5fd7993d5fabaa021
[vfc/nfvo/driver/vnfm/svnfm.git] / nokia / vnfmdriver / vfcadaptorservice / vfcadaptor / src / main / java / org / onap / vfc / nfvo / driver / vnfm / svnfm / cbam / bo / entity / OperationExecution.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.cbam.bo.entity;
18
19 import org.onap.vfc.nfvo.driver.vnfm.svnfm.constant.CommonEnum;
20
21 import com.fasterxml.jackson.annotation.JsonProperty;
22
23 public class OperationExecution {
24         
25         @JsonProperty("id")
26         private String id;
27         
28         @JsonProperty("vnfInstanceId")
29         private String vnfInstanceId;
30         
31         @JsonProperty("operationType")
32         private OperationType operationType;
33         
34         @JsonProperty("operationName")
35         private String operationName;
36         
37         @JsonProperty("status")
38         private CommonEnum.OperationStatus status;
39         
40         @JsonProperty("isCancelPending")
41         private boolean isCancelPending;
42         
43         @JsonProperty("CancelMode")
44         private CancelMode CancelMode;
45         
46         @JsonProperty("error")
47         private ProblemDetails error;
48         
49         @JsonProperty("startTime")
50         private String startTime;
51         
52         @JsonProperty("finishTime")
53         private String finishTime;
54         
55         @JsonProperty("grantId")
56         private String grantId;
57         
58         @JsonProperty("operationParams")
59         private Object operationParams;
60         
61         @JsonProperty("additionalData")
62         private Object additionalData;
63         
64         @JsonProperty("metadata")
65         private Object metadata;
66         
67         @JsonProperty("_links")
68         private _links _links;
69         
70         
71         
72         
73         
74         public enum OperationType{
75                 INSTANTIATE, SCALE, SCALE_TO_LEVEL, MODIFY_INFO, CHANGE_FLAVOUR, OPERATE,
76                 HEAL, UPGRADE, TERMINATE, OTHER
77         }
78         
79         
80         
81         public enum CancelMode{
82                 GRACEFUL, FORCEFUL
83         }
84
85         public String getId() {
86                 return id;
87         }
88
89         public void setId(String id) {
90                 this.id = id;
91         }
92
93         public String getVnfInstanceId() {
94                 return vnfInstanceId;
95         }
96
97         public void setVnfInstanceId(String vnfInstanceId) {
98                 this.vnfInstanceId = vnfInstanceId;
99         }
100
101         public OperationType getOperationType() {
102                 return operationType;
103         }
104
105         public void setOperationType(OperationType operationType) {
106                 this.operationType = operationType;
107         }
108
109         public String getOperationName() {
110                 return operationName;
111         }
112
113         public void setOperationName(String operationName) {
114                 this.operationName = operationName;
115         }
116
117         
118
119         public CommonEnum.OperationStatus getStatus() {
120                 return status;
121         }
122
123         public void setStatus(CommonEnum.OperationStatus status) {
124                 this.status = status;
125         }
126
127         public boolean isCancelPending() {
128                 return isCancelPending;
129         }
130
131         public void setCancelPending(boolean isCancelPending) {
132                 this.isCancelPending = isCancelPending;
133         }
134
135         public CancelMode getCancelMode() {
136                 return CancelMode;
137         }
138
139         public void setCancelMode(CancelMode cancelMode) {
140                 CancelMode = cancelMode;
141         }
142
143         public ProblemDetails getError() {
144                 return error;
145         }
146
147         public void setError(ProblemDetails error) {
148                 this.error = error;
149         }
150
151         public String getStartTime() {
152                 return startTime;
153         }
154
155         public void setStartTime(String startTime) {
156                 this.startTime = startTime;
157         }
158
159         public String getFinishTime() {
160                 return finishTime;
161         }
162
163         public void setFinishTime(String finishTime) {
164                 this.finishTime = finishTime;
165         }
166
167         public String getGrantId() {
168                 return grantId;
169         }
170
171         public void setGrantId(String grantId) {
172                 this.grantId = grantId;
173         }
174
175         public Object getOperationParams() {
176                 return operationParams;
177         }
178
179         public void setOperationParams(Object operationParams) {
180                 this.operationParams = operationParams;
181         }
182
183         public Object getAdditionalData() {
184                 return additionalData;
185         }
186
187         public void setAdditionalData(Object additionalData) {
188                 this.additionalData = additionalData;
189         }
190
191         public Object getMetadata() {
192                 return metadata;
193         }
194
195         public void setMetadata(Object metadata) {
196                 this.metadata = metadata;
197         }
198
199         public _links get_links() {
200                 return _links;
201         }
202
203         public void set_links(_links _links) {
204                 this._links = _links;
205         }
206
207         
208         
209 }