@@ -33,25 +33,30 @@ public class Response {
3333 private final Map <String , List <String >> headers ;
3434 private final Map <String , String > transitionsState ;
3535 private final List <String > removesState ;
36+ private final Integer fixedDelay ;
37+
3638
3739 @ JsonCreator
38- public Response (@ JsonProperty ("status" ) Integer status ,
39- @ JsonProperty ("body" ) String body ,
40- @ JsonProperty ("encodedBody" ) boolean encodedBody ,
41- @ JsonProperty ("templated" ) boolean templated ,
42- @ JsonProperty ("headers" ) Map <String , List <String >> headers ,
43- @ JsonProperty ("transitionsState" ) Map <String , String > transitionsState ,
44- @ JsonProperty ("removesState" ) List <String > removesState ) {
40+ public Response (
41+ @ JsonProperty ("status" ) Integer status ,
42+ @ JsonProperty ("body" ) String body ,
43+ @ JsonProperty ("encodedBody" ) boolean encodedBody ,
44+ @ JsonProperty ("templated" ) boolean templated ,
45+ @ JsonProperty ("headers" ) Map <String , List <String >> headers ,
46+ @ JsonProperty ("transitionsState" ) Map <String , String > transitionsState ,
47+ @ JsonProperty ("removesState" ) List <String > removesState ,
48+ @ JsonProperty ("fixedDelay" ) Integer fixedDelay ) {
4549 this .status = status ;
4650 this .body = body ;
4751 this .encodedBody = encodedBody ;
4852 this .templated = templated ;
4953 this .headers = headers ;
5054 this .transitionsState = transitionsState ;
5155 this .removesState = removesState ;
56+ this .fixedDelay = fixedDelay ;
5257 }
5358
54- public int getStatus () {
59+ public Integer getStatus () {
5560 return status ;
5661 }
5762
@@ -80,6 +85,10 @@ public List<String> getRemovesState() {
8085 return removesState ;
8186 }
8287
88+ public Integer getFixedDelay () {
89+ return fixedDelay ;
90+ }
91+
8392 static class Builder {
8493 private Integer status ;
8594 private String body ;
@@ -88,6 +97,7 @@ static class Builder {
8897 private Map <String , List <String >> headers ;
8998 private Map <String , String > transitionsState ;
9099 private List <String > removesState ;
100+ private Integer fixedDelay ;
91101
92102 Builder status (int status ) {
93103 this .status = status ;
@@ -124,8 +134,13 @@ Builder removesState(List<String> removesState) {
124134 return this ;
125135 }
126136
137+ Builder fixedDelay (int fixedDelay ) {
138+ this .fixedDelay = fixedDelay ;
139+ return this ;
140+ }
141+
127142 Response build () {
128- return new Response (status , body , encodedBody , templated , headers , transitionsState , removesState );
143+ return new Response (status , body , encodedBody , templated , headers , transitionsState , removesState , fixedDelay );
129144 }
130145 }
131146
@@ -143,4 +158,4 @@ public int hashCode() {
143158 public String toString () {
144159 return ToStringBuilder .reflectionToString (this );
145160 }
146- }
161+ }
0 commit comments