2 * Copyright 2023 ZTE 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.holmes.common.msb.entity;
19 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
20 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
22 import java.util.Date;
24 @JsonIgnoreProperties(
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;
41 public Date getExpiration() {
42 return this.expiration;
45 public void setExpiration(Date expiration) {
46 this.expiration = expiration;
49 public Date getCreated_at() {
50 return this.created_at;
53 public void setCreated_at(Date created_at) {
54 this.created_at = created_at;
57 public Date getUpdated_at() {
58 return this.updated_at;
61 public void setUpdated_at(Date updated_at) {
62 this.updated_at = updated_at;
65 public String getNodeId() {
69 public void setNodeId(String nodeId) {
73 public String getStatus() {
77 public void setStatus(String status) {