001// Generated by delombok at Thu Aug 13 13:56:44 UTC 2026 002/* 003 * Copyright (c) 2010-2026 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 @lombok.Generated 083 public String getCategory() { 084 return this.category; 085 } 086 087 /** 088 * The category type of the message template 089 */ 090 @java.lang.SuppressWarnings("all") 091 @lombok.Generated 092 public void setCategory(final String category) { 093 this.category = category; 094 } 095 096 /** 097 * Message template string with placeholders for parameters 098 */ 099 @java.lang.SuppressWarnings("all") 100 @lombok.Generated 101 public String getContent() { 102 return this.content; 103 } 104 105 /** 106 * Message template string with placeholders for parameters 107 */ 108 @java.lang.SuppressWarnings("all") 109 @lombok.Generated 110 public void setContent(final String content) { 111 this.content = content; 112 } 113 114 @java.lang.SuppressWarnings("all") 115 @lombok.Generated 116 public List<WhatsAppMessageTemplateComponent> getComponents() { 117 return this.components; 118 } 119 120 @java.lang.SuppressWarnings("all") 121 @lombok.Generated 122 public void setComponents(final List<WhatsAppMessageTemplateComponent> components) { 123 this.components = components; 124 } 125 126 /** 127 * The languages (and locale) of the element translation 128 */ 129 @java.lang.SuppressWarnings("all") 130 @lombok.Generated 131 public List<String> getLanguage() { 132 return this.language; 133 } 134 135 /** 136 * The languages (and locale) of the element translation 137 */ 138 @java.lang.SuppressWarnings("all") 139 @lombok.Generated 140 public void setLanguage(final List<String> language) { 141 this.language = language; 142 } 143 144 /** 145 * The timestamp indicating the last time the message template was updated 146 */ 147 @java.lang.SuppressWarnings("all") 148 @lombok.Generated 149 public Date getLastUpdatedTime() { 150 return this.lastUpdatedTime; 151 } 152 153 /** 154 * The timestamp indicating the last time the message template was updated 155 */ 156 @java.lang.SuppressWarnings("all") 157 @lombok.Generated 158 public void setLastUpdatedTime(final Date lastUpdatedTime) { 159 this.lastUpdatedTime = lastUpdatedTime; 160 } 161 162 /** 163 * The reason the message template was rejected 164 */ 165 @java.lang.SuppressWarnings("all") 166 @lombok.Generated 167 public String getRejectedReason() { 168 return this.rejectedReason; 169 } 170 171 /** 172 * The reason the message template was rejected 173 */ 174 @java.lang.SuppressWarnings("all") 175 @lombok.Generated 176 public void setRejectedReason(final String rejectedReason) { 177 this.rejectedReason = rejectedReason; 178 } 179 180 /** 181 * The status of the message template 182 */ 183 @java.lang.SuppressWarnings("all") 184 @lombok.Generated 185 public String getStatus() { 186 return this.status; 187 } 188 189 /** 190 * The status of the message template 191 */ 192 @java.lang.SuppressWarnings("all") 193 @lombok.Generated 194 public void setStatus(final String status) { 195 this.status = status; 196 } 197 198 /** 199 * String as a query parameter to filter message templates name or content containing this variable 200 */ 201 @java.lang.SuppressWarnings("all") 202 @lombok.Generated 203 public String getNameOrContent() { 204 return this.nameOrContent; 205 } 206 207 /** 208 * String as a query parameter to filter message templates name or content containing this variable 209 */ 210 @java.lang.SuppressWarnings("all") 211 @lombok.Generated 212 public void setNameOrContent(final String nameOrContent) { 213 this.nameOrContent = nameOrContent; 214 } 215 216 @java.lang.SuppressWarnings("all") 217 @lombok.Generated 218 public WhatsAppHSMQualityScoreShape getQualityScore() { 219 return this.qualityScore; 220 } 221 222 @java.lang.SuppressWarnings("all") 223 @lombok.Generated 224 public void setQualityScore(final WhatsAppHSMQualityScoreShape qualityScore) { 225 this.qualityScore = qualityScore; 226 } 227}