public static final class CreateTopicRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateTopicRequest |
build() |
CreateTopicRequest.Builder |
instanceId(String instanceId)
The ID of the instance to which the topic belongs.
|
CreateTopicRequest.Builder |
messageType(String messageType)
The type of messages in the topic that you want to create.
|
CreateTopicRequest.Builder |
remark(String remark)
The description of the topic that you want to create.
|
CreateTopicRequest.Builder |
topicName(String topicName)
The name of the topic.
|
public CreateTopicRequest.Builder instanceId(String instanceId)
public CreateTopicRequest.Builder topicName(String topicName)
The following describes the naming conventions of a topic: * The name can contain letters, digits, underscores (\_), hyphens (-), and percent signs (%). * The name must be 1 to 60 characters in length. For information about the characters reserved for the system, see [Limits on parameters](~~440347~~).
public CreateTopicRequest.Builder messageType(String messageType)
Valid values: * TRANSACTION: transactional messages * FIFO: ordered messages * DELAY: scheduled messages or delayed Message * NORMAL: normal messages > The type of messages in the topic must be the same as the type of messages that you want to send. For example, if you create a topic whose message type is ordered messages, the topic can be used to send and receive only ordered messages.
public CreateTopicRequest.Builder remark(String remark)
public CreateTopicRequest build()
Copyright © 2024. All rights reserved.