package com.kevinsimard.lambda.function;

import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestHandler;

@SuppressWarnings("unused")
public class Example implements RequestHandler<Example.Request, Example.Response> {

    public Response handleRequest(Request request, Context context) {
        return new Response(request.message);
    }

    protected static class Request {

        private String message;

        private Request() {}

        public void setMessage(String message) {
            this.message = message;
        }
    }

    protected static class Response {

        private String message;

        private Response(String message) {
            this.message = message;
        }

        public String getMessage() {
            return this.message;
        }
    }
}

@@ -387,34 +387,24 @@
 %0A    %7D%0A%0A    
-protected 
 static class
@@ -418,166 +418,38 @@
 t %7B%0A
-%0A        private String message;%0A%0A        private Request() %7B%7D%0A%0A        public void setMessage(String message) %7B%0A            this.message = message;%0A        %7D
+        public String message;
 %0A   
@@ -460,18 +460,8 @@
     
-protected 
 stat
@@ -480,17 +480,16 @@
 ponse %7B%0A
-%0A
         
@@ -489,22 +489,21 @@
        p
-rivate
+ublic
  String 
@@ -524,16 +524,8 @@
     
-private 
 Resp
@@ -596,89 +596,8 @@
    %7D
-%0A%0A        public String getMessage() %7B%0A            return this.message;%0A        %7D
 %0A   

Update Request & Response classes