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.
@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 value, but you must make sure that the value is unique among different requests. The `ClientToken` value can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](~~25693~~).
@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://](http://https://。).
@NameInMap(value="DemandName") public String demandName
The name of the demand. The name must be 2 to 128 characters in length and start with a letter but cannot start with [http:// or https://](http://https://). It can contain letters, digits, colons (:), underscores (\_), periods (.), and hyphens (-).
The default value is the instance type.
@NameInMap(value="EndTime") public String endTime
The end time of the subscription period. Specify the time in the [ISO 8601](~~25696~~) standard and use the UTC time. The format is yyyy-MM-dd hh:mm:ss.
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.
@NameInMap(value="InstanceChargeType") public String instanceChargeType
The billing method of the instance. Default value: PostPaid. Valid values:
* PrePaid: subscription.
* PostPaid: pay-as-you-go.
@NameInMap(value="InstanceType") public String instanceType
The instance type. See [Instance families](~~25378~~) or call the [DescribeInstanceTypes](~~25620~~) operation to query the performance data of an instance type, or see [Select instance types](~~58291~~) to learn how to select instance types.
@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:
* When the value of PeriodUnit is Day, the valid values of Period are 1, 2, 3, 4, 5, and 6.
* When the value of PeriodUnit is Week, the valid values of Period are 1, 2, 3, and 4.
* When the value of PeriodUnit is Month, the valid values of Period are 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, and 60.
@NameInMap(value="PeriodUnit") public String periodUnit
The unit of the subscription period. Default value: Month. Valid values:
* Day
* Week
* Month
@NameInMap(value="RegionId") public String regionId
The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent list of regions.
@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](~~25696~~) standard and use the UTC time. The default format is yyyy-MM-dd HH:mm:ss.
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.
@NameInMap(value="ZoneId") public String zoneId
The zone ID of the instance. You can call the [DescribeZones](~~25610~~) operation to query the most recent list of zones.
This parameter is empty by default, which indicates that the system randomly selects a zone.
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 © 2023. All rights reserved.