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.send; 024 025import java.util.ArrayList; 026import java.util.List; 027import com.restfb.Facebook; 028import com.restfb.types.AbstractFacebookType; 029 030public class Bubble extends AbstractFacebookType { 031 @Facebook 032 private String title; 033 @Facebook("item_url") 034 private String itemUrl; 035 @Facebook("image_url") 036 private String imageUrl; 037 @Facebook 038 private String subtitle; 039 @Facebook("default_action") 040 private DefaultAction defaultAction; 041 @Facebook 042 private List<AbstractButton> buttons; 043 044 public Bubble(String title) { 045 this.title = title; 046 } 047 048 public boolean addButton(AbstractButton button) { 049 if (buttons == null) { 050 buttons = new ArrayList<>(); 051 } 052 return buttons.add(button); 053 } 054 055 @java.lang.SuppressWarnings("all") 056 @lombok.Generated 057 public String getTitle() { 058 return this.title; 059 } 060 061 @java.lang.SuppressWarnings("all") 062 @lombok.Generated 063 public String getItemUrl() { 064 return this.itemUrl; 065 } 066 067 @java.lang.SuppressWarnings("all") 068 @lombok.Generated 069 public void setItemUrl(final String itemUrl) { 070 this.itemUrl = itemUrl; 071 } 072 073 @java.lang.SuppressWarnings("all") 074 @lombok.Generated 075 public String getImageUrl() { 076 return this.imageUrl; 077 } 078 079 @java.lang.SuppressWarnings("all") 080 @lombok.Generated 081 public void setImageUrl(final String imageUrl) { 082 this.imageUrl = imageUrl; 083 } 084 085 @java.lang.SuppressWarnings("all") 086 @lombok.Generated 087 public String getSubtitle() { 088 return this.subtitle; 089 } 090 091 @java.lang.SuppressWarnings("all") 092 @lombok.Generated 093 public void setSubtitle(final String subtitle) { 094 this.subtitle = subtitle; 095 } 096 097 @java.lang.SuppressWarnings("all") 098 @lombok.Generated 099 public DefaultAction getDefaultAction() { 100 return this.defaultAction; 101 } 102 103 @java.lang.SuppressWarnings("all") 104 @lombok.Generated 105 public void setDefaultAction(final DefaultAction defaultAction) { 106 this.defaultAction = defaultAction; 107 } 108 109 @java.lang.SuppressWarnings("all") 110 @lombok.Generated 111 public List<AbstractButton> getButtons() { 112 return this.buttons; 113 } 114}