From d021d2e6684f24f9fea06bca652b5a372ed79cdb Mon Sep 17 00:00:00 2001 From: Miere Date: Mon, 14 May 2018 10:14:45 -0300 Subject: [PATCH] Added missing 'isBase64Encoded' field to APIGatewayProxyResponseEvent.java --- .../events/APIGatewayProxyResponseEvent.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/APIGatewayProxyResponseEvent.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/APIGatewayProxyResponseEvent.java index 7a3581b0..da6220bd 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/APIGatewayProxyResponseEvent.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/APIGatewayProxyResponseEvent.java @@ -16,6 +16,8 @@ public class APIGatewayProxyResponseEvent implements Serializable, Cloneable { private String body; + private Boolean isBase64Encoded; + /** * default constructor */ @@ -90,6 +92,29 @@ public APIGatewayProxyResponseEvent withBody(String body) { return this; } + /** + * @return whether the body String is base64 encoded. + */ + public Boolean getIsBase64Encoded() { + return this.isBase64Encoded; + } + + /** + * @param isBase64Encoded Whether the body String is base64 encoded + */ + public void setIsBase64Encoded(Boolean isBase64Encoded) { + this.isBase64Encoded = isBase64Encoded; + } + + /** + * @param isBase64Encoded Whether the body String is base64 encoded + * @return APIGatewayProxyRequestEvent + */ + public APIGatewayProxyResponseEvent withIsBase64Encoded(Boolean isBase64Encoded) { + this.setIsBase64Encoded(isBase64Encoded); + return this; + } + /** * Returns a string representation of this object; useful for testing and debugging. *