@@ -290,6 +290,8 @@ public static class Record implements Serializable, Cloneable {
290
290
291
291
private String awsRegion ;
292
292
293
+ private String customData ;
294
+
293
295
private Integer eventTotalParts ;
294
296
295
297
/**
@@ -596,6 +598,27 @@ public Record withEventTotalParts(Integer eventTotalParts) {
596
598
return this ;
597
599
}
598
600
601
+ /**
602
+ *
603
+ * @return custom data
604
+ */
605
+ public String getCustomData (){ return this .customData ;}
606
+
607
+ /**
608
+ *
609
+ * @param customData event custom data
610
+ */
611
+ public void setCustomData (String customData ) { this .customData = customData ;}
612
+
613
+ /**
614
+ * @param customData event
615
+ * @return Record
616
+ */
617
+ public Record withCustomData (String customData ) {
618
+ setCustomData (customData );
619
+ return this ;
620
+ }
621
+
599
622
/**
600
623
* Returns a string representation of this object; useful for testing and debugging.
601
624
*
@@ -631,6 +654,8 @@ public String toString() {
631
654
sb .append ("eventSource: " ).append (getEventSource ()).append ("," );
632
655
if (getAwsRegion () != null )
633
656
sb .append ("awsRegion: " ).append (getAwsRegion ()).append ("," );
657
+ if (getCustomData () != null )
658
+ sb .append ("customData: " ).append (getCustomData ()).append ("," );
634
659
if (getEventTotalParts () != null )
635
660
sb .append ("eventTotalParts: " ).append (getEventTotalParts ());
636
661
sb .append ("}" );
@@ -699,6 +724,10 @@ public boolean equals(Object obj) {
699
724
return false ;
700
725
if (other .getEventTotalParts () != null && other .getEventTotalParts ().equals (this .getEventTotalParts ()) == false )
701
726
return false ;
727
+ if (other .getCustomData () == null ^ this .getCustomData () == null )
728
+ return false ;
729
+ if (other .getCustomData () != null && other .getCustomData ().equals (this .getCustomData ()) == false )
730
+ return false ;
702
731
return true ;
703
732
}
704
733
@@ -720,6 +749,7 @@ public int hashCode() {
720
749
hashCode = prime * hashCode + ((getEventSource () == null ) ? 0 : getEventSource ().hashCode ());
721
750
hashCode = prime * hashCode + ((getAwsRegion () == null ) ? 0 : getAwsRegion ().hashCode ());
722
751
hashCode = prime * hashCode + ((getEventTotalParts () == null ) ? 0 : getEventTotalParts ().hashCode ());
752
+ hashCode = prime * hashCode + ((getCustomData () == null ) ? 0 : getCustomData ().hashCode ());
723
753
return hashCode ;
724
754
}
725
755
0 commit comments