Remove Throwable from vfc-svnfm by catch exception
[vfc/nfvo/driver/vnfm/svnfm.git] / nokia / vnfmdriver / vfcadaptorservice / vfcadaptor / src / main / java / org / onap / vfc / nfvo / driver / vnfm / svnfm / cbam / bo / entity / VnfInfo.java
1
2 /*
3  * Copyright 2016-2017, Nokia Corporation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18 package org.onap.vfc.nfvo.driver.vnfm.svnfm.cbam.bo.entity;
19
20 import java.util.ArrayList;
21 import java.util.List;
22
23 import org.onap.vfc.nfvo.driver.vnfm.svnfm.constant.CommonEnum;
24
25 import com.fasterxml.jackson.annotation.JsonProperty;
26
27 public class VnfInfo {
28         
29         @JsonProperty("id")
30         private String id;
31         
32         @JsonProperty("name")
33         private String name;
34         
35         @JsonProperty("description")
36         private String description;
37         
38         @JsonProperty("vnfdId")
39         private String vnfdId;
40         
41         @JsonProperty("vnfProvider")
42         private String vnfProvider;
43         
44         @JsonProperty("vnfProductName")
45         private String vnfProductName;
46         
47         @JsonProperty("vnfSoftwareVersion")
48         private String vnfSoftwareVersion;
49         
50         @JsonProperty("vnfdVersion")
51         private String vnfdVersion;
52         
53         @JsonProperty("onboardedVnfPkgInfoId")
54         private String onboardedVnfPkgInfoId;
55         
56         @JsonProperty("instantiationState")
57         private CommonEnum.InstantiationState instantiationState;
58         
59         @JsonProperty("operationExecution")
60         private List<OperationExecution> operationExecution=new ArrayList<OperationExecution>();
61         
62         @JsonProperty("instantiatedVnfInfo")
63         private InstantiatedVnfInfo instantiatedVnfInfo;
64         
65         @JsonProperty("vnfConfigurableProperties")
66         private List<VnfProperty> vnfConfigurableProperties=new ArrayList<VnfProperty>();
67         
68         @JsonProperty("extensions")
69         private List<VnfProperty> extensions=new ArrayList<VnfProperty>();
70         
71         @JsonProperty("metadata")
72         private Object metadata;
73         
74         @JsonProperty("link")
75         private _links link;//todo
76         
77
78         public String getId() {
79                 return id;
80         }
81
82         public void setId(String id) {
83                 this.id = id;
84         }
85
86         public String getName() {
87                 return name;
88         }
89
90         public void setName(String name) {
91                 this.name = name;
92         }
93
94         public String getDescription() {
95                 return description;
96         }
97
98         public void setDescription(String description) {
99                 this.description = description;
100         }
101
102         public String getVnfdId() {
103                 return vnfdId;
104         }
105
106         public void setVnfdId(String vnfdId) {
107                 this.vnfdId = vnfdId;
108         }
109
110         public String getVnfProvider() {
111                 return vnfProvider;
112         }
113
114         public void setVnfProvider(String vnfProvider) {
115                 this.vnfProvider = vnfProvider;
116         }
117
118         public String getVnfProductName() {
119                 return vnfProductName;
120         }
121
122         public void setVnfProductName(String vnfProductName) {
123                 this.vnfProductName = vnfProductName;
124         }
125
126         public String getVnfSoftwareVersion() {
127                 return vnfSoftwareVersion;
128         }
129
130         public void setVnfSoftwareVersion(String vnfSoftwareVersion) {
131                 this.vnfSoftwareVersion = vnfSoftwareVersion;
132         }
133
134         public String getVnfdVersion() {
135                 return vnfdVersion;
136         }
137
138         public void setVnfdVersion(String vnfdVersion) {
139                 this.vnfdVersion = vnfdVersion;
140         }
141
142         public String getOnboardedVnfPkgInfoId() {
143                 return onboardedVnfPkgInfoId;
144         }
145
146         public void setOnboardedVnfPkgInfoId(String onboardedVnfPkgInfoId) {
147                 this.onboardedVnfPkgInfoId = onboardedVnfPkgInfoId;
148         }
149
150
151
152         public CommonEnum.InstantiationState getInstantiationState() {
153                 return instantiationState;
154         }
155
156         public void setInstantiationState(CommonEnum.InstantiationState instantiationState) {
157                 this.instantiationState = instantiationState;
158         }
159
160         public List<OperationExecution> getOperationExecution() {
161                 return operationExecution;
162         }
163
164         public void setOperationExecution(List<OperationExecution> operationExecution) {
165                 this.operationExecution = operationExecution;
166         }
167
168         public InstantiatedVnfInfo getInstantiatedVnfInfo() {
169                 return instantiatedVnfInfo;
170         }
171
172         public void setInstantiatedVnfInfo(InstantiatedVnfInfo instantiatedVnfInfo) {
173                 this.instantiatedVnfInfo = instantiatedVnfInfo;
174         }
175
176         public List<VnfProperty> getVnfConfigurableProperties() {
177                 return vnfConfigurableProperties;
178         }
179
180         public void setVnfConfigurableProperties(List<VnfProperty> vnfConfigurableProperties) {
181                 this.vnfConfigurableProperties = vnfConfigurableProperties;
182         }
183
184         public List<VnfProperty> getExtensions() {
185                 return extensions;
186         }
187
188         public void setExtensions(List<VnfProperty> extensions) {
189                 this.extensions = extensions;
190         }
191
192         public Object getMetadata() {
193                 return metadata;
194         }
195
196         public void setMetadata(Object metadata) {
197                 this.metadata = metadata;
198         }
199
200         public _links getLink() {
201                 return link;
202         }
203
204         public void setLink(_links link) {
205                 this.link = link;
206         }
207
208         
209 }