com.amazonaws.services.lambda.runtime.events.RabbitMQEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-lambda-java-events Show documentation
Show all versions of aws-lambda-java-events Show documentation
Event interface definitions AWS services supported by AWS Lambda.
package com.amazonaws.services.lambda.runtime.events;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
import java.util.Map;
/**
* Represents a Rabbit MQ event sent to Lambda
* Onboarding Amazon MQ as event source to Lambda
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder(setterPrefix = "with")
public class RabbitMQEvent {
private String eventSource;
private String eventSourceArn;
private Map> rmqMessagesByQueue;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder(setterPrefix = "with")
public static class RabbitMessage {
private BasicProperties basicProperties;
private boolean redelivered;
private String data;
}
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder(setterPrefix = "with")
public static class BasicProperties {
private String contentType;
private String contentEncoding;
private Map headers;
private int deliveryMode;
private int priority;
private String correlationId;
private String replyTo;
private int expiration;
private String messageId;
private String timestamp;
private String type;
private String userId;
private String appId;
private String clusterId;
private int bodySize;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy