
com.github.segmentio.models.Batch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of analytics Show documentation
Show all versions of analytics Show documentation
The analytics API you've always wanted.
The newest version!
package com.github.segmentio.models;
import java.util.List;
import java.util.UUID;
import org.joda.time.DateTime;
public class Batch {
private String writeKey;
private List batch;
private String messageId;
private DateTime sentAt;
public Batch(String writeKey, List batch) {
this.writeKey = writeKey;
this.batch = batch;
this.messageId = UUID.randomUUID().toString();
}
public String getWriteKey() {
return writeKey;
}
public void setWriteKey(String writeKey) {
this.writeKey = writeKey;
}
public List getBatch() {
return batch;
}
public void setBatch(List batch) {
this.batch = batch;
}
public String getMessageId() {
return messageId;
}
public void setMessageId(String messageId) {
this.messageId = messageId;
}
public DateTime getSentAt() {
return sentAt;
}
public void setSentAt(DateTime sentAt) {
this.sentAt = sentAt;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy