Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ public static class Record implements Serializable, Cloneable {

private String awsRegion;

private String customData;

private Integer eventTotalParts;

/**
Expand Down Expand Up @@ -596,6 +598,27 @@ public Record withEventTotalParts(Integer eventTotalParts) {
return this;
}

/**
*
* @return custom data
*/
public String getCustomData(){ return this.customData;}

/**
*
* @param customData event custom data
*/
public void setCustomData(String customData) { this.customData = customData;}

/**
* @param customData event
* @return Record
*/
public Record withCustomData(String customData) {
setCustomData(customData);
return this;
}

/**
* Returns a string representation of this object; useful for testing and debugging.
*
Expand Down Expand Up @@ -631,6 +654,8 @@ public String toString() {
sb.append("eventSource: ").append(getEventSource()).append(",");
if (getAwsRegion() != null)
sb.append("awsRegion: ").append(getAwsRegion()).append(",");
if (getCustomData() != null)
sb.append("customData: ").append(getCustomData()).append(",");
if (getEventTotalParts() != null)
sb.append("eventTotalParts: ").append(getEventTotalParts());
sb.append("}");
Expand Down Expand Up @@ -699,6 +724,10 @@ public boolean equals(Object obj) {
return false;
if (other.getEventTotalParts() != null && other.getEventTotalParts().equals(this.getEventTotalParts()) == false)
return false;
if (other.getCustomData() == null ^ this.getCustomData() == null)
return false;
if (other.getCustomData() != null && other.getCustomData().equals(this.getCustomData()) == false)
return false;
return true;
}

Expand All @@ -720,6 +749,7 @@ public int hashCode() {
hashCode = prime * hashCode + ((getEventSource() == null) ? 0 : getEventSource().hashCode());
hashCode = prime * hashCode + ((getAwsRegion() == null) ? 0 : getAwsRegion().hashCode());
hashCode = prime * hashCode + ((getEventTotalParts() == null) ? 0 : getEventTotalParts().hashCode());
hashCode = prime * hashCode + ((getCustomData() == null) ? 0 : getCustomData().hashCode());
return hashCode;
}

Expand Down