com.aliyun.sdk.service.dysmsapi20170525.models.AddSmsTemplateRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-dysmsapi20170525 Show documentation
Show all versions of alibabacloud-dysmsapi20170525 Show documentation
Alibaba Cloud Dysmsapi (20170525) Async SDK for Java
// 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 AddSmsTemplateRequest} extends {@link RequestModel}
*
* AddSmsTemplateRequest
*/
public class AddSmsTemplateRequest extends Request {
@Query
@NameInMap("OwnerId")
private Long ownerId;
@Query
@NameInMap("Remark")
@Validation(required = true)
private String remark;
@Query
@NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@Query
@NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@Query
@NameInMap("TemplateContent")
@Validation(required = true)
private String templateContent;
@Query
@NameInMap("TemplateName")
@Validation(required = true)
private String templateName;
@Query
@NameInMap("TemplateType")
@Validation(required = true)
private Integer templateType;
private AddSmsTemplateRequest(Builder builder) {
super(builder);
this.ownerId = builder.ownerId;
this.remark = builder.remark;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.templateContent = builder.templateContent;
this.templateName = builder.templateName;
this.templateType = builder.templateType;
}
public static Builder builder() {
return new Builder();
}
public static AddSmsTemplateRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return remark
*/
public String getRemark() {
return this.remark;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return templateContent
*/
public String getTemplateContent() {
return this.templateContent;
}
/**
* @return templateName
*/
public String getTemplateName() {
return this.templateName;
}
/**
* @return templateType
*/
public Integer getTemplateType() {
return this.templateType;
}
public static final class Builder extends Request.Builder {
private Long ownerId;
private String remark;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String templateContent;
private String templateName;
private Integer templateType;
private Builder() {
super();
}
private Builder(AddSmsTemplateRequest response) {
super(response);
this.ownerId = response.ownerId;
this.remark = response.remark;
this.resourceOwnerAccount = response.resourceOwnerAccount;
this.resourceOwnerId = response.resourceOwnerId;
this.templateContent = response.templateContent;
this.templateName = response.templateName;
this.templateType = response.templateType;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* Remark.
*/
public Builder remark(String remark) {
this.putQueryParameter("Remark", remark);
this.remark = remark;
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;
}
/**
* TemplateContent.
*/
public Builder templateContent(String templateContent) {
this.putQueryParameter("TemplateContent", templateContent);
this.templateContent = templateContent;
return this;
}
/**
* TemplateName.
*/
public Builder templateName(String templateName) {
this.putQueryParameter("TemplateName", templateName);
this.templateName = templateName;
return this;
}
/**
* TemplateType.
*/
public Builder templateType(Integer templateType) {
this.putQueryParameter("TemplateType", templateType);
this.templateType = templateType;
return this;
}
@Override
public AddSmsTemplateRequest build() {
return new AddSmsTemplateRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy