public static final class ModifyInstanceSpecRequest.Builder extends Object
public ModifyInstanceSpecRequest.Builder systemDisk(ModifyInstanceSpecRequest.SystemDisk systemDisk)
public ModifyInstanceSpecRequest.Builder temporary(ModifyInstanceSpecRequest.Temporary temporary)
public ModifyInstanceSpecRequest.Builder sourceRegionId(String sourceRegionId)
public ModifyInstanceSpecRequest.Builder allowMigrateAcrossZone(Boolean allowMigrateAcrossZone)
* true * false Default value: false. When you set `AllowMigrateAcrossZone` to true and upgrade the 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~~), when the instance type of an instance is changed, the private IP address of the instance changes. Instance that resides in a virtual private cloud (VPC): For [retired instance types](~~55263~~), 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 ModifyInstanceSpecRequest.Builder async(Boolean async)
* true * false Default value: false.
public ModifyInstanceSpecRequest.Builder clientToken(String clientToken)
public ModifyInstanceSpecRequest.Builder disk(List<ModifyInstanceSpecRequest.Disk> disk)
public ModifyInstanceSpecRequest.Builder dryRun(Boolean dryRun)
* true: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, service limits, and unavailable ECS resources. If the request fails the dry run, an error message is returned. If the request passes the dry run, the `DryRunOperation` error code is returned. * false (default): performs a dry run and performs the actual request.
public ModifyInstanceSpecRequest.Builder instanceId(String instanceId)
public ModifyInstanceSpecRequest.Builder instanceType(String instanceType)
public ModifyInstanceSpecRequest.Builder internetMaxBandwidthIn(Integer internetMaxBandwidthIn)
* When the purchased outbound public bandwidth is less than or equal to 10 Mbit/s, the valid value of this parameter ranges from 1 to 10 and the default value is 10. * When the purchased outbound public bandwidth is greater than 10 Mbit/s, the valid values of this parameter are 1 to the `InternetMaxBandwidthOut` value and the default value is the `InternetMaxBandwidthOut` value. > When the **pay-by-traffic** billing method for network usage is used, the maximum inbound and outbound bandwidths are used as the upper limits of bandwidths instead of guaranteed performance specifications. In scenarios where demand outstrips resource supplies, these maximum bandwidth values may not be reached. If you want guaranteed bandwidths for your instance, use the **pay-by-bandwidth** billing method for network usage.
public ModifyInstanceSpecRequest.Builder internetMaxBandwidthOut(Integer internetMaxBandwidthOut)
> When the **pay-by-traffic** billing method for network usage is used, the maximum inbound and outbound bandwidths are used as the upper limits of bandwidths instead of guaranteed performance specifications. In scenarios where demand outstrips resource supplies, these maximum bandwidth values may not be reached. If you want guaranteed bandwidths for your instance, use the **pay-by-bandwidth** billing method for network usage.
public ModifyInstanceSpecRequest.Builder modifyMode(String modifyMode)
Valid values: * Online * Offline
public ModifyInstanceSpecRequest.Builder ownerAccount(String ownerAccount)
public ModifyInstanceSpecRequest.Builder ownerId(Long ownerId)
public ModifyInstanceSpecRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ModifyInstanceSpecRequest.Builder resourceOwnerId(Long resourceOwnerId)
public ModifyInstanceSpecRequest build()
Copyright © 2024. All rights reserved.