public class DescribeResourcesModificationRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
List<String> |
conditions
The conditions.
|
Integer |
cores
The number of vCPUs of the instance type.
|
String |
destinationResource
The type of the resource.
|
String |
instanceType
The instance type.
|
Float |
memory
The memory size of the instance type.
|
Boolean |
migrateAcrossZone
Specifies whether cross-cluster instance type upgrades are supported.
|
String |
operationType
The operation of changing resource configurations.
|
String |
ownerAccount |
Long |
ownerId |
String |
regionId
The region ID.
|
String |
resourceId
The ID of the resource.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
zoneId
The zone ID.
|
构造器和说明 |
---|
DescribeResourcesModificationRequest() |
@NameInMap(value="Cores") public Integer cores
The number of vCPUs of the instance type. For information about the values, see Overview of instance families. This parameter takes effect only when DestinationResource is set to InstanceType.
example:2
@NameInMap(value="DestinationResource") public String destinationResource
The type of the resource. Valid values:
This parameter is required.
example:InstanceType
@NameInMap(value="InstanceType") public String instanceType
The instance type. For more information, see Overview of instance families. You can also call the DescribeInstanceTypes operation to query the most recent instance type list. This parameter must be specified when DestinationResource is set to SystemDisk.
example:ecs.g5.large
@NameInMap(value="Memory") public Float memory
The memory size of the instance type. Unit: GiB. For information about the values, see Overview of instance families. This parameter takes effect only when DestinationResource is set to InstanceType.
example:8.0
@NameInMap(value="MigrateAcrossZone") public Boolean migrateAcrossZone
Specifies whether cross-cluster instance type upgrades are supported. Valid values:
Default value: false.
When MigrateAcrossZone is set 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.
true
@NameInMap(value="OperationType") public String operationType
The operation of changing resource configurations.
Valid values for subscription resources:
Set the value to Upgrade for pay-as-you-go resources.
Default value: Upgrade.
example:Upgrade
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The region ID. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceId") public String resourceId
The ID of the resource. For example, when DestinationResource is set to InstanceType, this parameter can be interpreted as InstanceId.
This parameter is required.
example:i-bp67acfmxazb4p****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="ZoneId") public String zoneId
The zone ID.
example:cn-hangzhou-e
public static DescribeResourcesModificationRequest build(Map<String,?> map) throws Exception
Exception
public DescribeResourcesModificationRequest setConditions(List<String> conditions)
public DescribeResourcesModificationRequest setCores(Integer cores)
public Integer getCores()
public DescribeResourcesModificationRequest setDestinationResource(String destinationResource)
public String getDestinationResource()
public DescribeResourcesModificationRequest setInstanceType(String instanceType)
public String getInstanceType()
public DescribeResourcesModificationRequest setMemory(Float memory)
public Float getMemory()
public DescribeResourcesModificationRequest setMigrateAcrossZone(Boolean migrateAcrossZone)
public Boolean getMigrateAcrossZone()
public DescribeResourcesModificationRequest setOperationType(String operationType)
public String getOperationType()
public DescribeResourcesModificationRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public DescribeResourcesModificationRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public DescribeResourcesModificationRequest setRegionId(String regionId)
public String getRegionId()
public DescribeResourcesModificationRequest setResourceId(String resourceId)
public String getResourceId()
public DescribeResourcesModificationRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public DescribeResourcesModificationRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public DescribeResourcesModificationRequest setZoneId(String zoneId)
public String getZoneId()
Copyright © 2024. All rights reserved.