
com.symphony.api.model.Body1 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 Body1 {
@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;
/**
* The message payload in MessageML.
* @return message
**/
@JsonProperty("message")
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public Body1 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 Body1 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 Body1 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 Body1 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 Body1 preview(File preview) {
this.preview = preview;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Body1 {\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