ModIApplicativoInterno.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 ModIApplicativoInterno  implements OneOfApplicativoModi {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private DominioEnum dominio = null;
  29.  
  30.   @Schema(description = "")
  31.   private ModIApplicativoSicurezzaMessaggio sicurezzaMessaggio = null;
  32.  
  33.   @Schema(description = "")
  34.   private ModIApplicativoAuthenticationToken token = null;
  35.  /**
  36.    * Get dominio
  37.    * @return dominio
  38.   **/
  39.   @Override
  40. @JsonProperty("dominio")
  41.   @NotNull
  42.   @Valid
  43.   public DominioEnum getDominio() {
  44.     return this.dominio;
  45.   }

  46.   public void setDominio(DominioEnum dominio) {
  47.     this.dominio = dominio;
  48.   }

  49.   public ModIApplicativoInterno dominio(DominioEnum dominio) {
  50.     this.dominio = dominio;
  51.     return this;
  52.   }

  53.  /**
  54.    * Get sicurezzaMessaggio
  55.    * @return sicurezzaMessaggio
  56.   **/
  57.   @JsonProperty("sicurezza_messaggio")
  58.   @Valid
  59.   public ModIApplicativoSicurezzaMessaggio getSicurezzaMessaggio() {
  60.     return this.sicurezzaMessaggio;
  61.   }

  62.   public void setSicurezzaMessaggio(ModIApplicativoSicurezzaMessaggio sicurezzaMessaggio) {
  63.     this.sicurezzaMessaggio = sicurezzaMessaggio;
  64.   }

  65.   public ModIApplicativoInterno sicurezzaMessaggio(ModIApplicativoSicurezzaMessaggio sicurezzaMessaggio) {
  66.     this.sicurezzaMessaggio = sicurezzaMessaggio;
  67.     return this;
  68.   }

  69.  /**
  70.    * Get token
  71.    * @return token
  72.   **/
  73.   @JsonProperty("token")
  74.   @Valid
  75.   public ModIApplicativoAuthenticationToken getToken() {
  76.     return this.token;
  77.   }

  78.   public void setToken(ModIApplicativoAuthenticationToken token) {
  79.     this.token = token;
  80.   }

  81.   public ModIApplicativoInterno token(ModIApplicativoAuthenticationToken token) {
  82.     this.token = token;
  83.     return this;
  84.   }


  85.   @Override
  86.   public String toString() {
  87.     StringBuilder sb = new StringBuilder();
  88.     sb.append("class ModIApplicativoInterno {\n");
  89.    
  90.     sb.append("    dominio: ").append(ModIApplicativoInterno.toIndentedString(this.dominio)).append("\n");
  91.     sb.append("    sicurezzaMessaggio: ").append(ModIApplicativoInterno.toIndentedString(this.sicurezzaMessaggio)).append("\n");
  92.     sb.append("    token: ").append(ModIApplicativoInterno.toIndentedString(this.token)).append("\n");
  93.     sb.append("}");
  94.     return sb.toString();
  95.   }

  96.   /**
  97.    * Convert the given object to string with each line indented by 4 spaces
  98.    * (except the first line).
  99.    */
  100.   private static String toIndentedString(java.lang.Object o) {
  101.     if (o == null) {
  102.       return "null";
  103.     }
  104.     return o.toString().replace("\n", "\n    ");
  105.   }
  106. }