2 * Copyright 2016-2017 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 ConsulService implements Serializable{
26 private static final long serialVersionUID = 1L;
31 @JsonProperty("Service")
32 private String service;
35 private List<String> tags;
37 @JsonProperty("Address")
38 private String address;
43 public String getId() {
47 public void setId(String id) {
51 public String getService() {
55 public void setService(String service) {
56 this.service = service;
59 public List<String> getTags() {
63 public void setTags(List<String> tags) {
67 public String getAddress() {
71 public void setAddress(String address) {
72 this.address = address;
75 public int getPort() {
79 public void setPort(int port) {