PDNDOrganizationInfo.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.monitor.rs.server.model;

  21. import io.swagger.v3.oas.annotations.media.Schema;
  22. import com.fasterxml.jackson.annotation.JsonProperty;
  23. import javax.validation.Valid;

  24. public class PDNDOrganizationInfo  {
  25.  
  26.   @Schema(description = "")
  27.   private String nome = null;
  28.  
  29.   @Schema(description = "")
  30.   private String categoria = null;
  31.  
  32.   @Schema(description = "")
  33.   private PDNDOrganizationExternalId externalId = null;
  34.  /**
  35.    * Get nome
  36.    * @return nome
  37.   **/
  38.   @JsonProperty("nome")
  39.   @Valid
  40.   public String getNome() {
  41.     return this.nome;
  42.   }

  43.   public void setNome(String nome) {
  44.     this.nome = nome;
  45.   }

  46.   public PDNDOrganizationInfo nome(String nome) {
  47.     this.nome = nome;
  48.     return this;
  49.   }

  50.  /**
  51.    * Get categoria
  52.    * @return categoria
  53.   **/
  54.   @JsonProperty("categoria")
  55.   @Valid
  56.   public String getCategoria() {
  57.     return this.categoria;
  58.   }

  59.   public void setCategoria(String categoria) {
  60.     this.categoria = categoria;
  61.   }

  62.   public PDNDOrganizationInfo categoria(String categoria) {
  63.     this.categoria = categoria;
  64.     return this;
  65.   }

  66.  /**
  67.    * Get externalId
  68.    * @return externalId
  69.   **/
  70.   @JsonProperty("external_id")
  71.   @Valid
  72.   public PDNDOrganizationExternalId getExternalId() {
  73.     return this.externalId;
  74.   }

  75.   public void setExternalId(PDNDOrganizationExternalId externalId) {
  76.     this.externalId = externalId;
  77.   }

  78.   public PDNDOrganizationInfo externalId(PDNDOrganizationExternalId externalId) {
  79.     this.externalId = externalId;
  80.     return this;
  81.   }


  82.   @Override
  83.   public String toString() {
  84.     StringBuilder sb = new StringBuilder();
  85.     sb.append("class PDNDOrganizationInfo {\n");
  86.    
  87.     sb.append("    nome: ").append(PDNDOrganizationInfo.toIndentedString(this.nome)).append("\n");
  88.     sb.append("    categoria: ").append(PDNDOrganizationInfo.toIndentedString(this.categoria)).append("\n");
  89.     sb.append("    externalId: ").append(PDNDOrganizationInfo.toIndentedString(this.externalId)).append("\n");
  90.     sb.append("}");
  91.     return sb.toString();
  92.   }

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