public class ModifyPrepayInstanceSpecRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
ModifyPrepayInstanceSpecRequest.ModifyPrepayInstanceSpecRequestDisk |
static class |
ModifyPrepayInstanceSpecRequest.ModifyPrepayInstanceSpecRequestSystemDisk |
限定符和类型 | 字段和说明 |
---|---|
Boolean |
autoPay
Specifies whether to enable automatic payment when you upgrade the instance type.
|
String |
clientToken
The client token that you want to use to ensure the idempotency of the request.
|
List<ModifyPrepayInstanceSpecRequest.ModifyPrepayInstanceSpecRequestDisk> |
disk
This parameter is not publicly available.
|
String |
endTime
The end time of the temporary change.
|
String |
instanceId
The instance ID.
|
String |
instanceType
The new instance type.
|
Boolean |
migrateAcrossZone
Specifies whether cross-cluster instance type upgrades are supported.
|
String |
modifyMode
This parameter is not publicly available.
|
String |
operatorType
The type of the change to the instance.
|
String |
ownerAccount |
Long |
ownerId |
String |
rebootTime
The restart time of the instance.
|
Boolean |
rebootWhenFinished
Specifies whether to restart the instance immediately after the instance type is changed.
|
String |
regionId
The region ID of the instance.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
ModifyPrepayInstanceSpecRequest.ModifyPrepayInstanceSpecRequestSystemDisk |
systemDisk |
构造器和说明 |
---|
ModifyPrepayInstanceSpecRequest() |
@NameInMap(value="SystemDisk") public ModifyPrepayInstanceSpecRequest.ModifyPrepayInstanceSpecRequestSystemDisk systemDisk
@NameInMap(value="AutoPay") public Boolean autoPay
Specifies whether to enable automatic payment when you upgrade the instance type. Valid values:
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.
true
@NameInMap(value="ClientToken") public String clientToken
The client token that you want to use to ensure the idempotency of the request. You can use the client to generate the value, but make sure that the value is unique among different requests. This value allows only ASCII characters and is up to 64 characters in length. For more information, see How do I ensure the idempotence of a request?
example:123e4567-e89b-12d3-a456-426655440000
@NameInMap(value="Disk") public List<ModifyPrepayInstanceSpecRequest.ModifyPrepayInstanceSpecRequestDisk> disk
This parameter is not publicly available.
@NameInMap(value="EndTime") public String endTime
The end time of the temporary change. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
example:2018-01-01T12:05Z
@NameInMap(value="InstanceId") public String instanceId
The instance ID.
This parameter is required.
example:i-bp67acfmxazb4ph****
@NameInMap(value="InstanceType") public String instanceType
The new instance type. For information about available instance types, see Instance families or call the DescribeInstanceTypes operation.
This parameter is required.
example:ecs.g5.xlarge
@NameInMap(value="MigrateAcrossZone") public Boolean migrateAcrossZone
Specifies whether cross-cluster instance type upgrades are supported. Valid values:
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:
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.
example:false
@NameInMap(value="ModifyMode") public String modifyMode
example:This parameter is not publicly available.
null
@NameInMap(value="OperatorType") public String operatorType
The type of the change to the instance. Valid values:
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.
InstanceType
parameter has lower specifications than the current instance type, set OperatorType
to downgrade.example:You can refer to the preceding usage notes on how to upgrade or downgrade the instance type.
upgrade
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RebootTime") public String rebootTime
The restart time of the instance. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
example:2018-01-01T12:05Z
@NameInMap(value="RebootWhenFinished") public Boolean rebootWhenFinished
Specifies whether to restart the instance immediately after the instance type is changed. Valid values:
Default value: false.
example: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.
false
@NameInMap(value="RegionId") public String regionId
The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
public static ModifyPrepayInstanceSpecRequest build(Map<String,?> map) throws Exception
Exception
public ModifyPrepayInstanceSpecRequest setSystemDisk(ModifyPrepayInstanceSpecRequest.ModifyPrepayInstanceSpecRequestSystemDisk systemDisk)
public ModifyPrepayInstanceSpecRequest.ModifyPrepayInstanceSpecRequestSystemDisk getSystemDisk()
public ModifyPrepayInstanceSpecRequest setAutoPay(Boolean autoPay)
public Boolean getAutoPay()
public ModifyPrepayInstanceSpecRequest setClientToken(String clientToken)
public String getClientToken()
public ModifyPrepayInstanceSpecRequest setDisk(List<ModifyPrepayInstanceSpecRequest.ModifyPrepayInstanceSpecRequestDisk> disk)
public List<ModifyPrepayInstanceSpecRequest.ModifyPrepayInstanceSpecRequestDisk> getDisk()
public ModifyPrepayInstanceSpecRequest setEndTime(String endTime)
public String getEndTime()
public ModifyPrepayInstanceSpecRequest setInstanceId(String instanceId)
public String getInstanceId()
public ModifyPrepayInstanceSpecRequest setInstanceType(String instanceType)
public String getInstanceType()
public ModifyPrepayInstanceSpecRequest setMigrateAcrossZone(Boolean migrateAcrossZone)
public Boolean getMigrateAcrossZone()
public ModifyPrepayInstanceSpecRequest setModifyMode(String modifyMode)
public String getModifyMode()
public ModifyPrepayInstanceSpecRequest setOperatorType(String operatorType)
public String getOperatorType()
public ModifyPrepayInstanceSpecRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public ModifyPrepayInstanceSpecRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public ModifyPrepayInstanceSpecRequest setRebootTime(String rebootTime)
public String getRebootTime()
public ModifyPrepayInstanceSpecRequest setRebootWhenFinished(Boolean rebootWhenFinished)
public Boolean getRebootWhenFinished()
public ModifyPrepayInstanceSpecRequest setRegionId(String regionId)
public String getRegionId()
public ModifyPrepayInstanceSpecRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public ModifyPrepayInstanceSpecRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
Copyright © 2024. All rights reserved.