public class CreateSubscriptionRequest extends AbstractModel
Constructor and Description |
---|
CreateSubscriptionRequest() |
CreateSubscriptionRequest(CreateSubscriptionRequest 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 |
---|---|
Boolean |
getAutoCreatePolicyTopic()
Get Whether to automatically create a dead letter topic and a retry letter topic.
|
String |
getClusterId()
Get Pulsar cluster ID
|
String |
getEnvironmentId()
Get Environment (namespace) name.
|
Boolean |
getIsIdempotent()
Get Whether the creation is idempotent; if not, you cannot create subscriptions with the same name.
|
String |
getPostFixPattern()
Get Naming convention for dead letter and retry letter topics.
|
String |
getRemark()
Get Remarks (up to 128 characters).
|
String |
getSubscriptionName()
Get Subscriber name, which can contain up to 128 characters.
|
String |
getTopicName()
Get Topic name.
|
void |
setAutoCreatePolicyTopic(Boolean AutoCreatePolicyTopic)
Set Whether to automatically create a dead letter topic and a retry letter topic.
|
void |
setClusterId(String ClusterId)
Set Pulsar cluster ID
|
void |
setEnvironmentId(String EnvironmentId)
Set Environment (namespace) name.
|
void |
setIsIdempotent(Boolean IsIdempotent)
Set Whether the creation is idempotent; if not, you cannot create subscriptions with the same name.
|
void |
setPostFixPattern(String PostFixPattern)
Set Naming convention for dead letter and retry letter topics.
|
void |
setRemark(String Remark)
Set Remarks (up to 128 characters).
|
void |
setSubscriptionName(String SubscriptionName)
Set Subscriber name, which can contain up to 128 characters.
|
void |
setTopicName(String TopicName)
Set Topic name.
|
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 CreateSubscriptionRequest()
public CreateSubscriptionRequest(CreateSubscriptionRequest source)
public String getEnvironmentId()
public void setEnvironmentId(String EnvironmentId)
EnvironmentId
- Environment (namespace) name.public String getTopicName()
public void setTopicName(String TopicName)
TopicName
- Topic name.public String getSubscriptionName()
public void setSubscriptionName(String SubscriptionName)
SubscriptionName
- Subscriber name, which can contain up to 128 characters.public Boolean getIsIdempotent()
public void setIsIdempotent(Boolean IsIdempotent)
IsIdempotent
- Whether the creation is idempotent; if not, you cannot create subscriptions with the same name.public String getRemark()
public void setRemark(String Remark)
Remark
- Remarks (up to 128 characters).public String getClusterId()
public void setClusterId(String ClusterId)
ClusterId
- Pulsar cluster IDpublic Boolean getAutoCreatePolicyTopic()
public void setAutoCreatePolicyTopic(Boolean AutoCreatePolicyTopic)
AutoCreatePolicyTopic
- Whether to automatically create a dead letter topic and a retry letter topic. true: yes (default value); false: no.public String getPostFixPattern()
public void setPostFixPattern(String PostFixPattern)
PostFixPattern
- Naming convention for dead letter and retry letter topics. `LEGACY` indicates to use the legacy naming convention, and `COMMUNITY` indicates to use the naming convention in the Pulsar community.Copyright © 2023. All rights reserved.