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