com.aliyun.datahub.model.CommitSubscriptionOffsetRequest Maven / Gradle / Ivy
package com.aliyun.datahub.model;
import java.security.InvalidParameterException;
import java.util.Map;
public class CommitSubscriptionOffsetRequest {
private String projectName;
private String subId;
private Map offsets;
public CommitSubscriptionOffsetRequest(String project, String subId, Map offsets) {
if (project == null) {
throw new InvalidParameterException("project 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.subId = subId;
this.offsets = offsets;
}
public String getProjectName() {
return projectName;
}
public String getSubId() {
return subId;
}
public Map getOffsets() {
return offsets;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy