net.optionfactory.whatsapp.dto.messages.TextParameter Maven / Gradle / Ivy
package net.optionfactory.whatsapp.dto.messages;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import net.optionfactory.whatsapp.dto.messages.type.ParameterType;
/**
* The type Text parameter.
* Required for URL buttons.
* Developer-provided suffix that is appended to the predefined prefix URL in the template.
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TextParameter extends Parameter {
@JsonProperty("text")
private final String text;
/**
* Instantiates a new Text parameter.
*
* @param text the text
*/
public TextParameter(String text) {
super(ParameterType.TEXT);
this.text = text;
}
/**
* Gets text.
*
* @return the text
*/
public String getText() {
return text;
}
}