public class ModifyDemandRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
Integer |
amount
The number of instances.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
demandDescription
The description of the demand.
|
String |
demandId
The ID of the demand that you want to modify.
|
String |
demandName
The name of the demand.
|
String |
endTime
The end time of the subscription period.
|
String |
instanceChargeType
The billing method of the instance.
|
String |
instanceType
The instance type.
|
String |
ownerAccount |
Long |
ownerId |
Integer |
period
The subscription period of the resource.
|
String |
periodUnit
The unit of the subscription period of the resource.
|
String |
regionId
The region ID of the instance.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
startTime
The start time of the subscription period.
|
String |
zoneId
The zone ID of the instance.
|
构造器和说明 |
---|
ModifyDemandRequest() |
@NameInMap(value="Amount") public Integer amount
The number of instances. Valid values: 1 to 100000.
example:1
@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 only contain ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.
example:473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
@NameInMap(value="DemandDescription") public String demandDescription
The description of the demand. The description must be 2 to 256 characters in length. It cannot start with http:// or https://.
example:testDemandDescription
@NameInMap(value="DemandId") public String demandId
The ID of the demand that you want to modify.
This parameter is required.
example:ed-bp11n21kq00sl71p****
@NameInMap(value="DemandName") public String demandName
The name of the demand. The name must be 2 to 128 characters in length. The name must start with a letter but cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).
The default value is the instance type name.
example:testDemandName
@NameInMap(value="EndTime") public String endTime
The end time of the subscription period. Specify the time in the ISO 8601standard in the yyyy-MM-dd HH:mm:ss format. The time must be in UTC.
If the value of seconds (ss) is not 00, the time is automatically set to the beginning of the minute (mm).
The value of EndTime must be later than the value of StartTime.
in most cases, the interval between StartTime and EndTime cannot be more than 10 days.
example:2019-12-10 12:05:00
@NameInMap(value="InstanceChargeType") public String instanceChargeType
The billing method of the instance. Valid values:
PrePaid
@NameInMap(value="InstanceType") public String instanceType
The instance type. For more information, see Instance families. You can also call the DescribeInstanceTypes operation to query the performance data of the specified instance type. To learn how to select instance types, see Select instance types.
example:ecs.c6.large
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Period") public Integer period
The subscription period of the resource. Unit: month. You must specify this parameter. This parameter is valid only if you set InstanceChargeType
to PrePaid. Valid values:
1
@NameInMap(value="PeriodUnit") public String periodUnit
The unit of the subscription period of the resource. Valid values:
Month
@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
@NameInMap(value="StartTime") public String startTime
The start time of the subscription period. Specify the time in the ISO 8601 standard in the yyyy-MM-dd HH:mm:ss format. The time must be in UTC.
If the value of seconds (ss) is not 00, the time is automatically set to the beginning of the minute (mm).
The value of EndTime must be later than the value of StartTime.
In most cases, the interval between StartTime and EndTime cannot be more than 10 days.
example:2019-12-01 12:05:00
@NameInMap(value="ZoneId") public String zoneId
The zone ID of the instance. You can call the DescribeZones operation to query the most recent zone list.
This parameter is empty by default. If you leave this parameter empty, the system randomly selects a zone.
example:cn-hangzhou-g
public static ModifyDemandRequest build(Map<String,?> map) throws Exception
Exception
public ModifyDemandRequest setAmount(Integer amount)
public Integer getAmount()
public ModifyDemandRequest setClientToken(String clientToken)
public String getClientToken()
public ModifyDemandRequest setDemandDescription(String demandDescription)
public String getDemandDescription()
public ModifyDemandRequest setDemandId(String demandId)
public String getDemandId()
public ModifyDemandRequest setDemandName(String demandName)
public String getDemandName()
public ModifyDemandRequest setEndTime(String endTime)
public String getEndTime()
public ModifyDemandRequest setInstanceChargeType(String instanceChargeType)
public String getInstanceChargeType()
public ModifyDemandRequest setInstanceType(String instanceType)
public String getInstanceType()
public ModifyDemandRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public ModifyDemandRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public ModifyDemandRequest setPeriod(Integer period)
public Integer getPeriod()
public ModifyDemandRequest setPeriodUnit(String periodUnit)
public String getPeriodUnit()
public ModifyDemandRequest setRegionId(String regionId)
public String getRegionId()
public ModifyDemandRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public ModifyDemandRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public ModifyDemandRequest setStartTime(String startTime)
public String getStartTime()
public ModifyDemandRequest setZoneId(String zoneId)
public String getZoneId()
Copyright © 2024. All rights reserved.