Add modify vnf feature on driver
[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("grantId")
53         private String grantId;
54         
55         @JsonProperty("operationParams")
56         private Object operationParams;
57         
58         @JsonProperty("additionalData")
59         private Object additionalData;
60         
61         @JsonProperty("metadata")
62         private Object metadata;
63         
64         @JsonProperty("_links")
65         private _links _links;
66         
67         
68         
69         
70         
71         public enum OperationType{
72                 INSTANTIATE, SCALE, SCALE_TO_LEVEL, MODIFY_INFO, CHANGE_FLAVOUR, OPERATE,
73                 HEAL, UPGRADE, TERMINATE, OTHER
74         }
75         
76         
77         
78         public enum CancelMode{
79                 GRACEFUL, FORCEFUL
80         }
81
82         public String getId() {
83                 return id;
84         }
85
86         public void setId(String id) {
87                 this.id = id;
88         }
89
90         public String getVnfInstanceId() {
91                 return vnfInstanceId;
92         }
93
94         public void setVnfInstanceId(String vnfInstanceId) {
95                 this.vnfInstanceId = vnfInstanceId;
96         }
97
98         public OperationType getOperationType() {
99                 return operationType;
100         }
101
102         public void setOperationType(OperationType operationType) {
103                 this.operationType = operationType;
104         }
105
106         public String getOperationName() {
107                 return operationName;
108         }
109
110         public void setOperationName(String operationName) {
111                 this.operationName = operationName;
112         }
113
114         
115
116         public CommonEnum.OperationStatus getStatus() {
117                 return status;
118         }
119
120         public void setStatus(CommonEnum.OperationStatus status) {
121                 this.status = status;
122         }
123
124         public boolean isCancelPending() {
125                 return isCancelPending;
126         }
127
128         public void setCancelPending(boolean isCancelPending) {
129                 this.isCancelPending = isCancelPending;
130         }
131
132         public CancelMode getCancelMode() {
133                 return CancelMode;
134         }
135
136         public void setCancelMode(CancelMode cancelMode) {
137                 CancelMode = cancelMode;
138         }
139
140         public ProblemDetails getError() {
141                 return error;
142         }
143
144         public void setError(ProblemDetails error) {
145                 this.error = error;
146         }
147
148         public String getStartTime() {
149                 return startTime;
150         }
151
152         public void setStartTime(String startTime) {
153                 this.startTime = startTime;
154         }
155
156
157         public String getGrantId() {
158                 return grantId;
159         }
160
161         public void setGrantId(String grantId) {
162                 this.grantId = grantId;
163         }
164
165         public Object getOperationParams() {
166                 return operationParams;
167         }
168
169         public void setOperationParams(Object operationParams) {
170                 this.operationParams = operationParams;
171         }
172
173         public Object getAdditionalData() {
174                 return additionalData;
175         }
176
177         public void setAdditionalData(Object additionalData) {
178                 this.additionalData = additionalData;
179         }
180
181         public Object getMetadata() {
182                 return metadata;
183         }
184
185         public void setMetadata(Object metadata) {
186                 this.metadata = metadata;
187         }
188
189         public _links get_links() {
190                 return _links;
191         }
192
193         public void set_links(_links _links) {
194                 this._links = _links;
195         }
196
197         
198         
199 }