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

com.aliyun.sdk.service.dm20170622.models.CreateTemplateRequest Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.dm20170622.models;

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

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

CreateTemplateRequest

*/ public class CreateTemplateRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("FromType") @com.aliyun.core.annotation.Validation(maximum = 2, minimum = 1) private Integer fromType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Remark") private String remark; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SmsContent") private String smsContent; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SmsType") private Integer smsType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateName") @com.aliyun.core.annotation.Validation(required = true) private String templateName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateNickName") private String templateNickName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateSubject") private String templateSubject; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateText") private String templateText; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("TemplateType") @com.aliyun.core.annotation.Validation(maximum = 2) private Integer templateType; private CreateTemplateRequest(Builder builder) { super(builder); this.fromType = builder.fromType; this.ownerId = builder.ownerId; this.remark = builder.remark; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.smsContent = builder.smsContent; this.smsType = builder.smsType; this.templateName = builder.templateName; this.templateNickName = builder.templateNickName; this.templateSubject = builder.templateSubject; this.templateText = builder.templateText; this.templateType = builder.templateType; } public static Builder builder() { return new Builder(); } public static CreateTemplateRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return fromType */ public Integer getFromType() { return this.fromType; } /** * @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 smsContent */ public String getSmsContent() { return this.smsContent; } /** * @return smsType */ public Integer getSmsType() { return this.smsType; } /** * @return templateName */ public String getTemplateName() { return this.templateName; } /** * @return templateNickName */ public String getTemplateNickName() { return this.templateNickName; } /** * @return templateSubject */ public String getTemplateSubject() { return this.templateSubject; } /** * @return templateText */ public String getTemplateText() { return this.templateText; } /** * @return templateType */ public Integer getTemplateType() { return this.templateType; } public static final class Builder extends Request.Builder { private Integer fromType; private Long ownerId; private String remark; private String resourceOwnerAccount; private Long resourceOwnerId; private String smsContent; private Integer smsType; private String templateName; private String templateNickName; private String templateSubject; private String templateText; private Integer templateType; private Builder() { super(); } private Builder(CreateTemplateRequest request) { super(request); this.fromType = request.fromType; this.ownerId = request.ownerId; this.remark = request.remark; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.smsContent = request.smsContent; this.smsType = request.smsType; this.templateName = request.templateName; this.templateNickName = request.templateNickName; this.templateSubject = request.templateSubject; this.templateText = request.templateText; this.templateType = request.templateType; } /** * FromType. */ public Builder fromType(Integer fromType) { this.putQueryParameter("FromType", fromType); this.fromType = fromType; return this; } /** * 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; } /** * SmsContent. */ public Builder smsContent(String smsContent) { this.putQueryParameter("SmsContent", smsContent); this.smsContent = smsContent; return this; } /** * SmsType. */ public Builder smsType(Integer smsType) { this.putQueryParameter("SmsType", smsType); this.smsType = smsType; return this; } /** * TemplateName. */ public Builder templateName(String templateName) { this.putQueryParameter("TemplateName", templateName); this.templateName = templateName; return this; } /** * TemplateNickName. */ public Builder templateNickName(String templateNickName) { this.putQueryParameter("TemplateNickName", templateNickName); this.templateNickName = templateNickName; return this; } /** * TemplateSubject. */ public Builder templateSubject(String templateSubject) { this.putQueryParameter("TemplateSubject", templateSubject); this.templateSubject = templateSubject; return this; } /** * TemplateText. */ public Builder templateText(String templateText) { this.putQueryParameter("TemplateText", templateText); this.templateText = templateText; return this; } /** * TemplateType. */ public Builder templateType(Integer templateType) { this.putQueryParameter("TemplateType", templateType); this.templateType = templateType; return this; } @Override public CreateTemplateRequest build() { return new CreateTemplateRequest(this); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy