Skip to content

Commit e3b4e3a

Browse files
committed
Fix #162
1 parent db67aaa commit e3b4e3a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/main/java/com/ecwid/consul/v1/agent/model/NewService.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ public static class Check {
2525
@SerializedName("HTTP")
2626
private String http;
2727

28+
@SerializedName("Method")
29+
private String method;
30+
31+
@SerializedName("Header")
32+
private Map<String, List<String>> header;
33+
2834
@SerializedName("TCP")
2935
private String tcp;
3036

@@ -72,6 +78,22 @@ public void setHttp(String http) {
7278
this.http = http;
7379
}
7480

81+
public String getMethod() {
82+
return method;
83+
}
84+
85+
public void setMethod(String method) {
86+
this.method = method;
87+
}
88+
89+
public Map<String, List<String>> getHeader() {
90+
return header;
91+
}
92+
93+
public void setHeader(Map<String, List<String>> header) {
94+
this.header = header;
95+
}
96+
7597
public String getTcp() {
7698
return tcp;
7799
}
@@ -119,6 +141,8 @@ public String toString() {
119141
", interval='" + interval + '\'' +
120142
", ttl='" + ttl + '\'' +
121143
", http='" + http + '\'' +
144+
", method='" + method + '\'' +
145+
", header=" + header +
122146
", tcp='" + tcp + '\'' +
123147
", timeout='" + timeout + '\'' +
124148
", deregisterCriticalServiceAfter='" + deregisterCriticalServiceAfter + '\'' +

0 commit comments

Comments
 (0)