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

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

package com.symphony.api.model;

import java.io.File;

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 Body   {
  
  @Schema(required = true, description = "A comma-separated list of Stream IDs")
 /**
   * A comma-separated list of Stream IDs  
  **/
  private String sids = null;
  
  @Schema(description = "The message payload in MessageML.")
 /**
   * The message payload in MessageML.  
  **/
  private String message = null;
  
  @Schema(description = "Optional message data in EntityJSON.")
 /**
   * Optional message data in EntityJSON.  
  **/
  private String data = null;
  
  @Schema(description = "Optional message version in the format \"major.minor\". If empty, defaults to the latest supported version. ")
 /**
   * Optional message version in the format \"major.minor\". If empty, defaults to the latest supported version.   
  **/
  private String version = null;
  
  @Schema(description = "Optional file attachment.")
 /**
   * Optional file attachment.  
  **/
  private File attachment = null;
  
  @Schema(description = "Optional attachment preview.")
 /**
   * Optional attachment preview.  
  **/
  private File preview = null;
 /**
   * A comma-separated list of Stream IDs
   * @return sids
  **/
  @JsonProperty("sids")
  public String getSids() {
    return sids;
  }

  public void setSids(String sids) {
    this.sids = sids;
  }

  public Body sids(String sids) {
    this.sids = sids;
    return this;
  }

 /**
   * The message payload in MessageML.
   * @return message
  **/
  @JsonProperty("message")
  public String getMessage() {
    return message;
  }

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

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

 /**
   * Optional message data in EntityJSON.
   * @return data
  **/
  @JsonProperty("data")
  public String getData() {
    return data;
  }

  public void setData(String data) {
    this.data = data;
  }

  public Body data(String data) {
    this.data = data;
    return this;
  }

 /**
   * Optional message version in the format \"major.minor\". If empty, defaults to the latest supported version. 
   * @return version
  **/
  @JsonProperty("version")
  public String getVersion() {
    return version;
  }

  public void setVersion(String version) {
    this.version = version;
  }

  public Body version(String version) {
    this.version = version;
    return this;
  }

 /**
   * Optional file attachment.
   * @return attachment
  **/
  @JsonProperty("attachment")
  public File getAttachment() {
    return attachment;
  }

  public void setAttachment(File attachment) {
    this.attachment = attachment;
  }

  public Body attachment(File attachment) {
    this.attachment = attachment;
    return this;
  }

 /**
   * Optional attachment preview.
   * @return preview
  **/
  @JsonProperty("preview")
  public File getPreview() {
    return preview;
  }

  public void setPreview(File preview) {
    this.preview = preview;
  }

  public Body preview(File preview) {
    this.preview = preview;
    return this;
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Body {\n");
    
    sb.append("    sids: ").append(toIndentedString(sids)).append("\n");
    sb.append("    message: ").append(toIndentedString(message)).append("\n");
    sb.append("    data: ").append(toIndentedString(data)).append("\n");
    sb.append("    version: ").append(toIndentedString(version)).append("\n");
    sb.append("    attachment: ").append(toIndentedString(attachment)).append("\n");
    sb.append("    preview: ").append(toIndentedString(preview)).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