public class ReInitDiskRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
Boolean |
autoStartInstance
Specifies whether to automatically start the instance after the disk is re-initialized.
|
String |
diskId
The ID of the disk.
|
String |
keyPairName
The name of the key pair.
|
String |
ownerAccount |
Long |
ownerId |
String |
password
Specifies whether to reset the password of the instance when you re-initialize its system disk.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
securityEnhancementStrategy
Specifies whether to use Security Center free of charge after the system disk is re-initialized.
|
构造器和说明 |
---|
ReInitDiskRequest() |
限定符和类型 | 方法和说明 |
---|---|
static ReInitDiskRequest |
build(Map<String,?> map) |
Boolean |
getAutoStartInstance() |
String |
getDiskId() |
String |
getKeyPairName() |
String |
getOwnerAccount() |
Long |
getOwnerId() |
String |
getPassword() |
String |
getResourceOwnerAccount() |
Long |
getResourceOwnerId() |
String |
getSecurityEnhancementStrategy() |
ReInitDiskRequest |
setAutoStartInstance(Boolean autoStartInstance) |
ReInitDiskRequest |
setDiskId(String diskId) |
ReInitDiskRequest |
setKeyPairName(String keyPairName) |
ReInitDiskRequest |
setOwnerAccount(String ownerAccount) |
ReInitDiskRequest |
setOwnerId(Long ownerId) |
ReInitDiskRequest |
setPassword(String password) |
ReInitDiskRequest |
setResourceOwnerAccount(String resourceOwnerAccount) |
ReInitDiskRequest |
setResourceOwnerId(Long resourceOwnerId) |
ReInitDiskRequest |
setSecurityEnhancementStrategy(String securityEnhancementStrategy) |
@NameInMap(value="AutoStartInstance") public Boolean autoStartInstance
Specifies whether to automatically start the instance after the disk is re-initialized.
Default value: false.
example:true
@NameInMap(value="DiskId") public String diskId
The ID of the disk.
This parameter is required.
example:d-bp67acfmxazb4ph****
@NameInMap(value="KeyPairName") public String keyPairName
The name of the key pair. This parameter is empty by default.
example:The parameter is applicable only to Linux instances. You can bind an SSH key pair to an instance as the logon credential when you re-initialize the system disk of the instance. After the SSH key pair is bound, the username and password-based logon method is disabled for the instance.
testKeyPairName
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Password") public String password
Specifies whether to reset the password of the instance when you re-initialize its system disk. The password must be 8 to 30 characters in length and must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include:
()`~!@#$%^&*-_+=|{}[]:;\\"<>,.?/
For Windows instances, passwords cannot start with a forward slash (/).
example:If the
Password
parameter is specified, we recommend that you send requests over HTTPS to prevent password leaks.
EcsV587!
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SecurityEnhancementStrategy") public String securityEnhancementStrategy
Specifies whether to use Security Center free of charge after the system disk is re-initialized. Valid values:
Default value: Deactive.
example:Active
public static ReInitDiskRequest build(Map<String,?> map) throws Exception
Exception
public ReInitDiskRequest setAutoStartInstance(Boolean autoStartInstance)
public Boolean getAutoStartInstance()
public ReInitDiskRequest setDiskId(String diskId)
public String getDiskId()
public ReInitDiskRequest setKeyPairName(String keyPairName)
public String getKeyPairName()
public ReInitDiskRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public ReInitDiskRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public ReInitDiskRequest setPassword(String password)
public String getPassword()
public ReInitDiskRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public ReInitDiskRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public ReInitDiskRequest setSecurityEnhancementStrategy(String securityEnhancementStrategy)
public String getSecurityEnhancementStrategy()
Copyright © 2024. All rights reserved.