001// Generated by delombok at Tue Dec 10 13:42:03 UTC 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.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  /**
069   * The category type of the message template
070   */
071  @java.lang.SuppressWarnings("all")
072  public String getCategory() {
073    return this.category;
074  }
075
076  /**
077   * The category type of the message template
078   */
079  @java.lang.SuppressWarnings("all")
080  public void setCategory(final String category) {
081    this.category = category;
082  }
083
084  @java.lang.SuppressWarnings("all")
085  public List<WhatsAppMessageTemplateComponent> getComponents() {
086    return this.components;
087  }
088
089  @java.lang.SuppressWarnings("all")
090  public void setComponents(final List<WhatsAppMessageTemplateComponent> components) {
091    this.components = components;
092  }
093
094  /**
095   * The language (and locale) of the element translation
096   */
097  @java.lang.SuppressWarnings("all")
098  public String getLanguage() {
099    return this.language;
100  }
101
102  /**
103   * The language (and locale) of the element translation
104   */
105  @java.lang.SuppressWarnings("all")
106  public void setLanguage(final String language) {
107    this.language = language;
108  }
109
110  @java.lang.SuppressWarnings("all")
111  public Long getMessageSendTtlSeconds() {
112    return this.messageSendTtlSeconds;
113  }
114
115  @java.lang.SuppressWarnings("all")
116  public void setMessageSendTtlSeconds(final Long messageSendTtlSeconds) {
117    this.messageSendTtlSeconds = messageSendTtlSeconds;
118  }
119
120  @java.lang.SuppressWarnings("all")
121  public String getPreviousCategory() {
122    return this.previousCategory;
123  }
124
125  @java.lang.SuppressWarnings("all")
126  public void setPreviousCategory(final String previousCategory) {
127    this.previousCategory = previousCategory;
128  }
129
130  /**
131   * The reason the message template was rejected
132   */
133  @java.lang.SuppressWarnings("all")
134  public String getRejectedReason() {
135    return this.rejectedReason;
136  }
137
138  /**
139   * The reason the message template was rejected
140   */
141  @java.lang.SuppressWarnings("all")
142  public void setRejectedReason(final String rejectedReason) {
143    this.rejectedReason = rejectedReason;
144  }
145
146  /**
147   * The status of the message template
148   */
149  @java.lang.SuppressWarnings("all")
150  public String getStatus() {
151    return this.status;
152  }
153
154  /**
155   * The status of the message template
156   */
157  @java.lang.SuppressWarnings("all")
158  public void setStatus(final String status) {
159    this.status = status;
160  }
161
162  /**
163   * Quality score of the HSM
164   */
165  @java.lang.SuppressWarnings("all")
166  public WhatsAppHSMQualityScoreShape getQualityScore() {
167    return this.qualityScore;
168  }
169
170  /**
171   * Quality score of the HSM
172   */
173  @java.lang.SuppressWarnings("all")
174  public void setQualityScore(final WhatsAppHSMQualityScoreShape qualityScore) {
175    this.qualityScore = qualityScore;
176  }
177}