com.tencentcloudapi.sms.v20190711.models.SendSmsRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.sms.v20190711.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class SendSmsRequest extends AbstractModel{
/**
* Target mobile number in the e.164 standard in the format of +[country/region code][mobile number]. Up to 200 mobile numbers are supported in one request (which should be all Mainland China mobile numbers or all global mobile numbers).
Example: +8613711112222, which has a + sign followed by 86 (country/region code) and then by 13711112222 (mobile number).
*/
@SerializedName("PhoneNumberSet")
@Expose
private String [] PhoneNumberSet;
/**
* Template ID. You must enter the ID of an approved template, which can be viewed in the [SMS Console](https://console.cloud.tencent.com/sms/smslist).
*/
@SerializedName("TemplateID")
@Expose
private String TemplateID;
/**
* SMS `SdkAppid` actually generated after an application is added in the [SMS Console](https://console.cloud.tencent.com/sms/smslist), such as 1400006666.
*/
@SerializedName("SmsSdkAppid")
@Expose
private String SmsSdkAppid;
/**
* The content of SMS signature should be encoded in UTF-8. You must enter an approved signature, which can be viewed in the [SMS Console](https://console.cloud.tencent.com/sms/smslist). Note: this parameter is required for Mainland China SMS.
*/
@SerializedName("Sign")
@Expose
private String Sign;
/**
* Template parameter. If there is no template parameter, leave this parameter blank.
*/
@SerializedName("TemplateParamSet")
@Expose
private String [] TemplateParamSet;
/**
* SMS code number extension, which is not activated by default. If you need to activate it, please contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1).
*/
@SerializedName("ExtendCode")
@Expose
private String ExtendCode;
/**
* User session content, which can carry context information such as user-side ID and will be returned as-is by the server.
*/
@SerializedName("SessionContext")
@Expose
private String SessionContext;
/**
* `senderid` for Global SMS, which is not activated by default. If you need to activate it, please contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1) for assistance. This parameter should be empty for Mainland China SMS.
*/
@SerializedName("SenderId")
@Expose
private String SenderId;
/**
* Get Target mobile number in the e.164 standard in the format of +[country/region code][mobile number]. Up to 200 mobile numbers are supported in one request (which should be all Mainland China mobile numbers or all global mobile numbers).
Example: +8613711112222, which has a + sign followed by 86 (country/region code) and then by 13711112222 (mobile number).
* @return PhoneNumberSet Target mobile number in the e.164 standard in the format of +[country/region code][mobile number]. Up to 200 mobile numbers are supported in one request (which should be all Mainland China mobile numbers or all global mobile numbers).
Example: +8613711112222, which has a + sign followed by 86 (country/region code) and then by 13711112222 (mobile number).
*/
public String [] getPhoneNumberSet() {
return this.PhoneNumberSet;
}
/**
* Set Target mobile number in the e.164 standard in the format of +[country/region code][mobile number]. Up to 200 mobile numbers are supported in one request (which should be all Mainland China mobile numbers or all global mobile numbers).
Example: +8613711112222, which has a + sign followed by 86 (country/region code) and then by 13711112222 (mobile number).
* @param PhoneNumberSet Target mobile number in the e.164 standard in the format of +[country/region code][mobile number]. Up to 200 mobile numbers are supported in one request (which should be all Mainland China mobile numbers or all global mobile numbers).
Example: +8613711112222, which has a + sign followed by 86 (country/region code) and then by 13711112222 (mobile number).
*/
public void setPhoneNumberSet(String [] PhoneNumberSet) {
this.PhoneNumberSet = PhoneNumberSet;
}
/**
* Get Template ID. You must enter the ID of an approved template, which can be viewed in the [SMS Console](https://console.cloud.tencent.com/sms/smslist).
* @return TemplateID Template ID. You must enter the ID of an approved template, which can be viewed in the [SMS Console](https://console.cloud.tencent.com/sms/smslist).
*/
public String getTemplateID() {
return this.TemplateID;
}
/**
* Set Template ID. You must enter the ID of an approved template, which can be viewed in the [SMS Console](https://console.cloud.tencent.com/sms/smslist).
* @param TemplateID Template ID. You must enter the ID of an approved template, which can be viewed in the [SMS Console](https://console.cloud.tencent.com/sms/smslist).
*/
public void setTemplateID(String TemplateID) {
this.TemplateID = TemplateID;
}
/**
* Get SMS `SdkAppid` actually generated after an application is added in the [SMS Console](https://console.cloud.tencent.com/sms/smslist), such as 1400006666.
* @return SmsSdkAppid SMS `SdkAppid` actually generated after an application is added in the [SMS Console](https://console.cloud.tencent.com/sms/smslist), such as 1400006666.
*/
public String getSmsSdkAppid() {
return this.SmsSdkAppid;
}
/**
* Set SMS `SdkAppid` actually generated after an application is added in the [SMS Console](https://console.cloud.tencent.com/sms/smslist), such as 1400006666.
* @param SmsSdkAppid SMS `SdkAppid` actually generated after an application is added in the [SMS Console](https://console.cloud.tencent.com/sms/smslist), such as 1400006666.
*/
public void setSmsSdkAppid(String SmsSdkAppid) {
this.SmsSdkAppid = SmsSdkAppid;
}
/**
* Get The content of SMS signature should be encoded in UTF-8. You must enter an approved signature, which can be viewed in the [SMS Console](https://console.cloud.tencent.com/sms/smslist). Note: this parameter is required for Mainland China SMS.
* @return Sign The content of SMS signature should be encoded in UTF-8. You must enter an approved signature, which can be viewed in the [SMS Console](https://console.cloud.tencent.com/sms/smslist). Note: this parameter is required for Mainland China SMS.
*/
public String getSign() {
return this.Sign;
}
/**
* Set The content of SMS signature should be encoded in UTF-8. You must enter an approved signature, which can be viewed in the [SMS Console](https://console.cloud.tencent.com/sms/smslist). Note: this parameter is required for Mainland China SMS.
* @param Sign The content of SMS signature should be encoded in UTF-8. You must enter an approved signature, which can be viewed in the [SMS Console](https://console.cloud.tencent.com/sms/smslist). Note: this parameter is required for Mainland China SMS.
*/
public void setSign(String Sign) {
this.Sign = Sign;
}
/**
* Get Template parameter. If there is no template parameter, leave this parameter blank.
* @return TemplateParamSet Template parameter. If there is no template parameter, leave this parameter blank.
*/
public String [] getTemplateParamSet() {
return this.TemplateParamSet;
}
/**
* Set Template parameter. If there is no template parameter, leave this parameter blank.
* @param TemplateParamSet Template parameter. If there is no template parameter, leave this parameter blank.
*/
public void setTemplateParamSet(String [] TemplateParamSet) {
this.TemplateParamSet = TemplateParamSet;
}
/**
* Get SMS code number extension, which is not activated by default. If you need to activate it, please contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1).
* @return ExtendCode SMS code number extension, which is not activated by default. If you need to activate it, please contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1).
*/
public String getExtendCode() {
return this.ExtendCode;
}
/**
* Set SMS code number extension, which is not activated by default. If you need to activate it, please contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1).
* @param ExtendCode SMS code number extension, which is not activated by default. If you need to activate it, please contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1).
*/
public void setExtendCode(String ExtendCode) {
this.ExtendCode = ExtendCode;
}
/**
* Get User session content, which can carry context information such as user-side ID and will be returned as-is by the server.
* @return SessionContext User session content, which can carry context information such as user-side ID and will be returned as-is by the server.
*/
public String getSessionContext() {
return this.SessionContext;
}
/**
* Set User session content, which can carry context information such as user-side ID and will be returned as-is by the server.
* @param SessionContext User session content, which can carry context information such as user-side ID and will be returned as-is by the server.
*/
public void setSessionContext(String SessionContext) {
this.SessionContext = SessionContext;
}
/**
* Get `senderid` for Global SMS, which is not activated by default. If you need to activate it, please contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1) for assistance. This parameter should be empty for Mainland China SMS.
* @return SenderId `senderid` for Global SMS, which is not activated by default. If you need to activate it, please contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1) for assistance. This parameter should be empty for Mainland China SMS.
*/
public String getSenderId() {
return this.SenderId;
}
/**
* Set `senderid` for Global SMS, which is not activated by default. If you need to activate it, please contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1) for assistance. This parameter should be empty for Mainland China SMS.
* @param SenderId `senderid` for Global SMS, which is not activated by default. If you need to activate it, please contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1) for assistance. This parameter should be empty for Mainland China SMS.
*/
public void setSenderId(String SenderId) {
this.SenderId = SenderId;
}
public SendSmsRequest() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public SendSmsRequest(SendSmsRequest source) {
if (source.PhoneNumberSet != null) {
this.PhoneNumberSet = new String[source.PhoneNumberSet.length];
for (int i = 0; i < source.PhoneNumberSet.length; i++) {
this.PhoneNumberSet[i] = new String(source.PhoneNumberSet[i]);
}
}
if (source.TemplateID != null) {
this.TemplateID = new String(source.TemplateID);
}
if (source.SmsSdkAppid != null) {
this.SmsSdkAppid = new String(source.SmsSdkAppid);
}
if (source.Sign != null) {
this.Sign = new String(source.Sign);
}
if (source.TemplateParamSet != null) {
this.TemplateParamSet = new String[source.TemplateParamSet.length];
for (int i = 0; i < source.TemplateParamSet.length; i++) {
this.TemplateParamSet[i] = new String(source.TemplateParamSet[i]);
}
}
if (source.ExtendCode != null) {
this.ExtendCode = new String(source.ExtendCode);
}
if (source.SessionContext != null) {
this.SessionContext = new String(source.SessionContext);
}
if (source.SenderId != null) {
this.SenderId = new String(source.SenderId);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamArraySimple(map, prefix + "PhoneNumberSet.", this.PhoneNumberSet);
this.setParamSimple(map, prefix + "TemplateID", this.TemplateID);
this.setParamSimple(map, prefix + "SmsSdkAppid", this.SmsSdkAppid);
this.setParamSimple(map, prefix + "Sign", this.Sign);
this.setParamArraySimple(map, prefix + "TemplateParamSet.", this.TemplateParamSet);
this.setParamSimple(map, prefix + "ExtendCode", this.ExtendCode);
this.setParamSimple(map, prefix + "SessionContext", this.SessionContext);
this.setParamSimple(map, prefix + "SenderId", this.SenderId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy