ApiModI.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 ApiModI  {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private ApiModISicurezzaCanale sicurezzaCanale = null;
  29.  
  30.   @Schema(required = true, description = "")
  31.   private ApiModISicurezzaMessaggio sicurezzaMessaggio = null;
  32.  /**
  33.    * Get sicurezzaCanale
  34.    * @return sicurezzaCanale
  35.   **/
  36.   @JsonProperty("sicurezza_canale")
  37.   @NotNull
  38.   @Valid
  39.   public ApiModISicurezzaCanale getSicurezzaCanale() {
  40.     return this.sicurezzaCanale;
  41.   }

  42.   public void setSicurezzaCanale(ApiModISicurezzaCanale sicurezzaCanale) {
  43.     this.sicurezzaCanale = sicurezzaCanale;
  44.   }

  45.   public ApiModI sicurezzaCanale(ApiModISicurezzaCanale sicurezzaCanale) {
  46.     this.sicurezzaCanale = sicurezzaCanale;
  47.     return this;
  48.   }

  49.  /**
  50.    * Get sicurezzaMessaggio
  51.    * @return sicurezzaMessaggio
  52.   **/
  53.   @JsonProperty("sicurezza_messaggio")
  54.   @NotNull
  55.   @Valid
  56.   public ApiModISicurezzaMessaggio getSicurezzaMessaggio() {
  57.     return this.sicurezzaMessaggio;
  58.   }

  59.   public void setSicurezzaMessaggio(ApiModISicurezzaMessaggio sicurezzaMessaggio) {
  60.     this.sicurezzaMessaggio = sicurezzaMessaggio;
  61.   }

  62.   public ApiModI sicurezzaMessaggio(ApiModISicurezzaMessaggio sicurezzaMessaggio) {
  63.     this.sicurezzaMessaggio = sicurezzaMessaggio;
  64.     return this;
  65.   }


  66.   @Override
  67.   public String toString() {
  68.     StringBuilder sb = new StringBuilder();
  69.     sb.append("class ApiModI {\n");
  70.    
  71.     sb.append("    sicurezzaCanale: ").append(ApiModI.toIndentedString(this.sicurezzaCanale)).append("\n");
  72.     sb.append("    sicurezzaMessaggio: ").append(ApiModI.toIndentedString(this.sicurezzaMessaggio)).append("\n");
  73.     sb.append("}");
  74.     return sb.toString();
  75.   }

  76.   /**
  77.    * Convert the given object to string with each line indented by 4 spaces
  78.    * (except the first line).
  79.    */
  80.   private static String toIndentedString(java.lang.Object o) {
  81.     if (o == null) {
  82.       return "null";
  83.     }
  84.     return o.toString().replace("\n", "\n    ");
  85.   }
  86. }