com.aliyun.datahub.client.impl.request.CreateTopicRequest Maven / Gradle / Ivy
The newest version!
package com.aliyun.datahub.client.impl.request;
import com.aliyun.datahub.client.model.ExpandMode;
import com.aliyun.datahub.client.model.RecordSchema;
import com.aliyun.datahub.client.model.RecordType;
import com.fasterxml.jackson.annotation.JsonProperty;
public class CreateTopicRequest extends BaseRequest {
@JsonProperty("ShardCount")
private int shardCount;
@JsonProperty("Lifecycle")
private int lifeCycle;
@JsonProperty("RecordType")
private RecordType recordType;
@JsonProperty("RecordSchema")
private RecordSchema recordSchema;
@JsonProperty("Comment")
private String comment;
@JsonProperty("ExpandMode")
private ExpandMode expandMode;
@JsonProperty("ClusterAddress")
private String clusterAddress;
@JsonProperty("EnableSchemaRegistry")
private Boolean enableSchemaRegistry = null;
public CreateTopicRequest() {
setAction("create");
}
public int getShardCount() {
return shardCount;
}
public CreateTopicRequest setShardCount(int shardCount) {
this.shardCount = shardCount;
return this;
}
public int getLifeCycle() {
return lifeCycle;
}
public CreateTopicRequest setLifeCycle(int lifeCycle) {
this.lifeCycle = lifeCycle;
return this;
}
public RecordType getRecordType() {
return recordType;
}
public CreateTopicRequest setRecordType(RecordType recordType) {
this.recordType = recordType;
return this;
}
public RecordSchema getRecordSchema() {
return recordSchema;
}
public CreateTopicRequest setRecordSchema(RecordSchema recordSchema) {
this.recordSchema = recordSchema;
return this;
}
public String getComment() {
return comment;
}
public CreateTopicRequest setComment(String comment) {
this.comment = comment;
return this;
}
public ExpandMode getExpandMode() {
return expandMode;
}
public CreateTopicRequest setExpandMode(ExpandMode expandMode) {
this.expandMode = expandMode;
return this;
}
public String getClusterAddress() {
return clusterAddress;
}
public CreateTopicRequest setClusterAddress(String clusterAddress) {
this.clusterAddress = clusterAddress;
return this;
}
public Boolean getEnableSchemaRegistry() {
return enableSchemaRegistry;
}
public CreateTopicRequest setEnableSchemaRegistry(Boolean enableSchemaRegistry) {
this.enableSchemaRegistry = enableSchemaRegistry;
return this;
}
}