2 * Copyright 2016 ZTE, Inc. and others.
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.
16 package org.onap.msb.sdclient.core;
18 import java.io.Serializable;
19 import java.util.List;
21 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
22 import com.fasterxml.jackson.annotation.JsonProperty;
24 @JsonIgnoreProperties(ignoreUnknown = true)
25 public class HealthService implements Serializable {
28 private static final long serialVersionUID = 1L;
33 @JsonProperty("Service")
34 private Service service;
36 @JsonProperty("Checks")
37 private List<Check> checks;
40 public Node getNode() {
44 public void setNode(Node node) {
48 public Service getService() {
52 public void setService(Service service) {
53 this.service = service;
56 public List<Check> getChecks() {
60 public void setChecks(List<Check> checks) {
67 @JsonIgnoreProperties(ignoreUnknown = true)
72 @JsonProperty("Service")
73 private String service;
76 private List<String> tags;
78 @JsonProperty("Address")
79 private String address;
84 public String getId() {
88 public void setId(String id) {
92 public String getService() {
96 public void setService(String service) {
97 this.service = service;
100 public List<String> getTags() {
104 public void setTags(List<String> tags) {
108 public String getAddress() {
112 public void setAddress(String address) {
113 this.address = address;
116 public String getPort() {
120 public void setPort(String port) {
126 @JsonIgnoreProperties(ignoreUnknown = true)
129 @JsonProperty("Node")
132 @JsonProperty("Address")
133 private String address;
135 public String getNode() {
139 public void setNode(String node) {
143 public String getAddress() {
147 public void setAddress(String address) {
148 this.address = address;