net.nikore.consul.v1.agent.model.Member Maven / Gradle / Ivy
The newest version!
/**
* Copyright (C) 2015 Matt Christiansen ([email protected])
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.nikore.consul.v1.agent.model;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Member {
@JsonProperty("Name")
private String name;
@JsonProperty("Addr")
private String address;
@JsonProperty("Port")
private Integer port;
@JsonProperty("Tags")
private Map tags;
@JsonProperty("Status")
private int status;
@JsonProperty("ProtocolMin")
private int protocolMin;
@JsonProperty("ProtocolMax")
private int protocolMax;
@JsonProperty("ProtocolCur")
private int protocolCur;
@JsonProperty("DelegateMin")
private int delegateMin;
@JsonProperty("DelegateMax")
private int delegateMax;
@JsonProperty("DelegateCur")
private int delegateCur;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public Integer getPort() {
return port;
}
public void setPort(Integer port) {
this.port = port;
}
public Map getTags() {
return tags;
}
public void setTags(Map tags) {
this.tags = tags;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public int getProtocolMin() {
return protocolMin;
}
public void setProtocolMin(int protocolMin) {
this.protocolMin = protocolMin;
}
public int getProtocolMax() {
return protocolMax;
}
public void setProtocolMax(int protocolMax) {
this.protocolMax = protocolMax;
}
public int getProtocolCur() {
return protocolCur;
}
public void setProtocolCur(int protocolCur) {
this.protocolCur = protocolCur;
}
public int getDelegateMin() {
return delegateMin;
}
public void setDelegateMin(int delegateMin) {
this.delegateMin = delegateMin;
}
public int getDelegateMax() {
return delegateMax;
}
public void setDelegateMax(int delegateMax) {
this.delegateMax = delegateMax;
}
public int getDelegateCur() {
return delegateCur;
}
public void setDelegateCur(int delegateCur) {
this.delegateCur = delegateCur;
}
@Override
public String toString() {
return "Member{" +
"name='" + name + '\'' +
", address='" + address + '\'' +
", port=" + port +
", tags=" + tags +
", status=" + status +
", protocolMin=" + protocolMin +
", protocolMax=" + protocolMax +
", protocolCur=" + protocolCur +
", delegateMin=" + delegateMin +
", delegateMax=" + delegateMax +
", delegateCur=" + delegateCur +
'}';
}
}