RateLimitingPolicyErogazioneUpdate.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 RateLimitingPolicyErogazioneUpdate extends RateLimitingPolicyBase {
  25.  
  26.   @Schema(description = "")
  27.   private RateLimitingPolicyFiltroErogazione filtro = null;
  28.  
  29.   @Schema(description = "")
  30.   private RateLimitingPolicyGroupBy raggruppamento = null;
  31.  /**
  32.    * Get filtro
  33.    * @return filtro
  34.   **/
  35.   @JsonProperty("filtro")
  36.   @Valid
  37.   public RateLimitingPolicyFiltroErogazione getFiltro() {
  38.     return this.filtro;
  39.   }

  40.   public void setFiltro(RateLimitingPolicyFiltroErogazione filtro) {
  41.     this.filtro = filtro;
  42.   }

  43.   public RateLimitingPolicyErogazioneUpdate filtro(RateLimitingPolicyFiltroErogazione filtro) {
  44.     this.filtro = filtro;
  45.     return this;
  46.   }

  47.  /**
  48.    * Get raggruppamento
  49.    * @return raggruppamento
  50.   **/
  51.   @JsonProperty("raggruppamento")
  52.   @Valid
  53.   public RateLimitingPolicyGroupBy getRaggruppamento() {
  54.     return this.raggruppamento;
  55.   }

  56.   public void setRaggruppamento(RateLimitingPolicyGroupBy raggruppamento) {
  57.     this.raggruppamento = raggruppamento;
  58.   }

  59.   public RateLimitingPolicyErogazioneUpdate raggruppamento(RateLimitingPolicyGroupBy raggruppamento) {
  60.     this.raggruppamento = raggruppamento;
  61.     return this;
  62.   }


  63.   @Override
  64.   public String toString() {
  65.     StringBuilder sb = new StringBuilder();
  66.     sb.append("class RateLimitingPolicyErogazioneUpdate {\n");
  67.     sb.append("    ").append(RateLimitingPolicyErogazioneUpdate.toIndentedString(super.toString())).append("\n");
  68.     sb.append("    filtro: ").append(RateLimitingPolicyErogazioneUpdate.toIndentedString(this.filtro)).append("\n");
  69.     sb.append("    raggruppamento: ").append(RateLimitingPolicyErogazioneUpdate.toIndentedString(this.raggruppamento)).append("\n");
  70.     sb.append("}");
  71.     return sb.toString();
  72.   }

  73.   /**
  74.    * Convert the given object to string with each line indented by 4 spaces
  75.    * (except the first line).
  76.    */
  77.   private static String toIndentedString(java.lang.Object o) {
  78.     if (o == null) {
  79.       return "null";
  80.     }
  81.     return o.toString().replace("\n", "\n    ");
  82.   }
  83. }