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.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 @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 @java.lang.SuppressWarnings("all") 097 @lombok.Generated 098 public List<WhatsAppMessageTemplateComponent> getComponents() { 099 return this.components; 100 } 101 102 @java.lang.SuppressWarnings("all") 103 @lombok.Generated 104 public void setComponents(final List<WhatsAppMessageTemplateComponent> components) { 105 this.components = components; 106 } 107 108 /** 109 * The language (and locale) of the element translation 110 */ 111 @java.lang.SuppressWarnings("all") 112 @lombok.Generated 113 public String getLanguage() { 114 return this.language; 115 } 116 117 /** 118 * The language (and locale) of the element translation 119 */ 120 @java.lang.SuppressWarnings("all") 121 @lombok.Generated 122 public void setLanguage(final String language) { 123 this.language = language; 124 } 125 126 @java.lang.SuppressWarnings("all") 127 @lombok.Generated 128 public Long getMessageSendTtlSeconds() { 129 return this.messageSendTtlSeconds; 130 } 131 132 @java.lang.SuppressWarnings("all") 133 @lombok.Generated 134 public void setMessageSendTtlSeconds(final Long messageSendTtlSeconds) { 135 this.messageSendTtlSeconds = messageSendTtlSeconds; 136 } 137 138 @java.lang.SuppressWarnings("all") 139 @lombok.Generated 140 public String getPreviousCategory() { 141 return this.previousCategory; 142 } 143 144 @java.lang.SuppressWarnings("all") 145 @lombok.Generated 146 public void setPreviousCategory(final String previousCategory) { 147 this.previousCategory = previousCategory; 148 } 149 150 /** 151 * The reason the message template was rejected 152 */ 153 @java.lang.SuppressWarnings("all") 154 @lombok.Generated 155 public String getRejectedReason() { 156 return this.rejectedReason; 157 } 158 159 /** 160 * The reason the message template was rejected 161 */ 162 @java.lang.SuppressWarnings("all") 163 @lombok.Generated 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 @lombok.Generated 173 public String getStatus() { 174 return this.status; 175 } 176 177 /** 178 * The status of the message template 179 */ 180 @java.lang.SuppressWarnings("all") 181 @lombok.Generated 182 public void setStatus(final String status) { 183 this.status = status; 184 } 185 186 /** 187 * Quality score of the HSM 188 */ 189 @java.lang.SuppressWarnings("all") 190 @lombok.Generated 191 public WhatsAppHSMQualityScoreShape getQualityScore() { 192 return this.qualityScore; 193 } 194 195 /** 196 * Quality score of the HSM 197 */ 198 @java.lang.SuppressWarnings("all") 199 @lombok.Generated 200 public void setQualityScore(final WhatsAppHSMQualityScoreShape qualityScore) { 201 this.qualityScore = qualityScore; 202 } 203 204 /** 205 * The parameter format of the template 206 */ 207 @java.lang.SuppressWarnings("all") 208 @lombok.Generated 209 public ParameterFormat getParameterFormat() { 210 return this.parameterFormat; 211 } 212 213 /** 214 * The parameter format of the template 215 */ 216 @java.lang.SuppressWarnings("all") 217 @lombok.Generated 218 public void setParameterFormat(final ParameterFormat parameterFormat) { 219 this.parameterFormat = parameterFormat; 220 } 221}