001// Generated by delombok at Fri Oct 04 16:05:59 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.whatsapp;
024
025import java.util.ArrayList;
026import java.util.Date;
027import java.util.List;
028import com.restfb.Facebook;
029import com.restfb.types.NamedFacebookType;
030
031/**
032 * Represents the <a href=
033 * "https://developers.facebook.com/docs/graph-api/reference/whats-app-business-account/message_templates/">WhatsApp
034 * Message Template type </a>
035 */
036public class WABAMessageTemplate extends NamedFacebookType {
037  private static final long serialVersionUID = 1L;
038  /**
039   * The category type of the message template
040   */
041  @Facebook
042  private String category;
043  /**
044   * Message template string with placeholders for parameters
045   */
046  @Facebook
047  private String content;
048  @Facebook
049  private List<WhatsAppMessageTemplateComponent> components;
050  /**
051   * The languages (and locale) of the element translation
052   */
053  @Facebook
054  private List<String> language = new ArrayList<>();
055  /**
056   * The timestamp indicating the last time the message template was updated
057   */
058  @Facebook("last_updated_time")
059  private Date lastUpdatedTime;
060  /**
061   * The reason the message template was rejected
062   */
063  @Facebook("rejected_reason")
064  private String rejectedReason;
065  /**
066   * The status of the message template
067   */
068  @Facebook
069  private String status;
070  /**
071   * String as a query parameter to filter message templates name or content containing this variable
072   */
073  @Facebook("name_or_content")
074  private String nameOrContent;
075  @Facebook("quality_score")
076  private WhatsAppHSMQualityScoreShape qualityScore;
077
078  /**
079   * The category type of the message template
080   */
081  @java.lang.SuppressWarnings("all")
082  public String getCategory() {
083    return this.category;
084  }
085
086  /**
087   * The category type of the message template
088   */
089  @java.lang.SuppressWarnings("all")
090  public void setCategory(final String category) {
091    this.category = category;
092  }
093
094  /**
095   * Message template string with placeholders for parameters
096   */
097  @java.lang.SuppressWarnings("all")
098  public String getContent() {
099    return this.content;
100  }
101
102  /**
103   * Message template string with placeholders for parameters
104   */
105  @java.lang.SuppressWarnings("all")
106  public void setContent(final String content) {
107    this.content = content;
108  }
109
110  @java.lang.SuppressWarnings("all")
111  public List<WhatsAppMessageTemplateComponent> getComponents() {
112    return this.components;
113  }
114
115  @java.lang.SuppressWarnings("all")
116  public void setComponents(final List<WhatsAppMessageTemplateComponent> components) {
117    this.components = components;
118  }
119
120  /**
121   * The languages (and locale) of the element translation
122   */
123  @java.lang.SuppressWarnings("all")
124  public List<String> getLanguage() {
125    return this.language;
126  }
127
128  /**
129   * The languages (and locale) of the element translation
130   */
131  @java.lang.SuppressWarnings("all")
132  public void setLanguage(final List<String> language) {
133    this.language = language;
134  }
135
136  /**
137   * The timestamp indicating the last time the message template was updated
138   */
139  @java.lang.SuppressWarnings("all")
140  public Date getLastUpdatedTime() {
141    return this.lastUpdatedTime;
142  }
143
144  /**
145   * The timestamp indicating the last time the message template was updated
146   */
147  @java.lang.SuppressWarnings("all")
148  public void setLastUpdatedTime(final Date lastUpdatedTime) {
149    this.lastUpdatedTime = lastUpdatedTime;
150  }
151
152  /**
153   * The reason the message template was rejected
154   */
155  @java.lang.SuppressWarnings("all")
156  public String getRejectedReason() {
157    return this.rejectedReason;
158  }
159
160  /**
161   * The reason the message template was rejected
162   */
163  @java.lang.SuppressWarnings("all")
164  public void setRejectedReason(final String rejectedReason) {
165    this.rejectedReason = rejectedReason;
166  }
167
168  /**
169   * The status of the message template
170   */
171  @java.lang.SuppressWarnings("all")
172  public String getStatus() {
173    return this.status;
174  }
175
176  /**
177   * The status of the message template
178   */
179  @java.lang.SuppressWarnings("all")
180  public void setStatus(final String status) {
181    this.status = status;
182  }
183
184  /**
185   * String as a query parameter to filter message templates name or content containing this variable
186   */
187  @java.lang.SuppressWarnings("all")
188  public String getNameOrContent() {
189    return this.nameOrContent;
190  }
191
192  /**
193   * String as a query parameter to filter message templates name or content containing this variable
194   */
195  @java.lang.SuppressWarnings("all")
196  public void setNameOrContent(final String nameOrContent) {
197    this.nameOrContent = nameOrContent;
198  }
199
200  @java.lang.SuppressWarnings("all")
201  public WhatsAppHSMQualityScoreShape getQualityScore() {
202    return this.qualityScore;
203  }
204
205  @java.lang.SuppressWarnings("all")
206  public void setQualityScore(final WhatsAppHSMQualityScoreShape qualityScore) {
207    this.qualityScore = qualityScore;
208  }
209}