public static final class QueryMqttTraceMessageSubscribeRequest.Builder extends Object
public QueryMqttTraceMessageSubscribeRequest.Builder regionId(String regionId)
This parameter is required.
public QueryMqttTraceMessageSubscribeRequest.Builder beginTime(Long beginTime)
The beginning of the time range to query. The value of this parameter is a UNIX timestamp in milliseconds.
This parameter is required.
example:1621936800000
public QueryMqttTraceMessageSubscribeRequest.Builder clientId(String clientId)
The ID of the client that subscribes to the message. If you do not specify this parameter, the IDs of all clients that subscribe to the message are returned.
example:GID_test@@@consumer
public QueryMqttTraceMessageSubscribeRequest.Builder currentPage(Integer currentPage)
The number of the page to return. Pages start from page 1. If the input parameter value is greater than the total number of pages, the returned result is empty.
This parameter is required.
example:1
public QueryMqttTraceMessageSubscribeRequest.Builder endTime(Long endTime)
The end of the time range to query. The value of this parameter is a UNIX timestamp in milliseconds.
This parameter is required.
example:1618646400000
public QueryMqttTraceMessageSubscribeRequest.Builder instanceId(String instanceId)
The ID of the ApsaraMQ for MQTT instance. The ID must be consistent with the ID of the instance that the ApsaraMQ for MQTT client uses. You can view the instance ID in the Basic Information section of the Instance Details page that corresponds to the instance in the ApsaraMQ for MQTT console.
This parameter is required.
example:mqtt-cn-i7m26mf****
public QueryMqttTraceMessageSubscribeRequest.Builder mqttRegionId(String mqttRegionId)
The ID of the region where the ApsaraMQ for MQTT instance resides. For more information, see Endpoints.
This parameter is required.
example:cn-hangzhou
public QueryMqttTraceMessageSubscribeRequest.Builder msgId(String msgId)
The message ID.
This parameter is required.
example:AC1EC1B33D5978308DB17F3245E4****
public QueryMqttTraceMessageSubscribeRequest.Builder pageSize(Integer pageSize)
The number of entries to return on each page. Valid values: 1 to 100.
This parameter is required.
example:5
public QueryMqttTraceMessageSubscribeRequest.Builder reverse(Boolean reverse)
Specifies whether the returned results are displayed in reverse chronological order. Valid values:
If you do not specify this parameter, the returned results are displayed in order of time when messages are delivered.
example:false
public QueryMqttTraceMessageSubscribeRequest build()
Copyright © 2025. All rights reserved.