All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.dysmsapi20170525.models.SendSmsRequest Maven / Gradle / Ivy

There is a newer version: 3.0.1
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.dysmsapi20170525.models;

import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link SendSmsRequest} extends {@link RequestModel}
 *
 * 

SendSmsRequest

*/ public class SendSmsRequest extends Request { @Query @NameInMap("OutId") private String outId; @Query @NameInMap("OwnerId") private Long ownerId; @Query @NameInMap("PhoneNumbers") @Validation(required = true) private String phoneNumbers; @Query @NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @Query @NameInMap("ResourceOwnerId") private Long resourceOwnerId; @Query @NameInMap("SignName") @Validation(required = true) private String signName; @Query @NameInMap("SmsUpExtendCode") private String smsUpExtendCode; @Query @NameInMap("TemplateCode") @Validation(required = true) private String templateCode; @Query @NameInMap("TemplateParam") private String templateParam; private SendSmsRequest(Builder builder) { super(builder); this.outId = builder.outId; this.ownerId = builder.ownerId; this.phoneNumbers = builder.phoneNumbers; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.signName = builder.signName; this.smsUpExtendCode = builder.smsUpExtendCode; this.templateCode = builder.templateCode; this.templateParam = builder.templateParam; } public static Builder builder() { return new Builder(); } public static SendSmsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return outId */ public String getOutId() { return this.outId; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return phoneNumbers */ public String getPhoneNumbers() { return this.phoneNumbers; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return signName */ public String getSignName() { return this.signName; } /** * @return smsUpExtendCode */ public String getSmsUpExtendCode() { return this.smsUpExtendCode; } /** * @return templateCode */ public String getTemplateCode() { return this.templateCode; } /** * @return templateParam */ public String getTemplateParam() { return this.templateParam; } public static final class Builder extends Request.Builder { private String outId; private Long ownerId; private String phoneNumbers; private String resourceOwnerAccount; private Long resourceOwnerId; private String signName; private String smsUpExtendCode; private String templateCode; private String templateParam; private Builder() { super(); } private Builder(SendSmsRequest response) { super(response); this.outId = response.outId; this.ownerId = response.ownerId; this.phoneNumbers = response.phoneNumbers; this.resourceOwnerAccount = response.resourceOwnerAccount; this.resourceOwnerId = response.resourceOwnerId; this.signName = response.signName; this.smsUpExtendCode = response.smsUpExtendCode; this.templateCode = response.templateCode; this.templateParam = response.templateParam; } /** * OutId. */ public Builder outId(String outId) { this.putQueryParameter("OutId", outId); this.outId = outId; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * PhoneNumbers. */ public Builder phoneNumbers(String phoneNumbers) { this.putQueryParameter("PhoneNumbers", phoneNumbers); this.phoneNumbers = phoneNumbers; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * SignName. */ public Builder signName(String signName) { this.putQueryParameter("SignName", signName); this.signName = signName; return this; } /** * SmsUpExtendCode. */ public Builder smsUpExtendCode(String smsUpExtendCode) { this.putQueryParameter("SmsUpExtendCode", smsUpExtendCode); this.smsUpExtendCode = smsUpExtendCode; return this; } /** * TemplateCode. */ public Builder templateCode(String templateCode) { this.putQueryParameter("TemplateCode", templateCode); this.templateCode = templateCode; return this; } /** * TemplateParam. */ public Builder templateParam(String templateParam) { this.putQueryParameter("TemplateParam", templateParam); this.templateParam = templateParam; return this; } @Override public SendSmsRequest build() { return new SendSmsRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy