@@ -0,0 +1,1779 @@
+/*%0A * Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22). You may not use this file except in compliance with%0A * the License. A copy of the License is located at%0A *%0A * http://aws.amazon.com/apache2.0%0A *%0A * or in the %22license%22 file accompanying this file. This file is distributed on an %22AS IS%22 BASIS, WITHOUT WARRANTIES OR%0A * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions%0A * and limitations under the License.%0A */%0Apackage com.amazonaws.services.lambda.runtime.events;%0A%0Aimport lombok.AllArgsConstructor;%0Aimport lombok.Builder;%0Aimport lombok.Data;%0Aimport lombok.NoArgsConstructor;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0A@Data%0A@NoArgsConstructor%0A@AllArgsConstructor%0A@Builder(setterPrefix = %22with%22)%0A/** Represents a Kafka Event. **/%0Apublic class KafkaEvent %7B%0A    private Map%3CString, List%3CKafkaEventRecord%3E%3E records;%0A    private  String eventSource;%0A    private String eventSourceArn;%0A    %0A    @Data%0A    @NoArgsConstructor%0A    @AllArgsConstructor%0A    @Builder(setterPrefix = %22with%22)%0A    public static class KafkaEventRecord %7B%0A        private String topic;%0A        private int partition;%0A        private long offset;%0A        private long timestamp;%0A        private String timestampType;%0A        private String key;%0A        private String value;%0A    %7D%0A%0A    @Data%0A    @NoArgsConstructor%0A    @AllArgsConstructor%0A    @Builder(setterPrefix = %22with%22)%0A    public static class TopicPartition %7B%0A        private  String topic;%0A        private  int partition;%0A%0A        @Override%0A        public String toString() %7B%0A            //Kafka also uses '-' for toString()%0A            return topic + %22-%22 + partition;%0A        %7D%0A    %7D%0A%7D%0A

Add Kafka Event (#154)