
com.tencentcloudapi.ssm.v20190923.models.CreateSSHKeyPairSecretRequest 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.ssm.v20190923.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CreateSSHKeyPairSecretRequest extends AbstractModel{
/**
* 凭据名称,同一region内不可重复,最长128字节,使用字母、数字或者 - _ 的组合,第一个字符必须为字母或者数字。
*/
@SerializedName("SecretName")
@Expose
private String SecretName;
/**
* 密钥对创建后所属的项目ID。
*/
@SerializedName("ProjectId")
@Expose
private Long ProjectId;
/**
* 描述信息,用于详细描述用途等,最大支持2048字节。
*/
@SerializedName("Description")
@Expose
private String Description;
/**
* 指定对凭据进行加密的KMS CMK。
如果为空则表示使用Secrets Manager为您默认创建的CMK进行加密。
您也可以指定在同region 下自行创建的KMS CMK进行加密。
*/
@SerializedName("KmsKeyId")
@Expose
private String KmsKeyId;
/**
* 标签列表。
*/
@SerializedName("Tags")
@Expose
private Tag [] Tags;
/**
* Get 凭据名称,同一region内不可重复,最长128字节,使用字母、数字或者 - _ 的组合,第一个字符必须为字母或者数字。
* @return SecretName 凭据名称,同一region内不可重复,最长128字节,使用字母、数字或者 - _ 的组合,第一个字符必须为字母或者数字。
*/
public String getSecretName() {
return this.SecretName;
}
/**
* Set 凭据名称,同一region内不可重复,最长128字节,使用字母、数字或者 - _ 的组合,第一个字符必须为字母或者数字。
* @param SecretName 凭据名称,同一region内不可重复,最长128字节,使用字母、数字或者 - _ 的组合,第一个字符必须为字母或者数字。
*/
public void setSecretName(String SecretName) {
this.SecretName = SecretName;
}
/**
* Get 密钥对创建后所属的项目ID。
* @return ProjectId 密钥对创建后所属的项目ID。
*/
public Long getProjectId() {
return this.ProjectId;
}
/**
* Set 密钥对创建后所属的项目ID。
* @param ProjectId 密钥对创建后所属的项目ID。
*/
public void setProjectId(Long ProjectId) {
this.ProjectId = ProjectId;
}
/**
* Get 描述信息,用于详细描述用途等,最大支持2048字节。
* @return Description 描述信息,用于详细描述用途等,最大支持2048字节。
*/
public String getDescription() {
return this.Description;
}
/**
* Set 描述信息,用于详细描述用途等,最大支持2048字节。
* @param Description 描述信息,用于详细描述用途等,最大支持2048字节。
*/
public void setDescription(String Description) {
this.Description = Description;
}
/**
* Get 指定对凭据进行加密的KMS CMK。
如果为空则表示使用Secrets Manager为您默认创建的CMK进行加密。
您也可以指定在同region 下自行创建的KMS CMK进行加密。
* @return KmsKeyId 指定对凭据进行加密的KMS CMK。
如果为空则表示使用Secrets Manager为您默认创建的CMK进行加密。
您也可以指定在同region 下自行创建的KMS CMK进行加密。
*/
public String getKmsKeyId() {
return this.KmsKeyId;
}
/**
* Set 指定对凭据进行加密的KMS CMK。
如果为空则表示使用Secrets Manager为您默认创建的CMK进行加密。
您也可以指定在同region 下自行创建的KMS CMK进行加密。
* @param KmsKeyId 指定对凭据进行加密的KMS CMK。
如果为空则表示使用Secrets Manager为您默认创建的CMK进行加密。
您也可以指定在同region 下自行创建的KMS CMK进行加密。
*/
public void setKmsKeyId(String KmsKeyId) {
this.KmsKeyId = KmsKeyId;
}
/**
* Get 标签列表。
* @return Tags 标签列表。
*/
public Tag [] getTags() {
return this.Tags;
}
/**
* Set 标签列表。
* @param Tags 标签列表。
*/
public void setTags(Tag [] Tags) {
this.Tags = Tags;
}
public CreateSSHKeyPairSecretRequest() {
}
/**
* 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 CreateSSHKeyPairSecretRequest(CreateSSHKeyPairSecretRequest source) {
if (source.SecretName != null) {
this.SecretName = new String(source.SecretName);
}
if (source.ProjectId != null) {
this.ProjectId = new Long(source.ProjectId);
}
if (source.Description != null) {
this.Description = new String(source.Description);
}
if (source.KmsKeyId != null) {
this.KmsKeyId = new String(source.KmsKeyId);
}
if (source.Tags != null) {
this.Tags = new Tag[source.Tags.length];
for (int i = 0; i < source.Tags.length; i++) {
this.Tags[i] = new Tag(source.Tags[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "SecretName", this.SecretName);
this.setParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.setParamSimple(map, prefix + "Description", this.Description);
this.setParamSimple(map, prefix + "KmsKeyId", this.KmsKeyId);
this.setParamArrayObj(map, prefix + "Tags.", this.Tags);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy