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;
21 import java.io.Serializable;
23 @JsonIgnoreProperties(ignoreUnknown = true)
24 public class Node implements Serializable {
25 private static final long serialVersionUID = 1L;
28 private String ttl = "";
29 private String checkType = "";
30 private String checkUrl = "";
31 private String checkInterval;
32 private String checkTimeOut;
37 public String getIp() {
41 public void setIp(String ip) {
45 public String getPort() {
49 public void setPort(String port) {
53 public String getTtl() {
57 public void setTtl(String ttl) {
61 public String getCheckType() {
62 return this.checkType;
65 public void setCheckType(String checkType) {
66 this.checkType = checkType;
69 public String getCheckUrl() {
73 public void setCheckUrl(String checkUrl) {
74 this.checkUrl = checkUrl;
77 public String getCheckInterval() {
78 return this.checkInterval;
81 public void setCheckInterval(String checkInterval) {
82 this.checkInterval = checkInterval;
85 public String getCheckTimeOut() {
86 return this.checkTimeOut;
89 public void setCheckTimeOut(String checkTimeOut) {
90 this.checkTimeOut = checkTimeOut;
93 public String toString() {
94 return this.ip + ":" + this.port + " ttl:" + this.ttl;