public class ImportKeyPairRequest extends AbstractModel
Constructor and Description |
---|
ImportKeyPairRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getKeyName()
Get Key pair name, which can contain numbers, letters, and underscores, with a maximum length of 25 characters.
|
Long |
getProjectId()
Get The ID of the [project](https://intl.cloud.tencent.com/document/product/378/10861?from_cn_redirect=1) to which the created key pair belongs.
You can retrieve the project ID in two ways: Query the project ID in [Project Management](https://console.cloud.tencent.com/project). Call [DescribeProject](https://intl.cloud.tencent.com/document/api/378/4400?from_cn_redirect=1) and search for `projectId` in the response. |
String |
getPublicKey()
Get Content of the public key in the key pair in the `OpenSSH RSA` format.
|
void |
setKeyName(String KeyName)
Set Key pair name, which can contain numbers, letters, and underscores, with a maximum length of 25 characters.
|
void |
setProjectId(Long ProjectId)
Set The ID of the [project](https://intl.cloud.tencent.com/document/product/378/10861?from_cn_redirect=1) to which the created key pair belongs.
You can retrieve the project ID in two ways: Query the project ID in [Project Management](https://console.cloud.tencent.com/project). Call [DescribeProject](https://intl.cloud.tencent.com/document/api/378/4400?from_cn_redirect=1) and search for `projectId` in the response. |
void |
setPublicKey(String PublicKey)
Set Content of the public key in the key pair in the `OpenSSH RSA` format.
|
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 String getKeyName()
public void setKeyName(String KeyName)
KeyName
- Key pair name, which can contain numbers, letters, and underscores, with a maximum length of 25 characters.public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- The ID of the [project](https://intl.cloud.tencent.com/document/product/378/10861?from_cn_redirect=1) to which the created key pair belongs.public String getPublicKey()
public void setPublicKey(String PublicKey)
PublicKey
- Content of the public key in the key pair in the `OpenSSH RSA` format.Copyright © 2020. All rights reserved.