ApiImplUrlInvocazioneView.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 ApiImplUrlInvocazioneView extends ApiImplUrlInvocazione {
  27.  
  28.   @Schema(required = true, description = "")
  29.   private String urlInvocazione = null;
  30.  
  31.   @Schema(example = "[\"az1\",\"az2\",\"az3\"]", description = "")
  32.   private List<String> azioni = null;
  33.  /**
  34.    * Get urlInvocazione
  35.    * @return urlInvocazione
  36.   **/
  37.   @JsonProperty("url_invocazione")
  38.   @NotNull
  39.   @Valid
  40.   public String getUrlInvocazione() {
  41.     return this.urlInvocazione;
  42.   }

  43.   public void setUrlInvocazione(String urlInvocazione) {
  44.     this.urlInvocazione = urlInvocazione;
  45.   }

  46.   public ApiImplUrlInvocazioneView urlInvocazione(String urlInvocazione) {
  47.     this.urlInvocazione = urlInvocazione;
  48.     return this;
  49.   }

  50.  /**
  51.    * Get azioni
  52.    * @return azioni
  53.   **/
  54.   @JsonProperty("azioni")
  55.   @Valid
  56.   public List<String> getAzioni() {
  57.     return this.azioni;
  58.   }

  59.   public void setAzioni(List<String> azioni) {
  60.     this.azioni = azioni;
  61.   }

  62.   public ApiImplUrlInvocazioneView azioni(List<String> azioni) {
  63.     this.azioni = azioni;
  64.     return this;
  65.   }

  66.   public ApiImplUrlInvocazioneView addAzioniItem(String azioniItem) {
  67.     this.azioni.add(azioniItem);
  68.     return this;
  69.   }


  70.   @Override
  71.   public String toString() {
  72.     StringBuilder sb = new StringBuilder();
  73.     sb.append("class ApiImplUrlInvocazioneView {\n");
  74.     sb.append("    ").append(ApiImplUrlInvocazioneView.toIndentedString(super.toString())).append("\n");
  75.     sb.append("    urlInvocazione: ").append(ApiImplUrlInvocazioneView.toIndentedString(this.urlInvocazione)).append("\n");
  76.     sb.append("    azioni: ").append(ApiImplUrlInvocazioneView.toIndentedString(this.azioni)).append("\n");
  77.     sb.append("}");
  78.     return sb.toString();
  79.   }

  80.   /**
  81.    * Convert the given object to string with each line indented by 4 spaces
  82.    * (except the first line).
  83.    */
  84.   private static String toIndentedString(java.lang.Object o) {
  85.     if (o == null) {
  86.       return "null";
  87.     }
  88.     return o.toString().replace("\n", "\n    ");
  89.   }
  90. }