public class ImportKeyPairRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| ImportKeyPairRequest() | 
| ImportKeyPairRequest(ImportKeyPairRequest source)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. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getKeyName()Get 密钥对名称,可由数字,字母和下划线组成,长度不超过25个字符。 | 
| Long | getProjectId()Get 密钥对创建后所属的[项目](https://cloud.tencent.com/document/product/378/10861)ID。 可以通过以下方式获取项目ID:通过[项目列表](https://console.cloud.tencent.com/project)查询项目ID。通过调用接口 [DescribeProjects](https://cloud.tencent.com/document/api/651/78725),取返回信息中的 `projectId ` 获取项目ID。如果是默认项目,直接填0就可以。 | 
| String | getPublicKey()Get 密钥对的公钥内容,`OpenSSH RSA` 格式。 | 
| TagSpecification[] | getTagSpecification()Get 标签描述列表。通过指定该参数可以同时绑定标签到密钥对。 | 
| void | setKeyName(String KeyName)Set 密钥对名称,可由数字,字母和下划线组成,长度不超过25个字符。 | 
| void | setProjectId(Long ProjectId)Set 密钥对创建后所属的[项目](https://cloud.tencent.com/document/product/378/10861)ID。 可以通过以下方式获取项目ID:通过[项目列表](https://console.cloud.tencent.com/project)查询项目ID。通过调用接口 [DescribeProjects](https://cloud.tencent.com/document/api/651/78725),取返回信息中的 `projectId ` 获取项目ID。如果是默认项目,直接填0就可以。 | 
| void | setPublicKey(String PublicKey)Set 密钥对的公钥内容,`OpenSSH RSA` 格式。 | 
| void | setTagSpecification(TagSpecification[] TagSpecification)Set 标签描述列表。通过指定该参数可以同时绑定标签到密钥对。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic ImportKeyPairRequest()
public ImportKeyPairRequest(ImportKeyPairRequest source)
public String getKeyName()
public void setKeyName(String KeyName)
KeyName - 密钥对名称,可由数字,字母和下划线组成,长度不超过25个字符。public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId - 密钥对创建后所属的[项目](https://cloud.tencent.com/document/product/378/10861)ID。public String getPublicKey()
public void setPublicKey(String PublicKey)
PublicKey - 密钥对的公钥内容,`OpenSSH RSA` 格式。public TagSpecification[] getTagSpecification()
public void setTagSpecification(TagSpecification[] TagSpecification)
TagSpecification - 标签描述列表。通过指定该参数可以同时绑定标签到密钥对。Copyright © 2025. All rights reserved.