All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.symphonyoss.symphony.agent.model.ShareArticle Maven / Gradle / Ivy

There is a newer version: 1.50.1
Show newest version
/*
 * Agent API
 * This document refers to Symphony API calls to send and receive messages and content. They need the on-premise Agent installed to perform decryption/encryption of content.  - sessionToken and keyManagerToken can be obtained by calling the authenticationAPI on the symphony back end and the key manager respectively. Refer to the methods described in authenticatorAPI.yaml. - Actions are defined to be atomic, ie will succeed in their entirety or fail and have changed nothing. - If it returns a 40X status then it will have sent no message to any stream even if a request to aome subset of the requested streams would have succeeded. - If this contract cannot be met for any reason then this is an error and the response code will be 50X. - MessageML is a markup language for messages. See reference here: https://developers.symphony.com/documentation/message_format_reference 
 *
 * OpenAPI spec version: 1.48.0
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package org.symphonyoss.symphony.agent.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * ShareArticle
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-10-14T03:33:40.723-04:00")
public class ShareArticle {
  @JsonProperty("articleId")
  private String articleId = null;

  @JsonProperty("title")
  private String title = null;

  @JsonProperty("subTitle")
  private String subTitle = null;

  @JsonProperty("message")
  private String message = null;

  @JsonProperty("publisher")
  private String publisher = null;

  @JsonProperty("publishDate")
  private Long publishDate = null;

  @JsonProperty("thumbnailUrl")
  private String thumbnailUrl = null;

  @JsonProperty("author")
  private String author = null;

  @JsonProperty("articleUrl")
  private String articleUrl = null;

  @JsonProperty("summary")
  private String summary = null;

  @JsonProperty("appId")
  private String appId = null;

  @JsonProperty("appName")
  private String appName = null;

  @JsonProperty("appIconUrl")
  private String appIconUrl = null;

  public ShareArticle articleId(String articleId) {
    this.articleId = articleId;
    return this;
  }

   /**
   * An ID for this article that should be unique to the calling application. Either an articleId or an articleUrl is required.
   * @return articleId
  **/
  @ApiModelProperty(example = "null", value = "An ID for this article that should be unique to the calling application. Either an articleId or an articleUrl is required.")
  public String getArticleId() {
    return articleId;
  }

  public void setArticleId(String articleId) {
    this.articleId = articleId;
  }

  public ShareArticle title(String title) {
    this.title = title;
    return this;
  }

   /**
   * The title of the article
   * @return title
  **/
  @ApiModelProperty(example = "null", required = true, value = "The title of the article")
  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public ShareArticle subTitle(String subTitle) {
    this.subTitle = subTitle;
    return this;
  }

   /**
   * The subtitle of the article
   * @return subTitle
  **/
  @ApiModelProperty(example = "null", value = "The subtitle of the article")
  public String getSubTitle() {
    return subTitle;
  }

  public void setSubTitle(String subTitle) {
    this.subTitle = subTitle;
  }

  public ShareArticle message(String message) {
    this.message = message;
    return this;
  }

   /**
   * The message text that can be send along with the shared article
   * @return message
  **/
  @ApiModelProperty(example = "null", value = "The message text that can be send along with the shared article")
  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }

  public ShareArticle publisher(String publisher) {
    this.publisher = publisher;
    return this;
  }

   /**
   * Publisher of the article
   * @return publisher
  **/
  @ApiModelProperty(example = "null", required = true, value = "Publisher of the article")
  public String getPublisher() {
    return publisher;
  }

  public void setPublisher(String publisher) {
    this.publisher = publisher;
  }

  public ShareArticle publishDate(Long publishDate) {
    this.publishDate = publishDate;
    return this;
  }

   /**
   * Article publish date in unix timestamp
   * @return publishDate
  **/
  @ApiModelProperty(example = "null", value = "Article publish date in unix timestamp")
  public Long getPublishDate() {
    return publishDate;
  }

  public void setPublishDate(Long publishDate) {
    this.publishDate = publishDate;
  }

  public ShareArticle thumbnailUrl(String thumbnailUrl) {
    this.thumbnailUrl = thumbnailUrl;
    return this;
  }

   /**
   * Url to the thumbnail image
   * @return thumbnailUrl
  **/
  @ApiModelProperty(example = "null", value = "Url to the thumbnail image")
  public String getThumbnailUrl() {
    return thumbnailUrl;
  }

  public void setThumbnailUrl(String thumbnailUrl) {
    this.thumbnailUrl = thumbnailUrl;
  }

  public ShareArticle author(String author) {
    this.author = author;
    return this;
  }

   /**
   * Author of the article
   * @return author
  **/
  @ApiModelProperty(example = "null", required = true, value = "Author of the article")
  public String getAuthor() {
    return author;
  }

  public void setAuthor(String author) {
    this.author = author;
  }

  public ShareArticle articleUrl(String articleUrl) {
    this.articleUrl = articleUrl;
    return this;
  }

   /**
   * Url to the article
   * @return articleUrl
  **/
  @ApiModelProperty(example = "null", value = "Url to the article")
  public String getArticleUrl() {
    return articleUrl;
  }

  public void setArticleUrl(String articleUrl) {
    this.articleUrl = articleUrl;
  }

  public ShareArticle summary(String summary) {
    this.summary = summary;
    return this;
  }

   /**
   * Preview summary of the article
   * @return summary
  **/
  @ApiModelProperty(example = "null", value = "Preview summary of the article")
  public String getSummary() {
    return summary;
  }

  public void setSummary(String summary) {
    this.summary = summary;
  }

  public ShareArticle appId(String appId) {
    this.appId = appId;
    return this;
  }

   /**
   * App ID of the calling application
   * @return appId
  **/
  @ApiModelProperty(example = "null", required = true, value = "App ID of the calling application")
  public String getAppId() {
    return appId;
  }

  public void setAppId(String appId) {
    this.appId = appId;
  }

  public ShareArticle appName(String appName) {
    this.appName = appName;
    return this;
  }

   /**
   * App name of the calling application
   * @return appName
  **/
  @ApiModelProperty(example = "null", value = "App name of the calling application")
  public String getAppName() {
    return appName;
  }

  public void setAppName(String appName) {
    this.appName = appName;
  }

  public ShareArticle appIconUrl(String appIconUrl) {
    this.appIconUrl = appIconUrl;
    return this;
  }

   /**
   * App icon url of the calling application
   * @return appIconUrl
  **/
  @ApiModelProperty(example = "null", value = "App icon url of the calling application")
  public String getAppIconUrl() {
    return appIconUrl;
  }

  public void setAppIconUrl(String appIconUrl) {
    this.appIconUrl = appIconUrl;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ShareArticle shareArticle = (ShareArticle) o;
    return Objects.equals(this.articleId, shareArticle.articleId) &&
        Objects.equals(this.title, shareArticle.title) &&
        Objects.equals(this.subTitle, shareArticle.subTitle) &&
        Objects.equals(this.message, shareArticle.message) &&
        Objects.equals(this.publisher, shareArticle.publisher) &&
        Objects.equals(this.publishDate, shareArticle.publishDate) &&
        Objects.equals(this.thumbnailUrl, shareArticle.thumbnailUrl) &&
        Objects.equals(this.author, shareArticle.author) &&
        Objects.equals(this.articleUrl, shareArticle.articleUrl) &&
        Objects.equals(this.summary, shareArticle.summary) &&
        Objects.equals(this.appId, shareArticle.appId) &&
        Objects.equals(this.appName, shareArticle.appName) &&
        Objects.equals(this.appIconUrl, shareArticle.appIconUrl);
  }

  @Override
  public int hashCode() {
    return Objects.hash(articleId, title, subTitle, message, publisher, publishDate, thumbnailUrl, author, articleUrl, summary, appId, appName, appIconUrl);
  }


  @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 String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
  
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy