public class CreateTopicRequest extends AbstractModel
Constructor and Description |
---|
CreateTopicRequest() |
CreateTopicRequest(CreateTopicRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getClusterId()
Get Pulsar cluster ID
|
String |
getEnvironmentId()
Get Environment (namespace) name.
|
Long |
getPartitions()
Get The value “1” indicates a non-partitioned topic (a topic with no partitions) will be created.
|
Long |
getPulsarTopicType()
Get Pulsar topic type.
|
String |
getRemark()
Get Remarks (up to 128 characters).
|
String |
getTopicName()
Get Topic name, which can contain up to 64 letters, digits, hyphens, and underscores.
|
Long |
getTopicType()
Get This input parameter will be disused soon.
|
void |
setClusterId(String ClusterId)
Set Pulsar cluster ID
|
void |
setEnvironmentId(String EnvironmentId)
Set Environment (namespace) name.
|
void |
setPartitions(Long Partitions)
Set The value “1” indicates a non-partitioned topic (a topic with no partitions) will be created.
|
void |
setPulsarTopicType(Long PulsarTopicType)
Set Pulsar topic type.
|
void |
setRemark(String Remark)
Set Remarks (up to 128 characters).
|
void |
setTopicName(String TopicName)
Set Topic name, which can contain up to 64 letters, digits, hyphens, and underscores.
|
void |
setTopicType(Long TopicType)
Set This input parameter will be disused soon.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CreateTopicRequest()
public CreateTopicRequest(CreateTopicRequest source)
public String getEnvironmentId()
public void setEnvironmentId(String EnvironmentId)
EnvironmentId
- Environment (namespace) name.public String getTopicName()
public void setTopicName(String TopicName)
TopicName
- Topic name, which can contain up to 64 letters, digits, hyphens, and underscores.public Long getPartitions()
public void setPartitions(Long Partitions)
Partitions
- The value “1” indicates a non-partitioned topic (a topic with no partitions) will be created. A value between 1 (exclusive) and 128 (inclusive) indicates the partition count of a partitioned topic.public String getRemark()
public void setRemark(String Remark)
Remark
- Remarks (up to 128 characters).public Long getTopicType()
public void setTopicType(Long TopicType)
TopicType
- This input parameter will be disused soon. You can use `PulsarTopicType` instead.
0: General message;
1: Globally sequential message;
2: Partitionally sequential message;
3: Retry letter topic;
4: Dead letter topic.public String getClusterId()
public void setClusterId(String ClusterId)
ClusterId
- Pulsar cluster IDpublic Long getPulsarTopicType()
public void setPulsarTopicType(Long PulsarTopicType)
PulsarTopicType
- Pulsar topic type.
`0`: Non-persistent and non-partitioned
`1`: Non-persistent and partitioned
`2`: Persistent and non-partitioned
`3`: Persistent and partitionedCopyright © 2023. All rights reserved.