RateLimitingPolicyBaseConIdentificazione.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 io.swagger.v3.oas.annotations.media.Schema;
  22. import com.fasterxml.jackson.annotation.JsonProperty;
  23. import javax.validation.Valid;

  24. public class RateLimitingPolicyBaseConIdentificazione extends RateLimitingPolicyBase {
  25.  
  26.   @Schema(description = "")
  27.   @com.fasterxml.jackson.annotation.JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.EXISTING_PROPERTY, property = "identificazione", visible = true )
  28.   @com.fasterxml.jackson.annotation.JsonSubTypes({
  29.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = RateLimitingPolicyCriteri.class, name = "criteri"),
  30.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = RateLimitingPolicyIdentificativo.class, name = "policy")  })
  31.   private OneOfRateLimitingPolicyBaseConIdentificazioneConfigurazione configurazione = null;
  32.  /**
  33.    * Get configurazione
  34.    * @return configurazione
  35.   **/
  36.   @JsonProperty("configurazione")
  37.   @Valid
  38.   public OneOfRateLimitingPolicyBaseConIdentificazioneConfigurazione getConfigurazione() {
  39.     return this.configurazione;
  40.   }

  41.   public void setConfigurazione(OneOfRateLimitingPolicyBaseConIdentificazioneConfigurazione configurazione) {
  42.     this.configurazione = configurazione;
  43.   }

  44.   public RateLimitingPolicyBaseConIdentificazione configurazione(OneOfRateLimitingPolicyBaseConIdentificazioneConfigurazione configurazione) {
  45.     this.configurazione = configurazione;
  46.     return this;
  47.   }


  48.   @Override
  49.   public String toString() {
  50.     StringBuilder sb = new StringBuilder();
  51.     sb.append("class RateLimitingPolicyBaseConIdentificazione {\n");
  52.     sb.append("    ").append(RateLimitingPolicyBaseConIdentificazione.toIndentedString(super.toString())).append("\n");
  53.     sb.append("    configurazione: ").append(RateLimitingPolicyBaseConIdentificazione.toIndentedString(this.configurazione)).append("\n");
  54.     sb.append("}");
  55.     return sb.toString();
  56.   }

  57.   /**
  58.    * Convert the given object to string with each line indented by 4 spaces
  59.    * (except the first line).
  60.    */
  61.   private static String toIndentedString(java.lang.Object o) {
  62.     if (o == null) {
  63.       return "null";
  64.     }
  65.     return o.toString().replace("\n", "\n    ");
  66.   }
  67. }