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 org.onap.vfc.nfvo.driver.vnfm.svnfm.cbam.bo.entity;
19 import org.onap.vfc.nfvo.driver.vnfm.svnfm.constant.CommonEnum;
21 import com.fasterxml.jackson.annotation.JsonProperty;
23 public class OperationExecution {
28 @JsonProperty("vnfInstanceId")
29 private String vnfInstanceId;
31 @JsonProperty("operationType")
32 private OperationType operationType;
34 @JsonProperty("operationName")
35 private String operationName;
37 @JsonProperty("status")
38 private CommonEnum.OperationStatus status;
40 @JsonProperty("isCancelPending")
41 private boolean isCancelPending;
43 @JsonProperty("CancelMode")
44 private CancelMode CancelMode;
46 @JsonProperty("error")
47 private ProblemDetails error;
49 @JsonProperty("startTime")
50 private String startTime;
52 @JsonProperty("grantId")
53 private String grantId;
55 @JsonProperty("operationParams")
56 private Object operationParams;
58 @JsonProperty("additionalData")
59 private Object additionalData;
61 @JsonProperty("metadata")
62 private Object metadata;
64 @JsonProperty("_links")
65 private _links _links;
71 public enum OperationType{
72 INSTANTIATE, SCALE, SCALE_TO_LEVEL, MODIFY_INFO, CHANGE_FLAVOUR, OPERATE,
73 HEAL, UPGRADE, TERMINATE, OTHER
78 public enum CancelMode{
82 public String getId() {
86 public void setId(String id) {
90 public String getVnfInstanceId() {
94 public void setVnfInstanceId(String vnfInstanceId) {
95 this.vnfInstanceId = vnfInstanceId;
98 public OperationType getOperationType() {
102 public void setOperationType(OperationType operationType) {
103 this.operationType = operationType;
106 public String getOperationName() {
107 return operationName;
110 public void setOperationName(String operationName) {
111 this.operationName = operationName;
116 public CommonEnum.OperationStatus getStatus() {
120 public void setStatus(CommonEnum.OperationStatus status) {
121 this.status = status;
124 public boolean isCancelPending() {
125 return isCancelPending;
128 public void setCancelPending(boolean isCancelPending) {
129 this.isCancelPending = isCancelPending;
132 public CancelMode getCancelMode() {
136 public void setCancelMode(CancelMode cancelMode) {
137 CancelMode = cancelMode;
140 public ProblemDetails getError() {
144 public void setError(ProblemDetails error) {
148 public String getStartTime() {
152 public void setStartTime(String startTime) {
153 this.startTime = startTime;
157 public String getGrantId() {
161 public void setGrantId(String grantId) {
162 this.grantId = grantId;
165 public Object getOperationParams() {
166 return operationParams;
169 public void setOperationParams(Object operationParams) {
170 this.operationParams = operationParams;
173 public Object getAdditionalData() {
174 return additionalData;
177 public void setAdditionalData(Object additionalData) {
178 this.additionalData = additionalData;
181 public Object getMetadata() {
185 public void setMetadata(Object metadata) {
186 this.metadata = metadata;
189 public _links get_links() {
193 public void set_links(_links _links) {
194 this._links = _links;