APIImplAutenticazioneApiKey.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 APIImplAutenticazioneApiKey  implements OneOfAPIImplAutenticazione, OneOfControlloAccessiAutenticazioneAutenticazione, OneOfGruppoNuovaConfigurazioneAutenticazione {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private TipoAutenticazioneEnum tipo = null;
  29.  
  30.   @Schema(description = "")
  31.   private Boolean appId = false;
  32.  
  33.   @Schema(description = "")
  34.   private APIImplAutenticazioneApiKeyPosizione posizione = null;
  35.  
  36.   @Schema(description = "")
  37.   private APIImplAutenticazioneApiKeyConfig apiKeyNomi = null;
  38.  
  39.   @Schema(description = "")
  40.   private APIImplAutenticazioneApiKeyConfig appIdNomi = null;
  41.  
  42.   @Schema(description = "")
  43.   private Boolean apiKeyForward = false;
  44.  
  45.   @Schema(description = "")
  46.   private Boolean appIdForward = false;
  47.  
  48.   @Schema(description = "")
  49.   private Boolean opzionale = false;
  50.  /**
  51.    * Get tipo
  52.    * @return tipo
  53.   **/
  54.   @Override
  55. @JsonProperty("tipo")
  56.   @NotNull
  57.   @Valid
  58.   public TipoAutenticazioneEnum getTipo() {
  59.     return this.tipo;
  60.   }

  61.   public void setTipo(TipoAutenticazioneEnum tipo) {
  62.     this.tipo = tipo;
  63.   }

  64.   public APIImplAutenticazioneApiKey tipo(TipoAutenticazioneEnum tipo) {
  65.     this.tipo = tipo;
  66.     return this;
  67.   }

  68.  /**
  69.    * Get appId
  70.    * @return appId
  71.   **/
  72.   @JsonProperty("app_id")
  73.   @Valid
  74.   public Boolean isAppId() {
  75.     return this.appId;
  76.   }

  77.   public void setAppId(Boolean appId) {
  78.     this.appId = appId;
  79.   }

  80.   public APIImplAutenticazioneApiKey appId(Boolean appId) {
  81.     this.appId = appId;
  82.     return this;
  83.   }

  84.  /**
  85.    * Get posizione
  86.    * @return posizione
  87.   **/
  88.   @JsonProperty("posizione")
  89.   @Valid
  90.   public APIImplAutenticazioneApiKeyPosizione getPosizione() {
  91.     return this.posizione;
  92.   }

  93.   public void setPosizione(APIImplAutenticazioneApiKeyPosizione posizione) {
  94.     this.posizione = posizione;
  95.   }

  96.   public APIImplAutenticazioneApiKey posizione(APIImplAutenticazioneApiKeyPosizione posizione) {
  97.     this.posizione = posizione;
  98.     return this;
  99.   }

  100.  /**
  101.    * Get apiKeyNomi
  102.    * @return apiKeyNomi
  103.   **/
  104.   @JsonProperty("api_key_nomi")
  105.   @Valid
  106.   public APIImplAutenticazioneApiKeyConfig getApiKeyNomi() {
  107.     return this.apiKeyNomi;
  108.   }

  109.   public void setApiKeyNomi(APIImplAutenticazioneApiKeyConfig apiKeyNomi) {
  110.     this.apiKeyNomi = apiKeyNomi;
  111.   }

  112.   public APIImplAutenticazioneApiKey apiKeyNomi(APIImplAutenticazioneApiKeyConfig apiKeyNomi) {
  113.     this.apiKeyNomi = apiKeyNomi;
  114.     return this;
  115.   }

  116.  /**
  117.    * Get appIdNomi
  118.    * @return appIdNomi
  119.   **/
  120.   @JsonProperty("app_id_nomi")
  121.   @Valid
  122.   public APIImplAutenticazioneApiKeyConfig getAppIdNomi() {
  123.     return this.appIdNomi;
  124.   }

  125.   public void setAppIdNomi(APIImplAutenticazioneApiKeyConfig appIdNomi) {
  126.     this.appIdNomi = appIdNomi;
  127.   }

  128.   public APIImplAutenticazioneApiKey appIdNomi(APIImplAutenticazioneApiKeyConfig appIdNomi) {
  129.     this.appIdNomi = appIdNomi;
  130.     return this;
  131.   }

  132.  /**
  133.    * Get apiKeyForward
  134.    * @return apiKeyForward
  135.   **/
  136.   @JsonProperty("api_key_forward")
  137.   @Valid
  138.   public Boolean isApiKeyForward() {
  139.     return this.apiKeyForward;
  140.   }

  141.   public void setApiKeyForward(Boolean apiKeyForward) {
  142.     this.apiKeyForward = apiKeyForward;
  143.   }

  144.   public APIImplAutenticazioneApiKey apiKeyForward(Boolean apiKeyForward) {
  145.     this.apiKeyForward = apiKeyForward;
  146.     return this;
  147.   }

  148.  /**
  149.    * Get appIdForward
  150.    * @return appIdForward
  151.   **/
  152.   @JsonProperty("app_id_forward")
  153.   @Valid
  154.   public Boolean isAppIdForward() {
  155.     return this.appIdForward;
  156.   }

  157.   public void setAppIdForward(Boolean appIdForward) {
  158.     this.appIdForward = appIdForward;
  159.   }

  160.   public APIImplAutenticazioneApiKey appIdForward(Boolean appIdForward) {
  161.     this.appIdForward = appIdForward;
  162.     return this;
  163.   }

  164.  /**
  165.    * Get opzionale
  166.    * @return opzionale
  167.   **/
  168.   @JsonProperty("opzionale")
  169.   @Valid
  170.   public Boolean isOpzionale() {
  171.     return this.opzionale;
  172.   }

  173.   public void setOpzionale(Boolean opzionale) {
  174.     this.opzionale = opzionale;
  175.   }

  176.   public APIImplAutenticazioneApiKey opzionale(Boolean opzionale) {
  177.     this.opzionale = opzionale;
  178.     return this;
  179.   }


  180.   @Override
  181.   public String toString() {
  182.     StringBuilder sb = new StringBuilder();
  183.     sb.append("class APIImplAutenticazioneApiKey {\n");
  184.    
  185.     sb.append("    tipo: ").append(APIImplAutenticazioneApiKey.toIndentedString(this.tipo)).append("\n");
  186.     sb.append("    appId: ").append(APIImplAutenticazioneApiKey.toIndentedString(this.appId)).append("\n");
  187.     sb.append("    posizione: ").append(APIImplAutenticazioneApiKey.toIndentedString(this.posizione)).append("\n");
  188.     sb.append("    apiKeyNomi: ").append(APIImplAutenticazioneApiKey.toIndentedString(this.apiKeyNomi)).append("\n");
  189.     sb.append("    appIdNomi: ").append(APIImplAutenticazioneApiKey.toIndentedString(this.appIdNomi)).append("\n");
  190.     sb.append("    apiKeyForward: ").append(APIImplAutenticazioneApiKey.toIndentedString(this.apiKeyForward)).append("\n");
  191.     sb.append("    appIdForward: ").append(APIImplAutenticazioneApiKey.toIndentedString(this.appIdForward)).append("\n");
  192.     sb.append("    opzionale: ").append(APIImplAutenticazioneApiKey.toIndentedString(this.opzionale)).append("\n");
  193.     sb.append("}");
  194.     return sb.toString();
  195.   }

  196.   /**
  197.    * Convert the given object to string with each line indented by 4 spaces
  198.    * (except the first line).
  199.    */
  200.   private static String toIndentedString(java.lang.Object o) {
  201.     if (o == null) {
  202.       return "null";
  203.     }
  204.     return o.toString().replace("\n", "\n    ");
  205.   }
  206. }