com.ecwid.consul.v1.agent.model.Member Maven / Gradle / Ivy
package com.ecwid.consul.v1.agent.model;
import com.google.gson.annotations.SerializedName;
import java.util.List;
import java.util.Map;
/**
* @author Vasily Vasilkov ([email protected])
*/
public class Member {
@SerializedName("Name")
private String name;
@SerializedName("Addr")
private String address;
@SerializedName("Port")
private Integer port;
@SerializedName("Tags")
private Map tags;
@SerializedName("Status")
private int status;
@SerializedName("ProtocolMin")
private int protocolMin;
@SerializedName("ProtocolMax")
private int protocolMax;
@SerializedName("ProtocolCur")
private int protocolCur;
@SerializedName("DelegateMin")
private int delegateMin;
@SerializedName("DelegateMax")
private int delegateMax;
@SerializedName("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 +
'}';
}
}