
com.symphony.api.model.ExtensionAppTokens Maven / Gradle / Ivy
package com.symphony.api.model;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.annotation.JsonCreator;
public class ExtensionAppTokens {
@Schema(description = "Application ID")
/**
* Application ID
**/
private String appId = null;
@Schema(description = "This token generated by the application when calling authentication endpoint ")
/**
* This token generated by the application when calling authentication endpoint
**/
private String appToken = null;
@Schema(description = "This token generated by Symphony and should be used by the application to verify that it's talking to Symphony. ")
/**
* This token generated by Symphony and should be used by the application to verify that it's talking to Symphony.
**/
private String symphonyToken = null;
@Schema(description = "unix timestamp when the token expired")
/**
* unix timestamp when the token expired
**/
private Long expireAt = null;
/**
* Application ID
* @return appId
**/
@JsonProperty("appId")
public String getAppId() {
return appId;
}
public void setAppId(String appId) {
this.appId = appId;
}
public ExtensionAppTokens appId(String appId) {
this.appId = appId;
return this;
}
/**
* This token generated by the application when calling authentication endpoint
* @return appToken
**/
@JsonProperty("appToken")
public String getAppToken() {
return appToken;
}
public void setAppToken(String appToken) {
this.appToken = appToken;
}
public ExtensionAppTokens appToken(String appToken) {
this.appToken = appToken;
return this;
}
/**
* This token generated by Symphony and should be used by the application to verify that it's talking to Symphony.
* @return symphonyToken
**/
@JsonProperty("symphonyToken")
public String getSymphonyToken() {
return symphonyToken;
}
public void setSymphonyToken(String symphonyToken) {
this.symphonyToken = symphonyToken;
}
public ExtensionAppTokens symphonyToken(String symphonyToken) {
this.symphonyToken = symphonyToken;
return this;
}
/**
* unix timestamp when the token expired
* @return expireAt
**/
@JsonProperty("expireAt")
public Long getExpireAt() {
return expireAt;
}
public void setExpireAt(Long expireAt) {
this.expireAt = expireAt;
}
public ExtensionAppTokens expireAt(Long expireAt) {
this.expireAt = expireAt;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ExtensionAppTokens {\n");
sb.append(" appId: ").append(toIndentedString(appId)).append("\n");
sb.append(" appToken: ").append(toIndentedString(appToken)).append("\n");
sb.append(" symphonyToken: ").append(toIndentedString(symphonyToken)).append("\n");
sb.append(" expireAt: ").append(toIndentedString(expireAt)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy