FruizioneModIRestRispostaSicurezzaMessaggio.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 java.util.List;
  22. import javax.validation.constraints.*;

  23. import io.swagger.v3.oas.annotations.media.Schema;
  24. import com.fasterxml.jackson.annotation.JsonProperty;
  25. import javax.validation.Valid;

  26. public class FruizioneModIRestRispostaSicurezzaMessaggio  {
  27.  
  28.   @Schema(description = "")
  29.   private ModISicurezzaMessaggioRestRiferimentoX509Risposta riferimentoX509 = null;
  30.  
  31.   @Schema(description = "")
  32.   private List<ModISicurezzaMessaggioRestRiferimentoX509> riferimentoX509Risposta = null;
  33.  
  34.   @Schema(required = true, description = "")
  35.   @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 )
  36.   @com.fasterxml.jackson.annotation.JsonSubTypes({
  37.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ModITrustStoreDefault.class, name = "default"),
  38.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ModITrustStoreRidefinito.class, name = "ridefinito")  })
  39.   private OneOfFruizioneModIRestRispostaSicurezzaMessaggioTruststore truststore = null;
  40.  
  41.   @Schema(description = "")
  42.   @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 )
  43.   @com.fasterxml.jackson.annotation.JsonSubTypes({
  44.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ModITrustStoreDefault.class, name = "default"),
  45.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ModITrustStoreRidefinito.class, name = "ridefinito")  })
  46.   private OneOfFruizioneModIRestRispostaSicurezzaMessaggioTruststoreSsl truststoreSsl = null;
  47.  
  48.   @Schema(description = "")
  49.   private Integer timeToLive = null;
  50.  
  51.   @Schema(description = "")
  52.   private Boolean verificaAudience = true;
  53.  
  54.   @Schema(description = "")
  55.   private String audienceAtteso = null;
  56.  
  57.   @Schema(description = "")
  58.   private FruizioneModIRestRispostaSicurezzaMessaggioContemporaneita contemporaneita = null;
  59.  /**
  60.    * Get riferimentoX509
  61.    * @return riferimentoX509
  62.   **/
  63.   @JsonProperty("riferimento_x509")
  64.   @Valid
  65.   public ModISicurezzaMessaggioRestRiferimentoX509Risposta getRiferimentoX509() {
  66.     return this.riferimentoX509;
  67.   }

  68.   public void setRiferimentoX509(ModISicurezzaMessaggioRestRiferimentoX509Risposta riferimentoX509) {
  69.     this.riferimentoX509 = riferimentoX509;
  70.   }

  71.   public FruizioneModIRestRispostaSicurezzaMessaggio riferimentoX509(ModISicurezzaMessaggioRestRiferimentoX509Risposta riferimentoX509) {
  72.     this.riferimentoX509 = riferimentoX509;
  73.     return this;
  74.   }

  75.  /**
  76.    * Get riferimentoX509Risposta
  77.    * @return riferimentoX509Risposta
  78.   **/
  79.   @JsonProperty("riferimento_x509_risposta")
  80.   @Valid
  81.  @Size(min=1,max=3)  public List<ModISicurezzaMessaggioRestRiferimentoX509> getRiferimentoX509Risposta() {
  82.     return this.riferimentoX509Risposta;
  83.   }

  84.   public void setRiferimentoX509Risposta(List<ModISicurezzaMessaggioRestRiferimentoX509> riferimentoX509Risposta) {
  85.     this.riferimentoX509Risposta = riferimentoX509Risposta;
  86.   }

  87.   public FruizioneModIRestRispostaSicurezzaMessaggio riferimentoX509Risposta(List<ModISicurezzaMessaggioRestRiferimentoX509> riferimentoX509Risposta) {
  88.     this.riferimentoX509Risposta = riferimentoX509Risposta;
  89.     return this;
  90.   }

  91.   public FruizioneModIRestRispostaSicurezzaMessaggio addRiferimentoX509RispostaItem(ModISicurezzaMessaggioRestRiferimentoX509 riferimentoX509RispostaItem) {
  92.     this.riferimentoX509Risposta.add(riferimentoX509RispostaItem);
  93.     return this;
  94.   }

  95.  /**
  96.    * Get truststore
  97.    * @return truststore
  98.   **/
  99.   @JsonProperty("truststore")
  100.   @NotNull
  101.   @Valid
  102.   public OneOfFruizioneModIRestRispostaSicurezzaMessaggioTruststore getTruststore() {
  103.     return this.truststore;
  104.   }

  105.   public void setTruststore(OneOfFruizioneModIRestRispostaSicurezzaMessaggioTruststore truststore) {
  106.     this.truststore = truststore;
  107.   }

  108.   public FruizioneModIRestRispostaSicurezzaMessaggio truststore(OneOfFruizioneModIRestRispostaSicurezzaMessaggioTruststore truststore) {
  109.     this.truststore = truststore;
  110.     return this;
  111.   }

  112.  /**
  113.    * Get truststoreSsl
  114.    * @return truststoreSsl
  115.   **/
  116.   @JsonProperty("truststore_ssl")
  117.   @Valid
  118.   public OneOfFruizioneModIRestRispostaSicurezzaMessaggioTruststoreSsl getTruststoreSsl() {
  119.     return this.truststoreSsl;
  120.   }

  121.   public void setTruststoreSsl(OneOfFruizioneModIRestRispostaSicurezzaMessaggioTruststoreSsl truststoreSsl) {
  122.     this.truststoreSsl = truststoreSsl;
  123.   }

  124.   public FruizioneModIRestRispostaSicurezzaMessaggio truststoreSsl(OneOfFruizioneModIRestRispostaSicurezzaMessaggioTruststoreSsl truststoreSsl) {
  125.     this.truststoreSsl = truststoreSsl;
  126.     return this;
  127.   }

  128.  /**
  129.    * Get timeToLive
  130.    * @return timeToLive
  131.   **/
  132.   @JsonProperty("time_to_live")
  133.   @Valid
  134.   public Integer getTimeToLive() {
  135.     return this.timeToLive;
  136.   }

  137.   public void setTimeToLive(Integer timeToLive) {
  138.     this.timeToLive = timeToLive;
  139.   }

  140.   public FruizioneModIRestRispostaSicurezzaMessaggio timeToLive(Integer timeToLive) {
  141.     this.timeToLive = timeToLive;
  142.     return this;
  143.   }

  144.  /**
  145.    * Get verificaAudience
  146.    * @return verificaAudience
  147.   **/
  148.   @JsonProperty("verifica_audience")
  149.   @Valid
  150.   public Boolean isVerificaAudience() {
  151.     return this.verificaAudience;
  152.   }

  153.   public void setVerificaAudience(Boolean verificaAudience) {
  154.     this.verificaAudience = verificaAudience;
  155.   }

  156.   public FruizioneModIRestRispostaSicurezzaMessaggio verificaAudience(Boolean verificaAudience) {
  157.     this.verificaAudience = verificaAudience;
  158.     return this;
  159.   }

  160.  /**
  161.    * Get audienceAtteso
  162.    * @return audienceAtteso
  163.   **/
  164.   @JsonProperty("audience_atteso")
  165.   @Valid
  166.  @Size(max=4000)  public String getAudienceAtteso() {
  167.     return this.audienceAtteso;
  168.   }

  169.   public void setAudienceAtteso(String audienceAtteso) {
  170.     this.audienceAtteso = audienceAtteso;
  171.   }

  172.   public FruizioneModIRestRispostaSicurezzaMessaggio audienceAtteso(String audienceAtteso) {
  173.     this.audienceAtteso = audienceAtteso;
  174.     return this;
  175.   }

  176.  /**
  177.    * Get contemporaneita
  178.    * @return contemporaneita
  179.   **/
  180.   @JsonProperty("contemporaneita")
  181.   @Valid
  182.   public FruizioneModIRestRispostaSicurezzaMessaggioContemporaneita getContemporaneita() {
  183.     return this.contemporaneita;
  184.   }

  185.   public void setContemporaneita(FruizioneModIRestRispostaSicurezzaMessaggioContemporaneita contemporaneita) {
  186.     this.contemporaneita = contemporaneita;
  187.   }

  188.   public FruizioneModIRestRispostaSicurezzaMessaggio contemporaneita(FruizioneModIRestRispostaSicurezzaMessaggioContemporaneita contemporaneita) {
  189.     this.contemporaneita = contemporaneita;
  190.     return this;
  191.   }


  192.   @Override
  193.   public String toString() {
  194.     StringBuilder sb = new StringBuilder();
  195.     sb.append("class FruizioneModIRestRispostaSicurezzaMessaggio {\n");
  196.    
  197.     sb.append("    riferimentoX509: ").append(FruizioneModIRestRispostaSicurezzaMessaggio.toIndentedString(this.riferimentoX509)).append("\n");
  198.     sb.append("    riferimentoX509Risposta: ").append(FruizioneModIRestRispostaSicurezzaMessaggio.toIndentedString(this.riferimentoX509Risposta)).append("\n");
  199.     sb.append("    truststore: ").append(FruizioneModIRestRispostaSicurezzaMessaggio.toIndentedString(this.truststore)).append("\n");
  200.     sb.append("    truststoreSsl: ").append(FruizioneModIRestRispostaSicurezzaMessaggio.toIndentedString(this.truststoreSsl)).append("\n");
  201.     sb.append("    timeToLive: ").append(FruizioneModIRestRispostaSicurezzaMessaggio.toIndentedString(this.timeToLive)).append("\n");
  202.     sb.append("    verificaAudience: ").append(FruizioneModIRestRispostaSicurezzaMessaggio.toIndentedString(this.verificaAudience)).append("\n");
  203.     sb.append("    audienceAtteso: ").append(FruizioneModIRestRispostaSicurezzaMessaggio.toIndentedString(this.audienceAtteso)).append("\n");
  204.     sb.append("    contemporaneita: ").append(FruizioneModIRestRispostaSicurezzaMessaggio.toIndentedString(this.contemporaneita)).append("\n");
  205.     sb.append("}");
  206.     return sb.toString();
  207.   }

  208.   /**
  209.    * Convert the given object to string with each line indented by 4 spaces
  210.    * (except the first line).
  211.    */
  212.   private static String toIndentedString(java.lang.Object o) {
  213.     if (o == null) {
  214.       return "null";
  215.     }
  216.     return o.toString().replace("\n", "\n    ");
  217.   }
  218. }