com.aliyun.datahub.model.ResetOffsetRequest Maven / Gradle / Ivy
package com.aliyun.datahub.model;
import java.security.InvalidParameterException;
import java.util.Map;
public class ResetOffsetRequest {
private String projectName;
private String topicName;
private String subId;
private Map offsets;
public ResetOffsetRequest(String project, String topic, String subId, Map offsets) {
if (project == null) {
throw new InvalidParameterException("project name is null");
}
if (topic == null) {
throw new InvalidParameterException("topic name is null");
}
if (subId == null) {
throw new InvalidParameterException("sub id is null");
}
if (offsets == null) {
throw new InvalidParameterException("offsets is null");
}
this.projectName = project;
this.topicName = topic;
this.subId = subId;
this.offsets = offsets;
}
public String getProjectName() {
return projectName;
}
public String getTopicName() {
return topicName;
}
public String getSubId() {
return subId;
}
public Map getOffsets() {
return offsets;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy