1 package org.onap.simulator.model;
3 import com.fasterxml.jackson.annotation.JsonInclude;
4 import com.fasterxml.jackson.databind.JsonNode;
9 @JsonInclude(JsonInclude.Include.NON_NULL)
10 public class SimulatorRequest {
12 private String method;
15 private boolean strict;
16 private Map<String,String> headers;
18 private Map<String, List<String>> queryParams;
20 public Map<String, List<String>> getQueryParams() {
24 public void setQueryParams(Map<String, List<String>> queryParams) {
25 this.queryParams = queryParams;
28 public String getId() {
32 public void setId(String id) {
36 public String getMethod() {
40 public void setMethod(String method) {
44 public String getPath() {
48 public void setPath(String path) {
52 public String getBody() {
56 public void setBody(JsonNode body) {
57 this.body = body.isTextual() ? body.textValue() : body.toString();
60 public boolean getStrict() {
64 public void setStrict(boolean strict) {
68 public Map<String, String> getHeaders() {
72 public void setHeaders(Map<String, String> headers) {
73 this.headers = headers;
77 public String toString() {
78 return "SimulatorRequest{" +
80 ", method='" + method + '\'' +
81 ", path='" + path + '\'' +
82 ", body='" + body + '\'' +
83 ", queryParams=" + queryParams +