public static final class ReInitDiskRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
ReInitDiskRequest.Builder |
autoStartInstance(Boolean autoStartInstance)
Specifies whether to automatically start the instance after the disk is re-initialized.
|
ReInitDiskRequest |
build() |
ReInitDiskRequest.Builder |
diskId(String diskId)
The ID of the disk.
|
ReInitDiskRequest.Builder |
keyPairName(String keyPairName)
The name of the key pair.
|
ReInitDiskRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
ReInitDiskRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
ReInitDiskRequest.Builder |
password(String password)
Specifies whether to reset the password of the instance when you re-initialize its system disk.
|
ReInitDiskRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
ReInitDiskRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
ReInitDiskRequest.Builder |
securityEnhancementStrategy(String securityEnhancementStrategy)
Specifies whether to use Security Center free of charge after the system disk is re-initialized.
|
ReInitDiskRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
public ReInitDiskRequest.Builder sourceRegionId(String sourceRegionId)
public ReInitDiskRequest.Builder autoStartInstance(Boolean autoStartInstance)
Default value: false.
public ReInitDiskRequest.Builder diskId(String diskId)
public ReInitDiskRequest.Builder keyPairName(String keyPairName)
> 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.
public ReInitDiskRequest.Builder ownerAccount(String ownerAccount)
public ReInitDiskRequest.Builder ownerId(Long ownerId)
public ReInitDiskRequest.Builder password(String password)
()`~!@#$%^&*-_+=|{}[]:;\"<>,.?/ For Windows instances, passwords cannot start with a forward slash (/). > If the `Password` parameter is specified, we recommend that you send requests over HTTPS to prevent password leaks.
public ReInitDiskRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ReInitDiskRequest.Builder resourceOwnerId(Long resourceOwnerId)
public ReInitDiskRequest.Builder securityEnhancementStrategy(String securityEnhancementStrategy)
* Active: uses Security Center free of charge after the system disk is re-initialized. This value is applicable to only public images. * Deactive: does not use Security Center free of charge after the system disk is re-initialized. This value is applicable to all images. Default value: Deactive.
public ReInitDiskRequest build()
Copyright © 2024. All rights reserved.