public class ModifyInstanceSpecRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
ModifyInstanceSpecRequest.ModifyInstanceSpecRequestSystemDisk |
static class |
ModifyInstanceSpecRequest.ModifyInstanceSpecRequestTemporary |
限定符和类型 | 字段和说明 |
---|---|
Boolean |
allowMigrateAcrossZone
Specifies whether to support cross-cluster instance type upgrades.
|
Boolean |
async
Specifies whether to submit an asynchronous request.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
instanceId
The ID of the instance.
|
String |
instanceType
The new instance type.
|
Integer |
internetMaxBandwidthIn
The maximum inbound public bandwidth.
|
Integer |
internetMaxBandwidthOut
The maximum outbound public bandwidth.
|
String |
ownerAccount |
Long |
ownerId |
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
ModifyInstanceSpecRequest.ModifyInstanceSpecRequestSystemDisk |
systemDisk |
ModifyInstanceSpecRequest.ModifyInstanceSpecRequestTemporary |
temporary |
构造器和说明 |
---|
ModifyInstanceSpecRequest() |
@NameInMap(value="SystemDisk") public ModifyInstanceSpecRequest.ModifyInstanceSpecRequestSystemDisk systemDisk
@NameInMap(value="Temporary") public ModifyInstanceSpecRequest.ModifyInstanceSpecRequestTemporary temporary
@NameInMap(value="AllowMigrateAcrossZone") public Boolean allowMigrateAcrossZone
Specifies whether to support cross-cluster instance type upgrades.
Default value: false.
When `AllowMigrateAcrossZone` is set to true and you upgrade the instance configurations based on the returned information, take note of the following items:
Instances of the classic network type:
* For retired instance types, when a non-I/O optimized instance is upgraded to an I/O optimized instance, the private IP address, disk device names, and software license codes of the instance are changed. For more information, see [Retired instance types](~~55263~~). For Linux instances, basic disks (`cloud`) are identified by the prefix **xvd** such as **xvda and xvdb**. Ultra disks (`cloud_efficiency`) and standard SSDs (`cloud_ssd`) are identified by the prefix **vd** such as **vda and vdb**.
* For instance families that are available for purchase, when the instance type of an instance is changed, the private IP address of the instance is also changed. For more information, see [Instance families](~~25378~~).
Instances of the Virtual Private Cloud (VPC) type: 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 license codes of the instance are changed. For Linux instances, basic disks (`cloud`) are identified by the prefix **xvd** such as **xvda and xvdb**. Ultra disks (`cloud_efficiency`) and standard SSDs (`cloud_ssd`) are identified by the prefix **vd** such as **vda and vdb**.
@NameInMap(value="Async") public Boolean async
Specifies whether to submit an asynchronous request.
Default value: false.
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests. The **ClientToken** value can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](~~25693~~).
@NameInMap(value="InstanceId") public String instanceId
The ID of the instance.
@NameInMap(value="InstanceType") public String instanceType
The new instance type. For more information, see [Instance families](~~25378~~) or call the [DescribeInstanceTypes](~~25620~~) operation to query the most recent list of instance types.
@NameInMap(value="InternetMaxBandwidthIn") public Integer internetMaxBandwidthIn
The maximum inbound public bandwidth. Unit: Mbit/s. Valid values:
* When the purchased outbound public bandwidth is less than or equal to 10 Mbit/s, the valid values of this parameter are 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.
@NameInMap(value="InternetMaxBandwidthOut") public Integer internetMaxBandwidthOut
The maximum outbound public bandwidth. Unit: Mbit/s. Valid values: 0 to 100.
> 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.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
public static ModifyInstanceSpecRequest build(Map<String,?> map) throws Exception
Exception
public ModifyInstanceSpecRequest setSystemDisk(ModifyInstanceSpecRequest.ModifyInstanceSpecRequestSystemDisk systemDisk)
public ModifyInstanceSpecRequest.ModifyInstanceSpecRequestSystemDisk getSystemDisk()
public ModifyInstanceSpecRequest setTemporary(ModifyInstanceSpecRequest.ModifyInstanceSpecRequestTemporary temporary)
public ModifyInstanceSpecRequest.ModifyInstanceSpecRequestTemporary getTemporary()
public ModifyInstanceSpecRequest setAllowMigrateAcrossZone(Boolean allowMigrateAcrossZone)
public Boolean getAllowMigrateAcrossZone()
public ModifyInstanceSpecRequest setAsync(Boolean async)
public Boolean getAsync()
public ModifyInstanceSpecRequest setClientToken(String clientToken)
public String getClientToken()
public ModifyInstanceSpecRequest setInstanceId(String instanceId)
public String getInstanceId()
public ModifyInstanceSpecRequest setInstanceType(String instanceType)
public String getInstanceType()
public ModifyInstanceSpecRequest setInternetMaxBandwidthIn(Integer internetMaxBandwidthIn)
public Integer getInternetMaxBandwidthIn()
public ModifyInstanceSpecRequest setInternetMaxBandwidthOut(Integer internetMaxBandwidthOut)
public Integer getInternetMaxBandwidthOut()
public ModifyInstanceSpecRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public ModifyInstanceSpecRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public ModifyInstanceSpecRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public ModifyInstanceSpecRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
Copyright © 2023. All rights reserved.