public static final class CreateDemandRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateDemandRequest.Builder |
amount(Integer amount)
The number of instances.
|
CreateDemandRequest |
build() |
CreateDemandRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateDemandRequest.Builder |
demandDescription(String demandDescription)
The description of the demand.
|
CreateDemandRequest.Builder |
demandName(String demandName)
The name of the demand.
|
CreateDemandRequest.Builder |
endTime(String endTime)
The end time of the subscription period.
|
CreateDemandRequest.Builder |
instanceChargeType(String instanceChargeType)
The billing method of the instance.
|
CreateDemandRequest.Builder |
instanceType(String instanceType)
The instance type.
|
CreateDemandRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateDemandRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateDemandRequest.Builder |
period(Integer period)
The subscription period of the resource.
|
CreateDemandRequest.Builder |
periodUnit(String periodUnit)
The unit of the subscription period.
|
CreateDemandRequest.Builder |
regionId(String regionId)
The region ID of the instance.
|
CreateDemandRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateDemandRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateDemandRequest.Builder |
startTime(String startTime)
The start time of the subscription period.
|
CreateDemandRequest.Builder |
zoneId(String zoneId)
The zone ID of the instance.
|
public CreateDemandRequest.Builder amount(Integer amount)
public CreateDemandRequest.Builder clientToken(String clientToken)
public CreateDemandRequest.Builder demandDescription(String demandDescription)
public CreateDemandRequest.Builder demandName(String demandName)
The default value is the instance type name.
public CreateDemandRequest.Builder endTime(String endTime)
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.
public CreateDemandRequest.Builder instanceChargeType(String instanceChargeType)
* PrePaid: subscription * PostPaid: pay-as-you-go. This is the default value.
public CreateDemandRequest.Builder instanceType(String instanceType)
public CreateDemandRequest.Builder ownerAccount(String ownerAccount)
public CreateDemandRequest.Builder ownerId(Long ownerId)
public CreateDemandRequest.Builder period(Integer period)
* Valid values when the value of PeriodUnit is Day: 1, 2, 3, 4, 5, and 6. * Valid values when the value of PeriodUnit is Week: 1, 2, 3, and 4. * Valid values when the value of PeriodUnit is Month: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, and 60.
public CreateDemandRequest.Builder periodUnit(String periodUnit)
* Day * Week * Month. This is the default value.
public CreateDemandRequest.Builder regionId(String regionId)
public CreateDemandRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateDemandRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateDemandRequest.Builder startTime(String startTime)
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.
public CreateDemandRequest.Builder zoneId(String zoneId)
This parameter is empty by default. If you leave this parameter empty, the system randomly selects a zone.
public CreateDemandRequest build()
Copyright © 2024. All rights reserved.