ApiImplViewItem.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 javax.validation.constraints.*;

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

  25. public class ApiImplViewItem extends ApiImplItem {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private String urlInvocazione = null;
  29.  
  30.   @Schema(required = true, description = "")
  31.   private String connettore = null;
  32.  
  33.   @Schema(required = true, description = "")
  34.   private String gestioneCors = null;
  35.  /**
  36.    * Get urlInvocazione
  37.    * @return urlInvocazione
  38.   **/
  39.   @JsonProperty("url_invocazione")
  40.   @NotNull
  41.   @Valid
  42.   public String getUrlInvocazione() {
  43.     return this.urlInvocazione;
  44.   }

  45.   public void setUrlInvocazione(String urlInvocazione) {
  46.     this.urlInvocazione = urlInvocazione;
  47.   }

  48.   public ApiImplViewItem urlInvocazione(String urlInvocazione) {
  49.     this.urlInvocazione = urlInvocazione;
  50.     return this;
  51.   }

  52.  /**
  53.    * Get connettore
  54.    * @return connettore
  55.   **/
  56.   @JsonProperty("connettore")
  57.   @NotNull
  58.   @Valid
  59.   public String getConnettore() {
  60.     return this.connettore;
  61.   }

  62.   public void setConnettore(String connettore) {
  63.     this.connettore = connettore;
  64.   }

  65.   public ApiImplViewItem connettore(String connettore) {
  66.     this.connettore = connettore;
  67.     return this;
  68.   }

  69.  /**
  70.    * Get gestioneCors
  71.    * @return gestioneCors
  72.   **/
  73.   @JsonProperty("gestione_cors")
  74.   @NotNull
  75.   @Valid
  76.   public String getGestioneCors() {
  77.     return this.gestioneCors;
  78.   }

  79.   public void setGestioneCors(String gestioneCors) {
  80.     this.gestioneCors = gestioneCors;
  81.   }

  82.   public ApiImplViewItem gestioneCors(String gestioneCors) {
  83.     this.gestioneCors = gestioneCors;
  84.     return this;
  85.   }


  86.   @Override
  87.   public String toString() {
  88.     StringBuilder sb = new StringBuilder();
  89.     sb.append("class ApiImplViewItem {\n");
  90.     sb.append("    ").append(ApiImplViewItem.toIndentedString(super.toString())).append("\n");
  91.     sb.append("    urlInvocazione: ").append(ApiImplViewItem.toIndentedString(this.urlInvocazione)).append("\n");
  92.     sb.append("    connettore: ").append(ApiImplViewItem.toIndentedString(this.connettore)).append("\n");
  93.     sb.append("    gestioneCors: ").append(ApiImplViewItem.toIndentedString(this.gestioneCors)).append("\n");
  94.     sb.append("}");
  95.     return sb.toString();
  96.   }

  97.   /**
  98.    * Convert the given object to string with each line indented by 4 spaces
  99.    * (except the first line).
  100.    */
  101.   private static String toIndentedString(java.lang.Object o) {
  102.     if (o == null) {
  103.       return "null";
  104.     }
  105.     return o.toString().replace("\n", "\n    ");
  106.   }
  107. }