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 to which the reserved instance can be matched 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 term of the reserved instance.
|
String |
periodUnit
The unit of the term of the reserved instance.
|
String |
platform
The operating system of the image that is used by the instance.
|
String |
regionId
The region ID of the reserved instance.
|
String |
reservedInstanceName
The name of the reserved instance.
|
String |
resourceGroupId
The ID of the resource group to which the reserved instance belongs.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
scope
The scope of the reserved instance.
|
List<PurchaseReservedInstancesOfferingRequest.PurchaseReservedInstancesOfferingRequestTag> |
tag
The tags of the reserved instance.
|
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: enables auto-renewal for the reserved instance. false: disables auto-renewal for the reserved instance. This is the default value.
@NameInMap(value="AutoRenewPeriod") public Integer autoRenewPeriod
The auto-renewal term of the reserved instance. Unit: months. This parameter takes effect only if you set the AutoRenew parameter to true.
Valid values: 1, 12, 36, and 60.
Default value if you set the PeriodUnit parameter to Month: 1.
Default value if you set the PeriodUnit parameter to Year: 12.
@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 token can contain only ASCII characters and cannot exceed 64 characters in length.** For more information, see [How to ensure idempotence](~~25693~~).
@NameInMap(value="Description") public String description
The description of the reserved instance. The description must be 2 to 256 characters in length and cannot start with [http:// or https://](http://https://。).
By default, this parameter is left empty.
@NameInMap(value="InstanceAmount") public Integer instanceAmount
The number of pay-as-you-go instances of the same instance type to which the reserved instance can be matched 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 to three ecs.g5.large pay-as-you-go instances at the same time.
@NameInMap(value="InstanceType") public String instanceType
The type of the reserved instance. For more information, see [Instance families](~~25378~~).
@NameInMap(value="OfferingType") public String offeringType
The payment option of the reserved instance. Valid values:
* No Upfront
* Partial Upfront
* All Upfront
Default value: All Upfront.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Period") public Integer period
The term of the reserved instance.
Valid values: 1 and 3.
Default value: 1.
@NameInMap(value="PeriodUnit") public String periodUnit
The unit of the term of the reserved instance.
Valid value: Year.
Default value: Year.
@NameInMap(value="Platform") public String platform
The operating system of the image that is used by the instance. Valid values:
* Windows: Windows Server operating system
* Linux: Linux and UNIX-like operating system
Default value: Linux.
@NameInMap(value="RegionId") public String regionId
The region ID of the reserved instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
@NameInMap(value="ReservedInstanceName") public String reservedInstanceName
The name of the reserved instance. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-).
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which the reserved instance belongs.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="Scope") public String scope
The scope of the reserved instance. Valid values:
* Region: regional
* Zone: zonal
Default value: Region.
@NameInMap(value="Tag") public List<PurchaseReservedInstancesOfferingRequest.PurchaseReservedInstancesOfferingRequestTag> tag
The tags of the reserved instance.
@NameInMap(value="ZoneId") public String zoneId
The zone ID of the instance. If you set the `Scope` parameter to `Zone`, you must specify this parameter. You can call the [DescribeZones](~~25610~~) operation to query the most recent list of zones.
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 setTag(List<PurchaseReservedInstancesOfferingRequest.PurchaseReservedInstancesOfferingRequestTag> tag)
public List<PurchaseReservedInstancesOfferingRequest.PurchaseReservedInstancesOfferingRequestTag> getTag()
public PurchaseReservedInstancesOfferingRequest setZoneId(String zoneId)
public String getZoneId()
Copyright © 2023. All rights reserved.