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

com.aliyun.sdk.service.cloudapi20160714.models.SetDomainCertificateRequest Maven / Gradle / Ivy

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

import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
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("ClientCertSDnPassThrough") private Boolean clientCertSDnPassThrough; @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("SslOcspEnable") private Boolean sslOcspEnable; @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.clientCertSDnPassThrough = builder.clientCertSDnPassThrough; this.domainName = builder.domainName; this.groupId = builder.groupId; this.securityToken = builder.securityToken; this.sslOcspEnable = builder.sslOcspEnable; 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 clientCertSDnPassThrough */ public Boolean getClientCertSDnPassThrough() { return this.clientCertSDnPassThrough; } /** * @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 sslOcspEnable */ public Boolean getSslOcspEnable() { return this.sslOcspEnable; } /** * @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 Boolean clientCertSDnPassThrough; private String domainName; private String groupId; private String securityToken; private Boolean sslOcspEnable; 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.clientCertSDnPassThrough = request.clientCertSDnPassThrough; this.domainName = request.domainName; this.groupId = request.groupId; this.securityToken = request.securityToken; this.sslOcspEnable = request.sslOcspEnable; this.sslVerifyDepth = request.sslVerifyDepth; } /** *

The content of the CA certificate.

* * example: *

Content of the CA certificate

*/ public Builder caCertificateBody(String caCertificateBody) { this.putQueryParameter("CaCertificateBody", caCertificateBody); this.caCertificateBody = caCertificateBody; return this; } /** *

The content of the certificate.

* * example: *

For more information, see the following request examples

*/ public Builder certificateBody(String certificateBody) { this.putQueryParameter("CertificateBody", certificateBody); this.certificateBody = certificateBody; return this; } /** *

The name of the SSL certificate.

*

This parameter is required.

* * example: *

test_cert

*/ public Builder certificateName(String certificateName) { this.putQueryParameter("CertificateName", certificateName); this.certificateName = certificateName; return this; } /** *

The private key of the SSL certificate.

* * example: *

For more information, see the following request examples

*/ public Builder certificatePrivateKey(String certificatePrivateKey) { this.putQueryParameter("CertificatePrivateKey", certificatePrivateKey); this.certificatePrivateKey = certificatePrivateKey; return this; } /** *

If pass ssl_client_s_dn of the cert to backend header "X-Client-S-Dn".

* * example: *

True

*/ public Builder clientCertSDnPassThrough(Boolean clientCertSDnPassThrough) { this.putQueryParameter("ClientCertSDnPassThrough", clientCertSDnPassThrough); this.clientCertSDnPassThrough = clientCertSDnPassThrough; return this; } /** *

The custom domain name.

*

This parameter is required.

* * example: *

api.demo.com

*/ public Builder domainName(String domainName) { this.putQueryParameter("DomainName", domainName); this.domainName = domainName; return this; } /** *

The ID of the API group. This ID is generated by the system and globally unique.

*

This parameter is required.

* * example: *

927d50c0f2e54b359919923d908bb015

*/ 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; } /** *

If enable ssl OCSP.

* * example: *

True

*/ public Builder sslOcspEnable(Boolean sslOcspEnable) { this.putQueryParameter("SslOcspEnable", sslOcspEnable); this.sslOcspEnable = sslOcspEnable; return this; } /** *

The certificate verification depth.

* * example: *

2

*/ 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