FruizioneModIOAuth.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 FruizioneModIOAuth extends BaseFruizioneModIOAuth implements OneOfFruizioneModi, OneOfFruizioneModIModi {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private TipoConfigurazioneFruizioneEnum protocollo = null;
  29.  
  30.   @Schema(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 = "modalita", visible = true )
  32.   @com.fasterxml.jackson.annotation.JsonSubTypes({
  33.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ModIKeyStoreDefault.class, name = "default"),
  34.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ModIKeyStoreRidefinito.class, name = "ridefinito")  })
  35.   private OneOfFruizioneModIOAuthKeystore keystore = null;
  36.  /**
  37.    * Get protocollo
  38.    * @return protocollo
  39.   **/
  40.   @Override
  41. @JsonProperty("protocollo")
  42.   @NotNull
  43.   @Valid
  44.   public TipoConfigurazioneFruizioneEnum getProtocollo() {
  45.     return this.protocollo;
  46.   }

  47.   public void setProtocollo(TipoConfigurazioneFruizioneEnum protocollo) {
  48.     this.protocollo = protocollo;
  49.   }

  50.   public FruizioneModIOAuth protocollo(TipoConfigurazioneFruizioneEnum protocollo) {
  51.     this.protocollo = protocollo;
  52.     return this;
  53.   }

  54.  /**
  55.    * Get keystore
  56.    * @return keystore
  57.   **/
  58.   @JsonProperty("keystore")
  59.   @Valid
  60.   public OneOfFruizioneModIOAuthKeystore getKeystore() {
  61.     return this.keystore;
  62.   }

  63.   public void setKeystore(OneOfFruizioneModIOAuthKeystore keystore) {
  64.     this.keystore = keystore;
  65.   }

  66.   public FruizioneModIOAuth keystore(OneOfFruizioneModIOAuthKeystore keystore) {
  67.     this.keystore = keystore;
  68.     return this;
  69.   }


  70.   @Override
  71.   public String toString() {
  72.     StringBuilder sb = new StringBuilder();
  73.     sb.append("class FruizioneModIOAuth {\n");
  74.     sb.append("    ").append(FruizioneModIOAuth.toIndentedString(super.toString())).append("\n");
  75.     sb.append("    protocollo: ").append(FruizioneModIOAuth.toIndentedString(this.protocollo)).append("\n");
  76.     sb.append("    keystore: ").append(FruizioneModIOAuth.toIndentedString(this.keystore)).append("\n");
  77.     sb.append("}");
  78.     return sb.toString();
  79.   }

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