ApiModIPatternInterazioneCorrelazioneRest.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 ApiModIPatternInterazioneCorrelazioneRest  {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private String apiNome = null;
  29.  
  30.   @Schema(required = true, description = "")
  31.   private Integer apiVersione = null;
  32.  
  33.   @Schema(description = "")
  34.   private HttpMethodEnum risorsaHttpMethod = null;
  35.  
  36.   @Schema(example = "/libri", description = "")
  37.   private String risorsaPath = null;
  38.  /**
  39.    * Get apiNome
  40.    * @return apiNome
  41.   **/
  42.   @JsonProperty("api_nome")
  43.   @NotNull
  44.   @Valid
  45.  @Pattern(regexp="^[_A-Za-z][\\-\\._A-Za-z0-9]*$") @Size(max=255)  public String getApiNome() {
  46.     return this.apiNome;
  47.   }

  48.   public void setApiNome(String apiNome) {
  49.     this.apiNome = apiNome;
  50.   }

  51.   public ApiModIPatternInterazioneCorrelazioneRest apiNome(String apiNome) {
  52.     this.apiNome = apiNome;
  53.     return this;
  54.   }

  55.  /**
  56.    * Get apiVersione
  57.    * @return apiVersione
  58.   **/
  59.   @JsonProperty("api_versione")
  60.   @NotNull
  61.   @Valid
  62.   public Integer getApiVersione() {
  63.     return this.apiVersione;
  64.   }

  65.   public void setApiVersione(Integer apiVersione) {
  66.     this.apiVersione = apiVersione;
  67.   }

  68.   public ApiModIPatternInterazioneCorrelazioneRest apiVersione(Integer apiVersione) {
  69.     this.apiVersione = apiVersione;
  70.     return this;
  71.   }

  72.  /**
  73.    * Get risorsaHttpMethod
  74.    * @return risorsaHttpMethod
  75.   **/
  76.   @JsonProperty("risorsa_http_method")
  77.   @Valid
  78.   public HttpMethodEnum getRisorsaHttpMethod() {
  79.     return this.risorsaHttpMethod;
  80.   }

  81.   public void setRisorsaHttpMethod(HttpMethodEnum risorsaHttpMethod) {
  82.     this.risorsaHttpMethod = risorsaHttpMethod;
  83.   }

  84.   public ApiModIPatternInterazioneCorrelazioneRest risorsaHttpMethod(HttpMethodEnum risorsaHttpMethod) {
  85.     this.risorsaHttpMethod = risorsaHttpMethod;
  86.     return this;
  87.   }

  88.  /**
  89.    * Get risorsaPath
  90.    * @return risorsaPath
  91.   **/
  92.   @JsonProperty("risorsa_path")
  93.   @Valid
  94.  @Size(max=255)  public String getRisorsaPath() {
  95.     return this.risorsaPath;
  96.   }

  97.   public void setRisorsaPath(String risorsaPath) {
  98.     this.risorsaPath = risorsaPath;
  99.   }

  100.   public ApiModIPatternInterazioneCorrelazioneRest risorsaPath(String risorsaPath) {
  101.     this.risorsaPath = risorsaPath;
  102.     return this;
  103.   }


  104.   @Override
  105.   public String toString() {
  106.     StringBuilder sb = new StringBuilder();
  107.     sb.append("class ApiModIPatternInterazioneCorrelazioneRest {\n");
  108.    
  109.     sb.append("    apiNome: ").append(ApiModIPatternInterazioneCorrelazioneRest.toIndentedString(this.apiNome)).append("\n");
  110.     sb.append("    apiVersione: ").append(ApiModIPatternInterazioneCorrelazioneRest.toIndentedString(this.apiVersione)).append("\n");
  111.     sb.append("    risorsaHttpMethod: ").append(ApiModIPatternInterazioneCorrelazioneRest.toIndentedString(this.risorsaHttpMethod)).append("\n");
  112.     sb.append("    risorsaPath: ").append(ApiModIPatternInterazioneCorrelazioneRest.toIndentedString(this.risorsaPath)).append("\n");
  113.     sb.append("}");
  114.     return sb.toString();
  115.   }

  116.   /**
  117.    * Convert the given object to string with each line indented by 4 spaces
  118.    * (except the first line).
  119.    */
  120.   private static String toIndentedString(java.lang.Object o) {
  121.     if (o == null) {
  122.       return "null";
  123.     }
  124.     return o.toString().replace("\n", "\n    ");
  125.   }
  126. }