PDNDOrganizationExternalId.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 PDNDOrganizationExternalId  {
  25.  
  26.   @Schema(description = "")
  27.   private String codice = null;
  28.  
  29.   @Schema(description = "")
  30.   private String origine = null;
  31.  /**
  32.    * Get codice
  33.    * @return codice
  34.   **/
  35.   @JsonProperty("codice")
  36.   @Valid
  37.   public String getCodice() {
  38.     return this.codice;
  39.   }

  40.   public void setCodice(String codice) {
  41.     this.codice = codice;
  42.   }

  43.   public PDNDOrganizationExternalId codice(String codice) {
  44.     this.codice = codice;
  45.     return this;
  46.   }

  47.  /**
  48.    * Get origine
  49.    * @return origine
  50.   **/
  51.   @JsonProperty("origine")
  52.   @Valid
  53.   public String getOrigine() {
  54.     return this.origine;
  55.   }

  56.   public void setOrigine(String origine) {
  57.     this.origine = origine;
  58.   }

  59.   public PDNDOrganizationExternalId origine(String origine) {
  60.     this.origine = origine;
  61.     return this;
  62.   }


  63.   @Override
  64.   public String toString() {
  65.     StringBuilder sb = new StringBuilder();
  66.     sb.append("class PDNDOrganizationExternalId {\n");
  67.    
  68.     sb.append("    codice: ").append(PDNDOrganizationExternalId.toIndentedString(this.codice)).append("\n");
  69.     sb.append("    origine: ").append(PDNDOrganizationExternalId.toIndentedString(this.origine)).append("\n");
  70.     sb.append("}");
  71.     return sb.toString();
  72.   }

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