com.aliyun.sdk.service.cloudapi20160714.models.SetDomainCertificateRequest Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cloudapi20160714.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link SetDomainCertificateRequest} extends {@link RequestModel}
*
* SetDomainCertificateRequest
*/
public class SetDomainCertificateRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CaCertificateBody")
private String caCertificateBody;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CertificateBody")
private String certificateBody;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CertificateName")
@com.aliyun.core.annotation.Validation(required = true)
private String certificateName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CertificatePrivateKey")
private String certificatePrivateKey;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DomainName")
@com.aliyun.core.annotation.Validation(required = true)
private String domainName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GroupId")
@com.aliyun.core.annotation.Validation(required = true)
private String groupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityToken")
private String securityToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SslVerifyDepth")
private String sslVerifyDepth;
private SetDomainCertificateRequest(Builder builder) {
super(builder);
this.caCertificateBody = builder.caCertificateBody;
this.certificateBody = builder.certificateBody;
this.certificateName = builder.certificateName;
this.certificatePrivateKey = builder.certificatePrivateKey;
this.domainName = builder.domainName;
this.groupId = builder.groupId;
this.securityToken = builder.securityToken;
this.sslVerifyDepth = builder.sslVerifyDepth;
}
public static Builder builder() {
return new Builder();
}
public static SetDomainCertificateRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return caCertificateBody
*/
public String getCaCertificateBody() {
return this.caCertificateBody;
}
/**
* @return certificateBody
*/
public String getCertificateBody() {
return this.certificateBody;
}
/**
* @return certificateName
*/
public String getCertificateName() {
return this.certificateName;
}
/**
* @return certificatePrivateKey
*/
public String getCertificatePrivateKey() {
return this.certificatePrivateKey;
}
/**
* @return domainName
*/
public String getDomainName() {
return this.domainName;
}
/**
* @return groupId
*/
public String getGroupId() {
return this.groupId;
}
/**
* @return securityToken
*/
public String getSecurityToken() {
return this.securityToken;
}
/**
* @return sslVerifyDepth
*/
public String getSslVerifyDepth() {
return this.sslVerifyDepth;
}
public static final class Builder extends Request.Builder {
private String caCertificateBody;
private String certificateBody;
private String certificateName;
private String certificatePrivateKey;
private String domainName;
private String groupId;
private String securityToken;
private String sslVerifyDepth;
private Builder() {
super();
}
private Builder(SetDomainCertificateRequest request) {
super(request);
this.caCertificateBody = request.caCertificateBody;
this.certificateBody = request.certificateBody;
this.certificateName = request.certificateName;
this.certificatePrivateKey = request.certificatePrivateKey;
this.domainName = request.domainName;
this.groupId = request.groupId;
this.securityToken = request.securityToken;
this.sslVerifyDepth = request.sslVerifyDepth;
}
/**
* The content of the CA certificate.
*/
public Builder caCertificateBody(String caCertificateBody) {
this.putQueryParameter("CaCertificateBody", caCertificateBody);
this.caCertificateBody = caCertificateBody;
return this;
}
/**
* The certificate content.
*/
public Builder certificateBody(String certificateBody) {
this.putQueryParameter("CertificateBody", certificateBody);
this.certificateBody = certificateBody;
return this;
}
/**
* The name of the SSL certificate.
*/
public Builder certificateName(String certificateName) {
this.putQueryParameter("CertificateName", certificateName);
this.certificateName = certificateName;
return this;
}
/**
* The private key of the SSL certificate.
*/
public Builder certificatePrivateKey(String certificatePrivateKey) {
this.putQueryParameter("CertificatePrivateKey", certificatePrivateKey);
this.certificatePrivateKey = certificatePrivateKey;
return this;
}
/**
* The custom domain name.
*/
public Builder domainName(String domainName) {
this.putQueryParameter("DomainName", domainName);
this.domainName = domainName;
return this;
}
/**
* The ID of the API group to which the domain name is bound. This ID is generated by the system and globally unique.
*/
public Builder groupId(String groupId) {
this.putQueryParameter("GroupId", groupId);
this.groupId = groupId;
return this;
}
/**
* SecurityToken.
*/
public Builder securityToken(String securityToken) {
this.putQueryParameter("SecurityToken", securityToken);
this.securityToken = securityToken;
return this;
}
/**
* The certificate verification depth.
*/
public Builder sslVerifyDepth(String sslVerifyDepth) {
this.putQueryParameter("SslVerifyDepth", sslVerifyDepth);
this.sslVerifyDepth = sslVerifyDepth;
return this;
}
@Override
public SetDomainCertificateRequest build() {
return new SetDomainCertificateRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy