com.aliyun.datahub.client.model.TopicOption Maven / Gradle / Ivy
The newest version!
package com.aliyun.datahub.client.model;
public class TopicOption {
/**
* The comment of the topic.
*/
private String comment;
/**
* The initial shard count of the topic
*/
private int shardCount = -1;
/**
* The expire time of the data (Unit: DAY). The data written before that time is not accessible.
*/
private int lifeCycle = -1;
/**
* Whether to enable SchemaRegistry, null means use the service default value.
*/
private Boolean enableSchemaRegistry = null;
/**
* Topic expand mode.
*/
private ExpandMode expandMode = ExpandMode.SPLIT_EXTEND;
/**
* The type of the record you want to write. Now support TUPLE and BLOB.
*/
private RecordType recordType;
/**
* The records schema of this topic, only for TUPLE topic.
*/
private RecordSchema recordSchema;
public TopicOption() {
}
public String getComment() {
return comment;
}
public TopicOption setComment(String comment) {
this.comment = comment;
return this;
}
public int getShardCount() {
return shardCount;
}
public TopicOption setShardCount(int shardCount) {
this.shardCount = shardCount;
return this;
}
public int getLifeCycle() {
return lifeCycle;
}
public TopicOption setLifeCycle(int lifeCycle) {
this.lifeCycle = lifeCycle;
return this;
}
public Boolean getEnableSchemaRegistry() {
return enableSchemaRegistry;
}
public TopicOption setEnableSchemaRegistry(Boolean enableSchemaRegistry) {
this.enableSchemaRegistry = enableSchemaRegistry;
return this;
}
public ExpandMode getExpandMode() {
return expandMode;
}
public TopicOption setExpandMode(ExpandMode expandMode) {
this.expandMode = expandMode;
return this;
}
public RecordType getRecordType() {
return recordType;
}
public TopicOption setRecordType(RecordType recordType) {
this.recordType = recordType;
return this;
}
public RecordSchema getRecordSchema() {
return recordSchema;
}
public TopicOption setRecordSchema(RecordSchema recordSchema) {
this.recordSchema = recordSchema;
return this;
}
}