TransazioneExtInformazioniMittente.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.utils.service.beans;

  21. import io.swagger.v3.oas.annotations.media.Schema;
  22. import javax.xml.bind.annotation.XmlElement;
  23. import javax.xml.bind.annotation.XmlAccessType;
  24. import javax.xml.bind.annotation.XmlAccessorType;
  25. import javax.xml.bind.annotation.XmlType;
  26. import com.fasterxml.jackson.annotation.JsonProperty;
  27. import javax.validation.Valid;

  28. @XmlAccessorType(XmlAccessType.FIELD)
  29.  @XmlType(name = "TransazioneExtInformazioniMittente", propOrder =
  30.     { "credenziali", "token", "informazioniToken"
  31. })


  32. public class TransazioneExtInformazioniMittente extends TransazioneExtInformazioniMittenteBase {
  33.   @XmlElement(name="credenziali")
  34.  
  35.   @Schema(description = "")
  36.   private String credenziali = null;
  37.   @XmlElement(name="token")
  38.  
  39.   @Schema(description = "")
  40.   private byte[] token = null;
  41.   @XmlElement(name="informazioni_token")
  42.  
  43.   @Schema(description = "")
  44.   private TransazioneExtInformazioniToken informazioniToken = null;
  45.  /**
  46.    * Get credenziali
  47.    * @return credenziali
  48.   **/
  49.   @JsonProperty("credenziali")
  50.   @Valid
  51.   public String getCredenziali() {
  52.     return this.credenziali;
  53.   }

  54.   public void setCredenziali(String credenziali) {
  55.     this.credenziali = credenziali;
  56.   }

  57.   public TransazioneExtInformazioniMittente credenziali(String credenziali) {
  58.     this.credenziali = credenziali;
  59.     return this;
  60.   }

  61.  /**
  62.    * Get token
  63.    * @return token
  64.   **/
  65.   @JsonProperty("token")
  66.   @Valid
  67.   public byte[] getToken() {
  68.     return this.token;
  69.   }

  70.   public void setToken(byte[] token) {
  71.     this.token = token;
  72.   }

  73.   public TransazioneExtInformazioniMittente token(byte[] token) {
  74.     this.token = token;
  75.     return this;
  76.   }

  77.  /**
  78.    * Get informazioniToken
  79.    * @return informazioniToken
  80.   **/
  81.   @JsonProperty("informazioni_token")
  82.   @Valid
  83.   public TransazioneExtInformazioniToken getInformazioniToken() {
  84.     return this.informazioniToken;
  85.   }

  86.   public void setInformazioniToken(TransazioneExtInformazioniToken informazioniToken) {
  87.     this.informazioniToken = informazioniToken;
  88.   }

  89.   public TransazioneExtInformazioniMittente informazioniToken(TransazioneExtInformazioniToken informazioniToken) {
  90.     this.informazioniToken = informazioniToken;
  91.     return this;
  92.   }


  93.   @Override
  94.   public String toString() {
  95.     StringBuilder sb = new StringBuilder();
  96.     sb.append("class TransazioneExtInformazioniMittente {\n");
  97.     sb.append("    ").append(TransazioneExtInformazioniMittente.toIndentedString(super.toString())).append("\n");
  98.     sb.append("    credenziali: ").append(TransazioneExtInformazioniMittente.toIndentedString(this.credenziali)).append("\n");
  99.     sb.append("    token: ").append(TransazioneExtInformazioniMittente.toIndentedString(this.token)).append("\n");
  100.     sb.append("    informazioniToken: ").append(TransazioneExtInformazioniMittente.toIndentedString(this.informazioniToken)).append("\n");
  101.     sb.append("}");
  102.     return sb.toString();
  103.   }

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