public static final class CreateInstanceRequest.ProductInfo.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
CreateInstanceRequest.ProductInfo.Builder |
autoScaling(Boolean autoScaling)
Specifies whether to enable the elastic TPS feature for the instance.
|
CreateInstanceRequest.ProductInfo |
build() |
CreateInstanceRequest.ProductInfo.Builder |
chargeType(String chargeType)
The billing method.
|
CreateInstanceRequest.ProductInfo.Builder |
intranetSpec(String intranetSpec)
This parameter is no longer used.
|
CreateInstanceRequest.ProductInfo.Builder |
messageRetentionTime(Integer messageRetentionTime)
The retention period of messages.
|
CreateInstanceRequest.ProductInfo.Builder |
msgProcessSpec(String msgProcessSpec)
The computing specification that specifies the messaging transactions per second (TPS) of the instance.
|
CreateInstanceRequest.ProductInfo.Builder |
sendReceiveRatio(Float sendReceiveRatio)
The proportion of message sending TPS to the messaging TPS on the instance.
|
public CreateInstanceRequest.ProductInfo.Builder autoScaling(Boolean autoScaling)
Valid values: * true: enable * false: disable After you enable the elastic TPS feature for an ApsaraMQ for RocketMQ instance, you can use a specific number of TPS that exceeds the specification limit. You are charged for using the elastic TPS feature. For more information, see [Computing fees](~~427237~~). > The elastic TPS feature is supported only by instances of specific editions. For more information, see [Instance editions](~~444715~~).
public CreateInstanceRequest.ProductInfo.Builder chargeType(String chargeType)
Valid values: * provisioned * ondemand
public CreateInstanceRequest.ProductInfo.Builder intranetSpec(String intranetSpec)
public CreateInstanceRequest.ProductInfo.Builder messageRetentionTime(Integer messageRetentionTime)
For information about the valid values of this parameter, see the "Limits on resource quotas" section of the [Limits](~~440347~~) topic. ApsaraMQ for RocketMQ supports serverless scaling of message storage. You are charged storage fees based on your actual storage usage. You can change the retention period of messages to manage storage capacity. For more information, see [Storage fees](~~427238~~).
public CreateInstanceRequest.ProductInfo.Builder msgProcessSpec(String msgProcessSpec)
public CreateInstanceRequest.ProductInfo.Builder sendReceiveRatio(Float sendReceiveRatio)
For example, you create an instance whose peak messaging TPS is specified as 1,000 and the proportion of message sending TPS is specified as 0.8. In this case, the peak message sending TPS is 800 and the peak message receiving TPS is 200 on the instance. Valid values: 0 to 1. Default value: 0.5.
public CreateInstanceRequest.ProductInfo build()
Copyright © 2024. All rights reserved.