feat:Add file transfer function
[usecase-ui/server.git] / server / src / main / java / org / onap / usecaseui / server / bean / intent / IntentInstance.java
1 /*
2  * Copyright (C) 2021 CTC, Inc. and others. All rights reserved.
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 package org.onap.usecaseui.server.bean.intent;
17 import javax.persistence.*;
18 import java.io.Serializable;
19
20 @Entity
21 @Table(name="intent_instance")
22 public class IntentInstance implements Serializable {
23
24     @Id
25     @GeneratedValue(strategy=GenerationType.IDENTITY)
26     @Column(name = "id")
27     private int id;
28
29     @Column(name = "instance_id")
30     private String instanceId;
31
32     @Column(name = "job_id")
33     private String jobId;
34
35     @Column(name = "progress")
36     private int progress;
37
38     @Column(name = "status")
39     private String status;
40
41     @Column(name = "resource_instance_id")
42     private String resourceInstanceId;
43
44     @Column(name = "name")
45     private String name;
46
47     @Column(name = "cloud_point_name")
48     private String cloudPointName;
49
50     @Column(name = "access_point_one_name")
51     private String accessPointOneName;
52
53     @Column(name = "access_point_one_band_width")
54     private int accessPointOneBandWidth;
55
56     @Column(name = "line_num")
57     private String lineNum;
58
59     @Column(name = "delete_state")
60     private int deleteState;
61
62     public IntentInstance() {
63
64     }
65
66     public int getId() {
67         return id;
68     }
69
70     public void setId(int id) {
71         this.id = id;
72     }
73
74     public String getInstanceId() {
75         return instanceId;
76     }
77
78     public void setInstanceId(String instanceId) {
79         this.instanceId = instanceId;
80     }
81
82     public String getJobId() {
83         return jobId;
84     }
85
86     public void setJobId(String jobId) {
87         this.jobId = jobId;
88     }
89
90     public int getProgress() {
91         return progress;
92     }
93
94     public void setProgress(int progress) {
95         this.progress = progress;
96     }
97
98     public String getStatus() {
99         return status;
100     }
101
102     public void setStatus(String status) {
103         this.status = status;
104     }
105
106     public String getResourceInstanceId() {
107         return resourceInstanceId;
108     }
109
110     public void setResourceInstanceId(String resourceInstanceId) {
111         this.resourceInstanceId = resourceInstanceId;
112     }
113
114     public String getName() {
115         return name;
116     }
117
118     public void setName(String name) {
119         this.name = name;
120     }
121
122     public String getCloudPointName() {
123         return cloudPointName;
124     }
125
126     public void setCloudPointName(String cloudPointName) {
127         this.cloudPointName = cloudPointName;
128     }
129
130     public String getAccessPointOneName() {
131         return accessPointOneName;
132     }
133
134     public void setAccessPointOneName(String accessPointOneName) {
135         this.accessPointOneName = accessPointOneName;
136     }
137
138     public int getAccessPointOneBandWidth() {
139         return accessPointOneBandWidth;
140     }
141
142     public void setAccessPointOneBandWidth(int accessPointOneBandWidth) {
143         this.accessPointOneBandWidth = accessPointOneBandWidth;
144     }
145
146     public String getLineNum() {
147         return lineNum;
148     }
149
150     public void setLineNum(String lineNum) {
151         this.lineNum = lineNum;
152     }
153
154     public int getDeleteState() {
155         return deleteState;
156     }
157
158     public void setDeleteState(int deleteState) {
159         this.deleteState = deleteState;
160     }
161 }