|
| 1 | +package com.example.demo.models; |
| 2 | + |
| 3 | +import com.fasterxml.jackson.annotation.JsonInclude; |
| 4 | + |
| 5 | +import java.util.ArrayList; |
| 6 | +import java.util.LinkedHashMap; |
| 7 | + |
| 8 | +@JsonInclude(JsonInclude.Include.NON_ABSENT) |
| 9 | +public class RouterPayload { |
| 10 | + private Object control; |
| 11 | + private LinkedHashMap<String, ArrayList<String>> headers; |
| 12 | + private String id; |
| 13 | + private String method; |
| 14 | + private String sdl; |
| 15 | + private CoprocessorStage stage; |
| 16 | + private Integer version; |
| 17 | + |
| 18 | + RouterPayload() { |
| 19 | + this.control = "continue"; |
| 20 | + this.id = ""; |
| 21 | + } |
| 22 | + |
| 23 | + public Object getControl() { |
| 24 | + return this.control; |
| 25 | + } |
| 26 | + |
| 27 | + public void setControl(Object control) { |
| 28 | + this.control = control; |
| 29 | + } |
| 30 | + |
| 31 | + public LinkedHashMap<String, ArrayList<String>> getHeaders() { |
| 32 | + return this.headers; |
| 33 | + } |
| 34 | + |
| 35 | + public void setHeaders(LinkedHashMap<String, ArrayList<String>> headers) { |
| 36 | + this.headers = headers; |
| 37 | + } |
| 38 | + |
| 39 | + public String getId() { |
| 40 | + return this.id; |
| 41 | + } |
| 42 | + |
| 43 | + public void setId(String id) { |
| 44 | + this.id = id; |
| 45 | + } |
| 46 | + |
| 47 | + public String getMethod() { |
| 48 | + return this.method; |
| 49 | + } |
| 50 | + |
| 51 | + public void setMethod(String method) { |
| 52 | + this.method = method; |
| 53 | + } |
| 54 | + |
| 55 | + public String getSDL() { |
| 56 | + return this.sdl; |
| 57 | + } |
| 58 | + |
| 59 | + public void setSDL(String sdl) { |
| 60 | + this.sdl = sdl; |
| 61 | + } |
| 62 | + |
| 63 | + public CoprocessorStage getStage() { |
| 64 | + return this.stage; |
| 65 | + } |
| 66 | + |
| 67 | + public void setStage(CoprocessorStage stage) { |
| 68 | + this.stage = stage; |
| 69 | + } |
| 70 | + |
| 71 | + public Integer getVersion() { |
| 72 | + return this.version; |
| 73 | + } |
| 74 | + |
| 75 | + public void setVersion(Integer version) { |
| 76 | + this.version = version; |
| 77 | + } |
| 78 | +} |
0 commit comments