ApiDescrizione.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 ApiDescrizione  {
  26.  
  27.   @Schema(example = "descrizione API", description = "")
  28.   private String descrizione = null;
  29.  /**
  30.    * Get descrizione
  31.    * @return descrizione
  32.   **/
  33.   @JsonProperty("descrizione")
  34.   @Valid
  35.  @Size(max=4000)  public String getDescrizione() {
  36.     return this.descrizione;
  37.   }

  38.   public void setDescrizione(String descrizione) {
  39.     this.descrizione = descrizione;
  40.   }

  41.   public ApiDescrizione descrizione(String descrizione) {
  42.     this.descrizione = descrizione;
  43.     return this;
  44.   }


  45.   @Override
  46.   public String toString() {
  47.     StringBuilder sb = new StringBuilder();
  48.     sb.append("class ApiDescrizione {\n");
  49.    
  50.     sb.append("    descrizione: ").append(ApiDescrizione.toIndentedString(this.descrizione)).append("\n");
  51.     sb.append("}");
  52.     return sb.toString();
  53.   }

  54.   /**
  55.    * Convert the given object to string with each line indented by 4 spaces
  56.    * (except the first line).
  57.    */
  58.   private static String toIndentedString(java.lang.Object o) {
  59.     if (o == null) {
  60.       return "null";
  61.     }
  62.     return o.toString().replace("\n", "\n    ");
  63.   }
  64. }