ConfigurazioneApiCanale.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 ConfigurazioneApiCanale  {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private ConfigurazioneCanaleEnum configurazione = null;
  29.  
  30.   @Schema(description = "")
  31.   private String canale = null;
  32.  /**
  33.    * Get configurazione
  34.    * @return configurazione
  35.   **/
  36.   @JsonProperty("configurazione")
  37.   @NotNull
  38.   @Valid
  39.   public ConfigurazioneCanaleEnum getConfigurazione() {
  40.     return this.configurazione;
  41.   }

  42.   public void setConfigurazione(ConfigurazioneCanaleEnum configurazione) {
  43.     this.configurazione = configurazione;
  44.   }

  45.   public ConfigurazioneApiCanale configurazione(ConfigurazioneCanaleEnum configurazione) {
  46.     this.configurazione = configurazione;
  47.     return this;
  48.   }

  49.  /**
  50.    * Get canale
  51.    * @return canale
  52.   **/
  53.   @JsonProperty("canale")
  54.   @Valid
  55.  @Pattern(regexp="^[^\\s]+$") @Size(max=255)  public String getCanale() {
  56.     return this.canale;
  57.   }

  58.   public void setCanale(String canale) {
  59.     this.canale = canale;
  60.   }

  61.   public ConfigurazioneApiCanale canale(String canale) {
  62.     this.canale = canale;
  63.     return this;
  64.   }


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

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