Removed MSB Dependencies
[holmes/common.git] / holmes-actions / src / main / java / org / onap / holmes / common / msb / entity / NodeInfo.java
1 /**
2  * Copyright 2023 ZTE Corporation.
3  * <p>
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  * <p>
8  * http://www.apache.org/licenses/LICENSE-2.0
9  * <p>
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.holmes.common.msb.entity;
18
19 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
20 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
21
22 import java.util.Date;
23
24 @JsonIgnoreProperties(
25         ignoreUnknown = true
26 )
27 public class NodeInfo extends Node {
28     private static final long serialVersionUID = 8955786461351557306L;
29     private String nodeId;
30     private String status;
31     @JsonSerialize(using = CustomDateSerializer.class)
32     private Date expiration;
33     @JsonSerialize(using = CustomDateSerializer.class)
34     private Date created_at;
35     @JsonSerialize(using = CustomDateSerializer.class)
36     private Date updated_at;
37
38     public NodeInfo() {
39     }
40
41     public Date getExpiration() {
42         return this.expiration;
43     }
44
45     public void setExpiration(Date expiration) {
46         this.expiration = expiration;
47     }
48
49     public Date getCreated_at() {
50         return this.created_at;
51     }
52
53     public void setCreated_at(Date created_at) {
54         this.created_at = created_at;
55     }
56
57     public Date getUpdated_at() {
58         return this.updated_at;
59     }
60
61     public void setUpdated_at(Date updated_at) {
62         this.updated_at = updated_at;
63     }
64
65     public String getNodeId() {
66         return this.nodeId;
67     }
68
69     public void setNodeId(String nodeId) {
70         this.nodeId = nodeId;
71     }
72
73     public String getStatus() {
74         return this.status;
75     }
76
77     public void setStatus(String status) {
78         this.status = status;
79     }
80 }