public class PurchaseStorageCapacityUnitRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
PurchaseStorageCapacityUnitRequest.PurchaseStorageCapacityUnitRequestTag |
限定符和类型 | 字段和说明 |
---|---|
Integer |
amount
The number of SCUs that you want to purchase.
|
Integer |
capacity
The capacity of the SCU.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
description
The description of the SCU.
|
String |
fromApp
The source of the request.
|
String |
name
The name of the SCU.
|
String |
ownerAccount |
Long |
ownerId |
Integer |
period
The validity period of the SCU.
|
String |
periodUnit
The unit of the validity period of the SCU.
|
String |
regionId
The ID of the region in which to purchase the SCU.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
startTime
The time at which the SCU takes effect.
|
List<PurchaseStorageCapacityUnitRequest.PurchaseStorageCapacityUnitRequestTag> |
tag
The list of tags.
|
构造器和说明 |
---|
PurchaseStorageCapacityUnitRequest() |
@NameInMap(value="Amount") public Integer amount
The number of SCUs that you want to purchase. Valid values: 1 to 20.
Default value: 1.
example:1
@NameInMap(value="Capacity") public Integer capacity
The capacity of the SCU. Unit: GiB. Valid values: 20, 40, 100, 200, 500, 1024, 2048, 5210, 10240, 20480, and 52100.
This parameter is required.
example:20
@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 across requests. The token
can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.
123e4567-e89b-12d3-a456-426655440000
@NameInMap(value="Description") public String description
The description of the SCU. The description must be 2 to 256 characters in length and cannot start with http://
or https://
.
ScuPurchaseDemo
@NameInMap(value="FromApp") public String fromApp
The source of the request. The value is automatically set to OpenAPI and does not need to be changed. Default value: OpenAPI.
example:OpenAPI
@NameInMap(value="Name") public String name
The name of the SCU. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http://
or https://
. The name can contain letters, digits, colons (:), underscores (_), and hyphens (-).
ScuPurchaseDemo
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Period") public Integer period
The validity period of the SCU. Valid values:
Default value: 1.
example:1
@NameInMap(value="PeriodUnit") public String periodUnit
The unit of the validity period of the SCU. Valid values:
Default value: Month.
example:Month
@NameInMap(value="RegionId") public String regionId
The ID of the region in which to purchase the SCU. The purchased SCU can offset the bills of pay-as-you-go disks that reside in the specified region. 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 time at which the SCU takes effect. The time can be up to six months from the creation time of the SCU. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHHZ format. The time must be in UTC.
This parameter is left empty by default, which indicates that the SCU takes effect immediately after it is created.
example:2020-09-09T02:00:00Z
@NameInMap(value="Tag") public List<PurchaseStorageCapacityUnitRequest.PurchaseStorageCapacityUnitRequestTag> tag
The list of tags.
public static PurchaseStorageCapacityUnitRequest build(Map<String,?> map) throws Exception
Exception
public PurchaseStorageCapacityUnitRequest setAmount(Integer amount)
public Integer getAmount()
public PurchaseStorageCapacityUnitRequest setCapacity(Integer capacity)
public Integer getCapacity()
public PurchaseStorageCapacityUnitRequest setClientToken(String clientToken)
public String getClientToken()
public PurchaseStorageCapacityUnitRequest setDescription(String description)
public String getDescription()
public PurchaseStorageCapacityUnitRequest setFromApp(String fromApp)
public String getFromApp()
public PurchaseStorageCapacityUnitRequest setName(String name)
public String getName()
public PurchaseStorageCapacityUnitRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public PurchaseStorageCapacityUnitRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public PurchaseStorageCapacityUnitRequest setPeriod(Integer period)
public Integer getPeriod()
public PurchaseStorageCapacityUnitRequest setPeriodUnit(String periodUnit)
public String getPeriodUnit()
public PurchaseStorageCapacityUnitRequest setRegionId(String regionId)
public String getRegionId()
public PurchaseStorageCapacityUnitRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public PurchaseStorageCapacityUnitRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public PurchaseStorageCapacityUnitRequest setStartTime(String startTime)
public String getStartTime()
public PurchaseStorageCapacityUnitRequest setTag(List<PurchaseStorageCapacityUnitRequest.PurchaseStorageCapacityUnitRequestTag> tag)
public List<PurchaseStorageCapacityUnitRequest.PurchaseStorageCapacityUnitRequestTag> getTag()
Copyright © 2024. All rights reserved.