ApiAzione.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 org.openspcoop2.utils.service.beans.ProfiloCollaborazioneEnum;
  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 ApiAzione  {
  27.  
  28.   @Schema(required = true, description = "")
  29.   private String nome = null;
  30.  
  31.   @Schema(required = true, description = "")
  32.   private Boolean profiloRidefinito = false;
  33.  
  34.   @Schema(description = "")
  35.   private ProfiloCollaborazioneEnum profiloCollaborazione = null;
  36.  
  37.   @Schema(example = "false", description = "")
  38.   private Boolean idCollaborazione = false;
  39.  
  40.   @Schema(example = "false", description = "")
  41.   private Boolean riferimentoIdRichiesta = null;
  42.  
  43.   @Schema(description = "")
  44.   private ApiModIAzioneSoap modi = null;
  45.  /**
  46.    * Get nome
  47.    * @return nome
  48.   **/
  49.   @JsonProperty("nome")
  50.   @NotNull
  51.   @Valid
  52.  @Pattern(regexp="^[_A-Za-z][\\-\\._A-Za-z0-9]*$") @Size(max=255)  public String getNome() {
  53.     return this.nome;
  54.   }

  55.   public void setNome(String nome) {
  56.     this.nome = nome;
  57.   }

  58.   public ApiAzione nome(String nome) {
  59.     this.nome = nome;
  60.     return this;
  61.   }

  62.  /**
  63.    * Get profiloRidefinito
  64.    * @return profiloRidefinito
  65.   **/
  66.   @JsonProperty("profilo_ridefinito")
  67.   @NotNull
  68.   @Valid
  69.   public Boolean isProfiloRidefinito() {
  70.     return this.profiloRidefinito;
  71.   }

  72.   public void setProfiloRidefinito(Boolean profiloRidefinito) {
  73.     this.profiloRidefinito = profiloRidefinito;
  74.   }

  75.   public ApiAzione profiloRidefinito(Boolean profiloRidefinito) {
  76.     this.profiloRidefinito = profiloRidefinito;
  77.     return this;
  78.   }

  79.  /**
  80.    * Get profiloCollaborazione
  81.    * @return profiloCollaborazione
  82.   **/
  83.   @JsonProperty("profilo_collaborazione")
  84.   @Valid
  85.   public ProfiloCollaborazioneEnum getProfiloCollaborazione() {
  86.     return this.profiloCollaborazione;
  87.   }

  88.   public void setProfiloCollaborazione(ProfiloCollaborazioneEnum profiloCollaborazione) {
  89.     this.profiloCollaborazione = profiloCollaborazione;
  90.   }

  91.   public ApiAzione profiloCollaborazione(ProfiloCollaborazioneEnum profiloCollaborazione) {
  92.     this.profiloCollaborazione = profiloCollaborazione;
  93.     return this;
  94.   }

  95.  /**
  96.    * Get idCollaborazione
  97.    * @return idCollaborazione
  98.   **/
  99.   @JsonProperty("id_collaborazione")
  100.   @Valid
  101.   public Boolean isIdCollaborazione() {
  102.     return this.idCollaborazione;
  103.   }

  104.   public void setIdCollaborazione(Boolean idCollaborazione) {
  105.     this.idCollaborazione = idCollaborazione;
  106.   }

  107.   public ApiAzione idCollaborazione(Boolean idCollaborazione) {
  108.     this.idCollaborazione = idCollaborazione;
  109.     return this;
  110.   }

  111.  /**
  112.    * Get riferimentoIdRichiesta
  113.    * @return riferimentoIdRichiesta
  114.   **/
  115.   @JsonProperty("riferimento_id_richiesta")
  116.   @Valid
  117.   public Boolean isRiferimentoIdRichiesta() {
  118.     return this.riferimentoIdRichiesta;
  119.   }

  120.   public void setRiferimentoIdRichiesta(Boolean riferimentoIdRichiesta) {
  121.     this.riferimentoIdRichiesta = riferimentoIdRichiesta;
  122.   }

  123.   public ApiAzione riferimentoIdRichiesta(Boolean riferimentoIdRichiesta) {
  124.     this.riferimentoIdRichiesta = riferimentoIdRichiesta;
  125.     return this;
  126.   }

  127.  /**
  128.    * Get modi
  129.    * @return modi
  130.   **/
  131.   @JsonProperty("modi")
  132.   @Valid
  133.   public ApiModIAzioneSoap getModi() {
  134.     return this.modi;
  135.   }

  136.   public void setModi(ApiModIAzioneSoap modi) {
  137.     this.modi = modi;
  138.   }

  139.   public ApiAzione modi(ApiModIAzioneSoap modi) {
  140.     this.modi = modi;
  141.     return this;
  142.   }


  143.   @Override
  144.   public String toString() {
  145.     StringBuilder sb = new StringBuilder();
  146.     sb.append("class ApiAzione {\n");
  147.    
  148.     sb.append("    nome: ").append(ApiAzione.toIndentedString(this.nome)).append("\n");
  149.     sb.append("    profiloRidefinito: ").append(ApiAzione.toIndentedString(this.profiloRidefinito)).append("\n");
  150.     sb.append("    profiloCollaborazione: ").append(ApiAzione.toIndentedString(this.profiloCollaborazione)).append("\n");
  151.     sb.append("    idCollaborazione: ").append(ApiAzione.toIndentedString(this.idCollaborazione)).append("\n");
  152.     sb.append("    riferimentoIdRichiesta: ").append(ApiAzione.toIndentedString(this.riferimentoIdRichiesta)).append("\n");
  153.     sb.append("    modi: ").append(ApiAzione.toIndentedString(this.modi)).append("\n");
  154.     sb.append("}");
  155.     return sb.toString();
  156.   }

  157.   /**
  158.    * Convert the given object to string with each line indented by 4 spaces
  159.    * (except the first line).
  160.    */
  161.   private static String toIndentedString(java.lang.Object o) {
  162.     if (o == null) {
  163.       return "null";
  164.     }
  165.     return o.toString().replace("\n", "\n    ");
  166.   }
  167. }