001// Generated by delombok at Wed Jan 31 21:27:42 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.ArrayList;
026import java.util.Date;
027import java.util.List;
028import com.restfb.Facebook;
029import com.restfb.types.NamedFacebookType;
030
031/**
032 * Represents the
033 * <a href= "https://developers.facebook.com/docs/graph-api/reference/whats-app-business-hsm/#fields">WhatsApp Message
034 * Template type </a>
035 */
036public class WhatsAppMessageTemplate 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  @Facebook
044  private List<WhatsAppMessageTemplateComponent> components;
045  /**
046   * The language (and locale) of the element translation
047   */
048  @Facebook
049  private String language;
050  @Facebook("message_send_ttl_seconds")
051  private Long messageSendTtlSeconds;
052  @Facebook("previous_category")
053  private String previousCategory;
054  /**
055   * The reason the message template was rejected
056   */
057  @Facebook("rejected_reason")
058  private String rejectedReason;
059  /**
060   * The status of the message template
061   */
062  @Facebook
063  private String status;
064  /**
065   * Quality score of the HSM
066   */
067  @Facebook("quality_score")
068  private WhatsAppHSMQualityScoreShape qualityScore;
069
070  /**
071   * The category type of the message template
072   */
073  @java.lang.SuppressWarnings("all")
074  public String getCategory() {
075    return this.category;
076  }
077
078  /**
079   * The category type of the message template
080   */
081  @java.lang.SuppressWarnings("all")
082  public void setCategory(final String category) {
083    this.category = category;
084  }
085
086  @java.lang.SuppressWarnings("all")
087  public List<WhatsAppMessageTemplateComponent> getComponents() {
088    return this.components;
089  }
090
091  @java.lang.SuppressWarnings("all")
092  public void setComponents(final List<WhatsAppMessageTemplateComponent> components) {
093    this.components = components;
094  }
095
096  /**
097   * The language (and locale) of the element translation
098   */
099  @java.lang.SuppressWarnings("all")
100  public String getLanguage() {
101    return this.language;
102  }
103
104  /**
105   * The language (and locale) of the element translation
106   */
107  @java.lang.SuppressWarnings("all")
108  public void setLanguage(final String language) {
109    this.language = language;
110  }
111
112  @java.lang.SuppressWarnings("all")
113  public Long getMessageSendTtlSeconds() {
114    return this.messageSendTtlSeconds;
115  }
116
117  @java.lang.SuppressWarnings("all")
118  public void setMessageSendTtlSeconds(final Long messageSendTtlSeconds) {
119    this.messageSendTtlSeconds = messageSendTtlSeconds;
120  }
121
122  @java.lang.SuppressWarnings("all")
123  public String getPreviousCategory() {
124    return this.previousCategory;
125  }
126
127  @java.lang.SuppressWarnings("all")
128  public void setPreviousCategory(final String previousCategory) {
129    this.previousCategory = previousCategory;
130  }
131
132  /**
133   * The reason the message template was rejected
134   */
135  @java.lang.SuppressWarnings("all")
136  public String getRejectedReason() {
137    return this.rejectedReason;
138  }
139
140  /**
141   * The reason the message template was rejected
142   */
143  @java.lang.SuppressWarnings("all")
144  public void setRejectedReason(final String rejectedReason) {
145    this.rejectedReason = rejectedReason;
146  }
147
148  /**
149   * The status of the message template
150   */
151  @java.lang.SuppressWarnings("all")
152  public String getStatus() {
153    return this.status;
154  }
155
156  /**
157   * The status of the message template
158   */
159  @java.lang.SuppressWarnings("all")
160  public void setStatus(final String status) {
161    this.status = status;
162  }
163
164  /**
165   * Quality score of the HSM
166   */
167  @java.lang.SuppressWarnings("all")
168  public WhatsAppHSMQualityScoreShape getQualityScore() {
169    return this.qualityScore;
170  }
171
172  /**
173   * Quality score of the HSM
174   */
175  @java.lang.SuppressWarnings("all")
176  public void setQualityScore(final WhatsAppHSMQualityScoreShape qualityScore) {
177    this.qualityScore = qualityScore;
178  }
179}