net.optionfactory.whatsapp.dto.messages.Reply Maven / Gradle / Ivy
package net.optionfactory.whatsapp.dto.messages;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Use when button is of type reply
*
* - id: Unique identifier for your button. This ID is returned in the webhook when the button is clicked by the user. Maximum length: 256 characters.
* - title: Button title. It cannot be an empty string and must be unique within the message. Emojis are supported, markdown is not. Maximum length: 20 characters.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Reply {
/**
* The Id.
*/
@JsonProperty("id")
public String id;
/**
* The Title.
*/
@JsonProperty("title")
public String title;
/**
* Gets id.
*
* @return the id
*/
public String getId() {
return id;
}
/**
* Sets id.
*
* @param id the id
* @return the id
*/
public Reply setId(String id) {
this.id = id;
return this;
}
/**
* Gets title.
*
* @return the title
*/
public String getTitle() {
return title;
}
/**
* Sets title.
*
* @param title the title
* @return the title
*/
public Reply setTitle(String title) {
this.title = title;
return this;
}
}