FruizioneModISoapRispostaSicurezzaMessaggio.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 FruizioneModISoapRispostaSicurezzaMessaggio  {
  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 OneOfFruizioneModISoapRispostaSicurezzaMessaggioTruststore truststore = null;
  33.  
  34.   @Schema(description = "")
  35.   private Integer timeToLive = null;
  36.  
  37.   @Schema(description = "")
  38.   private Boolean verificaWsaTo = true;
  39.  
  40.   @Schema(description = "")
  41.   private String audienceAtteso = null;
  42.  /**
  43.    * Get truststore
  44.    * @return truststore
  45.   **/
  46.   @JsonProperty("truststore")
  47.   @NotNull
  48.   @Valid
  49.   public OneOfFruizioneModISoapRispostaSicurezzaMessaggioTruststore getTruststore() {
  50.     return this.truststore;
  51.   }

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

  55.   public FruizioneModISoapRispostaSicurezzaMessaggio truststore(OneOfFruizioneModISoapRispostaSicurezzaMessaggioTruststore 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 FruizioneModISoapRispostaSicurezzaMessaggio timeToLive(Integer timeToLive) {
  72.     this.timeToLive = timeToLive;
  73.     return this;
  74.   }

  75.  /**
  76.    * Get verificaWsaTo
  77.    * @return verificaWsaTo
  78.   **/
  79.   @JsonProperty("verifica_wsa_to")
  80.   @Valid
  81.   public Boolean isVerificaWsaTo() {
  82.     return this.verificaWsaTo;
  83.   }

  84.   public void setVerificaWsaTo(Boolean verificaWsaTo) {
  85.     this.verificaWsaTo = verificaWsaTo;
  86.   }

  87.   public FruizioneModISoapRispostaSicurezzaMessaggio verificaWsaTo(Boolean verificaWsaTo) {
  88.     this.verificaWsaTo = verificaWsaTo;
  89.     return this;
  90.   }

  91.  /**
  92.    * Get audienceAtteso
  93.    * @return audienceAtteso
  94.   **/
  95.   @JsonProperty("audience_atteso")
  96.   @Valid
  97.  @Size(max=4000)  public String getAudienceAtteso() {
  98.     return this.audienceAtteso;
  99.   }

  100.   public void setAudienceAtteso(String audienceAtteso) {
  101.     this.audienceAtteso = audienceAtteso;
  102.   }

  103.   public FruizioneModISoapRispostaSicurezzaMessaggio audienceAtteso(String audienceAtteso) {
  104.     this.audienceAtteso = audienceAtteso;
  105.     return this;
  106.   }


  107.   @Override
  108.   public String toString() {
  109.     StringBuilder sb = new StringBuilder();
  110.     sb.append("class FruizioneModISoapRispostaSicurezzaMessaggio {\n");
  111.    
  112.     sb.append("    truststore: ").append(FruizioneModISoapRispostaSicurezzaMessaggio.toIndentedString(this.truststore)).append("\n");
  113.     sb.append("    timeToLive: ").append(FruizioneModISoapRispostaSicurezzaMessaggio.toIndentedString(this.timeToLive)).append("\n");
  114.     sb.append("    verificaWsaTo: ").append(FruizioneModISoapRispostaSicurezzaMessaggio.toIndentedString(this.verificaWsaTo)).append("\n");
  115.     sb.append("    audienceAtteso: ").append(FruizioneModISoapRispostaSicurezzaMessaggio.toIndentedString(this.audienceAtteso)).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. }