public static final class QuerySmsTemplateListResponseBody.SmsTemplateList.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
public QuerySmsTemplateListResponseBody.SmsTemplateList.Builder auditStatus(String auditStatus)
* **AUDIT_STATE_INIT**: The message template is pending approval. * **AUDIT_STATE_PASS**: The message template is approved. * **AUDIT_STATE_NOT_PASS**: The message template is rejected. You can view the reason in the Reason response parameter. * **AUDIT_STATE_CANCEL** or **AUDIT_SATE_CANCEL**: The approval is canceled.
public QuerySmsTemplateListResponseBody.SmsTemplateList.Builder createDate(String createDate)
public QuerySmsTemplateListResponseBody.SmsTemplateList.Builder orderId(String orderId)
public QuerySmsTemplateListResponseBody.SmsTemplateList.Builder outerTemplateType(Integer outerTemplateType)
* **0**: verification code * **1**: notification message * **2**: promotional message * **3**: message sent to countries or regions outside the Chinese mainland * **7**: digital message > The template type is the same as the value of the TemplateType parameter in the AddSmsTemplate and ModifySmsTemplate operations.
public QuerySmsTemplateListResponseBody.SmsTemplateList.Builder reason(QuerySmsTemplateListResponseBody.Reason reason)
* If the value of AuditStatus is **AUDIT_STATE_PASS** or **AUDIT_STATE_INIT**, the value of Reason is No Approval Remarks. * If the value of AuditStatus is **AUDIT_STATE_NOT_PASS**, the reason why the message template is rejected is returned.
public QuerySmsTemplateListResponseBody.SmsTemplateList.Builder templateCode(String templateCode)
You can log on to the [Short Message Service (SMS) console](https://dysms.console.aliyun.com/dysms.htm), click **Go China** or **Go Globe** in the left-side navigation pane, and then view the template code on the **Templates** tab. You can also call the [AddSmsTemplate](~~121208~~) operation to obtain the template code.
public QuerySmsTemplateListResponseBody.SmsTemplateList.Builder templateContent(String templateContent)
public QuerySmsTemplateListResponseBody.SmsTemplateList.Builder templateName(String templateName)
public QuerySmsTemplateListResponseBody.SmsTemplateList.Builder templateType(Integer templateType)
* **0**: notification message * **1**: promotional message * **2**: verification code * **6**: message sent to countries or regions outside the Chinese mainland * **7**: digital message
public QuerySmsTemplateListResponseBody.SmsTemplateList build()
Copyright © 2024. All rights reserved.