public static class UpdateInstanceRequest.UpdateInstanceRequestProductInfo
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
Boolean |
autoScaling
Specifies whether to enable the elastic transactions per second (TPS) feature for the instance.
|
Integer |
messageRetentionTime
The retention period of messages.
|
Float |
sendReceiveRatio
The ratio of the number of messages that you can send to the number of messages that you can receive on the instance.
|
Boolean |
traceOn
Specifies whether to enable the message trace feature.
|
| 构造器和说明 |
|---|
UpdateInstanceRequestProductInfo() |
| 限定符和类型 | 方法和说明 |
|---|---|
static UpdateInstanceRequest.UpdateInstanceRequestProductInfo |
build(Map<String,?> map) |
Boolean |
getAutoScaling() |
Integer |
getMessageRetentionTime() |
Float |
getSendReceiveRatio() |
Boolean |
getTraceOn() |
UpdateInstanceRequest.UpdateInstanceRequestProductInfo |
setAutoScaling(Boolean autoScaling) |
UpdateInstanceRequest.UpdateInstanceRequestProductInfo |
setMessageRetentionTime(Integer messageRetentionTime) |
UpdateInstanceRequest.UpdateInstanceRequestProductInfo |
setSendReceiveRatio(Float sendReceiveRatio) |
UpdateInstanceRequest.UpdateInstanceRequestProductInfo |
setTraceOn(Boolean traceOn) |
@NameInMap(value="autoScaling") public Boolean autoScaling
Specifies whether to enable the elastic transactions per second (TPS) feature for the instance.
Valid values:
* true
* false
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](https://help.aliyun.com/document_detail/427237.html).
> The elastic TPS feature is supported only by specific instance editions. For more information, see [Instance editions](https://help.aliyun.com/document_detail/444715.html).
@NameInMap(value="messageRetentionTime") public Integer messageRetentionTime
The retention period of messages. Unit: hours.
For information about the valid values of this parameter, see the "Limits on resource quotas" section of the [Limits](https://help.aliyun.com/document_detail/440347.html) 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](https://help.aliyun.com/document_detail/427238.html).
@NameInMap(value="sendReceiveRatio") public Float sendReceiveRatio
The ratio of the number of messages that you can send to the number of messages that you can receive on the instance.
Value values: 0.25 to 1.
@NameInMap(value="traceOn") public Boolean traceOn
Specifies whether to enable the message trace feature.
* true
* false
This parameter is not in use. By default, the message trace feature is enabled for ApsaraMQ for RocketMQ instances, regardless of whether this parameter is configured.
public static UpdateInstanceRequest.UpdateInstanceRequestProductInfo build(Map<String,?> map) throws Exception
Exceptionpublic UpdateInstanceRequest.UpdateInstanceRequestProductInfo setAutoScaling(Boolean autoScaling)
public Boolean getAutoScaling()
public UpdateInstanceRequest.UpdateInstanceRequestProductInfo setMessageRetentionTime(Integer messageRetentionTime)
public Integer getMessageRetentionTime()
public UpdateInstanceRequest.UpdateInstanceRequestProductInfo setSendReceiveRatio(Float sendReceiveRatio)
public Float getSendReceiveRatio()
public UpdateInstanceRequest.UpdateInstanceRequestProductInfo setTraceOn(Boolean traceOn)
public Boolean getTraceOn()
Copyright © 2024. All rights reserved.