ConnettoreConfigurazioneApiKey.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 ConnettoreConfigurazioneApiKey  {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private String apiKey = null;
  29.  
  30.   @Schema(description = "")
  31.   private String apiKeyHeader = null;
  32.  
  33.   @Schema(description = "")
  34.   private String appId = null;
  35.  
  36.   @Schema(description = "")
  37.   private String appIdHeader = null;
  38.  /**
  39.    * Get apiKey
  40.    * @return apiKey
  41.   **/
  42.   @JsonProperty("api_key")
  43.   @NotNull
  44.   @Valid
  45.   public String getApiKey() {
  46.     return this.apiKey;
  47.   }

  48.   public void setApiKey(String apiKey) {
  49.     this.apiKey = apiKey;
  50.   }

  51.   public ConnettoreConfigurazioneApiKey apiKey(String apiKey) {
  52.     this.apiKey = apiKey;
  53.     return this;
  54.   }

  55.  /**
  56.    * Get apiKeyHeader
  57.    * @return apiKeyHeader
  58.   **/
  59.   @JsonProperty("api_key_header")
  60.   @Valid
  61.  @Size(max=255)  public String getApiKeyHeader() {
  62.     return this.apiKeyHeader;
  63.   }

  64.   public void setApiKeyHeader(String apiKeyHeader) {
  65.     this.apiKeyHeader = apiKeyHeader;
  66.   }

  67.   public ConnettoreConfigurazioneApiKey apiKeyHeader(String apiKeyHeader) {
  68.     this.apiKeyHeader = apiKeyHeader;
  69.     return this;
  70.   }

  71.  /**
  72.    * Get appId
  73.    * @return appId
  74.   **/
  75.   @JsonProperty("app_id")
  76.   @Valid
  77.   public String getAppId() {
  78.     return this.appId;
  79.   }

  80.   public void setAppId(String appId) {
  81.     this.appId = appId;
  82.   }

  83.   public ConnettoreConfigurazioneApiKey appId(String appId) {
  84.     this.appId = appId;
  85.     return this;
  86.   }

  87.  /**
  88.    * Get appIdHeader
  89.    * @return appIdHeader
  90.   **/
  91.   @JsonProperty("app_id_header")
  92.   @Valid
  93.  @Size(max=255)  public String getAppIdHeader() {
  94.     return this.appIdHeader;
  95.   }

  96.   public void setAppIdHeader(String appIdHeader) {
  97.     this.appIdHeader = appIdHeader;
  98.   }

  99.   public ConnettoreConfigurazioneApiKey appIdHeader(String appIdHeader) {
  100.     this.appIdHeader = appIdHeader;
  101.     return this;
  102.   }


  103.   @Override
  104.   public String toString() {
  105.     StringBuilder sb = new StringBuilder();
  106.     sb.append("class ConnettoreConfigurazioneApiKey {\n");
  107.    
  108.     sb.append("    apiKey: ").append(ConnettoreConfigurazioneApiKey.toIndentedString(this.apiKey)).append("\n");
  109.     sb.append("    apiKeyHeader: ").append(ConnettoreConfigurazioneApiKey.toIndentedString(this.apiKeyHeader)).append("\n");
  110.     sb.append("    appId: ").append(ConnettoreConfigurazioneApiKey.toIndentedString(this.appId)).append("\n");
  111.     sb.append("    appIdHeader: ").append(ConnettoreConfigurazioneApiKey.toIndentedString(this.appIdHeader)).append("\n");
  112.     sb.append("}");
  113.     return sb.toString();
  114.   }

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