com.aliyun.sdk.service.dm20170622.models.SingleSendMailV2Request Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-dm20170622 Show documentation
Show all versions of alibabacloud-dm20170622 Show documentation
Alibaba Cloud Dm (20170622) Async SDK for Java
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 SingleSendMailV2Request} extends {@link RequestModel}
*
* SingleSendMailV2Request
*/
public class SingleSendMailV2Request extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AccountName")
@com.aliyun.core.annotation.Validation(required = true)
private String accountName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AddressType")
@com.aliyun.core.annotation.Validation(required = true, maximum = 1)
private Integer addressType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClickTrace")
private String clickTrace;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FromAlias")
private String fromAlias;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HtmlBody")
private String htmlBody;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("HtmlBodyPlaceHolders")
private java.util.List < HtmlBodyPlaceHolders> htmlBodyPlaceHolders;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ReplyAddress")
private String replyAddress;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ReplyAddressAlias")
private String replyAddressAlias;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ReplyToAddress")
@com.aliyun.core.annotation.Validation(required = true)
private Boolean replyToAddress;
@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("Subject")
@com.aliyun.core.annotation.Validation(required = true)
private String subject;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TagName")
private String tagName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TextBody")
private String textBody;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ToAddress")
@com.aliyun.core.annotation.Validation(required = true)
private String toAddress;
private SingleSendMailV2Request(Builder builder) {
super(builder);
this.accountName = builder.accountName;
this.addressType = builder.addressType;
this.clickTrace = builder.clickTrace;
this.fromAlias = builder.fromAlias;
this.htmlBody = builder.htmlBody;
this.htmlBodyPlaceHolders = builder.htmlBodyPlaceHolders;
this.ownerId = builder.ownerId;
this.replyAddress = builder.replyAddress;
this.replyAddressAlias = builder.replyAddressAlias;
this.replyToAddress = builder.replyToAddress;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.subject = builder.subject;
this.tagName = builder.tagName;
this.textBody = builder.textBody;
this.toAddress = builder.toAddress;
}
public static Builder builder() {
return new Builder();
}
public static SingleSendMailV2Request create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return accountName
*/
public String getAccountName() {
return this.accountName;
}
/**
* @return addressType
*/
public Integer getAddressType() {
return this.addressType;
}
/**
* @return clickTrace
*/
public String getClickTrace() {
return this.clickTrace;
}
/**
* @return fromAlias
*/
public String getFromAlias() {
return this.fromAlias;
}
/**
* @return htmlBody
*/
public String getHtmlBody() {
return this.htmlBody;
}
/**
* @return htmlBodyPlaceHolders
*/
public java.util.List < HtmlBodyPlaceHolders> getHtmlBodyPlaceHolders() {
return this.htmlBodyPlaceHolders;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return replyAddress
*/
public String getReplyAddress() {
return this.replyAddress;
}
/**
* @return replyAddressAlias
*/
public String getReplyAddressAlias() {
return this.replyAddressAlias;
}
/**
* @return replyToAddress
*/
public Boolean getReplyToAddress() {
return this.replyToAddress;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return subject
*/
public String getSubject() {
return this.subject;
}
/**
* @return tagName
*/
public String getTagName() {
return this.tagName;
}
/**
* @return textBody
*/
public String getTextBody() {
return this.textBody;
}
/**
* @return toAddress
*/
public String getToAddress() {
return this.toAddress;
}
public static final class Builder extends Request.Builder {
private String accountName;
private Integer addressType;
private String clickTrace;
private String fromAlias;
private String htmlBody;
private java.util.List < HtmlBodyPlaceHolders> htmlBodyPlaceHolders;
private Long ownerId;
private String replyAddress;
private String replyAddressAlias;
private Boolean replyToAddress;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String subject;
private String tagName;
private String textBody;
private String toAddress;
private Builder() {
super();
}
private Builder(SingleSendMailV2Request request) {
super(request);
this.accountName = request.accountName;
this.addressType = request.addressType;
this.clickTrace = request.clickTrace;
this.fromAlias = request.fromAlias;
this.htmlBody = request.htmlBody;
this.htmlBodyPlaceHolders = request.htmlBodyPlaceHolders;
this.ownerId = request.ownerId;
this.replyAddress = request.replyAddress;
this.replyAddressAlias = request.replyAddressAlias;
this.replyToAddress = request.replyToAddress;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.subject = request.subject;
this.tagName = request.tagName;
this.textBody = request.textBody;
this.toAddress = request.toAddress;
}
/**
* AccountName.
*/
public Builder accountName(String accountName) {
this.putQueryParameter("AccountName", accountName);
this.accountName = accountName;
return this;
}
/**
* AddressType.
*/
public Builder addressType(Integer addressType) {
this.putQueryParameter("AddressType", addressType);
this.addressType = addressType;
return this;
}
/**
* ClickTrace.
*/
public Builder clickTrace(String clickTrace) {
this.putQueryParameter("ClickTrace", clickTrace);
this.clickTrace = clickTrace;
return this;
}
/**
* FromAlias.
*/
public Builder fromAlias(String fromAlias) {
this.putQueryParameter("FromAlias", fromAlias);
this.fromAlias = fromAlias;
return this;
}
/**
* HtmlBody.
*/
public Builder htmlBody(String htmlBody) {
this.putQueryParameter("HtmlBody", htmlBody);
this.htmlBody = htmlBody;
return this;
}
/**
* HtmlBodyPlaceHolders.
*/
public Builder htmlBodyPlaceHolders(java.util.List < HtmlBodyPlaceHolders> htmlBodyPlaceHolders) {
String htmlBodyPlaceHoldersShrink = shrink(htmlBodyPlaceHolders, "HtmlBodyPlaceHolders", "json");
this.putQueryParameter("HtmlBodyPlaceHolders", htmlBodyPlaceHoldersShrink);
this.htmlBodyPlaceHolders = htmlBodyPlaceHolders;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* ReplyAddress.
*/
public Builder replyAddress(String replyAddress) {
this.putQueryParameter("ReplyAddress", replyAddress);
this.replyAddress = replyAddress;
return this;
}
/**
* ReplyAddressAlias.
*/
public Builder replyAddressAlias(String replyAddressAlias) {
this.putQueryParameter("ReplyAddressAlias", replyAddressAlias);
this.replyAddressAlias = replyAddressAlias;
return this;
}
/**
* ReplyToAddress.
*/
public Builder replyToAddress(Boolean replyToAddress) {
this.putQueryParameter("ReplyToAddress", replyToAddress);
this.replyToAddress = replyToAddress;
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;
}
/**
* Subject.
*/
public Builder subject(String subject) {
this.putQueryParameter("Subject", subject);
this.subject = subject;
return this;
}
/**
* TagName.
*/
public Builder tagName(String tagName) {
this.putQueryParameter("TagName", tagName);
this.tagName = tagName;
return this;
}
/**
* TextBody.
*/
public Builder textBody(String textBody) {
this.putQueryParameter("TextBody", textBody);
this.textBody = textBody;
return this;
}
/**
* ToAddress.
*/
public Builder toAddress(String toAddress) {
this.putQueryParameter("ToAddress", toAddress);
this.toAddress = toAddress;
return this;
}
@Override
public SingleSendMailV2Request build() {
return new SingleSendMailV2Request(this);
}
}
public static class HtmlBodyPlaceHolders extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PlaceHolders")
private java.util.Map < String, String > placeHolders;
@com.aliyun.core.annotation.NameInMap("ToAddress")
private String toAddress;
private HtmlBodyPlaceHolders(Builder builder) {
this.placeHolders = builder.placeHolders;
this.toAddress = builder.toAddress;
}
public static Builder builder() {
return new Builder();
}
public static HtmlBodyPlaceHolders create() {
return builder().build();
}
/**
* @return placeHolders
*/
public java.util.Map < String, String > getPlaceHolders() {
return this.placeHolders;
}
/**
* @return toAddress
*/
public String getToAddress() {
return this.toAddress;
}
public static final class Builder {
private java.util.Map < String, String > placeHolders;
private String toAddress;
/**
* PlaceHolders.
*/
public Builder placeHolders(java.util.Map < String, String > placeHolders) {
this.placeHolders = placeHolders;
return this;
}
/**
* ToAddress.
*/
public Builder toAddress(String toAddress) {
this.toAddress = toAddress;
return this;
}
public HtmlBodyPlaceHolders build() {
return new HtmlBodyPlaceHolders(this);
}
}
}
}