ModITrustStore.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 ModITrustStore extends BaseTrustStore {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private ModITruststoreEnum truststoreTipo = null;
  29.  
  30.   @Schema(description = "")
  31.   private String pcks11Tipo = null;
  32.  
  33.   @Schema(description = "")
  34.   private String pdndTipo = null;
  35.  /**
  36.    * Get truststoreTipo
  37.    * @return truststoreTipo
  38.   **/
  39.   @JsonProperty("truststore_tipo")
  40.   @NotNull
  41.   @Valid
  42.   public ModITruststoreEnum getTruststoreTipo() {
  43.     return this.truststoreTipo;
  44.   }

  45.   public void setTruststoreTipo(ModITruststoreEnum truststoreTipo) {
  46.     this.truststoreTipo = truststoreTipo;
  47.   }

  48.   public ModITrustStore truststoreTipo(ModITruststoreEnum truststoreTipo) {
  49.     this.truststoreTipo = truststoreTipo;
  50.     return this;
  51.   }

  52.  /**
  53.    * Get pcks11Tipo
  54.    * @return pcks11Tipo
  55.   **/
  56.   @JsonProperty("pcks11_tipo")
  57.   @Valid
  58.  @Size(max=255)  public String getPcks11Tipo() {
  59.     return this.pcks11Tipo;
  60.   }

  61.   public void setPcks11Tipo(String pcks11Tipo) {
  62.     this.pcks11Tipo = pcks11Tipo;
  63.   }

  64.   public ModITrustStore pcks11Tipo(String pcks11Tipo) {
  65.     this.pcks11Tipo = pcks11Tipo;
  66.     return this;
  67.   }

  68.  /**
  69.    * Get pdndTipo
  70.    * @return pdndTipo
  71.   **/
  72.   @JsonProperty("pdnd_tipo")
  73.   @Valid
  74.  @Size(max=255)  public String getPdndTipo() {
  75.     return this.pdndTipo;
  76.   }

  77.   public void setPdndTipo(String pdndTipo) {
  78.     this.pdndTipo = pdndTipo;
  79.   }

  80.   public ModITrustStore pdndTipo(String pdndTipo) {
  81.     this.pdndTipo = pdndTipo;
  82.     return this;
  83.   }


  84.   @Override
  85.   public String toString() {
  86.     StringBuilder sb = new StringBuilder();
  87.     sb.append("class ModITrustStore {\n");
  88.     sb.append("    ").append(ModITrustStore.toIndentedString(super.toString())).append("\n");
  89.     sb.append("    truststoreTipo: ").append(ModITrustStore.toIndentedString(this.truststoreTipo)).append("\n");
  90.     sb.append("    pcks11Tipo: ").append(ModITrustStore.toIndentedString(this.pcks11Tipo)).append("\n");
  91.     sb.append("    pdndTipo: ").append(ModITrustStore.toIndentedString(this.pdndTipo)).append("\n");
  92.     sb.append("}");
  93.     return sb.toString();
  94.   }

  95.   /**
  96.    * Convert the given object to string with each line indented by 4 spaces
  97.    * (except the first line).
  98.    */
  99.   private static String toIndentedString(java.lang.Object o) {
  100.     if (o == null) {
  101.       return "null";
  102.     }
  103.     return o.toString().replace("\n", "\n    ");
  104.   }
  105. }