public static final class ModifyPrepayInstanceSpecRequest.Builder extends Object
public ModifyPrepayInstanceSpecRequest.Builder systemDisk(ModifyPrepayInstanceSpecRequest.SystemDisk systemDisk)
public ModifyPrepayInstanceSpecRequest.Builder sourceRegionId(String sourceRegionId)
public ModifyPrepayInstanceSpecRequest.Builder autoPay(Boolean autoPay)
* true: enables automatic payment. ** **Note** Make sure that your account balance is sufficient. Otherwise, your order becomes invalid and must be canceled. If your account balance is insufficient, you can set `AutoPay` to `false` to generate an unpaid order. Then, you can log on to the ECS console to pay for the order. * false: disables automatic payment. An order is generated but no payment is made. Default value: true. When `OperatorType` is set to `downgrade`, `AutoPay` is ignored.
public ModifyPrepayInstanceSpecRequest.Builder clientToken(String clientToken)
public ModifyPrepayInstanceSpecRequest.Builder disk(List<ModifyPrepayInstanceSpecRequest.Disk> disk)
public ModifyPrepayInstanceSpecRequest.Builder endTime(String endTime)
public ModifyPrepayInstanceSpecRequest.Builder instanceId(String instanceId)
public ModifyPrepayInstanceSpecRequest.Builder instanceType(String instanceType)
public ModifyPrepayInstanceSpecRequest.Builder migrateAcrossZone(Boolean migrateAcrossZone)
* true * false Default value: false. When you set `MigrateAcrossZone` to `true` and you upgrade the instance type of an instance based on the returned information, take note of the following items: Instance that resides in the classic network: * For [retired instance types](~~55263~~), when a non-I/O optimized instance is upgraded to an I/O optimized instance, the private IP address, disk device names, and software authorization codes of the instance change. For a Linux instance, basic disks (cloud) are identified as xvd\* such as xvda and xvdb, and ultra disks (cloud_efficiency) and standard SSDs (cloud_ssd) are identified as vd\* such as vda and vdb. * For [instance families available for purchase](~~25378~~), the private IP address of the instance changes. Instance that resides in a virtual private cloud (VPC): For retired instance types, when a non-I/O optimized instance is upgraded to an I/O optimized instance, the disk device names and software authorization codes of the instance change. For a Linux instance, basic disks (cloud) are identified as xvd\* such as xvda and xvdb, and ultra disks (cloud_efficiency) and standard SSDs (cloud_ssd) are identified as vd\* such as vda and vdb.
public ModifyPrepayInstanceSpecRequest.Builder modifyMode(String modifyMode)
public ModifyPrepayInstanceSpecRequest.Builder operatorType(String operatorType)
> This parameter is optional. The system can automatically determine whether the instance change is an upgrade or a downgrade. If you want to specify this parameter, refer to the following valid values of the parameter. * upgrade: upgrades the instance type. Make sure that the balance in your account is sufficient. * downgrade: downgrades the instance type. When the new instance type specified by the `InstanceType` parameter has lower specifications than the current instance type, set `OperatorType` to downgrade. > You can refer to the preceding usage notes on how to upgrade or downgrade the instance type.
public ModifyPrepayInstanceSpecRequest.Builder ownerAccount(String ownerAccount)
public ModifyPrepayInstanceSpecRequest.Builder ownerId(Long ownerId)
public ModifyPrepayInstanceSpecRequest.Builder rebootTime(String rebootTime)
public ModifyPrepayInstanceSpecRequest.Builder rebootWhenFinished(Boolean rebootWhenFinished)
* true: restart the instance immediately after the instance type is changed. * false: does not restart the instance immediately after the instance type is changed. Default value: false. > If the instance is in the **Stopping** state, the instance status remains unchanged and no operations are performed after the instance type is change regardless of whether you set the `RebootWhenFinished` parameter to true.
public ModifyPrepayInstanceSpecRequest.Builder regionId(String regionId)
public ModifyPrepayInstanceSpecRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ModifyPrepayInstanceSpecRequest.Builder resourceOwnerId(Long resourceOwnerId)
public ModifyPrepayInstanceSpecRequest build()
Copyright © 2024. All rights reserved.