com.tencentcloudapi.ssl.v20191205.models.UploadCertificateRequest Maven / Gradle / Ivy
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.ssl.v20191205.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class UploadCertificateRequest extends AbstractModel {
/**
* Public key of the certificate
*/
@SerializedName("CertificatePublicKey")
@Expose
private String CertificatePublicKey;
/**
* Private key content. This parameter is required when the certificate type is SVR, and not required when the certificate type is CA.
*/
@SerializedName("CertificatePrivateKey")
@Expose
private String CertificatePrivateKey;
/**
* Certificate type. Valid values: `CA` (CA certificate) and `SVR` (server certificate). Default value: `SVR`
*/
@SerializedName("CertificateType")
@Expose
private String CertificateType;
/**
* Alias
*/
@SerializedName("Alias")
@Expose
private String Alias;
/**
* Project ID
*/
@SerializedName("ProjectId")
@Expose
private Long ProjectId;
/**
*
*/
@SerializedName("CertificateUse")
@Expose
private String CertificateUse;
/**
* The list of tags.
*/
@SerializedName("Tags")
@Expose
private Tags [] Tags;
/**
* Whether a certificate can be repeatedly uploaded.
*/
@SerializedName("Repeatable")
@Expose
private Boolean Repeatable;
/**
* Get Public key of the certificate
* @return CertificatePublicKey Public key of the certificate
*/
public String getCertificatePublicKey() {
return this.CertificatePublicKey;
}
/**
* Set Public key of the certificate
* @param CertificatePublicKey Public key of the certificate
*/
public void setCertificatePublicKey(String CertificatePublicKey) {
this.CertificatePublicKey = CertificatePublicKey;
}
/**
* Get Private key content. This parameter is required when the certificate type is SVR, and not required when the certificate type is CA.
* @return CertificatePrivateKey Private key content. This parameter is required when the certificate type is SVR, and not required when the certificate type is CA.
*/
public String getCertificatePrivateKey() {
return this.CertificatePrivateKey;
}
/**
* Set Private key content. This parameter is required when the certificate type is SVR, and not required when the certificate type is CA.
* @param CertificatePrivateKey Private key content. This parameter is required when the certificate type is SVR, and not required when the certificate type is CA.
*/
public void setCertificatePrivateKey(String CertificatePrivateKey) {
this.CertificatePrivateKey = CertificatePrivateKey;
}
/**
* Get Certificate type. Valid values: `CA` (CA certificate) and `SVR` (server certificate). Default value: `SVR`
* @return CertificateType Certificate type. Valid values: `CA` (CA certificate) and `SVR` (server certificate). Default value: `SVR`
*/
public String getCertificateType() {
return this.CertificateType;
}
/**
* Set Certificate type. Valid values: `CA` (CA certificate) and `SVR` (server certificate). Default value: `SVR`
* @param CertificateType Certificate type. Valid values: `CA` (CA certificate) and `SVR` (server certificate). Default value: `SVR`
*/
public void setCertificateType(String CertificateType) {
this.CertificateType = CertificateType;
}
/**
* Get Alias
* @return Alias Alias
*/
public String getAlias() {
return this.Alias;
}
/**
* Set Alias
* @param Alias Alias
*/
public void setAlias(String Alias) {
this.Alias = Alias;
}
/**
* Get Project ID
* @return ProjectId Project ID
*/
public Long getProjectId() {
return this.ProjectId;
}
/**
* Set Project ID
* @param ProjectId Project ID
*/
public void setProjectId(Long ProjectId) {
this.ProjectId = ProjectId;
}
/**
* Get
* @return CertificateUse
*/
public String getCertificateUse() {
return this.CertificateUse;
}
/**
* Set
* @param CertificateUse
*/
public void setCertificateUse(String CertificateUse) {
this.CertificateUse = CertificateUse;
}
/**
* Get The list of tags.
* @return Tags The list of tags.
*/
public Tags [] getTags() {
return this.Tags;
}
/**
* Set The list of tags.
* @param Tags The list of tags.
*/
public void setTags(Tags [] Tags) {
this.Tags = Tags;
}
/**
* Get Whether a certificate can be repeatedly uploaded.
* @return Repeatable Whether a certificate can be repeatedly uploaded.
*/
public Boolean getRepeatable() {
return this.Repeatable;
}
/**
* Set Whether a certificate can be repeatedly uploaded.
* @param Repeatable Whether a certificate can be repeatedly uploaded.
*/
public void setRepeatable(Boolean Repeatable) {
this.Repeatable = Repeatable;
}
public UploadCertificateRequest() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public UploadCertificateRequest(UploadCertificateRequest source) {
if (source.CertificatePublicKey != null) {
this.CertificatePublicKey = new String(source.CertificatePublicKey);
}
if (source.CertificatePrivateKey != null) {
this.CertificatePrivateKey = new String(source.CertificatePrivateKey);
}
if (source.CertificateType != null) {
this.CertificateType = new String(source.CertificateType);
}
if (source.Alias != null) {
this.Alias = new String(source.Alias);
}
if (source.ProjectId != null) {
this.ProjectId = new Long(source.ProjectId);
}
if (source.CertificateUse != null) {
this.CertificateUse = new String(source.CertificateUse);
}
if (source.Tags != null) {
this.Tags = new Tags[source.Tags.length];
for (int i = 0; i < source.Tags.length; i++) {
this.Tags[i] = new Tags(source.Tags[i]);
}
}
if (source.Repeatable != null) {
this.Repeatable = new Boolean(source.Repeatable);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "CertificatePublicKey", this.CertificatePublicKey);
this.setParamSimple(map, prefix + "CertificatePrivateKey", this.CertificatePrivateKey);
this.setParamSimple(map, prefix + "CertificateType", this.CertificateType);
this.setParamSimple(map, prefix + "Alias", this.Alias);
this.setParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.setParamSimple(map, prefix + "CertificateUse", this.CertificateUse);
this.setParamArrayObj(map, prefix + "Tags.", this.Tags);
this.setParamSimple(map, prefix + "Repeatable", this.Repeatable);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy