ModIKeyStoreFile.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 ModIKeyStoreFile extends BaseKeyStoreFile implements OneOfModIKeyStoreRidefinitoDatiKeystore {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private ModIKeystoreTipologiaEnum tipologia = null;
  29.  
  30.   @Schema(required = true, description = "")
  31.   private ModIKeystoreEnum keystoreTipo = null;
  32.  /**
  33.    * Get tipologia
  34.    * @return tipologia
  35.   **/
  36.   @Override
  37. @JsonProperty("tipologia")
  38.   @NotNull
  39.   @Valid
  40.   public ModIKeystoreTipologiaEnum getTipologia() {
  41.     return this.tipologia;
  42.   }

  43.   public void setTipologia(ModIKeystoreTipologiaEnum tipologia) {
  44.     this.tipologia = tipologia;
  45.   }

  46.   public ModIKeyStoreFile tipologia(ModIKeystoreTipologiaEnum tipologia) {
  47.     this.tipologia = tipologia;
  48.     return this;
  49.   }

  50.  /**
  51.    * Get keystoreTipo
  52.    * @return keystoreTipo
  53.   **/
  54.   @JsonProperty("keystore_tipo")
  55.   @NotNull
  56.   @Valid
  57.   public ModIKeystoreEnum getKeystoreTipo() {
  58.     return this.keystoreTipo;
  59.   }

  60.   public void setKeystoreTipo(ModIKeystoreEnum keystoreTipo) {
  61.     this.keystoreTipo = keystoreTipo;
  62.   }

  63.   public ModIKeyStoreFile keystoreTipo(ModIKeystoreEnum keystoreTipo) {
  64.     this.keystoreTipo = keystoreTipo;
  65.     return this;
  66.   }


  67.   @Override
  68.   public String toString() {
  69.     StringBuilder sb = new StringBuilder();
  70.     sb.append("class ModIKeyStoreFile {\n");
  71.     sb.append("    ").append(ModIKeyStoreFile.toIndentedString(super.toString())).append("\n");
  72.     sb.append("    tipologia: ").append(ModIKeyStoreFile.toIndentedString(this.tipologia)).append("\n");
  73.     sb.append("    keystoreTipo: ").append(ModIKeyStoreFile.toIndentedString(this.keystoreTipo)).append("\n");
  74.     sb.append("}");
  75.     return sb.toString();
  76.   }

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