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

it.auties.whatsapp.model.button.template.hsm.HighlyStructuredButtonTemplateBuilder Maven / Gradle / Ivy

package it.auties.whatsapp.model.button.template.hsm;

public class HighlyStructuredButtonTemplateBuilder {
    private java.util.Optional highlyStructuredQuickReplyButton;
    private java.util.Optional highlyStructuredUrlButton;
    private java.util.Optional highlyStructuredCallButton;
    private int index;

    public HighlyStructuredButtonTemplateBuilder() {
        highlyStructuredQuickReplyButton = it.auties.protobuf.builtin.ProtobufOptionalMixin.newOptional();
        highlyStructuredUrlButton = it.auties.protobuf.builtin.ProtobufOptionalMixin.newOptional();
        highlyStructuredCallButton = it.auties.protobuf.builtin.ProtobufOptionalMixin.newOptional();
        index = 0;
    }

    public HighlyStructuredButtonTemplateBuilder highlyStructuredQuickReplyButton(it.auties.whatsapp.model.button.template.hsm.HighlyStructuredQuickReplyButton highlyStructuredQuickReplyButton) {
        this.highlyStructuredQuickReplyButton = it.auties.protobuf.builtin.ProtobufOptionalMixin.ofOptional(highlyStructuredQuickReplyButton);
        return this;
    }

    public HighlyStructuredButtonTemplateBuilder highlyStructuredUrlButton(it.auties.whatsapp.model.button.template.hsm.HighlyStructuredURLButton highlyStructuredUrlButton) {
        this.highlyStructuredUrlButton = it.auties.protobuf.builtin.ProtobufOptionalMixin.ofOptional(highlyStructuredUrlButton);
        return this;
    }

    public HighlyStructuredButtonTemplateBuilder highlyStructuredCallButton(it.auties.whatsapp.model.button.template.hsm.HighlyStructuredCallButton highlyStructuredCallButton) {
        this.highlyStructuredCallButton = it.auties.protobuf.builtin.ProtobufOptionalMixin.ofOptional(highlyStructuredCallButton);
        return this;
    }

    public HighlyStructuredButtonTemplateBuilder index(int index) {
        this.index = index;
        return this;
    }

    public it.auties.whatsapp.model.button.template.hsm.HighlyStructuredButtonTemplate build() {
        return new it.auties.whatsapp.model.button.template.hsm.HighlyStructuredButtonTemplate(highlyStructuredQuickReplyButton, highlyStructuredUrlButton, highlyStructuredCallButton, index);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy