BaseItem.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.utils.service.beans;

  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 BaseItem  {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private ProfiloEnum profilo = null;
  29.  /**
  30.    * Get profilo
  31.    * @return profilo
  32.   **/
  33.   @JsonProperty("profilo")
  34.   @NotNull
  35.   @Valid
  36.   public ProfiloEnum getProfilo() {
  37.     return this.profilo;
  38.   }

  39.   public void setProfilo(ProfiloEnum profilo) {
  40.     this.profilo = profilo;
  41.   }

  42.   public BaseItem profilo(ProfiloEnum profilo) {
  43.     this.profilo = profilo;
  44.     return this;
  45.   }


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

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