public class PurchaseReservedInstancesOfferingRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
PurchaseReservedInstancesOfferingRequest.PurchaseReservedInstancesOfferingRequestTag |
限定符和类型 | 字段和说明 |
---|---|
Boolean |
autoRenew
Specifies whether to enable auto-renewal for the reserved instance.
|
Integer |
autoRenewPeriod
The auto-renewal term of the reserved instance.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
description
The description of the reserved instance.
|
Integer |
instanceAmount
The number of pay-as-you-go instances of the same instance type that the reserved instance can match at the same time.
|
String |
instanceType
The type of the reserved instance.
|
String |
offeringType
The payment option of the reserved instance.
|
String |
ownerAccount |
Long |
ownerId |
Integer |
period
The validity period of the reserved instance.
|
String |
periodUnit
The unit of the validity period of the reserved instance.
|
String |
platform
The operating system of the image used by the instance.
|
String |
regionId
The region ID of the instance.
|
String |
reservedInstanceName
The name of the reserved instance.
|
String |
resourceGroupId
The ID of the resource group.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
scope
The scope of reserved instance N.
|
String |
startTime
The time when the reserved instance takes effect.
|
List<PurchaseReservedInstancesOfferingRequest.PurchaseReservedInstancesOfferingRequestTag> |
tag
The list of tags.
|
String |
zoneId
The zone ID of the instance.
|
构造器和说明 |
---|
PurchaseReservedInstancesOfferingRequest() |
@NameInMap(value="AutoRenew") public Boolean autoRenew
Specifies whether to enable auto-renewal for the reserved instance. Valid values:
true
@NameInMap(value="AutoRenewPeriod") public Integer autoRenewPeriod
The auto-renewal term of the reserved instance. Unit: months. This parameter takes effect only when AutoRenew is set to true.
Valid values: 12 and 36.
Default value when PeriodUnit is set to Year: 12.
example:1
@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 you must make sure that the token 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.
example:123e4567-e89b-12d3-a456-426655440000
@NameInMap(value="Description") public String description
The description of the reserved instance. The description can be 2 to 256 characters in length and cannot start with http:// or https://.
This parameter is left empty by default.
example:testDescription
@NameInMap(value="InstanceAmount") public Integer instanceAmount
The number of pay-as-you-go instances of the same instance type that the reserved instance can match at the same time. Valid values: 1 to 50.
For example, if you set the InstanceAmount parameter to 3 and the InstanceType parameter to ecs.g5.large, the reserved instance can be matched three ecs.g5.large pay-as-you-go instances at the same time.
example:3
@NameInMap(value="InstanceType") public String instanceType
The type of the reserved instance. For more information, see Instance family.
This parameter is required.
example:ecs.g5.large
@NameInMap(value="OfferingType") public String offeringType
The payment option of the reserved instance. Valid values:
Default value: All Upfront.
example:All Upfront
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Period") public Integer period
The validity period of the reserved instance.
Valid values: 1 and 3.
Default value: 1.
example:1
@NameInMap(value="PeriodUnit") public String periodUnit
The unit of the validity period of the reserved instance.
Valid value: Year.
Default value: Year.
example:Year
@NameInMap(value="Platform") public String platform
The operating system of the image used by the instance. Valid values:
Default value: Linux.
example:Linux
@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="ReservedInstanceName") public String reservedInstanceName
The name of the reserved instance. 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 (-).
example:testReservedInstanceName
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group.
example:rg-bp199lyny9b3****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="Scope") public String scope
The scope of reserved instance N. Valid values:
Default value: Region.
example:Zone
@NameInMap(value="StartTime") public String startTime
The time when the reserved instance takes effect. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHHZ
format. The time must be in UTC.
2024-07-04T15Z
@NameInMap(value="Tag") public List<PurchaseReservedInstancesOfferingRequest.PurchaseReservedInstancesOfferingRequestTag> tag
The list of tags.
@NameInMap(value="ZoneId") public String zoneId
The zone ID of the instance. This parameter is required when Scope
is set to Zone
. You can call the DescribeZones operation to query the most recent zone list.
cn-hangzhou-g
public static PurchaseReservedInstancesOfferingRequest build(Map<String,?> map) throws Exception
Exception
public PurchaseReservedInstancesOfferingRequest setAutoRenew(Boolean autoRenew)
public Boolean getAutoRenew()
public PurchaseReservedInstancesOfferingRequest setAutoRenewPeriod(Integer autoRenewPeriod)
public Integer getAutoRenewPeriod()
public PurchaseReservedInstancesOfferingRequest setClientToken(String clientToken)
public String getClientToken()
public PurchaseReservedInstancesOfferingRequest setDescription(String description)
public String getDescription()
public PurchaseReservedInstancesOfferingRequest setInstanceAmount(Integer instanceAmount)
public Integer getInstanceAmount()
public PurchaseReservedInstancesOfferingRequest setInstanceType(String instanceType)
public String getInstanceType()
public PurchaseReservedInstancesOfferingRequest setOfferingType(String offeringType)
public String getOfferingType()
public PurchaseReservedInstancesOfferingRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public PurchaseReservedInstancesOfferingRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public PurchaseReservedInstancesOfferingRequest setPeriod(Integer period)
public Integer getPeriod()
public PurchaseReservedInstancesOfferingRequest setPeriodUnit(String periodUnit)
public String getPeriodUnit()
public PurchaseReservedInstancesOfferingRequest setPlatform(String platform)
public String getPlatform()
public PurchaseReservedInstancesOfferingRequest setRegionId(String regionId)
public String getRegionId()
public PurchaseReservedInstancesOfferingRequest setReservedInstanceName(String reservedInstanceName)
public String getReservedInstanceName()
public PurchaseReservedInstancesOfferingRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public PurchaseReservedInstancesOfferingRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public PurchaseReservedInstancesOfferingRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public PurchaseReservedInstancesOfferingRequest setScope(String scope)
public String getScope()
public PurchaseReservedInstancesOfferingRequest setStartTime(String startTime)
public String getStartTime()
public PurchaseReservedInstancesOfferingRequest setTag(List<PurchaseReservedInstancesOfferingRequest.PurchaseReservedInstancesOfferingRequestTag> tag)
public List<PurchaseReservedInstancesOfferingRequest.PurchaseReservedInstancesOfferingRequestTag> getTag()
public PurchaseReservedInstancesOfferingRequest setZoneId(String zoneId)
public String getZoneId()
Copyright © 2024. All rights reserved.