001// Generated by delombok at Thu Aug 13 13:56:44 UTC 2026
002/*
003 * Copyright (c) 2010-2026 Mark Allen, Norbert Bartels.
004 *
005 * Permission is hereby granted, free of charge, to any person obtaining a copy
006 * of this software and associated documentation files (the "Software"), to deal
007 * in the Software without restriction, including without limitation the rights
008 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
009 * copies of the Software, and to permit persons to whom the Software is
010 * furnished to do so, subject to the following conditions:
011 *
012 * The above copyright notice and this permission notice shall be included in
013 * all copies or substantial portions of the Software.
014 *
015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
018 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
019 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
020 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
021 * THE SOFTWARE.
022 */
023package com.restfb.types.whatsapp;
024
025import com.restfb.Facebook;
026import com.restfb.types.AbstractFacebookType;
027import java.util.ArrayList;
028import java.util.List;
029
030/**
031 * Represents the <a href=
032 * "https://developers.facebook.com/docs/whatsapp/cloud-api/phone-numbers/conversational-components/#configuring-via-the-api">
033 * Conversational Components</a>
034 */
035public class WhatsAppBusinessConversationalComponent extends AbstractFacebookType {
036  private static final long serialVersionUID = 1L;
037  @Facebook("enable_welcome_message")
038  private boolean enableWelcomeMessage;
039  @Facebook
040  private List<String> prompts = new ArrayList<>();
041  @Facebook
042  private List<Command> commands = new ArrayList<>();
043
044
045  public static class Command {
046    @Facebook("command_name")
047    private String commandName;
048    @Facebook("command_description")
049    private String commandDescription;
050
051    @java.lang.SuppressWarnings("all")
052    @lombok.Generated
053    public String getCommandName() {
054      return this.commandName;
055    }
056
057    @java.lang.SuppressWarnings("all")
058    @lombok.Generated
059    public void setCommandName(final String commandName) {
060      this.commandName = commandName;
061    }
062
063    @java.lang.SuppressWarnings("all")
064    @lombok.Generated
065    public String getCommandDescription() {
066      return this.commandDescription;
067    }
068
069    @java.lang.SuppressWarnings("all")
070    @lombok.Generated
071    public void setCommandDescription(final String commandDescription) {
072      this.commandDescription = commandDescription;
073    }
074  }
075
076  @java.lang.SuppressWarnings("all")
077  @lombok.Generated
078  public boolean isEnableWelcomeMessage() {
079    return this.enableWelcomeMessage;
080  }
081
082  @java.lang.SuppressWarnings("all")
083  @lombok.Generated
084  public void setEnableWelcomeMessage(final boolean enableWelcomeMessage) {
085    this.enableWelcomeMessage = enableWelcomeMessage;
086  }
087
088  @java.lang.SuppressWarnings("all")
089  @lombok.Generated
090  public List<String> getPrompts() {
091    return this.prompts;
092  }
093
094  @java.lang.SuppressWarnings("all")
095  @lombok.Generated
096  public void setPrompts(final List<String> prompts) {
097    this.prompts = prompts;
098  }
099
100  @java.lang.SuppressWarnings("all")
101  @lombok.Generated
102  public List<Command> getCommands() {
103    return this.commands;
104  }
105
106  @java.lang.SuppressWarnings("all")
107  @lombok.Generated
108  public void setCommands(final List<Command> commands) {
109    this.commands = commands;
110  }
111}