BaseTracingPDND.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 java.util.UUID;
  22. import org.joda.time.DateTime;
  23. import org.joda.time.LocalDate;
  24. import io.swagger.v3.oas.annotations.media.Schema;
  25. import com.fasterxml.jackson.annotation.JsonProperty;
  26. import javax.validation.Valid;

  27. public class BaseTracingPDND  {
  28.  
  29.   @Schema(description = "")
  30.   private LocalDate dataTracciamento = null;
  31.  
  32.   @Schema(description = "")
  33.   private DateTime dataRegistrazione = null;
  34.  
  35.   @Schema(description = "")
  36.   private Integer tentativiPubblicazione = null;
  37.  
  38.   @Schema(description = "")
  39.   private StatoTracing stato = null;
  40.  
  41.   @Schema(description = "")
  42.   private StatoTracingPDND statoPdnd = null;
  43.  
  44.   @Schema(description = "")
  45.   private UUID tracingId = null;
  46.  
  47.   @Schema(description = "")
  48.   private Long id = null;
  49.  /**
  50.    * Get dataTracciamento
  51.    * @return dataTracciamento
  52.   **/
  53.   @JsonProperty("data_tracciamento")
  54.   @Valid
  55.   public LocalDate getDataTracciamento() {
  56.     return this.dataTracciamento;
  57.   }

  58.   public void setDataTracciamento(LocalDate dataTracciamento) {
  59.     this.dataTracciamento = dataTracciamento;
  60.   }

  61.   public BaseTracingPDND dataTracciamento(LocalDate dataTracciamento) {
  62.     this.dataTracciamento = dataTracciamento;
  63.     return this;
  64.   }

  65.  /**
  66.    * Get dataRegistrazione
  67.    * @return dataRegistrazione
  68.   **/
  69.   @JsonProperty("data_registrazione")
  70.   @Valid
  71.   public DateTime getDataRegistrazione() {
  72.     return this.dataRegistrazione;
  73.   }

  74.   public void setDataRegistrazione(DateTime dataRegistrazione) {
  75.     this.dataRegistrazione = dataRegistrazione;
  76.   }

  77.   public BaseTracingPDND dataRegistrazione(DateTime dataRegistrazione) {
  78.     this.dataRegistrazione = dataRegistrazione;
  79.     return this;
  80.   }

  81.  /**
  82.    * Get tentativiPubblicazione
  83.    * @return tentativiPubblicazione
  84.   **/
  85.   @JsonProperty("tentativi_pubblicazione")
  86.   @Valid
  87.   public Integer getTentativiPubblicazione() {
  88.     return this.tentativiPubblicazione;
  89.   }

  90.   public void setTentativiPubblicazione(Integer tentativiPubblicazione) {
  91.     this.tentativiPubblicazione = tentativiPubblicazione;
  92.   }

  93.   public BaseTracingPDND tentativiPubblicazione(Integer tentativiPubblicazione) {
  94.     this.tentativiPubblicazione = tentativiPubblicazione;
  95.     return this;
  96.   }

  97.  /**
  98.    * Get stato
  99.    * @return stato
  100.   **/
  101.   @JsonProperty("stato")
  102.   @Valid
  103.   public StatoTracing getStato() {
  104.     return this.stato;
  105.   }

  106.   public void setStato(StatoTracing stato) {
  107.     this.stato = stato;
  108.   }

  109.   public BaseTracingPDND stato(StatoTracing stato) {
  110.     this.stato = stato;
  111.     return this;
  112.   }

  113.  /**
  114.    * Get statoPdnd
  115.    * @return statoPdnd
  116.   **/
  117.   @JsonProperty("stato_pdnd")
  118.   @Valid
  119.   public StatoTracingPDND getStatoPdnd() {
  120.     return this.statoPdnd;
  121.   }

  122.   public void setStatoPdnd(StatoTracingPDND statoPdnd) {
  123.     this.statoPdnd = statoPdnd;
  124.   }

  125.   public BaseTracingPDND statoPdnd(StatoTracingPDND statoPdnd) {
  126.     this.statoPdnd = statoPdnd;
  127.     return this;
  128.   }

  129.  /**
  130.    * Get tracingId
  131.    * @return tracingId
  132.   **/
  133.   @JsonProperty("tracing_id")
  134.   @Valid
  135.   public UUID getTracingId() {
  136.     return this.tracingId;
  137.   }

  138.   public void setTracingId(UUID tracingId) {
  139.     this.tracingId = tracingId;
  140.   }

  141.   public BaseTracingPDND tracingId(UUID tracingId) {
  142.     this.tracingId = tracingId;
  143.     return this;
  144.   }

  145.  /**
  146.    * Get id
  147.    * @return id
  148.   **/
  149.   @JsonProperty("id")
  150.   @Valid
  151.   public Long getId() {
  152.     return this.id;
  153.   }

  154.   public void setId(Long id) {
  155.     this.id = id;
  156.   }

  157.   public BaseTracingPDND id(Long id) {
  158.     this.id = id;
  159.     return this;
  160.   }


  161.   @Override
  162.   public String toString() {
  163.     StringBuilder sb = new StringBuilder();
  164.     sb.append("class BaseTracingPDND {\n");
  165.    
  166.     sb.append("    dataTracciamento: ").append(BaseTracingPDND.toIndentedString(this.dataTracciamento)).append("\n");
  167.     sb.append("    dataRegistrazione: ").append(BaseTracingPDND.toIndentedString(this.dataRegistrazione)).append("\n");
  168.     sb.append("    tentativiPubblicazione: ").append(BaseTracingPDND.toIndentedString(this.tentativiPubblicazione)).append("\n");
  169.     sb.append("    stato: ").append(BaseTracingPDND.toIndentedString(this.stato)).append("\n");
  170.     sb.append("    statoPdnd: ").append(BaseTracingPDND.toIndentedString(this.statoPdnd)).append("\n");
  171.     sb.append("    tracingId: ").append(BaseTracingPDND.toIndentedString(this.tracingId)).append("\n");
  172.     sb.append("    id: ").append(BaseTracingPDND.toIndentedString(this.id)).append("\n");
  173.     sb.append("}");
  174.     return sb.toString();
  175.   }

  176.   /**
  177.    * Convert the given object to string with each line indented by 4 spaces
  178.    * (except the first line).
  179.    */
  180.   private static String toIndentedString(java.lang.Object o) {
  181.     if (o == null) {
  182.       return "null";
  183.     }
  184.     return o.toString().replace("\n", "\n    ");
  185.   }
  186. }