Skip to content

Commit 1104421

Browse files
miereraupachz
authored andcommitted
Added missing 'isBase64Encoded' field to APIGatewayProxyResponseEvent.java (aws#48)
1 parent 74060dc commit 1104421

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/APIGatewayProxyResponseEvent.java

+25
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ public class APIGatewayProxyResponseEvent implements Serializable, Cloneable {
1616

1717
private String body;
1818

19+
private Boolean isBase64Encoded;
20+
1921
/**
2022
* default constructor
2123
*/
@@ -90,6 +92,29 @@ public APIGatewayProxyResponseEvent withBody(String body) {
9092
return this;
9193
}
9294

95+
/**
96+
* @return whether the body String is base64 encoded.
97+
*/
98+
public Boolean getIsBase64Encoded() {
99+
return this.isBase64Encoded;
100+
}
101+
102+
/**
103+
* @param isBase64Encoded Whether the body String is base64 encoded
104+
*/
105+
public void setIsBase64Encoded(Boolean isBase64Encoded) {
106+
this.isBase64Encoded = isBase64Encoded;
107+
}
108+
109+
/**
110+
* @param isBase64Encoded Whether the body String is base64 encoded
111+
* @return APIGatewayProxyRequestEvent
112+
*/
113+
public APIGatewayProxyResponseEvent withIsBase64Encoded(Boolean isBase64Encoded) {
114+
this.setIsBase64Encoded(isBase64Encoded);
115+
return this;
116+
}
117+
93118
/**
94119
* Returns a string representation of this object; useful for testing and debugging.
95120
*

0 commit comments

Comments
 (0)