ErogazioneModISignalHub.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.config.rs.server.model;

  21. import javax.validation.constraints.*;

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

  25. public class ErogazioneModISignalHub  {
  26.  
  27.   @Schema(example = "/pseudonymization", required = true, description = "")
  28.   private String risorsa = null;
  29.  
  30.   @Schema(example = "SHA-256", required = true, description = "")
  31.   private String algoritmo = null;
  32.  
  33.   @Schema(example = "16", required = true, description = "")
  34.   private Integer dimensioneSeme = null;
  35.  
  36.   @Schema(example = "15", required = true, description = "")
  37.   private Integer giorniRotazione = null;
  38.  
  39.   @Schema(description = "")
  40.   private String applicativo = null;
  41.  
  42.   @Schema(description = "")
  43.   private String ruolo = null;
  44.  /**
  45.    * Get risorsa
  46.    * @return risorsa
  47.   **/
  48.   @JsonProperty("risorsa")
  49.   @NotNull
  50.   @Valid
  51.   public String getRisorsa() {
  52.     return this.risorsa;
  53.   }

  54.   public void setRisorsa(String risorsa) {
  55.     this.risorsa = risorsa;
  56.   }

  57.   public ErogazioneModISignalHub risorsa(String risorsa) {
  58.     this.risorsa = risorsa;
  59.     return this;
  60.   }

  61.  /**
  62.    * Get algoritmo
  63.    * @return algoritmo
  64.   **/
  65.   @JsonProperty("algoritmo")
  66.   @NotNull
  67.   @Valid
  68.   public String getAlgoritmo() {
  69.     return this.algoritmo;
  70.   }

  71.   public void setAlgoritmo(String algoritmo) {
  72.     this.algoritmo = algoritmo;
  73.   }

  74.   public ErogazioneModISignalHub algoritmo(String algoritmo) {
  75.     this.algoritmo = algoritmo;
  76.     return this;
  77.   }

  78.  /**
  79.    * Get dimensioneSeme
  80.    * @return dimensioneSeme
  81.   **/
  82.   @JsonProperty("dimensione_seme")
  83.   @NotNull
  84.   @Valid
  85.   public Integer getDimensioneSeme() {
  86.     return this.dimensioneSeme;
  87.   }

  88.   public void setDimensioneSeme(Integer dimensioneSeme) {
  89.     this.dimensioneSeme = dimensioneSeme;
  90.   }

  91.   public ErogazioneModISignalHub dimensioneSeme(Integer dimensioneSeme) {
  92.     this.dimensioneSeme = dimensioneSeme;
  93.     return this;
  94.   }

  95.  /**
  96.    * Get giorniRotazione
  97.    * @return giorniRotazione
  98.   **/
  99.   @JsonProperty("giorni_rotazione")
  100.   @NotNull
  101.   @Valid
  102.   public Integer getGiorniRotazione() {
  103.     return this.giorniRotazione;
  104.   }

  105.   public void setGiorniRotazione(Integer giorniRotazione) {
  106.     this.giorniRotazione = giorniRotazione;
  107.   }

  108.   public ErogazioneModISignalHub giorniRotazione(Integer giorniRotazione) {
  109.     this.giorniRotazione = giorniRotazione;
  110.     return this;
  111.   }

  112.  /**
  113.    * Get applicativo
  114.    * @return applicativo
  115.   **/
  116.   @JsonProperty("applicativo")
  117.   @Valid
  118.   public String getApplicativo() {
  119.     return this.applicativo;
  120.   }

  121.   public void setApplicativo(String applicativo) {
  122.     this.applicativo = applicativo;
  123.   }

  124.   public ErogazioneModISignalHub applicativo(String applicativo) {
  125.     this.applicativo = applicativo;
  126.     return this;
  127.   }

  128.  /**
  129.    * Get ruolo
  130.    * @return ruolo
  131.   **/
  132.   @JsonProperty("ruolo")
  133.   @Valid
  134.   public String getRuolo() {
  135.     return this.ruolo;
  136.   }

  137.   public void setRuolo(String ruolo) {
  138.     this.ruolo = ruolo;
  139.   }

  140.   public ErogazioneModISignalHub ruolo(String ruolo) {
  141.     this.ruolo = ruolo;
  142.     return this;
  143.   }


  144.   @Override
  145.   public String toString() {
  146.     StringBuilder sb = new StringBuilder();
  147.     sb.append("class ErogazioneModISignalHub {\n");
  148.    
  149.     sb.append("    risorsa: ").append(ErogazioneModISignalHub.toIndentedString(this.risorsa)).append("\n");
  150.     sb.append("    algoritmo: ").append(ErogazioneModISignalHub.toIndentedString(this.algoritmo)).append("\n");
  151.     sb.append("    dimensioneSeme: ").append(ErogazioneModISignalHub.toIndentedString(this.dimensioneSeme)).append("\n");
  152.     sb.append("    giorniRotazione: ").append(ErogazioneModISignalHub.toIndentedString(this.giorniRotazione)).append("\n");
  153.     sb.append("    applicativo: ").append(ErogazioneModISignalHub.toIndentedString(this.applicativo)).append("\n");
  154.     sb.append("    ruolo: ").append(ErogazioneModISignalHub.toIndentedString(this.ruolo)).append("\n");
  155.     sb.append("}");
  156.     return sb.toString();
  157.   }

  158.   /**
  159.    * Convert the given object to string with each line indented by 4 spaces
  160.    * (except the first line).
  161.    */
  162.   private static String toIndentedString(java.lang.Object o) {
  163.     if (o == null) {
  164.       return "null";
  165.     }
  166.     return o.toString().replace("\n", "\n    ");
  167.   }
  168. }