2 * Copyright 2016-2017 ZTE, Inc. and others.
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
7 * http://www.apache.org/licenses/LICENSE-2.0
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
14 package org.onap.msb.sdclient.core;
16 import java.io.Serializable;
17 import java.util.List;
19 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
20 import com.fasterxml.jackson.annotation.JsonProperty;
22 @JsonIgnoreProperties(ignoreUnknown = true)
23 public class HealthService implements Serializable {
26 private static final long serialVersionUID = 1L;
31 @JsonProperty("Service")
32 private Service service;
34 @JsonProperty("Checks")
35 private List<Check> checks;
38 public Node getNode() {
42 public void setNode(Node node) {
46 public Service getService() {
50 public void setService(Service service) {
51 this.service = service;
54 public List<Check> getChecks() {
58 public void setChecks(List<Check> checks) {
64 @JsonIgnoreProperties(ignoreUnknown = true)
65 public class Service {
69 @JsonProperty("Service")
70 private String service;
73 private List<String> tags;
75 @JsonProperty("Address")
76 private String address;
81 public String getId() {
85 public void setId(String id) {
89 public String getService() {
93 public void setService(String service) {
94 this.service = service;
97 public List<String> getTags() {
101 public void setTags(List<String> tags) {
105 public String getAddress() {
109 public void setAddress(String address) {
110 this.address = address;
113 public String getPort() {
117 public void setPort(String port) {
123 @JsonIgnoreProperties(ignoreUnknown = true)
126 @JsonProperty("Node")
129 @JsonProperty("Address")
130 private String address;
132 public String getNode() {
136 public void setNode(String node) {
140 public String getAddress() {
144 public void setAddress(String address) {
145 this.address = address;