public class ImportKeyPairRequest extends AbstractModel
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。 通过调用接口 [DescribeProject](https://cloud.tencent.com/document/api/378/4400),取返回信息中的 `projectId ` 获取项目ID。 如果是默认项目,直接填0就可以。 |
String |
getPublicKey()
Get 密钥对的公钥内容,`OpenSSH RSA` 格式。
|
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。 通过调用接口 [DescribeProject](https://cloud.tencent.com/document/api/378/4400),取返回信息中的 `projectId ` 获取项目ID。 如果是默认项目,直接填0就可以。 |
void |
setPublicKey(String PublicKey)
Set 密钥对的公钥内容,`OpenSSH RSA` 格式。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public 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` 格式。Copyright © 2021. All rights reserved.