Class ImportKeyPairRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.cvm.v20170312.models.ImportKeyPairRequest
-
public class ImportKeyPairRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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` 格式。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。
通过调用接口 [DescribeProject](https://cloud.tencent.com/document/api/378/4400),取返回信息中的 `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.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
ImportKeyPairRequest
public ImportKeyPairRequest()
-
ImportKeyPairRequest
public 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.
-
-
Method Detail
-
getKeyName
public String getKeyName()
Get 密钥对名称,可由数字,字母和下划线组成,长度不超过25个字符。- Returns:
- KeyName 密钥对名称,可由数字,字母和下划线组成,长度不超过25个字符。
-
setKeyName
public void setKeyName(String KeyName)
Set 密钥对名称,可由数字,字母和下划线组成,长度不超过25个字符。- Parameters:
KeyName
- 密钥对名称,可由数字,字母和下划线组成,长度不超过25个字符。
-
getProjectId
public 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就可以。
- Returns:
- ProjectId 密钥对创建后所属的[项目](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就可以。
- 通过[项目列表](https://console.cloud.tencent.com/project)查询项目ID。
- 通过[项目列表](https://console.cloud.tencent.com/project)查询项目ID。
-
setProjectId
public 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就可以。
- Parameters:
ProjectId
- 密钥对创建后所属的[项目](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就可以。
- 通过[项目列表](https://console.cloud.tencent.com/project)查询项目ID。
- 通过[项目列表](https://console.cloud.tencent.com/project)查询项目ID。
-
getPublicKey
public String getPublicKey()
Get 密钥对的公钥内容,`OpenSSH RSA` 格式。- Returns:
- PublicKey 密钥对的公钥内容,`OpenSSH RSA` 格式。
-
setPublicKey
public void setPublicKey(String PublicKey)
Set 密钥对的公钥内容,`OpenSSH RSA` 格式。- Parameters:
PublicKey
- 密钥对的公钥内容,`OpenSSH RSA` 格式。
-
getTagSpecification
public TagSpecification[] getTagSpecification()
Get 标签描述列表。通过指定该参数可以同时绑定标签到密钥对。- Returns:
- TagSpecification 标签描述列表。通过指定该参数可以同时绑定标签到密钥对。
-
setTagSpecification
public void setTagSpecification(TagSpecification[] TagSpecification)
Set 标签描述列表。通过指定该参数可以同时绑定标签到密钥对。- Parameters:
TagSpecification
- 标签描述列表。通过指定该参数可以同时绑定标签到密钥对。
-
-