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

  25. public class DetailsTracingPDND extends BaseTracingPDND {
  26.  
  27.   @Schema(description = "")
  28.   private MethodTracingPDND metodo = null;
  29.  
  30.   @Schema(description = "")
  31.   private String dettagliErrore = null;
  32.  
  33.   @Schema(description = "")
  34.   private DateTime dataPubblicazione = null;
  35.  
  36.   @Schema(description = "")
  37.   private Boolean forcePublish = null;
  38.  /**
  39.    * Get metodo
  40.    * @return metodo
  41.   **/
  42.   @JsonProperty("metodo")
  43.   @Valid
  44.   public MethodTracingPDND getMetodo() {
  45.     return this.metodo;
  46.   }

  47.   public void setMetodo(MethodTracingPDND metodo) {
  48.     this.metodo = metodo;
  49.   }

  50.   public DetailsTracingPDND metodo(MethodTracingPDND metodo) {
  51.     this.metodo = metodo;
  52.     return this;
  53.   }

  54.  /**
  55.    * Get dettagliErrore
  56.    * @return dettagliErrore
  57.   **/
  58.   @JsonProperty("dettagli_errore")
  59.   @Valid
  60.   public String getDettagliErrore() {
  61.     return this.dettagliErrore;
  62.   }

  63.   public void setDettagliErrore(String dettagliErrore) {
  64.     this.dettagliErrore = dettagliErrore;
  65.   }

  66.   public DetailsTracingPDND dettagliErrore(String dettagliErrore) {
  67.     this.dettagliErrore = dettagliErrore;
  68.     return this;
  69.   }

  70.  /**
  71.    * Get dataPubblicazione
  72.    * @return dataPubblicazione
  73.   **/
  74.   @JsonProperty("data_pubblicazione")
  75.   @Valid
  76.   public DateTime getDataPubblicazione() {
  77.     return this.dataPubblicazione;
  78.   }

  79.   public void setDataPubblicazione(DateTime dataPubblicazione) {
  80.     this.dataPubblicazione = dataPubblicazione;
  81.   }

  82.   public DetailsTracingPDND dataPubblicazione(DateTime dataPubblicazione) {
  83.     this.dataPubblicazione = dataPubblicazione;
  84.     return this;
  85.   }

  86.  /**
  87.    * Get forcePublish
  88.    * @return forcePublish
  89.   **/
  90.   @JsonProperty("force_publish")
  91.   @Valid
  92.   public Boolean isForcePublish() {
  93.     return this.forcePublish;
  94.   }

  95.   public void setForcePublish(Boolean forcePublish) {
  96.     this.forcePublish = forcePublish;
  97.   }

  98.   public DetailsTracingPDND forcePublish(Boolean forcePublish) {
  99.     this.forcePublish = forcePublish;
  100.     return this;
  101.   }


  102.   @Override
  103.   public String toString() {
  104.     StringBuilder sb = new StringBuilder();
  105.     sb.append("class DetailsTracingPDND {\n");
  106.     sb.append("    ").append(DetailsTracingPDND.toIndentedString(super.toString())).append("\n");
  107.     sb.append("    metodo: ").append(DetailsTracingPDND.toIndentedString(this.metodo)).append("\n");
  108.     sb.append("    dettagliErrore: ").append(DetailsTracingPDND.toIndentedString(this.dettagliErrore)).append("\n");
  109.     sb.append("    dataPubblicazione: ").append(DetailsTracingPDND.toIndentedString(this.dataPubblicazione)).append("\n");
  110.     sb.append("    forcePublish: ").append(DetailsTracingPDND.toIndentedString(this.forcePublish)).append("\n");
  111.     sb.append("}");
  112.     return sb.toString();
  113.   }

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