public class CreateInstanceRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CreateInstanceRequest.CreateInstanceRequestNetworkInfo |
static class |
CreateInstanceRequest.CreateInstanceRequestNetworkInfoInternetInfo |
static class |
CreateInstanceRequest.CreateInstanceRequestNetworkInfoVpcInfo |
static class |
CreateInstanceRequest.CreateInstanceRequestProductInfo |
| 限定符和类型 | 字段和说明 |
|---|---|
Boolean |
autoRenew
Specifies whether to enable auto-renewal for the instance.
|
Integer |
autoRenewPeriod
The auto-renewal cycle of the instance.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
commodityCode
The commodity code.
|
String |
instanceName
The name of the instance that you want to create.
|
CreateInstanceRequest.CreateInstanceRequestNetworkInfo |
networkInfo
The network configurations.
|
String |
paymentType
The billing method of the instance.
|
Integer |
period
The subscription duration of the instance.
|
String |
periodUnit
The unit of the subscription duration.
|
CreateInstanceRequest.CreateInstanceRequestProductInfo |
productInfo
The information about the instance specifications.
|
String |
remark
The instance description.
|
String |
resourceGroupId
The resource group ID.
|
String |
seriesCode
The primary edition of the instance.
|
String |
serviceCode
The code of the service to which the instance belongs.
|
String |
subSeriesCode
The sub-category edition of the instance.
|
| 构造器和说明 |
|---|
CreateInstanceRequest() |
@NameInMap(value="autoRenew") public Boolean autoRenew
Specifies whether to enable auto-renewal for the instance. This parameter takes effect only if you set PaymentType to Subscription.
* true: enable
* false: disable
@NameInMap(value="autoRenewPeriod") public Integer autoRenewPeriod
The auto-renewal cycle of the instance. This parameter takes effect only if you set autoRenew to true. Unit: months.
Valid values:
* Monthly renewal: 1, 2, 3, 6, and 12
@NameInMap(value="commodityCode") public String commodityCode
The commodity code.
* ons_rmqpost_public_intl: pay-as-you-go
* ons_rmqsub_public_intl: subscription
@NameInMap(value="instanceName") public String instanceName
The name of the instance that you want to create.
If you do not configure this parameter, the instance ID is used as the instance name.
@NameInMap(value="networkInfo") public CreateInstanceRequest.CreateInstanceRequestNetworkInfo networkInfo
The network configurations.
This parameter is required.
@NameInMap(value="paymentType") public String paymentType
The billing method of the instance. ApsaraMQ for RocketMQ supports the subscription and pay-as-you-go billing methods.
Valid values:
* PayAsYouGo: This billing method allows you to use resources before you pay for the resources.
* Subscription: This billing method allows you to use resources after you pay for the resources.
For more information, see [Billing methods](https://help.aliyun.com/document_detail/427234.html).
This parameter is required.
@NameInMap(value="period") public Integer period
The subscription duration of the instance. This parameter takes effect only if you set PaymentType to Subscription.
Valid values:
* Monthly subscription: 1, 2, 3, 4, 5, and 6
* Yearly subscription: 1, 2, and 3
@NameInMap(value="periodUnit") public String periodUnit
The unit of the subscription duration.
Valid values:
* Month
* Year
@NameInMap(value="productInfo") public CreateInstanceRequest.CreateInstanceRequestProductInfo productInfo
The information about the instance specifications.
@NameInMap(value="remark") public String remark
The instance description.
@NameInMap(value="resourceGroupId") public String resourceGroupId
The resource group ID.
@NameInMap(value="seriesCode") public String seriesCode
The primary edition of the instance. For information about the differences between primary edition instances, see [Instance selection](https://help.aliyun.com/document_detail/444722.html).
Valid values:
* standard: Standard Edition
* ultimate: Enterprise Platinum Edition
* professional: Professional Edition
> After an instance is created, you can only upgrade the primary edition of the instance. The following editions are sorted in ascending order: Standard Edition, Professional Edition, Enterprise Platinum Edition. For example, you can upgrade an instance of Standard Edition to Professional Edition, but cannot downgrade an instance of Professional Edition to Standard Edition.
This parameter is required.
@NameInMap(value="serviceCode") public String serviceCode
The code of the service to which the instance belongs. The service code of ApsaraMQ for RocketMQ is rmq.
This parameter is required.
@NameInMap(value="subSeriesCode") public String subSeriesCode
The sub-category edition of the instance. For information about the differences between sub-category edition instances, see [Instance selection](https://help.aliyun.com/document_detail/444722.html).
Valid values:
* cluster_ha: High-availability Cluster Edition
* single_node: Standalone Edition
* serverless: Serverless Edition
If you set seriesCode to ultimate, you can set this parameter to only cluster_ha.
> After an instance is created, you cannot change the sub-category edition of the instance.
This parameter is required.
@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 value of this parameter, but you must ensure that the value is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.
public static CreateInstanceRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateInstanceRequest setAutoRenew(Boolean autoRenew)
public Boolean getAutoRenew()
public CreateInstanceRequest setAutoRenewPeriod(Integer autoRenewPeriod)
public Integer getAutoRenewPeriod()
public CreateInstanceRequest setCommodityCode(String commodityCode)
public String getCommodityCode()
public CreateInstanceRequest setInstanceName(String instanceName)
public String getInstanceName()
public CreateInstanceRequest setNetworkInfo(CreateInstanceRequest.CreateInstanceRequestNetworkInfo networkInfo)
public CreateInstanceRequest.CreateInstanceRequestNetworkInfo getNetworkInfo()
public CreateInstanceRequest setPaymentType(String paymentType)
public String getPaymentType()
public CreateInstanceRequest setPeriod(Integer period)
public Integer getPeriod()
public CreateInstanceRequest setPeriodUnit(String periodUnit)
public String getPeriodUnit()
public CreateInstanceRequest setProductInfo(CreateInstanceRequest.CreateInstanceRequestProductInfo productInfo)
public CreateInstanceRequest.CreateInstanceRequestProductInfo getProductInfo()
public CreateInstanceRequest setRemark(String remark)
public String getRemark()
public CreateInstanceRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateInstanceRequest setSeriesCode(String seriesCode)
public String getSeriesCode()
public CreateInstanceRequest setServiceCode(String serviceCode)
public String getServiceCode()
public CreateInstanceRequest setSubSeriesCode(String subSeriesCode)
public String getSubSeriesCode()
public CreateInstanceRequest setClientToken(String clientToken)
public String getClientToken()
Copyright © 2024. All rights reserved.