net.optionfactory.whatsapp.dto.messages.Body Maven / Gradle / Ivy
package net.optionfactory.whatsapp.dto.messages;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* An object with the body of the message.
*
* The body object contains the following field:
*
* - text: Required if body is present - The content of the message. Emojis and markdown are supported. Maximum length: 1024 characters
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Body {
/**
* The Text.
*/
@JsonProperty("text")
public String text;
/**
* Gets text.
*
* @return the text
*/
public String getText() {
return text;
}
/**
* Sets text.
*
* @param text the text
* @return the text
*/
public Body setText(String text) {
this.text = text;
return this;
}
}