RegistrazioneMessaggiConfigurazioneRegola.java

  1. /*
  2.  * GovWay - A customizable API Gateway
  3.  * https://govway.org
  4.  *
  5.  * Copyright (c) 2005-2025 Link.it srl (https://link.it).
  6.  *
  7.  * This program is free software: you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License version 3, as published by
  9.  * the Free Software Foundation.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18.  *
  19.  */
  20. package org.openspcoop2.core.config.rs.server.model;

  21. import javax.validation.constraints.*;

  22. import io.swagger.v3.oas.annotations.media.Schema;
  23. import com.fasterxml.jackson.annotation.JsonProperty;
  24. import javax.validation.Valid;

  25. public class RegistrazioneMessaggiConfigurazioneRegola  {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private Boolean headers = null;
  29.  
  30.   @Schema(required = true, description = "")
  31.   private Boolean payload = null;
  32.  
  33.   @Schema(description = "")
  34.   private Boolean payloadParsing = null;
  35.  
  36.   @Schema(description = "")
  37.   private Boolean body = null;
  38.  
  39.   @Schema(description = "")
  40.   private Boolean attachments = null;
  41.  /**
  42.    * Get headers
  43.    * @return headers
  44.   **/
  45.   @JsonProperty("headers")
  46.   @NotNull
  47.   @Valid
  48.   public Boolean isHeaders() {
  49.     return this.headers;
  50.   }

  51.   public void setHeaders(Boolean headers) {
  52.     this.headers = headers;
  53.   }

  54.   public RegistrazioneMessaggiConfigurazioneRegola headers(Boolean headers) {
  55.     this.headers = headers;
  56.     return this;
  57.   }

  58.  /**
  59.    * Get payload
  60.    * @return payload
  61.   **/
  62.   @JsonProperty("payload")
  63.   @NotNull
  64.   @Valid
  65.   public Boolean isPayload() {
  66.     return this.payload;
  67.   }

  68.   public void setPayload(Boolean payload) {
  69.     this.payload = payload;
  70.   }

  71.   public RegistrazioneMessaggiConfigurazioneRegola payload(Boolean payload) {
  72.     this.payload = payload;
  73.     return this;
  74.   }

  75.  /**
  76.    * Get payloadParsing
  77.    * @return payloadParsing
  78.   **/
  79.   @JsonProperty("payload_parsing")
  80.   @Valid
  81.   public Boolean isPayloadParsing() {
  82.     return this.payloadParsing;
  83.   }

  84.   public void setPayloadParsing(Boolean payloadParsing) {
  85.     this.payloadParsing = payloadParsing;
  86.   }

  87.   public RegistrazioneMessaggiConfigurazioneRegola payloadParsing(Boolean payloadParsing) {
  88.     this.payloadParsing = payloadParsing;
  89.     return this;
  90.   }

  91.  /**
  92.    * Get body
  93.    * @return body
  94.   **/
  95.   @JsonProperty("body")
  96.   @Valid
  97.   public Boolean isBody() {
  98.     return this.body;
  99.   }

  100.   public void setBody(Boolean body) {
  101.     this.body = body;
  102.   }

  103.   public RegistrazioneMessaggiConfigurazioneRegola body(Boolean body) {
  104.     this.body = body;
  105.     return this;
  106.   }

  107.  /**
  108.    * Get attachments
  109.    * @return attachments
  110.   **/
  111.   @JsonProperty("attachments")
  112.   @Valid
  113.   public Boolean isAttachments() {
  114.     return this.attachments;
  115.   }

  116.   public void setAttachments(Boolean attachments) {
  117.     this.attachments = attachments;
  118.   }

  119.   public RegistrazioneMessaggiConfigurazioneRegola attachments(Boolean attachments) {
  120.     this.attachments = attachments;
  121.     return this;
  122.   }


  123.   @Override
  124.   public String toString() {
  125.     StringBuilder sb = new StringBuilder();
  126.     sb.append("class RegistrazioneMessaggiConfigurazioneRegola {\n");
  127.    
  128.     sb.append("    headers: ").append(RegistrazioneMessaggiConfigurazioneRegola.toIndentedString(this.headers)).append("\n");
  129.     sb.append("    payload: ").append(RegistrazioneMessaggiConfigurazioneRegola.toIndentedString(this.payload)).append("\n");
  130.     sb.append("    payloadParsing: ").append(RegistrazioneMessaggiConfigurazioneRegola.toIndentedString(this.payloadParsing)).append("\n");
  131.     sb.append("    body: ").append(RegistrazioneMessaggiConfigurazioneRegola.toIndentedString(this.body)).append("\n");
  132.     sb.append("    attachments: ").append(RegistrazioneMessaggiConfigurazioneRegola.toIndentedString(this.attachments)).append("\n");
  133.     sb.append("}");
  134.     return sb.toString();
  135.   }

  136.   /**
  137.    * Convert the given object to string with each line indented by 4 spaces
  138.    * (except the first line).
  139.    */
  140.   private static String toIndentedString(java.lang.Object o) {
  141.     if (o == null) {
  142.       return "null";
  143.     }
  144.     return o.toString().replace("\n", "\n    ");
  145.   }
  146. }