Removed MSB Dependencies
[holmes/common.git] / holmes-actions / src / main / java / org / onap / holmes / common / msb / entity / Node.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
21 import java.io.Serializable;
22
23 @JsonIgnoreProperties(ignoreUnknown = true)
24 public class Node implements Serializable {
25     private static final long serialVersionUID = 1L;
26     private String ip;
27     private String port;
28     private String ttl = "";
29     private String checkType = "";
30     private String checkUrl = "";
31     private String checkInterval;
32     private String checkTimeOut;
33
34     public Node() {
35     }
36
37     public String getIp() {
38         return this.ip;
39     }
40
41     public void setIp(String ip) {
42         this.ip = ip;
43     }
44
45     public String getPort() {
46         return this.port;
47     }
48
49     public void setPort(String port) {
50         this.port = port;
51     }
52
53     public String getTtl() {
54         return this.ttl;
55     }
56
57     public void setTtl(String ttl) {
58         this.ttl = ttl;
59     }
60
61     public String getCheckType() {
62         return this.checkType;
63     }
64
65     public void setCheckType(String checkType) {
66         this.checkType = checkType;
67     }
68
69     public String getCheckUrl() {
70         return this.checkUrl;
71     }
72
73     public void setCheckUrl(String checkUrl) {
74         this.checkUrl = checkUrl;
75     }
76
77     public String getCheckInterval() {
78         return this.checkInterval;
79     }
80
81     public void setCheckInterval(String checkInterval) {
82         this.checkInterval = checkInterval;
83     }
84
85     public String getCheckTimeOut() {
86         return this.checkTimeOut;
87     }
88
89     public void setCheckTimeOut(String checkTimeOut) {
90         this.checkTimeOut = checkTimeOut;
91     }
92
93     public String toString() {
94         return this.ip + ":" + this.port + "  ttl:" + this.ttl;
95     }
96 }
97