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

it.auties.whatsapp.model.message.button.ListResponseMessageBuilder Maven / Gradle / Ivy

package it.auties.whatsapp.model.message.button;

public class ListResponseMessageBuilder {
    private java.lang.String title;
    private it.auties.whatsapp.model.button.misc.SingleSelectReplyButton reply;
    private java.util.Optional contextInfo;
    private java.util.Optional description;
    private it.auties.whatsapp.model.message.button.ListResponseMessage.Type listType;

    public ListResponseMessageBuilder() {
        title = null;
        reply = null;
        contextInfo = java.util.Optional.empty();
        description = java.util.Optional.empty();
        listType = null;
    }

    public ListResponseMessageBuilder title(java.lang.String title) {
        this.title = title;
        return this;
    }
    public ListResponseMessageBuilder reply(it.auties.whatsapp.model.button.misc.SingleSelectReplyButton reply) {
        this.reply = reply;
        return this;
    }
    public ListResponseMessageBuilder contextInfo(java.util.Optional contextInfo) {
        this.contextInfo = contextInfo;
        return this;
    }
    public ListResponseMessageBuilder contextInfo(it.auties.whatsapp.model.info.ContextInfo contextInfo) {
        this.contextInfo = java.util.Optional.ofNullable(contextInfo);
        return this;
    }
    public ListResponseMessageBuilder description(java.util.Optional description) {
        this.description = description;
        return this;
    }
    public ListResponseMessageBuilder description(java.lang.String description) {
        this.description = java.util.Optional.ofNullable(description);
        return this;
    }
    public ListResponseMessageBuilder listType(it.auties.whatsapp.model.message.button.ListResponseMessage.Type listType) {
        this.listType = listType;
        return this;
    }

    public it.auties.whatsapp.model.message.button.ListResponseMessage build() {
        return new it.auties.whatsapp.model.message.button.ListResponseMessage(title, reply, contextInfo, description, listType);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy