aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/eu/ortlepp/notificationsender/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/eu/ortlepp/notificationsender/model')
-rw-r--r--src/main/java/eu/ortlepp/notificationsender/model/Notifications.java8
-rw-r--r--src/main/java/eu/ortlepp/notificationsender/model/Response.java8
-rw-r--r--src/main/java/eu/ortlepp/notificationsender/model/Status.java9
3 files changed, 25 insertions, 0 deletions
diff --git a/src/main/java/eu/ortlepp/notificationsender/model/Notifications.java b/src/main/java/eu/ortlepp/notificationsender/model/Notifications.java
new file mode 100644
index 0000000..65f7620
--- /dev/null
+++ b/src/main/java/eu/ortlepp/notificationsender/model/Notifications.java
@@ -0,0 +1,8 @@
+package eu.ortlepp.notificationsender.model;
+
+/**
+ * The expected input data of the Lambda.
+ *
+ * @param messages The messages / notifications
+ */
+public record Notifications(String[] messages) {}
diff --git a/src/main/java/eu/ortlepp/notificationsender/model/Response.java b/src/main/java/eu/ortlepp/notificationsender/model/Response.java
new file mode 100644
index 0000000..d931bed
--- /dev/null
+++ b/src/main/java/eu/ortlepp/notificationsender/model/Response.java
@@ -0,0 +1,8 @@
+package eu.ortlepp.notificationsender.model;
+
+/**
+ * The response of a Lambda execution.
+ *
+ * @param status The final execution status of the Lambda
+ */
+public record Response(Status status) {}
diff --git a/src/main/java/eu/ortlepp/notificationsender/model/Status.java b/src/main/java/eu/ortlepp/notificationsender/model/Status.java
new file mode 100644
index 0000000..caeb0cd
--- /dev/null
+++ b/src/main/java/eu/ortlepp/notificationsender/model/Status.java
@@ -0,0 +1,9 @@
+package eu.ortlepp.notificationsender.model;
+
+/**
+ * The status of a Lambda execution, shown in the response.
+ */
+public enum Status {
+ SUCCESS,
+ FAILED
+}