public class CreateDemandRequest
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 |
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.
|
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.
|
构造器和说明 |
---|
CreateDemandRequest() |
@NameInMap(value="Amount") public Integer amount
The number of instances. Valid values: 1 to 100000.
This parameter is required.
example:2
@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 value of ClientToken
can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.
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 and cannot start with http:// or https://.
example:k8s-node-demand-desc
@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:k8s-node-demand
@NameInMap(value="EndTime") public String endTime
The end 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 specified minute (mm). The value of EndTime is later than the value of Starttime. In most cases, the interval between the two times cannot be more than 10 days.
This parameter is required.
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. See Instance families or call the DescribeInstanceTypes operation to query the performance data of an instance type, or see Select instance types to learn how to select instance types.
This parameter is required.
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. Valid values:
This parameter is required.
example:1
@NameInMap(value="PeriodUnit") public String periodUnit
The unit of the subscription period. Valid values:
This parameter is required.
example: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 specified minute (mm). The value of EndTime must be later than the value of Starttime. In most cases, the interval between the two times cannot be more than 10 days.
This parameter is required.
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.
This parameter is required.
example:cn-hangzhou-g
public static CreateDemandRequest build(Map<String,?> map) throws Exception
Exception
public CreateDemandRequest setAmount(Integer amount)
public Integer getAmount()
public CreateDemandRequest setClientToken(String clientToken)
public String getClientToken()
public CreateDemandRequest setDemandDescription(String demandDescription)
public String getDemandDescription()
public CreateDemandRequest setDemandName(String demandName)
public String getDemandName()
public CreateDemandRequest setEndTime(String endTime)
public String getEndTime()
public CreateDemandRequest setInstanceChargeType(String instanceChargeType)
public String getInstanceChargeType()
public CreateDemandRequest setInstanceType(String instanceType)
public String getInstanceType()
public CreateDemandRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateDemandRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateDemandRequest setPeriod(Integer period)
public Integer getPeriod()
public CreateDemandRequest setPeriodUnit(String periodUnit)
public String getPeriodUnit()
public CreateDemandRequest setRegionId(String regionId)
public String getRegionId()
public CreateDemandRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateDemandRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateDemandRequest setStartTime(String startTime)
public String getStartTime()
public CreateDemandRequest setZoneId(String zoneId)
public String getZoneId()
Copyright © 2024. All rights reserved.