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

com.symphony.api.model.StreamAttachmentItem Maven / Gradle / Ivy

package com.symphony.api.model;

import com.symphony.api.model.AttachmentPreview;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;

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;

/**
  * File attachments for a message in a stream
 **/
@Schema(description="File attachments for a message in a stream")
public class StreamAttachmentItem   {
  
  @Schema(description = "")
  private String messageId = null;
  
  @Schema(description = "")
  private Long ingestionDate = null;
  
  @Schema(description = "")
  private Long userId = null;
  
  @Schema(description = "The attachment File ID.")
 /**
   * The attachment File ID.  
  **/
  private String fileId = null;
  
  @Schema(description = "The file name.")
 /**
   * The file name.  
  **/
  private String name = null;
  
  @Schema(description = "Size in bytes.")
 /**
   * Size in bytes.  
  **/
  private Long size = null;
  
  @Schema(description = "")
  private String contentType = null;
  
  @Schema(description = "")
  private List previews = null;
 /**
   * Get messageId
   * @return messageId
  **/
  @JsonProperty("messageId")
  public String getMessageId() {
    return messageId;
  }

  public void setMessageId(String messageId) {
    this.messageId = messageId;
  }

  public StreamAttachmentItem messageId(String messageId) {
    this.messageId = messageId;
    return this;
  }

 /**
   * Get ingestionDate
   * @return ingestionDate
  **/
  @JsonProperty("ingestionDate")
  public Long getIngestionDate() {
    return ingestionDate;
  }

  public void setIngestionDate(Long ingestionDate) {
    this.ingestionDate = ingestionDate;
  }

  public StreamAttachmentItem ingestionDate(Long ingestionDate) {
    this.ingestionDate = ingestionDate;
    return this;
  }

 /**
   * Get userId
   * @return userId
  **/
  @JsonProperty("userId")
  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long userId) {
    this.userId = userId;
  }

  public StreamAttachmentItem userId(Long userId) {
    this.userId = userId;
    return this;
  }

 /**
   * The attachment File ID.
   * @return fileId
  **/
  @JsonProperty("fileId")
  public String getFileId() {
    return fileId;
  }

  public void setFileId(String fileId) {
    this.fileId = fileId;
  }

  public StreamAttachmentItem fileId(String fileId) {
    this.fileId = fileId;
    return this;
  }

 /**
   * The file name.
   * @return name
  **/
  @JsonProperty("name")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public StreamAttachmentItem name(String name) {
    this.name = name;
    return this;
  }

 /**
   * Size in bytes.
   * @return size
  **/
  @JsonProperty("size")
  public Long getSize() {
    return size;
  }

  public void setSize(Long size) {
    this.size = size;
  }

  public StreamAttachmentItem size(Long size) {
    this.size = size;
    return this;
  }

 /**
   * Get contentType
   * @return contentType
  **/
  @JsonProperty("content-type")
  public String getContentType() {
    return contentType;
  }

  public void setContentType(String contentType) {
    this.contentType = contentType;
  }

  public StreamAttachmentItem contentType(String contentType) {
    this.contentType = contentType;
    return this;
  }

 /**
   * Get previews
   * @return previews
  **/
  @JsonProperty("previews")
  public List getPreviews() {
    return previews;
  }

  public void setPreviews(List previews) {
    this.previews = previews;
  }

  public StreamAttachmentItem previews(List previews) {
    this.previews = previews;
    return this;
  }

  public StreamAttachmentItem addPreviewsItem(AttachmentPreview previewsItem) {
    this.previews.add(previewsItem);
    return this;
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class StreamAttachmentItem {\n");
    
    sb.append("    messageId: ").append(toIndentedString(messageId)).append("\n");
    sb.append("    ingestionDate: ").append(toIndentedString(ingestionDate)).append("\n");
    sb.append("    userId: ").append(toIndentedString(userId)).append("\n");
    sb.append("    fileId: ").append(toIndentedString(fileId)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    size: ").append(toIndentedString(size)).append("\n");
    sb.append("    contentType: ").append(toIndentedString(contentType)).append("\n");
    sb.append("    previews: ").append(toIndentedString(previews)).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