public class ModifyInstanceSpecRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
ModifyInstanceSpecRequest.ModifyInstanceSpecRequestDisk |
static class |
ModifyInstanceSpecRequest.ModifyInstanceSpecRequestSystemDisk |
static class |
ModifyInstanceSpecRequest.ModifyInstanceSpecRequestTemporary |
限定符和类型 | 字段和说明 |
---|---|
Boolean |
allowMigrateAcrossZone
Specifies whether cross-cluster instance type upgrades are supported.
|
Boolean |
async
Specifies whether to submit an asynchronous request.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
List<ModifyInstanceSpecRequest.ModifyInstanceSpecRequestDisk> |
disk |
Boolean |
dryRun
Specifies whether to perform only a dry run, without performing the actual 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 |
modifyMode
This parameter is not publicly available.
|
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 cross-cluster instance type upgrades are supported. Valid values:
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:
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.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.
false
@NameInMap(value="Async") public Boolean async
Specifies whether to submit an asynchronous request. Valid values:
Default value: false.
example: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 token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.
example:0c593ea1-3bea-11e9-b96b-88e9fe637760
@NameInMap(value="Disk") public List<ModifyInstanceSpecRequest.ModifyInstanceSpecRequestDisk> disk
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether to perform only a dry run, without performing the actual request. Valid values:
DryRunOperation
error code is returned.false
@NameInMap(value="InstanceId") public String instanceId
The ID of the instance.
This parameter is required.
example:i-bp67acfmxazb4p****
@NameInMap(value="InstanceType") public String instanceType
The new instance type. For more information, see Overview of instance families or call the DescribeInstanceTypes operation to query the most recent instance type list.
example:ecs.g6.large
@NameInMap(value="InternetMaxBandwidthIn") public Integer internetMaxBandwidthIn
The maximum inbound public bandwidth. Unit: Mbit/s. Valid values:
InternetMaxBandwidthOut
value and the default value is the InternetMaxBandwidthOut
value.example: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.
10
@NameInMap(value="InternetMaxBandwidthOut") public Integer internetMaxBandwidthOut
The maximum outbound public bandwidth. Unit: Mbit/s. Valid values: 0 to 100.
example: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.
10
@NameInMap(value="ModifyMode") public String modifyMode
example:This parameter is not publicly available.
null
@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 setDisk(List<ModifyInstanceSpecRequest.ModifyInstanceSpecRequestDisk> disk)
public List<ModifyInstanceSpecRequest.ModifyInstanceSpecRequestDisk> getDisk()
public ModifyInstanceSpecRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
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 setModifyMode(String modifyMode)
public String getModifyMode()
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 © 2024. All rights reserved.