ErogazioneModIInfoGenerali.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 java.util.List;
  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 ErogazioneModIInfoGenerali  {
  27.  
  28.   @Schema(description = "")
  29.   private String serviceId = null;
  30.  
  31.   @Schema(description = "")
  32.   private List<String> descriptorId = null;
  33.  
  34.   @Schema(description = "")
  35.   private ErogazioneModISignalHub signalHub = null;
  36.  /**
  37.    * Get serviceId
  38.    * @return serviceId
  39.   **/
  40.   @JsonProperty("service_id")
  41.   @Valid
  42.  @Size(max=4000)  public String getServiceId() {
  43.     return this.serviceId;
  44.   }

  45.   public void setServiceId(String serviceId) {
  46.     this.serviceId = serviceId;
  47.   }

  48.   public ErogazioneModIInfoGenerali serviceId(String serviceId) {
  49.     this.serviceId = serviceId;
  50.     return this;
  51.   }

  52.  /**
  53.    * Get descriptorId
  54.    * @return descriptorId
  55.   **/
  56.   @JsonProperty("descriptor_id")
  57.   @Valid
  58.   public List<String> getDescriptorId() {
  59.     return this.descriptorId;
  60.   }

  61.   public void setDescriptorId(List<String> descriptorId) {
  62.     this.descriptorId = descriptorId;
  63.   }

  64.   public ErogazioneModIInfoGenerali descriptorId(List<String> descriptorId) {
  65.     this.descriptorId = descriptorId;
  66.     return this;
  67.   }

  68.   public ErogazioneModIInfoGenerali addDescriptorIdItem(String descriptorIdItem) {
  69.     this.descriptorId.add(descriptorIdItem);
  70.     return this;
  71.   }

  72.  /**
  73.    * Get signalHub
  74.    * @return signalHub
  75.   **/
  76.   @JsonProperty("signal_hub")
  77.   @Valid
  78.   public ErogazioneModISignalHub getSignalHub() {
  79.     return this.signalHub;
  80.   }

  81.   public void setSignalHub(ErogazioneModISignalHub signalHub) {
  82.     this.signalHub = signalHub;
  83.   }

  84.   public ErogazioneModIInfoGenerali signalHub(ErogazioneModISignalHub signalHub) {
  85.     this.signalHub = signalHub;
  86.     return this;
  87.   }


  88.   @Override
  89.   public String toString() {
  90.     StringBuilder sb = new StringBuilder();
  91.     sb.append("class ErogazioneModIInfoGenerali {\n");
  92.    
  93.     sb.append("    serviceId: ").append(ErogazioneModIInfoGenerali.toIndentedString(this.serviceId)).append("\n");
  94.     sb.append("    descriptorId: ").append(ErogazioneModIInfoGenerali.toIndentedString(this.descriptorId)).append("\n");
  95.     sb.append("    signalHub: ").append(ErogazioneModIInfoGenerali.toIndentedString(this.signalHub)).append("\n");
  96.     sb.append("}");
  97.     return sb.toString();
  98.   }

  99.   /**
  100.    * Convert the given object to string with each line indented by 4 spaces
  101.    * (except the first line).
  102.    */
  103.   private static String toIndentedString(java.lang.Object o) {
  104.     if (o == null) {
  105.       return "null";
  106.     }
  107.     return o.toString().replace("\n", "\n    ");
  108.   }
  109. }