TransazioneExtInformazioniToken.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.XmlRootElement;
  24. import javax.xml.bind.annotation.XmlAccessType;
  25. import javax.xml.bind.annotation.XmlAccessorType;
  26. import javax.xml.bind.annotation.XmlType;
  27. import com.fasterxml.jackson.annotation.JsonProperty;
  28. import javax.validation.Valid;

  29. @XmlAccessorType(XmlAccessType.FIELD)
  30.  @XmlType(name = "TransazioneExtInformazioniToken", propOrder =
  31.     { "clientId", "issuer", "subject", "username", "mail"
  32. })

  33. @XmlRootElement(name="TransazioneExtInformazioniToken")
  34. public class TransazioneExtInformazioniToken  {
  35.   @XmlElement(name="client_id")
  36.  
  37.   @Schema(example = "407408718192.apps.googleusercontent.com", description = "")
  38.   private String clientId = null;
  39.   @XmlElement(name="issuer")
  40.  
  41.   @Schema(description = "")
  42.   private String issuer = null;
  43.   @XmlElement(name="subject")
  44.  
  45.   @Schema(example = "10623565759265497689", description = "")
  46.   private String subject = null;
  47.   @XmlElement(name="username")
  48.  
  49.   @Schema(description = "")
  50.   private String username = null;
  51.   @XmlElement(name="mail")
  52.  
  53.   @Schema(description = "")
  54.   private String mail = null;
  55.  /**
  56.    * Get clientId
  57.    * @return clientId
  58.   **/
  59.   @JsonProperty("client_id")
  60.   @Valid
  61.   public String getClientId() {
  62.     return this.clientId;
  63.   }

  64.   public void setClientId(String clientId) {
  65.     this.clientId = clientId;
  66.   }

  67.   public TransazioneExtInformazioniToken clientId(String clientId) {
  68.     this.clientId = clientId;
  69.     return this;
  70.   }

  71.  /**
  72.    * Get issuer
  73.    * @return issuer
  74.   **/
  75.   @JsonProperty("issuer")
  76.   @Valid
  77.   public String getIssuer() {
  78.     return this.issuer;
  79.   }

  80.   public void setIssuer(String issuer) {
  81.     this.issuer = issuer;
  82.   }

  83.   public TransazioneExtInformazioniToken issuer(String issuer) {
  84.     this.issuer = issuer;
  85.     return this;
  86.   }

  87.  /**
  88.    * Get subject
  89.    * @return subject
  90.   **/
  91.   @JsonProperty("subject")
  92.   @Valid
  93.   public String getSubject() {
  94.     return this.subject;
  95.   }

  96.   public void setSubject(String subject) {
  97.     this.subject = subject;
  98.   }

  99.   public TransazioneExtInformazioniToken subject(String subject) {
  100.     this.subject = subject;
  101.     return this;
  102.   }

  103.  /**
  104.    * Get username
  105.    * @return username
  106.   **/
  107.   @JsonProperty("username")
  108.   @Valid
  109.   public String getUsername() {
  110.     return this.username;
  111.   }

  112.   public void setUsername(String username) {
  113.     this.username = username;
  114.   }

  115.   public TransazioneExtInformazioniToken username(String username) {
  116.     this.username = username;
  117.     return this;
  118.   }

  119.  /**
  120.    * Get mail
  121.    * @return mail
  122.   **/
  123.   @JsonProperty("mail")
  124.   @Valid
  125.   public String getMail() {
  126.     return this.mail;
  127.   }

  128.   public void setMail(String mail) {
  129.     this.mail = mail;
  130.   }

  131.   public TransazioneExtInformazioniToken mail(String mail) {
  132.     this.mail = mail;
  133.     return this;
  134.   }


  135.   @Override
  136.   public String toString() {
  137.     StringBuilder sb = new StringBuilder();
  138.     sb.append("class TransazioneExtInformazioniToken {\n");
  139.    
  140.     sb.append("    clientId: ").append(TransazioneExtInformazioniToken.toIndentedString(this.clientId)).append("\n");
  141.     sb.append("    issuer: ").append(TransazioneExtInformazioniToken.toIndentedString(this.issuer)).append("\n");
  142.     sb.append("    subject: ").append(TransazioneExtInformazioniToken.toIndentedString(this.subject)).append("\n");
  143.     sb.append("    username: ").append(TransazioneExtInformazioniToken.toIndentedString(this.username)).append("\n");
  144.     sb.append("    mail: ").append(TransazioneExtInformazioniToken.toIndentedString(this.mail)).append("\n");
  145.     sb.append("}");
  146.     return sb.toString();
  147.   }

  148.   /**
  149.    * Convert the given object to string with each line indented by 4 spaces
  150.    * (except the first line).
  151.    */
  152.   private static String toIndentedString(java.lang.Object o) {
  153.     if (o == null) {
  154.       return "null";
  155.     }
  156.     return o.toString().replace("\n", "\n    ");
  157.   }
  158. }