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. *