ErogazioneModISoapRichiestaSicurezzaMessaggio.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 ErogazioneModISoapRichiestaSicurezzaMessaggio  {
  26.  
  27.   @Schema(required = true, description = "")
  28.   @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 )
  29.   @com.fasterxml.jackson.annotation.JsonSubTypes({
  30.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ModITrustStoreDefault.class, name = "default"),
  31.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ModITrustStoreRidefinito.class, name = "ridefinito")  })
  32.   private OneOfErogazioneModISoapRichiestaSicurezzaMessaggioTruststore truststore = null;
  33.  
  34.   @Schema(description = "")
  35.   private Integer timeToLive = null;
  36.  
  37.   @Schema(description = "")
  38.   private String wsaTo = null;
  39.  
  40.   @Schema(description = "")
  41.   private BaseModIRichiestaInformazioniUtenteAudit audit = null;
  42.  /**
  43.    * Get truststore
  44.    * @return truststore
  45.   **/
  46.   @JsonProperty("truststore")
  47.   @NotNull
  48.   @Valid
  49.   public OneOfErogazioneModISoapRichiestaSicurezzaMessaggioTruststore getTruststore() {
  50.     return this.truststore;
  51.   }

  52.   public void setTruststore(OneOfErogazioneModISoapRichiestaSicurezzaMessaggioTruststore truststore) {
  53.     this.truststore = truststore;
  54.   }

  55.   public ErogazioneModISoapRichiestaSicurezzaMessaggio truststore(OneOfErogazioneModISoapRichiestaSicurezzaMessaggioTruststore truststore) {
  56.     this.truststore = truststore;
  57.     return this;
  58.   }

  59.  /**
  60.    * Get timeToLive
  61.    * @return timeToLive
  62.   **/
  63.   @JsonProperty("time_to_live")
  64.   @Valid
  65.   public Integer getTimeToLive() {
  66.     return this.timeToLive;
  67.   }

  68.   public void setTimeToLive(Integer timeToLive) {
  69.     this.timeToLive = timeToLive;
  70.   }

  71.   public ErogazioneModISoapRichiestaSicurezzaMessaggio timeToLive(Integer timeToLive) {
  72.     this.timeToLive = timeToLive;
  73.     return this;
  74.   }

  75.  /**
  76.    * Get wsaTo
  77.    * @return wsaTo
  78.   **/
  79.   @JsonProperty("wsa_to")
  80.   @Valid
  81.  @Size(max=4000)  public String getWsaTo() {
  82.     return this.wsaTo;
  83.   }

  84.   public void setWsaTo(String wsaTo) {
  85.     this.wsaTo = wsaTo;
  86.   }

  87.   public ErogazioneModISoapRichiestaSicurezzaMessaggio wsaTo(String wsaTo) {
  88.     this.wsaTo = wsaTo;
  89.     return this;
  90.   }

  91.  /**
  92.    * Get audit
  93.    * @return audit
  94.   **/
  95.   @JsonProperty("audit")
  96.   @Valid
  97.   public BaseModIRichiestaInformazioniUtenteAudit getAudit() {
  98.     return this.audit;
  99.   }

  100.   public void setAudit(BaseModIRichiestaInformazioniUtenteAudit audit) {
  101.     this.audit = audit;
  102.   }

  103.   public ErogazioneModISoapRichiestaSicurezzaMessaggio audit(BaseModIRichiestaInformazioniUtenteAudit audit) {
  104.     this.audit = audit;
  105.     return this;
  106.   }


  107.   @Override
  108.   public String toString() {
  109.     StringBuilder sb = new StringBuilder();
  110.     sb.append("class ErogazioneModISoapRichiestaSicurezzaMessaggio {\n");
  111.    
  112.     sb.append("    truststore: ").append(ErogazioneModISoapRichiestaSicurezzaMessaggio.toIndentedString(this.truststore)).append("\n");
  113.     sb.append("    timeToLive: ").append(ErogazioneModISoapRichiestaSicurezzaMessaggio.toIndentedString(this.timeToLive)).append("\n");
  114.     sb.append("    wsaTo: ").append(ErogazioneModISoapRichiestaSicurezzaMessaggio.toIndentedString(this.wsaTo)).append("\n");
  115.     sb.append("    audit: ").append(ErogazioneModISoapRichiestaSicurezzaMessaggio.toIndentedString(this.audit)).append("\n");
  116.     sb.append("}");
  117.     return sb.toString();
  118.   }

  119.   /**
  120.    * Convert the given object to string with each line indented by 4 spaces
  121.    * (except the first line).
  122.    */
  123.   private static String toIndentedString(java.lang.Object o) {
  124.     if (o == null) {
  125.       return "null";
  126.     }
  127.     return o.toString().replace("\n", "\n    ");
  128.   }
  129. }