package com.ecwid.consul.v1.agent.model;

import com.google.gson.annotations.SerializedName;

/**
 * @author Vasily Vasilkov (vgv@ecwid.com)
 */
public class NewCheck {

	@SerializedName("ID")
	private String id;

	@SerializedName("Name")
	private String name;

	@SerializedName("Notes")
	private String notes;

	@SerializedName("Script")
	private String script;

	@SerializedName("HTTP")
	private String http;

	@SerializedName("TCP")
	private String tcp;

	@SerializedName("Interval")
	private String interval;

	@SerializedName("Timeout")
    private String timeout;

	@SerializedName("TTL")
	private String ttl;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNotes() {
		return notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	public String getScript() {
		return script;
	}

	public void setScript(String script) {
		this.script = script;
	}

	public String getHttp() {
		return http;
	}

	public void setHttp(String http) {
		this.http = http;
	}

	public String getTcp() {
		return tcp;
	}

	public void setTcp(String tcp) {
		this.tcp = tcp;
	}

	public String getInterval() {
		return interval;
	}

	public void setInterval(String interval) {
		this.interval = interval;
	}

	public String getTtl() {
		return ttl;
	}

	public void setTtl(String ttl) {
		this.ttl = ttl;
	}

	public String getTimeout() {
	  return timeout;
    }

    public void setTimeout(String timeout) {
      this.timeout = timeout;
    }

    @Override
	public String toString() {
		return "NewCheck{" +
				"id='" + id + '\'' +
				", name='" + name + '\'' +
				", notes='" + notes + '\'' +
				", script='" + script + '\'' +
				", http='" + http + '\'' +
				", tcp='" + tcp + '\'' +
				", interval='" + interval + '\'' +
                ", timeout='" + timeout + '\'' +
				", ttl='" + ttl + '\'' +
				'}';
	}
}

@@ -447,24 +447,148 @@
 tring tcp;%0A%0A
+%09@SerializedName(%22DockerContainerID%22)%0A%09private String dockerContainerID;%0A%0A%09@SerializedName(%22Shell%22)%0A%09private String shell;%0A%0A
 %09@Serialized
@@ -600,24 +600,24 @@
 %22Interval%22)%0A
-
 %09private Str
@@ -1362,32 +1362,328 @@
 .tcp = tcp;%0A%09%7D%0A%0A
+%09public String getDockerContainerID() %7B%0A%09%09return dockerContainerID;%0A%09%7D%0A%0A%09public void setDockerContainerID(String dockerContainerID) %7B%0A%09%09this.dockerContainerID = dockerContainerID;%0A%09%7D%0A%0A%09public String getShell() %7B%0A%09%09return shell;%0A%09%7D%0A%0A%09public void setShell(String shell) %7B%0A%09%09this.shell = shell;%0A%09%7D%0A%0A
 %09public String g
@@ -2034,20 +2034,17 @@
 %0A    %7D%0A%0A
-    
+%09
 @Overrid
@@ -2276,24 +2276,114 @@
 cp + '%5C'' +%0A
+%09%09%09%09%22, dockerContainerID='%22 + dockerContainerID + '%5C'' +%0A%09%09%09%09%22, shell='%22 + shell + '%5C'' +%0A
 %09%09%09%09%22, inter
@@ -2413,24 +2413,12 @@
 ' +%0A
-                
+%09%09%09%09
 %22, t

Fix #46