public class AttachKeyPairRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
instanceIds
The IDs of instances to which you want to bind the SSH key pair.
|
String |
keyPairName
The name of the SSH key pair.
|
Long |
ownerId |
String |
regionId
The region ID of the SSH key pair.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
构造器和说明 |
---|
AttachKeyPairRequest() |
限定符和类型 | 方法和说明 |
---|---|
static AttachKeyPairRequest |
build(Map<String,?> map) |
String |
getInstanceIds() |
String |
getKeyPairName() |
Long |
getOwnerId() |
String |
getRegionId() |
String |
getResourceOwnerAccount() |
Long |
getResourceOwnerId() |
AttachKeyPairRequest |
setInstanceIds(String instanceIds) |
AttachKeyPairRequest |
setKeyPairName(String keyPairName) |
AttachKeyPairRequest |
setOwnerId(Long ownerId) |
AttachKeyPairRequest |
setRegionId(String regionId) |
AttachKeyPairRequest |
setResourceOwnerAccount(String resourceOwnerAccount) |
AttachKeyPairRequest |
setResourceOwnerId(Long resourceOwnerId) |
@NameInMap(value="InstanceIds") public String instanceIds
The IDs of instances to which you want to bind the SSH key pair. The value can be a JSON array that consists of up to 50 instance IDs. Separate multiple instance IDs with commas (,).
This parameter is required.
example:["i-bp1gtjxuuvwj17zr****", "i-bp17b7zrsbjwvmfy****", … "i-bp1h6jmbefj1ytos****"]
@NameInMap(value="KeyPairName") public String keyPairName
The name of the SSH key pair.
This parameter is required.
example:testKeyPairName
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The region ID of the SSH key pair. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
public static AttachKeyPairRequest build(Map<String,?> map) throws Exception
Exception
public AttachKeyPairRequest setInstanceIds(String instanceIds)
public String getInstanceIds()
public AttachKeyPairRequest setKeyPairName(String keyPairName)
public String getKeyPairName()
public AttachKeyPairRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public AttachKeyPairRequest setRegionId(String regionId)
public String getRegionId()
public AttachKeyPairRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public AttachKeyPairRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
Copyright © 2024. All rights reserved.