com.symphony.api.model.ShareArticle 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 ShareArticle {
@Schema(description = "An ID for this article that should be unique to the calling application. Either an articleId or an articleUrl is required.")
/**
* An ID for this article that should be unique to the calling application. Either an articleId or an articleUrl is required.
**/
private String articleId = null;
@Schema(required = true, description = "The title of the article")
/**
* The title of the article
**/
private String title = null;
@Schema(description = "The subtitle of the article")
/**
* The subtitle of the article
**/
private String subTitle = null;
@Schema(description = "The message text that can be send along with the shared article")
/**
* The message text that can be send along with the shared article
**/
private String message = null;
@Schema(required = true, description = "Publisher of the article")
/**
* Publisher of the article
**/
private String publisher = null;
@Schema(description = "Article publish date in unix timestamp")
/**
* Article publish date in unix timestamp
**/
private Long publishDate = null;
@Schema(description = "Url to the thumbnail image")
/**
* Url to the thumbnail image
**/
private String thumbnailUrl = null;
@Schema(required = true, description = "Author of the article")
/**
* Author of the article
**/
private String author = null;
@Schema(description = "Url to the article")
/**
* Url to the article
**/
private String articleUrl = null;
@Schema(description = "Preview summary of the article")
/**
* Preview summary of the article
**/
private String summary = null;
@Schema(required = true, description = "App ID of the calling application")
/**
* App ID of the calling application
**/
private String appId = null;
@Schema(description = "App name of the calling application")
/**
* App name of the calling application
**/
private String appName = null;
@Schema(description = "App icon url of the calling application")
/**
* App icon url of the calling application
**/
private String appIconUrl = null;
/**
* An ID for this article that should be unique to the calling application. Either an articleId or an articleUrl is required.
* @return articleId
**/
@JsonProperty("articleId")
public String getArticleId() {
return articleId;
}
public void setArticleId(String articleId) {
this.articleId = articleId;
}
public ShareArticle articleId(String articleId) {
this.articleId = articleId;
return this;
}
/**
* The title of the article
* @return title
**/
@JsonProperty("title")
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public ShareArticle title(String title) {
this.title = title;
return this;
}
/**
* The subtitle of the article
* @return subTitle
**/
@JsonProperty("subTitle")
public String getSubTitle() {
return subTitle;
}
public void setSubTitle(String subTitle) {
this.subTitle = subTitle;
}
public ShareArticle subTitle(String subTitle) {
this.subTitle = subTitle;
return this;
}
/**
* The message text that can be send along with the shared article
* @return message
**/
@JsonProperty("message")
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public ShareArticle message(String message) {
this.message = message;
return this;
}
/**
* Publisher of the article
* @return publisher
**/
@JsonProperty("publisher")
public String getPublisher() {
return publisher;
}
public void setPublisher(String publisher) {
this.publisher = publisher;
}
public ShareArticle publisher(String publisher) {
this.publisher = publisher;
return this;
}
/**
* Article publish date in unix timestamp
* @return publishDate
**/
@JsonProperty("publishDate")
public Long getPublishDate() {
return publishDate;
}
public void setPublishDate(Long publishDate) {
this.publishDate = publishDate;
}
public ShareArticle publishDate(Long publishDate) {
this.publishDate = publishDate;
return this;
}
/**
* Url to the thumbnail image
* @return thumbnailUrl
**/
@JsonProperty("thumbnailUrl")
public String getThumbnailUrl() {
return thumbnailUrl;
}
public void setThumbnailUrl(String thumbnailUrl) {
this.thumbnailUrl = thumbnailUrl;
}
public ShareArticle thumbnailUrl(String thumbnailUrl) {
this.thumbnailUrl = thumbnailUrl;
return this;
}
/**
* Author of the article
* @return author
**/
@JsonProperty("author")
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public ShareArticle author(String author) {
this.author = author;
return this;
}
/**
* Url to the article
* @return articleUrl
**/
@JsonProperty("articleUrl")
public String getArticleUrl() {
return articleUrl;
}
public void setArticleUrl(String articleUrl) {
this.articleUrl = articleUrl;
}
public ShareArticle articleUrl(String articleUrl) {
this.articleUrl = articleUrl;
return this;
}
/**
* Preview summary of the article
* @return summary
**/
@JsonProperty("summary")
public String getSummary() {
return summary;
}
public void setSummary(String summary) {
this.summary = summary;
}
public ShareArticle summary(String summary) {
this.summary = summary;
return this;
}
/**
* App ID of the calling application
* @return appId
**/
@JsonProperty("appId")
public String getAppId() {
return appId;
}
public void setAppId(String appId) {
this.appId = appId;
}
public ShareArticle appId(String appId) {
this.appId = appId;
return this;
}
/**
* App name of the calling application
* @return appName
**/
@JsonProperty("appName")
public String getAppName() {
return appName;
}
public void setAppName(String appName) {
this.appName = appName;
}
public ShareArticle appName(String appName) {
this.appName = appName;
return this;
}
/**
* App icon url of the calling application
* @return appIconUrl
**/
@JsonProperty("appIconUrl")
public String getAppIconUrl() {
return appIconUrl;
}
public void setAppIconUrl(String appIconUrl) {
this.appIconUrl = appIconUrl;
}
public ShareArticle appIconUrl(String appIconUrl) {
this.appIconUrl = appIconUrl;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ShareArticle {\n");
sb.append(" articleId: ").append(toIndentedString(articleId)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" subTitle: ").append(toIndentedString(subTitle)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" publisher: ").append(toIndentedString(publisher)).append("\n");
sb.append(" publishDate: ").append(toIndentedString(publishDate)).append("\n");
sb.append(" thumbnailUrl: ").append(toIndentedString(thumbnailUrl)).append("\n");
sb.append(" author: ").append(toIndentedString(author)).append("\n");
sb.append(" articleUrl: ").append(toIndentedString(articleUrl)).append("\n");
sb.append(" summary: ").append(toIndentedString(summary)).append("\n");
sb.append(" appId: ").append(toIndentedString(appId)).append("\n");
sb.append(" appName: ").append(toIndentedString(appName)).append("\n");
sb.append(" appIconUrl: ").append(toIndentedString(appIconUrl)).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