1 package org.onap.simulator.model;
3 import com.fasterxml.jackson.annotation.JsonInclude;
4 import com.fasterxml.jackson.databind.JsonNode;
8 @JsonInclude(JsonInclude.Include.NON_NULL)
9 public class SimulatorRequest {
11 private String method;
14 private boolean strict;
15 private Map<String,String> headers;
17 private Map<String, List<String>> queryParams;
19 public Map<String, List<String>> getQueryParams() {
23 public void setQueryParams(Map<String, List<String>> queryParams) {
24 this.queryParams = queryParams;
27 public String getId() {
31 public void setId(String id) {
35 public String getMethod() {
39 public void setMethod(String method) {
43 public String getPath() {
47 public void setPath(String path) {
51 public String getBody() {
55 public void setBody(JsonNode body) {
56 this.body = body.isTextual() ? body.textValue() : body.toString();
59 public boolean getStrict() {
63 public void setStrict(boolean strict) {
67 public Map<String, String> getHeaders() {
71 public void setHeaders(Map<String, String> headers) {
72 this.headers = headers;
76 public String toString() {
77 return "SimulatorRequest{" +
79 ", method='" + method + '\'' +
80 ", path='" + path + '\'' +
81 ", body='" + body + '\'' +
82 ", queryParams=" + queryParams +