001// Generated by delombok at Thu Mar 06 11:40:43 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 java.util.List;
026import com.restfb.Facebook;
027import com.restfb.types.NamedFacebookType;
028
029/**
030 * Represents the
031 * <a href= "https://developers.facebook.com/docs/graph-api/reference/whats-app-business-hsm/#fields">WhatsApp Message
032 * Template type </a>
033 */
034public class WhatsAppMessageTemplate extends NamedFacebookType {
035  private static final long serialVersionUID = 1L;
036  /**
037   * The category type of the message template
038   */
039  @Facebook
040  private String category;
041  @Facebook
042  private List<WhatsAppMessageTemplateComponent> components;
043  /**
044   * The language (and locale) of the element translation
045   */
046  @Facebook
047  private String language;
048  @Facebook("message_send_ttl_seconds")
049  private Long messageSendTtlSeconds;
050  @Facebook("previous_category")
051  private String previousCategory;
052  /**
053   * The reason the message template was rejected
054   */
055  @Facebook("rejected_reason")
056  private String rejectedReason;
057  /**
058   * The status of the message template
059   */
060  @Facebook
061  private String status;
062  /**
063   * Quality score of the HSM
064   */
065  @Facebook("quality_score")
066  private WhatsAppHSMQualityScoreShape qualityScore;
067  /**
068   * The parameter format of the template
069   */
070  @Facebook("parameter_format")
071  private ParameterFormat parameterFormat;
072
073
074  public enum ParameterFormat {
075    NAMED, POSITIONAL;
076  }
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  @java.lang.SuppressWarnings("all")
095  public List<WhatsAppMessageTemplateComponent> getComponents() {
096    return this.components;
097  }
098
099  @java.lang.SuppressWarnings("all")
100  public void setComponents(final List<WhatsAppMessageTemplateComponent> components) {
101    this.components = components;
102  }
103
104  /**
105   * The language (and locale) of the element translation
106   */
107  @java.lang.SuppressWarnings("all")
108  public String getLanguage() {
109    return this.language;
110  }
111
112  /**
113   * The language (and locale) of the element translation
114   */
115  @java.lang.SuppressWarnings("all")
116  public void setLanguage(final String language) {
117    this.language = language;
118  }
119
120  @java.lang.SuppressWarnings("all")
121  public Long getMessageSendTtlSeconds() {
122    return this.messageSendTtlSeconds;
123  }
124
125  @java.lang.SuppressWarnings("all")
126  public void setMessageSendTtlSeconds(final Long messageSendTtlSeconds) {
127    this.messageSendTtlSeconds = messageSendTtlSeconds;
128  }
129
130  @java.lang.SuppressWarnings("all")
131  public String getPreviousCategory() {
132    return this.previousCategory;
133  }
134
135  @java.lang.SuppressWarnings("all")
136  public void setPreviousCategory(final String previousCategory) {
137    this.previousCategory = previousCategory;
138  }
139
140  /**
141   * The reason the message template was rejected
142   */
143  @java.lang.SuppressWarnings("all")
144  public String getRejectedReason() {
145    return this.rejectedReason;
146  }
147
148  /**
149   * The reason the message template was rejected
150   */
151  @java.lang.SuppressWarnings("all")
152  public void setRejectedReason(final String rejectedReason) {
153    this.rejectedReason = rejectedReason;
154  }
155
156  /**
157   * The status of the message template
158   */
159  @java.lang.SuppressWarnings("all")
160  public String getStatus() {
161    return this.status;
162  }
163
164  /**
165   * The status of the message template
166   */
167  @java.lang.SuppressWarnings("all")
168  public void setStatus(final String status) {
169    this.status = status;
170  }
171
172  /**
173   * Quality score of the HSM
174   */
175  @java.lang.SuppressWarnings("all")
176  public WhatsAppHSMQualityScoreShape getQualityScore() {
177    return this.qualityScore;
178  }
179
180  /**
181   * Quality score of the HSM
182   */
183  @java.lang.SuppressWarnings("all")
184  public void setQualityScore(final WhatsAppHSMQualityScoreShape qualityScore) {
185    this.qualityScore = qualityScore;
186  }
187
188  /**
189   * The parameter format of the template
190   */
191  @java.lang.SuppressWarnings("all")
192  public ParameterFormat getParameterFormat() {
193    return this.parameterFormat;
194  }
195
196  /**
197   * The parameter format of the template
198   */
199  @java.lang.SuppressWarnings("all")
200  public void setParameterFormat(final ParameterFormat parameterFormat) {
201    this.parameterFormat = parameterFormat;
202  }
203}