ModIKeyStoreRidefinito.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 ModIKeyStoreRidefinito  implements OneOfErogazioneModIRestRispostaSicurezzaMessaggioKeystore, OneOfErogazioneModISoapRispostaSicurezzaMessaggioKeystore, OneOfFruizioneModIOAuthKeystore, OneOfFruizioneModIRestRichiestaSicurezzaMessaggioKeystore, OneOfFruizioneModISoapRichiestaSicurezzaMessaggioKeystore {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private StatoDefaultRidefinitoEnum modalita = null;
  29.  
  30.   @Schema(required = true, description = "")
  31.   @com.fasterxml.jackson.annotation.JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.EXISTING_PROPERTY, property = "tipologia", visible = true )
  32.   @com.fasterxml.jackson.annotation.JsonSubTypes({
  33.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ModIKeyStoreArchive.class, name = "archivio"),
  34.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ModIKeyStoreFile.class, name = "filesystem"),
  35.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ModIKeyStoreHSM.class, name = "hsm")  })
  36.   private OneOfModIKeyStoreRidefinitoDatiKeystore datiKeystore = null;
  37.  /**
  38.    * Get modalita
  39.    * @return modalita
  40.   **/
  41.   @Override
  42. @JsonProperty("modalita")
  43.   @NotNull
  44.   @Valid
  45.   public StatoDefaultRidefinitoEnum getModalita() {
  46.     return this.modalita;
  47.   }

  48.   public void setModalita(StatoDefaultRidefinitoEnum modalita) {
  49.     this.modalita = modalita;
  50.   }

  51.   public ModIKeyStoreRidefinito modalita(StatoDefaultRidefinitoEnum modalita) {
  52.     this.modalita = modalita;
  53.     return this;
  54.   }

  55.  /**
  56.    * Get datiKeystore
  57.    * @return datiKeystore
  58.   **/
  59.   @JsonProperty("dati_keystore")
  60.   @NotNull
  61.   @Valid
  62.   public OneOfModIKeyStoreRidefinitoDatiKeystore getDatiKeystore() {
  63.     return this.datiKeystore;
  64.   }

  65.   public void setDatiKeystore(OneOfModIKeyStoreRidefinitoDatiKeystore datiKeystore) {
  66.     this.datiKeystore = datiKeystore;
  67.   }

  68.   public ModIKeyStoreRidefinito datiKeystore(OneOfModIKeyStoreRidefinitoDatiKeystore datiKeystore) {
  69.     this.datiKeystore = datiKeystore;
  70.     return this;
  71.   }


  72.   @Override
  73.   public String toString() {
  74.     StringBuilder sb = new StringBuilder();
  75.     sb.append("class ModIKeyStoreRidefinito {\n");
  76.    
  77.     sb.append("    modalita: ").append(ModIKeyStoreRidefinito.toIndentedString(this.modalita)).append("\n");
  78.     sb.append("    datiKeystore: ").append(ModIKeyStoreRidefinito.toIndentedString(this.datiKeystore)).append("\n");
  79.     sb.append("}");
  80.     return sb.toString();
  81.   }

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