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;
024
025import java.util.Date;
026import com.restfb.Facebook;
027import com.restfb.types.features.HasCreatedTime;
028
029/**
030 * Represents the <a href="https://developers.facebook.com/docs/graph-api/reference/page/call_to_actions/">Page Call To
031 * Action type</a>
032 */
033public class PageCallToAction extends FacebookType implements HasCreatedTime {
034  /**
035   * App that stores the destination info on Android.
036   */
037  @Facebook("android_app")
038  private Application androidApp;
039  /**
040   * Time when the call-to-action was created.
041   */
042  @Facebook("created_time")
043  private Date createdTime;
044  /**
045   * Email address that can be contacted by a user.
046   */
047  @Facebook("email_address")
048  private String emailAddress;
049  /**
050   * Page that owns the call-to-action.
051   */
052  @Facebook
053  private Page from;
054  /**
055   * App that stores the destination info on iPhone.
056   */
057  @Facebook("iphone_app")
058  private Application iphoneApp;
059  /**
060   * Destination deeplink for the call-to-action on iPhone.
061   */
062  @Facebook("iphone_deeplink")
063  private String iphoneDeeplink;
064  /**
065   * Destination url for the call-to-action on iPhone.
066   */
067  @Facebook("iphone_url")
068  private String iphoneUrl;
069  /**
070   * Current running status of this action.
071   */
072  @Facebook
073  private String status;
074  /**
075   * Time when the call-to-action was last updated.
076   */
077  @Facebook("updated_time")
078  private Date updatedTime;
079  /**
080   * Destination type for the call-to-action on desktop.
081   * <p>
082   * Default value: NONE
083   * </p>
084   * <p>
085   * may be: WEBSITE, MESSENGER, NONE
086   * </p>
087   */
088  @Facebook("web_destination_type")
089  private String webDestinationType;
090  /**
091   * Destination type for the call-to-action on Android.
092   * <p>
093   * Default value: NONE
094   * </p>
095   * <p>
096   * may be: WEBSITE, APP_DEEPLINK, FACEBOOK_APP, PHONE_CALL, MESSENGER, NONE
097   * </p>
098   */
099  @Facebook("android_destination_type")
100  private String androidDestinationType;
101  /**
102   * Destination type for the call-to-action on iPhone.
103   * <p>
104   * Default value: NONE
105   * </p>
106   * <p>
107   * may be: WEBSITE, APP_DEEPLINK, FACEBOOK_APP, PHONE_CALL, MESSENGER, NONE
108   * </p>
109   */
110  @Facebook("iphone_destination_type")
111  private String iphoneDestinationType;
112  /**
113   * International phone number with plus that can be called through a phone
114   */
115  @Facebook("intl_number_with_plus")
116  private String intlNumberWithPlus;
117  /**
118   * Destination url for the call-to-action on desktop
119   */
120  @Facebook("web_url")
121  private String webUrl;
122  /**
123   * ID of the App that stores the destination info on Android
124   */
125  @Facebook("android_app_id")
126  private String androidAppId;
127  /**
128   * Destination deeplink for the call-to-action on Android
129   */
130  @Facebook("android_deeplink")
131  private String androidDeeplink;
132  /**
133   * Destination app for the call-to-action on Android
134   */
135  @Facebook("android_package_name")
136  private String androidPackageName;
137  /**
138   * Destination url for the call-to-action on Android
139   */
140  @Facebook("android_url")
141  private String androidUrl;
142  /**
143   * ID fo the App that stores the destination info on iPhone
144   */
145  @Facebook("iphone_app_id")
146  private String iphoneAppId;
147
148  /**
149   * App that stores the destination info on Android.
150   *
151   * @return App that stores the destination info on Android
152   */
153  @java.lang.SuppressWarnings("all")
154  @lombok.Generated
155  public Application getAndroidApp() {
156    return this.androidApp;
157  }
158
159  /**
160   * App that stores the destination info on Android.
161   */
162  @java.lang.SuppressWarnings("all")
163  @lombok.Generated
164  public void setAndroidApp(final Application androidApp) {
165    this.androidApp = androidApp;
166  }
167
168  /**
169   * Time when the call-to-action was created.
170   *
171   * @return Time when the call-to-action was created
172   */
173  @Override
174  @java.lang.SuppressWarnings("all")
175  @lombok.Generated
176  public Date getCreatedTime() {
177    return this.createdTime;
178  }
179
180  /**
181   * Time when the call-to-action was created.
182   */
183  @java.lang.SuppressWarnings("all")
184  @lombok.Generated
185  public void setCreatedTime(final Date createdTime) {
186    this.createdTime = createdTime;
187  }
188
189  /**
190   * Email address that can be contacted by a user.
191   *
192   * @return Email address that can be contacted by a user
193   */
194  @java.lang.SuppressWarnings("all")
195  @lombok.Generated
196  public String getEmailAddress() {
197    return this.emailAddress;
198  }
199
200  /**
201   * Email address that can be contacted by a user.
202   */
203  @java.lang.SuppressWarnings("all")
204  @lombok.Generated
205  public void setEmailAddress(final String emailAddress) {
206    this.emailAddress = emailAddress;
207  }
208
209  /**
210   * Page that owns the call-to-action.
211   *
212   * @return Page that owns the call-to-action
213   */
214  @java.lang.SuppressWarnings("all")
215  @lombok.Generated
216  public Page getFrom() {
217    return this.from;
218  }
219
220  /**
221   * Page that owns the call-to-action.
222   */
223  @java.lang.SuppressWarnings("all")
224  @lombok.Generated
225  public void setFrom(final Page from) {
226    this.from = from;
227  }
228
229  /**
230   * App that stores the destination info on iPhone.
231   *
232   * @return App that stores the destination info on iPhone
233   */
234  @java.lang.SuppressWarnings("all")
235  @lombok.Generated
236  public Application getIphoneApp() {
237    return this.iphoneApp;
238  }
239
240  /**
241   * App that stores the destination info on iPhone.
242   */
243  @java.lang.SuppressWarnings("all")
244  @lombok.Generated
245  public void setIphoneApp(final Application iphoneApp) {
246    this.iphoneApp = iphoneApp;
247  }
248
249  /**
250   * Destination deeplink for the call-to-action on iPhone.
251   *
252   * @return Destination deeplink for the call-to-action on iPhone
253   */
254  @java.lang.SuppressWarnings("all")
255  @lombok.Generated
256  public String getIphoneDeeplink() {
257    return this.iphoneDeeplink;
258  }
259
260  /**
261   * Destination deeplink for the call-to-action on iPhone.
262   */
263  @java.lang.SuppressWarnings("all")
264  @lombok.Generated
265  public void setIphoneDeeplink(final String iphoneDeeplink) {
266    this.iphoneDeeplink = iphoneDeeplink;
267  }
268
269  /**
270   * Destination url for the call-to-action on iPhone.
271   *
272   * @return Destination url for the call-to-action on iPhone
273   */
274  @java.lang.SuppressWarnings("all")
275  @lombok.Generated
276  public String getIphoneUrl() {
277    return this.iphoneUrl;
278  }
279
280  /**
281   * Destination url for the call-to-action on iPhone.
282   */
283  @java.lang.SuppressWarnings("all")
284  @lombok.Generated
285  public void setIphoneUrl(final String iphoneUrl) {
286    this.iphoneUrl = iphoneUrl;
287  }
288
289  /**
290   * Current running status of this action.
291   *
292   * @return Current running status of this action
293   */
294  @java.lang.SuppressWarnings("all")
295  @lombok.Generated
296  public String getStatus() {
297    return this.status;
298  }
299
300  /**
301   * Current running status of this action.
302   */
303  @java.lang.SuppressWarnings("all")
304  @lombok.Generated
305  public void setStatus(final String status) {
306    this.status = status;
307  }
308
309  /**
310   * Time when the call-to-action was last updated.
311   *
312   * @return Time when the call-to-action was last updated
313   */
314  @java.lang.SuppressWarnings("all")
315  @lombok.Generated
316  public Date getUpdatedTime() {
317    return this.updatedTime;
318  }
319
320  /**
321   * Time when the call-to-action was last updated.
322   */
323  @java.lang.SuppressWarnings("all")
324  @lombok.Generated
325  public void setUpdatedTime(final Date updatedTime) {
326    this.updatedTime = updatedTime;
327  }
328
329  /**
330   * Destination type for the call-to-action on desktop.
331   * <p>
332   * Default value: NONE
333   * </p>
334   * <p>
335   * may be: WEBSITE, MESSENGER, NONE
336   * </p>
337   */
338  @java.lang.SuppressWarnings("all")
339  @lombok.Generated
340  public String getWebDestinationType() {
341    return this.webDestinationType;
342  }
343
344  /**
345   * Destination type for the call-to-action on desktop.
346   * <p>
347   * Default value: NONE
348   * </p>
349   * <p>
350   * may be: WEBSITE, MESSENGER, NONE
351   * </p>
352   */
353  @java.lang.SuppressWarnings("all")
354  @lombok.Generated
355  public void setWebDestinationType(final String webDestinationType) {
356    this.webDestinationType = webDestinationType;
357  }
358
359  /**
360   * Destination type for the call-to-action on Android.
361   * <p>
362   * Default value: NONE
363   * </p>
364   * <p>
365   * may be: WEBSITE, APP_DEEPLINK, FACEBOOK_APP, PHONE_CALL, MESSENGER, NONE
366   * </p>
367   */
368  @java.lang.SuppressWarnings("all")
369  @lombok.Generated
370  public String getAndroidDestinationType() {
371    return this.androidDestinationType;
372  }
373
374  /**
375   * Destination type for the call-to-action on Android.
376   * <p>
377   * Default value: NONE
378   * </p>
379   * <p>
380   * may be: WEBSITE, APP_DEEPLINK, FACEBOOK_APP, PHONE_CALL, MESSENGER, NONE
381   * </p>
382   */
383  @java.lang.SuppressWarnings("all")
384  @lombok.Generated
385  public void setAndroidDestinationType(final String androidDestinationType) {
386    this.androidDestinationType = androidDestinationType;
387  }
388
389  /**
390   * Destination type for the call-to-action on iPhone.
391   * <p>
392   * Default value: NONE
393   * </p>
394   * <p>
395   * may be: WEBSITE, APP_DEEPLINK, FACEBOOK_APP, PHONE_CALL, MESSENGER, NONE
396   * </p>
397   */
398  @java.lang.SuppressWarnings("all")
399  @lombok.Generated
400  public String getIphoneDestinationType() {
401    return this.iphoneDestinationType;
402  }
403
404  /**
405   * Destination type for the call-to-action on iPhone.
406   * <p>
407   * Default value: NONE
408   * </p>
409   * <p>
410   * may be: WEBSITE, APP_DEEPLINK, FACEBOOK_APP, PHONE_CALL, MESSENGER, NONE
411   * </p>
412   */
413  @java.lang.SuppressWarnings("all")
414  @lombok.Generated
415  public void setIphoneDestinationType(final String iphoneDestinationType) {
416    this.iphoneDestinationType = iphoneDestinationType;
417  }
418
419  /**
420   * International phone number with plus that can be called through a phone
421   */
422  @java.lang.SuppressWarnings("all")
423  @lombok.Generated
424  public String getIntlNumberWithPlus() {
425    return this.intlNumberWithPlus;
426  }
427
428  /**
429   * International phone number with plus that can be called through a phone
430   */
431  @java.lang.SuppressWarnings("all")
432  @lombok.Generated
433  public void setIntlNumberWithPlus(final String intlNumberWithPlus) {
434    this.intlNumberWithPlus = intlNumberWithPlus;
435  }
436
437  /**
438   * Destination url for the call-to-action on desktop
439   */
440  @java.lang.SuppressWarnings("all")
441  @lombok.Generated
442  public String getWebUrl() {
443    return this.webUrl;
444  }
445
446  /**
447   * Destination url for the call-to-action on desktop
448   */
449  @java.lang.SuppressWarnings("all")
450  @lombok.Generated
451  public void setWebUrl(final String webUrl) {
452    this.webUrl = webUrl;
453  }
454
455  /**
456   * ID of the App that stores the destination info on Android
457   */
458  @java.lang.SuppressWarnings("all")
459  @lombok.Generated
460  public String getAndroidAppId() {
461    return this.androidAppId;
462  }
463
464  /**
465   * ID of the App that stores the destination info on Android
466   */
467  @java.lang.SuppressWarnings("all")
468  @lombok.Generated
469  public void setAndroidAppId(final String androidAppId) {
470    this.androidAppId = androidAppId;
471  }
472
473  /**
474   * Destination deeplink for the call-to-action on Android
475   */
476  @java.lang.SuppressWarnings("all")
477  @lombok.Generated
478  public String getAndroidDeeplink() {
479    return this.androidDeeplink;
480  }
481
482  /**
483   * Destination deeplink for the call-to-action on Android
484   */
485  @java.lang.SuppressWarnings("all")
486  @lombok.Generated
487  public void setAndroidDeeplink(final String androidDeeplink) {
488    this.androidDeeplink = androidDeeplink;
489  }
490
491  /**
492   * Destination app for the call-to-action on Android
493   */
494  @java.lang.SuppressWarnings("all")
495  @lombok.Generated
496  public String getAndroidPackageName() {
497    return this.androidPackageName;
498  }
499
500  /**
501   * Destination app for the call-to-action on Android
502   */
503  @java.lang.SuppressWarnings("all")
504  @lombok.Generated
505  public void setAndroidPackageName(final String androidPackageName) {
506    this.androidPackageName = androidPackageName;
507  }
508
509  /**
510   * Destination url for the call-to-action on Android
511   */
512  @java.lang.SuppressWarnings("all")
513  @lombok.Generated
514  public String getAndroidUrl() {
515    return this.androidUrl;
516  }
517
518  /**
519   * Destination url for the call-to-action on Android
520   */
521  @java.lang.SuppressWarnings("all")
522  @lombok.Generated
523  public void setAndroidUrl(final String androidUrl) {
524    this.androidUrl = androidUrl;
525  }
526
527  /**
528   * ID fo the App that stores the destination info on iPhone
529   */
530  @java.lang.SuppressWarnings("all")
531  @lombok.Generated
532  public String getIphoneAppId() {
533    return this.iphoneAppId;
534  }
535
536  /**
537   * ID fo the App that stores the destination info on iPhone
538   */
539  @java.lang.SuppressWarnings("all")
540  @lombok.Generated
541  public void setIphoneAppId(final String iphoneAppId) {
542    this.iphoneAppId = iphoneAppId;
543  }
544}