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

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

  27. public class ErogazioneModIRestRichiestaSicurezzaMessaggio  {
  28.  
  29.   @Schema(required = true, description = "")
  30.   private List<ModISicurezzaMessaggioRestRiferimentoX509> riferimentoX509 = new ArrayList<>();
  31.  
  32.   @Schema(required = true, description = "")
  33.   @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 )
  34.   @com.fasterxml.jackson.annotation.JsonSubTypes({
  35.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ModITrustStoreDefault.class, name = "default"),
  36.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ModITrustStoreRidefinito.class, name = "ridefinito")  })
  37.   private OneOfErogazioneModIRestRichiestaSicurezzaMessaggioTruststore truststore = null;
  38.  
  39.   @Schema(description = "")
  40.   @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 )
  41.   @com.fasterxml.jackson.annotation.JsonSubTypes({
  42.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ModITrustStoreDefault.class, name = "default"),
  43.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ModITrustStoreRidefinito.class, name = "ridefinito")  })
  44.   private OneOfErogazioneModIRestRichiestaSicurezzaMessaggioTruststoreSsl truststoreSsl = null;
  45.  
  46.   @Schema(description = "")
  47.   private Integer timeToLive = null;
  48.  
  49.   @Schema(description = "")
  50.   private String audience = null;
  51.  
  52.   @Schema(description = "")
  53.   private ErogazioneModIRestRichiestaSicurezzaMessaggioContemporaneita contemporaneita = null;
  54.  
  55.   @Schema(description = "")
  56.   private BaseModIRichiestaInformazioniUtenteAudit audit = null;
  57.  /**
  58.    * Get riferimentoX509
  59.    * @return riferimentoX509
  60.   **/
  61.   @JsonProperty("riferimento_x509")
  62.   @NotNull
  63.   @Valid
  64.  @Size(min=1,max=3)  public List<ModISicurezzaMessaggioRestRiferimentoX509> getRiferimentoX509() {
  65.     return this.riferimentoX509;
  66.   }

  67.   public void setRiferimentoX509(List<ModISicurezzaMessaggioRestRiferimentoX509> riferimentoX509) {
  68.     this.riferimentoX509 = riferimentoX509;
  69.   }

  70.   public ErogazioneModIRestRichiestaSicurezzaMessaggio riferimentoX509(List<ModISicurezzaMessaggioRestRiferimentoX509> riferimentoX509) {
  71.     this.riferimentoX509 = riferimentoX509;
  72.     return this;
  73.   }

  74.   public ErogazioneModIRestRichiestaSicurezzaMessaggio addRiferimentoX509Item(ModISicurezzaMessaggioRestRiferimentoX509 riferimentoX509Item) {
  75.     this.riferimentoX509.add(riferimentoX509Item);
  76.     return this;
  77.   }

  78.  /**
  79.    * Get truststore
  80.    * @return truststore
  81.   **/
  82.   @JsonProperty("truststore")
  83.   @NotNull
  84.   @Valid
  85.   public OneOfErogazioneModIRestRichiestaSicurezzaMessaggioTruststore getTruststore() {
  86.     return this.truststore;
  87.   }

  88.   public void setTruststore(OneOfErogazioneModIRestRichiestaSicurezzaMessaggioTruststore truststore) {
  89.     this.truststore = truststore;
  90.   }

  91.   public ErogazioneModIRestRichiestaSicurezzaMessaggio truststore(OneOfErogazioneModIRestRichiestaSicurezzaMessaggioTruststore truststore) {
  92.     this.truststore = truststore;
  93.     return this;
  94.   }

  95.  /**
  96.    * Get truststoreSsl
  97.    * @return truststoreSsl
  98.   **/
  99.   @JsonProperty("truststore_ssl")
  100.   @Valid
  101.   public OneOfErogazioneModIRestRichiestaSicurezzaMessaggioTruststoreSsl getTruststoreSsl() {
  102.     return this.truststoreSsl;
  103.   }

  104.   public void setTruststoreSsl(OneOfErogazioneModIRestRichiestaSicurezzaMessaggioTruststoreSsl truststoreSsl) {
  105.     this.truststoreSsl = truststoreSsl;
  106.   }

  107.   public ErogazioneModIRestRichiestaSicurezzaMessaggio truststoreSsl(OneOfErogazioneModIRestRichiestaSicurezzaMessaggioTruststoreSsl truststoreSsl) {
  108.     this.truststoreSsl = truststoreSsl;
  109.     return this;
  110.   }

  111.  /**
  112.    * Get timeToLive
  113.    * @return timeToLive
  114.   **/
  115.   @JsonProperty("time_to_live")
  116.   @Valid
  117.   public Integer getTimeToLive() {
  118.     return this.timeToLive;
  119.   }

  120.   public void setTimeToLive(Integer timeToLive) {
  121.     this.timeToLive = timeToLive;
  122.   }

  123.   public ErogazioneModIRestRichiestaSicurezzaMessaggio timeToLive(Integer timeToLive) {
  124.     this.timeToLive = timeToLive;
  125.     return this;
  126.   }

  127.  /**
  128.    * Get audience
  129.    * @return audience
  130.   **/
  131.   @JsonProperty("audience")
  132.   @Valid
  133.  @Size(max=4000)  public String getAudience() {
  134.     return this.audience;
  135.   }

  136.   public void setAudience(String audience) {
  137.     this.audience = audience;
  138.   }

  139.   public ErogazioneModIRestRichiestaSicurezzaMessaggio audience(String audience) {
  140.     this.audience = audience;
  141.     return this;
  142.   }

  143.  /**
  144.    * Get contemporaneita
  145.    * @return contemporaneita
  146.   **/
  147.   @JsonProperty("contemporaneita")
  148.   @Valid
  149.   public ErogazioneModIRestRichiestaSicurezzaMessaggioContemporaneita getContemporaneita() {
  150.     return this.contemporaneita;
  151.   }

  152.   public void setContemporaneita(ErogazioneModIRestRichiestaSicurezzaMessaggioContemporaneita contemporaneita) {
  153.     this.contemporaneita = contemporaneita;
  154.   }

  155.   public ErogazioneModIRestRichiestaSicurezzaMessaggio contemporaneita(ErogazioneModIRestRichiestaSicurezzaMessaggioContemporaneita contemporaneita) {
  156.     this.contemporaneita = contemporaneita;
  157.     return this;
  158.   }

  159.  /**
  160.    * Get audit
  161.    * @return audit
  162.   **/
  163.   @JsonProperty("audit")
  164.   @Valid
  165.   public BaseModIRichiestaInformazioniUtenteAudit getAudit() {
  166.     return this.audit;
  167.   }

  168.   public void setAudit(BaseModIRichiestaInformazioniUtenteAudit audit) {
  169.     this.audit = audit;
  170.   }

  171.   public ErogazioneModIRestRichiestaSicurezzaMessaggio audit(BaseModIRichiestaInformazioniUtenteAudit audit) {
  172.     this.audit = audit;
  173.     return this;
  174.   }


  175.   @Override
  176.   public String toString() {
  177.     StringBuilder sb = new StringBuilder();
  178.     sb.append("class ErogazioneModIRestRichiestaSicurezzaMessaggio {\n");
  179.    
  180.     sb.append("    riferimentoX509: ").append(ErogazioneModIRestRichiestaSicurezzaMessaggio.toIndentedString(this.riferimentoX509)).append("\n");
  181.     sb.append("    truststore: ").append(ErogazioneModIRestRichiestaSicurezzaMessaggio.toIndentedString(this.truststore)).append("\n");
  182.     sb.append("    truststoreSsl: ").append(ErogazioneModIRestRichiestaSicurezzaMessaggio.toIndentedString(this.truststoreSsl)).append("\n");
  183.     sb.append("    timeToLive: ").append(ErogazioneModIRestRichiestaSicurezzaMessaggio.toIndentedString(this.timeToLive)).append("\n");
  184.     sb.append("    audience: ").append(ErogazioneModIRestRichiestaSicurezzaMessaggio.toIndentedString(this.audience)).append("\n");
  185.     sb.append("    contemporaneita: ").append(ErogazioneModIRestRichiestaSicurezzaMessaggio.toIndentedString(this.contemporaneita)).append("\n");
  186.     sb.append("    audit: ").append(ErogazioneModIRestRichiestaSicurezzaMessaggio.toIndentedString(this.audit)).append("\n");
  187.     sb.append("}");
  188.     return sb.toString();
  189.   }

  190.   /**
  191.    * Convert the given object to string with each line indented by 4 spaces
  192.    * (except the first line).
  193.    */
  194.   private static String toIndentedString(java.lang.Object o) {
  195.     if (o == null) {
  196.       return "null";
  197.     }
  198.     return o.toString().replace("\n", "\n    ");
  199.   }
  200. }