public class ImportKeyPairRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
ImportKeyPairRequest.ImportKeyPairRequestTag |
限定符和类型 | 字段和说明 |
---|---|
String |
keyPairName
The name of the key pair.
|
Long |
ownerId |
String |
publicKeyBody
The public key of the key pair.
|
String |
regionId
The region ID.
|
String |
resourceGroupId
The ID of the enterprise resource group to which the SSH key pair belongs.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
List<ImportKeyPairRequest.ImportKeyPairRequestTag> |
tag
The tags to add to the key pair.
|
构造器和说明 |
---|
ImportKeyPairRequest() |
限定符和类型 | 方法和说明 |
---|---|
static ImportKeyPairRequest |
build(Map<String,?> map) |
String |
getKeyPairName() |
Long |
getOwnerId() |
String |
getPublicKeyBody() |
String |
getRegionId() |
String |
getResourceGroupId() |
String |
getResourceOwnerAccount() |
Long |
getResourceOwnerId() |
List<ImportKeyPairRequest.ImportKeyPairRequestTag> |
getTag() |
ImportKeyPairRequest |
setKeyPairName(String keyPairName) |
ImportKeyPairRequest |
setOwnerId(Long ownerId) |
ImportKeyPairRequest |
setPublicKeyBody(String publicKeyBody) |
ImportKeyPairRequest |
setRegionId(String regionId) |
ImportKeyPairRequest |
setResourceGroupId(String resourceGroupId) |
ImportKeyPairRequest |
setResourceOwnerAccount(String resourceOwnerAccount) |
ImportKeyPairRequest |
setResourceOwnerId(Long resourceOwnerId) |
ImportKeyPairRequest |
setTag(List<ImportKeyPairRequest.ImportKeyPairRequestTag> tag) |
@NameInMap(value="KeyPairName") public String keyPairName
The name of the key pair. The name must be unique. It must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
This parameter is required.
example:testKeyPairName
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PublicKeyBody") public String publicKeyBody
The public key of the key pair.
This parameter is required.
example:ABC1234567
@NameInMap(value="RegionId") public String regionId
The region ID. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the enterprise resource group to which the SSH key pair belongs.
example:rg-bp67acfmxazb4p****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="Tag") public List<ImportKeyPairRequest.ImportKeyPairRequestTag> tag
The tags to add to the key pair.
public static ImportKeyPairRequest build(Map<String,?> map) throws Exception
Exception
public ImportKeyPairRequest setKeyPairName(String keyPairName)
public String getKeyPairName()
public ImportKeyPairRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public ImportKeyPairRequest setPublicKeyBody(String publicKeyBody)
public String getPublicKeyBody()
public ImportKeyPairRequest setRegionId(String regionId)
public String getRegionId()
public ImportKeyPairRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public ImportKeyPairRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public ImportKeyPairRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public ImportKeyPairRequest setTag(List<ImportKeyPairRequest.ImportKeyPairRequestTag> tag)
public List<ImportKeyPairRequest.ImportKeyPairRequestTag> getTag()
Copyright © 2024. All rights reserved.