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.   @Schema(description = "")
  36.   private String consumerId = null;
  37.  /**
  38.    * Get nome
  39.    * @return nome
  40.   **/
  41.   @JsonProperty("nome")
  42.   @Valid
  43.   public String getNome() {
  44.     return this.nome;
  45.   }

  46.   public void setNome(String nome) {
  47.     this.nome = nome;
  48.   }

  49.   public PDNDOrganizationInfo nome(String nome) {
  50.     this.nome = nome;
  51.     return this;
  52.   }

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

  62.   public void setCategoria(String categoria) {
  63.     this.categoria = categoria;
  64.   }

  65.   public PDNDOrganizationInfo categoria(String categoria) {
  66.     this.categoria = categoria;
  67.     return this;
  68.   }

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

  78.   public void setExternalId(PDNDOrganizationExternalId externalId) {
  79.     this.externalId = externalId;
  80.   }

  81.   public PDNDOrganizationInfo externalId(PDNDOrganizationExternalId externalId) {
  82.     this.externalId = externalId;
  83.     return this;
  84.   }

  85.  /**
  86.    * Get consumerId
  87.    * @return consumerId
  88.   **/
  89.   @JsonProperty("consumer_id")
  90.   @Valid
  91.   public String getConsumerId() {
  92.     return this.consumerId;
  93.   }

  94.   public void setConsumerId(String consumerId) {
  95.     this.consumerId = consumerId;
  96.   }

  97.   public PDNDOrganizationInfo consumerId(String consumerId) {
  98.     this.consumerId = consumerId;
  99.     return this;
  100.   }


  101.   @Override
  102.   public String toString() {
  103.     StringBuilder sb = new StringBuilder();
  104.     sb.append("class PDNDOrganizationInfo {\n");
  105.    
  106.     sb.append("    nome: ").append(PDNDOrganizationInfo.toIndentedString(this.nome)).append("\n");
  107.     sb.append("    categoria: ").append(PDNDOrganizationInfo.toIndentedString(this.categoria)).append("\n");
  108.     sb.append("    externalId: ").append(PDNDOrganizationInfo.toIndentedString(this.externalId)).append("\n");
  109.     sb.append("    consumerId: ").append(PDNDOrganizationInfo.toIndentedString(this.consumerId)).append("\n");
  110.     sb.append("}");
  111.     return sb.toString();
  112.   }

  113.   /**
  114.    * Convert the given object to string with each line indented by 4 spaces
  115.    * (except the first line).
  116.    */
  117.   private static String toIndentedString(java.lang.Object o) {
  118.     if (o == null) {
  119.       return "null";
  120.     }
  121.     return o.toString().replace("\n", "\n    ");
  122.   }
  123. }