ApiImplItem.java
- /*
- * GovWay - A customizable API Gateway
- * https://govway.org
- *
- * Copyright (c) 2005-2025 Link.it srl (https://link.it).
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 3, as published by
- * the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
- package org.openspcoop2.core.config.rs.server.model;
- import java.util.List;
- import org.openspcoop2.utils.service.beans.BaseSoggettoItem;
- import javax.validation.constraints.*;
- import io.swagger.v3.oas.annotations.media.Schema;
- import com.fasterxml.jackson.annotation.JsonProperty;
- import javax.validation.Valid;
- public class ApiImplItem extends BaseSoggettoItem {
-
- @Schema(required = true, description = "")
- private String apiNome = null;
-
- @Schema(required = true, description = "")
- private Integer apiVersione = null;
-
- @Schema(description = "")
- private String apiReferente = null;
-
- @Schema(description = "")
- private String apiSoapServizio = null;
-
- @Schema(example = "[\"PagamentiTelematici\",\"Anagrafica\"]", description = "")
- private List<String> apiTags = null;
-
- @Schema(description = "")
- private String tipoServizio = null;
-
- @Schema(required = true, description = "")
- private String nome = null;
-
- @Schema(required = true, description = "")
- private Integer versione = null;
-
- @Schema(description = "")
- private TipoApiEnum apiTipo = null;
-
- @Schema(required = true, description = "")
- private StatoApiEnum stato = null;
-
- @Schema(required = true, description = "")
- private String statoDescrizione = null;
-
- @Schema(description = "")
- private ApiCanale canale = null;
- /**
- * Get apiNome
- * @return apiNome
- **/
- @JsonProperty("api_nome")
- @NotNull
- @Valid
- @Pattern(regexp="^[_A-Za-z][\\-\\._A-Za-z0-9]*$") @Size(max=255) public String getApiNome() {
- return this.apiNome;
- }
- public void setApiNome(String apiNome) {
- this.apiNome = apiNome;
- }
- public ApiImplItem apiNome(String apiNome) {
- this.apiNome = apiNome;
- return this;
- }
- /**
- * Get apiVersione
- * @return apiVersione
- **/
- @JsonProperty("api_versione")
- @NotNull
- @Valid
- public Integer getApiVersione() {
- return this.apiVersione;
- }
- public void setApiVersione(Integer apiVersione) {
- this.apiVersione = apiVersione;
- }
- public ApiImplItem apiVersione(Integer apiVersione) {
- this.apiVersione = apiVersione;
- return this;
- }
- /**
- * Get apiReferente
- * @return apiReferente
- **/
- @JsonProperty("api_referente")
- @Valid
- @Pattern(regexp="^[0-9A-Za-z][\\-A-Za-z0-9]*$") @Size(max=255) public String getApiReferente() {
- return this.apiReferente;
- }
- public void setApiReferente(String apiReferente) {
- this.apiReferente = apiReferente;
- }
- public ApiImplItem apiReferente(String apiReferente) {
- this.apiReferente = apiReferente;
- return this;
- }
- /**
- * Get apiSoapServizio
- * @return apiSoapServizio
- **/
- @JsonProperty("api_soap_servizio")
- @Valid
- @Pattern(regexp="^[_A-Za-z][\\-\\._A-Za-z0-9]*$") @Size(max=255) public String getApiSoapServizio() {
- return this.apiSoapServizio;
- }
- public void setApiSoapServizio(String apiSoapServizio) {
- this.apiSoapServizio = apiSoapServizio;
- }
- public ApiImplItem apiSoapServizio(String apiSoapServizio) {
- this.apiSoapServizio = apiSoapServizio;
- return this;
- }
- /**
- * Get apiTags
- * @return apiTags
- **/
- @JsonProperty("api_tags")
- @Valid
- public List<String> getApiTags() {
- return this.apiTags;
- }
- public void setApiTags(List<String> apiTags) {
- this.apiTags = apiTags;
- }
- public ApiImplItem apiTags(List<String> apiTags) {
- this.apiTags = apiTags;
- return this;
- }
- public ApiImplItem addApiTagsItem(String apiTagsItem) {
- this.apiTags.add(apiTagsItem);
- return this;
- }
- /**
- * Get tipoServizio
- * @return tipoServizio
- **/
- @JsonProperty("tipo_servizio")
- @Valid
- @Pattern(regexp="^[a-z]{2,20}$") @Size(max=20) public String getTipoServizio() {
- return this.tipoServizio;
- }
- public void setTipoServizio(String tipoServizio) {
- this.tipoServizio = tipoServizio;
- }
- public ApiImplItem tipoServizio(String tipoServizio) {
- this.tipoServizio = tipoServizio;
- return this;
- }
- /**
- * Get nome
- * @return nome
- **/
- @JsonProperty("nome")
- @NotNull
- @Valid
- @Pattern(regexp="^[_A-Za-z][\\-\\._A-Za-z0-9]*$") @Size(max=255) public String getNome() {
- return this.nome;
- }
- public void setNome(String nome) {
- this.nome = nome;
- }
- public ApiImplItem nome(String nome) {
- this.nome = nome;
- return this;
- }
- /**
- * Get versione
- * @return versione
- **/
- @JsonProperty("versione")
- @NotNull
- @Valid
- public Integer getVersione() {
- return this.versione;
- }
- public void setVersione(Integer versione) {
- this.versione = versione;
- }
- public ApiImplItem versione(Integer versione) {
- this.versione = versione;
- return this;
- }
- /**
- * Get apiTipo
- * @return apiTipo
- **/
- @JsonProperty("api_tipo")
- @Valid
- public TipoApiEnum getApiTipo() {
- return this.apiTipo;
- }
- public void setApiTipo(TipoApiEnum apiTipo) {
- this.apiTipo = apiTipo;
- }
- public ApiImplItem apiTipo(TipoApiEnum apiTipo) {
- this.apiTipo = apiTipo;
- return this;
- }
- /**
- * Get stato
- * @return stato
- **/
- @JsonProperty("stato")
- @NotNull
- @Valid
- public StatoApiEnum getStato() {
- return this.stato;
- }
- public void setStato(StatoApiEnum stato) {
- this.stato = stato;
- }
- public ApiImplItem stato(StatoApiEnum stato) {
- this.stato = stato;
- return this;
- }
- /**
- * Get statoDescrizione
- * @return statoDescrizione
- **/
- @JsonProperty("stato_descrizione")
- @NotNull
- @Valid
- public String getStatoDescrizione() {
- return this.statoDescrizione;
- }
- public void setStatoDescrizione(String statoDescrizione) {
- this.statoDescrizione = statoDescrizione;
- }
- public ApiImplItem statoDescrizione(String statoDescrizione) {
- this.statoDescrizione = statoDescrizione;
- return this;
- }
- /**
- * Get canale
- * @return canale
- **/
- @JsonProperty("canale")
- @Valid
- public ApiCanale getCanale() {
- return this.canale;
- }
- public void setCanale(ApiCanale canale) {
- this.canale = canale;
- }
- public ApiImplItem canale(ApiCanale canale) {
- this.canale = canale;
- return this;
- }
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class ApiImplItem {\n");
- sb.append(" ").append(ApiImplItem.toIndentedString(super.toString())).append("\n");
- sb.append(" apiNome: ").append(ApiImplItem.toIndentedString(this.apiNome)).append("\n");
- sb.append(" apiVersione: ").append(ApiImplItem.toIndentedString(this.apiVersione)).append("\n");
- sb.append(" apiReferente: ").append(ApiImplItem.toIndentedString(this.apiReferente)).append("\n");
- sb.append(" apiSoapServizio: ").append(ApiImplItem.toIndentedString(this.apiSoapServizio)).append("\n");
- sb.append(" apiTags: ").append(ApiImplItem.toIndentedString(this.apiTags)).append("\n");
- sb.append(" tipoServizio: ").append(ApiImplItem.toIndentedString(this.tipoServizio)).append("\n");
- sb.append(" nome: ").append(ApiImplItem.toIndentedString(this.nome)).append("\n");
- sb.append(" versione: ").append(ApiImplItem.toIndentedString(this.versione)).append("\n");
- sb.append(" apiTipo: ").append(ApiImplItem.toIndentedString(this.apiTipo)).append("\n");
- sb.append(" stato: ").append(ApiImplItem.toIndentedString(this.stato)).append("\n");
- sb.append(" statoDescrizione: ").append(ApiImplItem.toIndentedString(this.statoDescrizione)).append("\n");
- sb.append(" canale: ").append(ApiImplItem.toIndentedString(this.canale)).append("\n");
- sb.append("}");
- return sb.toString();
- }
- /**
- * Convert the given object to string with each line indented by 4 spaces
- * (except the first line).
- */
- private static String toIndentedString(java.lang.Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
- }