public class ModifyPrepayInstanceSpecRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
ModifyPrepayInstanceSpecRequest.ModifyPrepayInstanceSpecRequestSystemDisk |
限定符和类型 | 字段和说明 |
---|---|
Boolean |
autoPay
Specifies whether to enable automatic payment when you upgrade the instance type.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
endTime
The end time of the temporary change.
|
String |
instanceId
The ID of the instance.
|
String |
instanceType
The new instance type.
|
Boolean |
migrateAcrossZone
Specifies whether to support cross-cluster instance type upgrades.
|
String |
operatorType
The type of the operation.
|
String |
ownerAccount |
Long |
ownerId |
String |
rebootTime
The restart time of the instance.
|
Boolean |
rebootWhenFinished
Specifies whether to immediately restart the instance after you change the instance type.
|
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 Alibaba Cloud account has sufficient balance. Otherwise, your order becomes invalid and is canceled. If your account balance is insufficient, you can set the `AutoPay` parameter to `false` to generate an unpaid order. Then, you can log on to the ECS console to pay for the order.
* false: An order is generated but no payment is made.
Default value: true.
If you set the `OperatorType` parameter to `downgrade`, the `AutoPay` parameter is ignored.
@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 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](~~25693~~).
@NameInMap(value="EndTime") public String endTime
The end time of the temporary change. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
@NameInMap(value="InstanceId") public String instanceId
The ID of the instance.
@NameInMap(value="InstanceType") public String instanceType
The new instance type. For information about supported instance types, see [Overview of instance families](~~25378~~) or call the [DescribeInstanceTypes](~~25620~~) operation.
@NameInMap(value="MigrateAcrossZone") public Boolean migrateAcrossZone
Specifies whether to support cross-cluster instance type upgrades.
Default value: false.
If you set the `MigrateAcrossZone` parameter to `true` and you upgrade the instance based on the returned information, take note of the following items:
Instances of the classic network type:
* For [retired instance types](~~55263~~), the private IP address, disk device names, and software license codes of a non-I/O optimized instance change when you upgrade the instance to an I/O optimized instance. For Linux instances, basic disks (cloud) are identified by the prefix xvd. Ultra disks (cloud_efficiency) and standard SSDs (cloud_ssd) are identified by the prefix vd.
* For [instance families that can be purchased](~~25378~~), the private IP address of the instance changes when you change the instance type of the instance.
Instances of the virtual private cloud (VPC) type: For retired instance types, the disk device names and software license codes of a non-I/O optimized instance change when you upgrade the instance to an I/O optimized instance. For Linux instances, basic disks (cloud) are identified by the prefix xvd. Ultra disks (cloud_efficiency) and standard SSDs (cloud_ssd) are identified by the prefix vd.
@NameInMap(value="OperatorType") public String operatorType
The type of the operation. Valid values:
> This parameter is optional. The system can automatically determine whether the operation is an upgrade or a downgrade. If you want to specify this parameter, you can 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 that is specified by the `InstanceType` parameter has lower specifications than the current instance type, set the `OperatorType` parameter to downgrade.
> You can refer to the preceding usage notes on how to upgrade or downgrade the instance type.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RebootTime") public String rebootTime
The restart time of the instance. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
@NameInMap(value="RebootWhenFinished") public Boolean rebootWhenFinished
Specifies whether to immediately restart the instance after you change the instance type. Valid values:
* true: immediately restarts the instance.
* false: does not immediately restart the instance.
Default value: false.
> If the instance is in the **Stopping** state, the instance status remains unchanged and no operations are performed regardless of whether you set the `RebootWhenFinished` parameter to true.
@NameInMap(value="RegionId") public String regionId
The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
@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 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 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 © 2023. All rights reserved.