001// Generated by delombok at Fri Feb 21 00:22:14 UTC 2025 002/* 003 * Copyright (c) 2010-2025 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 032 * <a href="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 public String getCommandName() { 053 return this.commandName; 054 } 055 056 @java.lang.SuppressWarnings("all") 057 public void setCommandName(final String commandName) { 058 this.commandName = commandName; 059 } 060 061 @java.lang.SuppressWarnings("all") 062 public String getCommandDescription() { 063 return this.commandDescription; 064 } 065 066 @java.lang.SuppressWarnings("all") 067 public void setCommandDescription(final String commandDescription) { 068 this.commandDescription = commandDescription; 069 } 070 } 071 072 @java.lang.SuppressWarnings("all") 073 public boolean isEnableWelcomeMessage() { 074 return this.enableWelcomeMessage; 075 } 076 077 @java.lang.SuppressWarnings("all") 078 public void setEnableWelcomeMessage(final boolean enableWelcomeMessage) { 079 this.enableWelcomeMessage = enableWelcomeMessage; 080 } 081 082 @java.lang.SuppressWarnings("all") 083 public List<String> getPrompts() { 084 return this.prompts; 085 } 086 087 @java.lang.SuppressWarnings("all") 088 public void setPrompts(final List<String> prompts) { 089 this.prompts = prompts; 090 } 091 092 @java.lang.SuppressWarnings("all") 093 public List<Command> getCommands() { 094 return this.commands; 095 } 096 097 @java.lang.SuppressWarnings("all") 098 public void setCommands(final List<Command> commands) { 099 this.commands = commands; 100 } 101}