com.aliyun.sdk.service.httpdns20160201.models.AddDomainRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-httpdns20160201 Show documentation
Show all versions of alibabacloud-httpdns20160201 Show documentation
Alibaba Cloud Httpdns (20160201) Async SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.httpdns20160201.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link AddDomainRequest} extends {@link RequestModel}
*
* AddDomainRequest
*/
public class AddDomainRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AccountId")
private String accountId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DomainName")
@com.aliyun.core.annotation.Validation(required = true)
private String domainName;
private AddDomainRequest(Builder builder) {
super(builder);
this.accountId = builder.accountId;
this.domainName = builder.domainName;
}
public static Builder builder() {
return new Builder();
}
public static AddDomainRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return accountId
*/
public String getAccountId() {
return this.accountId;
}
/**
* @return domainName
*/
public String getDomainName() {
return this.domainName;
}
public static final class Builder extends Request.Builder {
private String accountId;
private String domainName;
private Builder() {
super();
}
private Builder(AddDomainRequest request) {
super(request);
this.accountId = request.accountId;
this.domainName = request.domainName;
}
/**
* AccountId.
*/
public Builder accountId(String accountId) {
this.putQueryParameter("AccountId", accountId);
this.accountId = accountId;
return this;
}
/**
* DomainName.
*/
public Builder domainName(String domainName) {
this.putQueryParameter("DomainName", domainName);
this.domainName = domainName;
return this;
}
@Override
public AddDomainRequest build() {
return new AddDomainRequest(this);
}
}
}