com.ecwid.consul.v1.session.model.NewSession Maven / Gradle / Ivy
package com.ecwid.consul.v1.session.model;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* @author Vasily Vasilkov ([email protected])
*/
public class NewSession {
@SerializedName("LockDelay")
private long lockDelay;
@SerializedName("Name")
private String name;
@SerializedName("Node")
private String node;
@SerializedName("Checks")
private List checks;
@SerializedName("Behavior")
private Session.Behavior behavior;
@SerializedName("TTL")
private String ttl;
public long getLockDelay() {
return lockDelay;
}
public void setLockDelay(long lockDelayInSeconds) {
this.lockDelay = lockDelayInSeconds;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getNode() {
return node;
}
public void setNode(String node) {
this.node = node;
}
public List getChecks() {
return checks;
}
public void setChecks(List checks) {
this.checks = checks;
}
public Session.Behavior getBehavior() {
return behavior;
}
public void setBehavior(Session.Behavior behavior) {
this.behavior = behavior;
}
public String getTtl() {
return ttl;
}
public void setTtl(String ttl) {
this.ttl = ttl;
}
}