inherit from oparent
[msb/discovery.git] / sdclient / discovery-service / src / main / java / org / onap / msb / sdclient / core / ConsulService.java
1 /**
2  * Copyright 2016 ZTE, Inc. and others.
3  *
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  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
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 package org.onap.msb.sdclient.core;
17
18 import java.io.Serializable;
19 import java.util.List;
20
21 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
22 import com.fasterxml.jackson.annotation.JsonProperty;
23
24 @JsonIgnoreProperties(ignoreUnknown = true)
25 public class ConsulService implements Serializable{
26     private static final long serialVersionUID = 1L;
27     
28     @JsonProperty("ID")
29     private String id;
30     
31     @JsonProperty("Service")
32     private String service;
33     
34     @JsonProperty("Tags")
35     private List<String> tags;
36     
37     @JsonProperty("Address")
38     private String address;
39     
40     @JsonProperty("Port")
41     private int port;
42
43     public String getId() {
44         return id;
45     }
46
47     public void setId(String id) {
48         this.id = id;
49     }
50
51     public String getService() {
52         return service;
53     }
54
55     public void setService(String service) {
56         this.service = service;
57     }
58
59     public List<String> getTags() {
60         return tags;
61     }
62
63     public void setTags(List<String> tags) {
64         this.tags = tags;
65     }
66
67     public String getAddress() {
68         return address;
69     }
70
71     public void setAddress(String address) {
72         this.address = address;
73     }
74
75     public int getPort() {
76         return port;
77     }
78
79     public void setPort(int port) {
80         this.port = port;
81     }
82     
83     
84 }