Create seed code of svnfm vnfmdriver
[vfc/nfvo/driver/vnfm/svnfm.git] / nokia / vnfmdriver / vfcadaptorservice / vfcadaptor / src / main / java / com / nokia / vfcadaptor / beans / VnfmResourceInfo.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 com.nokia.vfcadaptor.beans;
18
19 import javax.persistence.Column;
20 import javax.persistence.GeneratedValue;
21 import javax.persistence.GenerationType;
22 import javax.persistence.Id;
23
24 public class VnfmResourceInfo {
25         @Id
26         @GeneratedValue(strategy = GenerationType.AUTO)
27         private int id;
28
29         @Column(name = "type")
30         private ResourceType type;
31         
32         @Column(name = "resourceDefinitionId")
33         private String resourceDefinitionId;
34         
35         @Column(name = "vdu")
36         private String vdu;
37
38         @Column(name = "status")
39         private String status;
40         
41         public int getId() {
42                 return id;
43         }
44
45         public void setId(int id) {
46                 this.id = id;
47         }
48
49         public ResourceType getType() {
50                 return type;
51         }
52
53         public void setType(ResourceType type) {
54                 this.type = type;
55         }
56
57         public String getResourceDefinitionId() {
58                 return resourceDefinitionId;
59         }
60
61         public void setResourceDefinitionId(String resourceDefinitionId) {
62                 this.resourceDefinitionId = resourceDefinitionId;
63         }
64
65         public String getVdu() {
66                 return vdu;
67         }
68
69         public void setVdu(String vdu) {
70                 this.vdu = vdu;
71         }
72
73         public String getStatus() {
74                 return status;
75         }
76
77         public void setStatus(String status) {
78                 this.status = status;
79         }
80
81 }