001// Generated by delombok at Sun Apr 14 14:59:49 CEST 2024
002/*
003 * Copyright (c) 2010-2024 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 com.restfb.Facebook;
026import com.restfb.types.features.HasMessage;
027
028/**
029 * Respresents the <a href="https://developers.facebook.com/docs/graph-api/reference/saved-message-response/">Saved
030 * Message Response</a> type
031 */
032public class SavedMessageResponse extends FacebookType implements HasMessage {
033  /**
034   * The message category of the saved response
035   */
036  @Facebook
037  private String category;
038  /**
039   * The image attached to this save response
040   */
041  @Facebook
042  private String image;
043  /**
044   * Toggle whether to enable the message
045   */
046  @Facebook("is_enabled")
047  private Boolean isEnabled;
048  /**
049   * The message body of the saved response
050   */
051  @Facebook
052  private String message;
053  /**
054   * The title of the saved response
055   */
056  @Facebook
057  private String title;
058
059  /**
060   * The message category of the saved response
061   */
062  @java.lang.SuppressWarnings("all")
063  public String getCategory() {
064    return this.category;
065  }
066
067  /**
068   * The message category of the saved response
069   */
070  @java.lang.SuppressWarnings("all")
071  public void setCategory(final String category) {
072    this.category = category;
073  }
074
075  /**
076   * The image attached to this save response
077   */
078  @java.lang.SuppressWarnings("all")
079  public String getImage() {
080    return this.image;
081  }
082
083  /**
084   * The image attached to this save response
085   */
086  @java.lang.SuppressWarnings("all")
087  public void setImage(final String image) {
088    this.image = image;
089  }
090
091  /**
092   * Toggle whether to enable the message
093   */
094  @java.lang.SuppressWarnings("all")
095  public Boolean getIsEnabled() {
096    return this.isEnabled;
097  }
098
099  /**
100   * Toggle whether to enable the message
101   */
102  @java.lang.SuppressWarnings("all")
103  public void setIsEnabled(final Boolean isEnabled) {
104    this.isEnabled = isEnabled;
105  }
106
107  /**
108   * The message body of the saved response
109   */
110  @Override
111  @java.lang.SuppressWarnings("all")
112  public String getMessage() {
113    return this.message;
114  }
115
116  /**
117   * The message body of the saved response
118   */
119  @java.lang.SuppressWarnings("all")
120  public void setMessage(final String message) {
121    this.message = message;
122  }
123
124  /**
125   * The title of the saved response
126   */
127  @java.lang.SuppressWarnings("all")
128  public String getTitle() {
129    return this.title;
130  }
131
132  /**
133   * The title of the saved response
134   */
135  @java.lang.SuppressWarnings("all")
136  public void setTitle(final String title) {
137    this.title = title;
138  }
139}