Fix java check style issue
[msb/discovery.git] / sdclient / discovery-service / src / main / java / org / onap / msb / sdclient / core / HealthService.java
1 /**
2  * Copyright 2016-2017 ZTE, Inc. and others.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5  * in compliance with the License. You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software distributed under the License
10  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11  * or implied. See the License for the specific language governing permissions and limitations under
12  * the License.
13  */
14 package org.onap.msb.sdclient.core;
15
16 import java.io.Serializable;
17 import java.util.List;
18
19 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
20 import com.fasterxml.jackson.annotation.JsonProperty;
21
22 @JsonIgnoreProperties(ignoreUnknown = true)
23 public class HealthService implements Serializable {
24
25
26     private static final long serialVersionUID = 1L;
27
28     @JsonProperty("Node")
29     private Node node;
30
31     @JsonProperty("Service")
32     private Service service;
33
34     @JsonProperty("Checks")
35     private List<Check> checks;
36
37
38     public Node getNode() {
39         return node;
40     }
41
42     public void setNode(Node node) {
43         this.node = node;
44     }
45
46     public Service getService() {
47         return service;
48     }
49
50     public void setService(Service service) {
51         this.service = service;
52     }
53
54     public List<Check> getChecks() {
55         return checks;
56     }
57
58     public void setChecks(List<Check> checks) {
59         this.checks = checks;
60     }
61
62
63
64     @JsonIgnoreProperties(ignoreUnknown = true)
65     public class Service {
66         @JsonProperty("ID")
67         private String id;
68
69         @JsonProperty("Service")
70         private String service;
71
72         @JsonProperty("Tags")
73         private List<String> tags;
74
75         @JsonProperty("Address")
76         private String address;
77
78         @JsonProperty("Port")
79         private String port;
80
81         public String getId() {
82             return id;
83         }
84
85         public void setId(String id) {
86             this.id = id;
87         }
88
89         public String getService() {
90             return service;
91         }
92
93         public void setService(String service) {
94             this.service = service;
95         }
96
97         public List<String> getTags() {
98             return tags;
99         }
100
101         public void setTags(List<String> tags) {
102             this.tags = tags;
103         }
104
105         public String getAddress() {
106             return address;
107         }
108
109         public void setAddress(String address) {
110             this.address = address;
111         }
112
113         public String getPort() {
114             return port;
115         }
116
117         public void setPort(String port) {
118             this.port = port;
119         }
120
121     }
122
123     @JsonIgnoreProperties(ignoreUnknown = true)
124     public class Node {
125
126         @JsonProperty("Node")
127         private String node;
128
129         @JsonProperty("Address")
130         private String address;
131
132         public String getNode() {
133             return node;
134         }
135
136         public void setNode(String node) {
137             this.node = node;
138         }
139
140         public String getAddress() {
141             return address;
142         }
143
144         public void setAddress(String address) {
145             this.address = address;
146         }
147
148
149     }
150
151 }