1
1
package com .amazonaws .services .lambda .runtime .events ;
2
2
3
3
import java .io .Serializable ;
4
+ import java .util .List ;
4
5
import java .util .Map ;
5
6
6
7
/**
@@ -18,8 +19,12 @@ public class APIGatewayProxyRequestEvent implements Serializable, Cloneable {
18
19
19
20
private Map <String , String > headers ;
20
21
22
+ private Map <String , List <String >> multiValueHeaders ;
23
+
21
24
private Map <String , String > queryStringParameters ;
22
25
26
+ private Map <String , List <String >> multiValueQueryStringParameters ;
27
+
23
28
private Map <String , String > pathParameters ;
24
29
25
30
private Map <String , String > stageVariables ;
@@ -914,6 +919,29 @@ public APIGatewayProxyRequestEvent withHeaders(Map<String, String> headers) {
914
919
return this ;
915
920
}
916
921
922
+ /**
923
+ * @return The multi value headers sent with the request
924
+ */
925
+ public Map <String , List <String >> getMultiValueHeaders () {
926
+ return multiValueHeaders ;
927
+ }
928
+
929
+ /**
930
+ * @param multiValueHeaders The multi value headers sent with the request
931
+ */
932
+ public void setMultiValueHeaders (Map <String , List <String >> multiValueHeaders ) {
933
+ this .multiValueHeaders = multiValueHeaders ;
934
+ }
935
+
936
+ /**
937
+ * @param multiValueHeaders The multi value headers sent with the request
938
+ * @return APIGatewayProxyRequestEvent object
939
+ */
940
+ public APIGatewayProxyRequestEvent withMultiValueHeaders (Map <String , List <String >> multiValueHeaders ) {
941
+ this .setMultiValueHeaders (multiValueHeaders );
942
+ return this ;
943
+ }
944
+
917
945
/**
918
946
* @return The query string parameters that were part of the request
919
947
*/
@@ -937,6 +965,29 @@ public APIGatewayProxyRequestEvent withQueryStringParamters(Map<String, String>
937
965
return this ;
938
966
}
939
967
968
+ /**
969
+ * @return The multi value query string parameters that were part of the request
970
+ */
971
+ public Map <String , List <String >> getMultiValueQueryStringParameters () {
972
+ return multiValueQueryStringParameters ;
973
+ }
974
+
975
+ /**
976
+ * @param multiValueQueryStringParameters The multi value query string parameters that were part of the request
977
+ */
978
+ public void setMultiValueQueryStringParameters (Map <String , List <String >> multiValueQueryStringParameters ) {
979
+ this .multiValueQueryStringParameters = multiValueQueryStringParameters ;
980
+ }
981
+
982
+ /**
983
+ * @param multiValueQueryStringParameters The multi value query string parameters that were part of the request
984
+ * @return APIGatewayProxyRequestEvent
985
+ */
986
+ public APIGatewayProxyRequestEvent withMultiValueQueryStringParameters (Map <String , List <String >> multiValueQueryStringParameters ) {
987
+ this .setMultiValueQueryStringParameters (multiValueQueryStringParameters );
988
+ return this ;
989
+ }
990
+
940
991
/**
941
992
* @return The path parameters that were part of the request
942
993
*/
@@ -1071,8 +1122,12 @@ public String toString() {
1071
1122
sb .append ("httpMethod: " ).append (getHttpMethod ()).append ("," );
1072
1123
if (getHeaders () != null )
1073
1124
sb .append ("headers: " ).append (getHeaders ().toString ()).append ("," );
1125
+ if (getMultiValueHeaders () != null )
1126
+ sb .append ("multiValueHeaders: " ).append (getMultiValueHeaders ().toString ()).append ("," );
1074
1127
if (getQueryStringParameters () != null )
1075
1128
sb .append ("queryStringParameters: " ).append (getQueryStringParameters ().toString ()).append ("," );
1129
+ if (getMultiValueQueryStringParameters () != null )
1130
+ sb .append ("multiValueQueryStringParameters: " ).append (getMultiValueQueryStringParameters ().toString ()).append ("," );
1076
1131
if (getPathParameters () != null )
1077
1132
sb .append ("pathParameters: " ).append (getPathParameters ().toString ()).append ("," );
1078
1133
if (getStageVariables () != null )
@@ -1113,10 +1168,18 @@ public boolean equals(Object obj) {
1113
1168
return false ;
1114
1169
if (other .getHeaders () != null && other .getHeaders ().equals (this .getHeaders ()) == false )
1115
1170
return false ;
1171
+ if (other .getMultiValueHeaders () == null ^ this .getMultiValueHeaders () == null )
1172
+ return false ;
1173
+ if (other .getMultiValueHeaders () != null && other .getMultiValueHeaders ().equals (this .getMultiValueHeaders ()) == false )
1174
+ return false ;
1116
1175
if (other .getQueryStringParameters () == null ^ this .getQueryStringParameters () == null )
1117
1176
return false ;
1118
1177
if (other .getQueryStringParameters () != null && other .getQueryStringParameters ().equals (this .getQueryStringParameters ()) == false )
1119
1178
return false ;
1179
+ if (other .getMultiValueQueryStringParameters () == null ^ this .getMultiValueQueryStringParameters () == null )
1180
+ return false ;
1181
+ if (other .getMultiValueQueryStringParameters () != null && other .getMultiValueQueryStringParameters ().equals (this .getMultiValueQueryStringParameters ()) == false )
1182
+ return false ;
1120
1183
if (other .getPathParameters () == null ^ this .getPathParameters () == null )
1121
1184
return false ;
1122
1185
if (other .getPathParameters () != null && other .getPathParameters ().equals (this .getPathParameters ()) == false )
@@ -1149,7 +1212,9 @@ public int hashCode() {
1149
1212
hashCode = prime * hashCode + ((getPath () == null ) ? 0 : getPath ().hashCode ());
1150
1213
hashCode = prime * hashCode + ((getHttpMethod () == null ) ? 0 : getHttpMethod ().hashCode ());
1151
1214
hashCode = prime * hashCode + ((getHeaders () == null ) ? 0 : getHeaders ().hashCode ());
1215
+ hashCode = prime * hashCode + ((getMultiValueHeaders () == null ) ? 0 : getMultiValueHeaders ().hashCode ());
1152
1216
hashCode = prime * hashCode + ((getQueryStringParameters () == null ) ? 0 : getQueryStringParameters ().hashCode ());
1217
+ hashCode = prime * hashCode + ((getMultiValueQueryStringParameters () == null ) ? 0 : getMultiValueQueryStringParameters ().hashCode ());
1153
1218
hashCode = prime * hashCode + ((getPathParameters () == null ) ? 0 : getPathParameters ().hashCode ());
1154
1219
hashCode = prime * hashCode + ((getStageVariables () == null ) ? 0 : getStageVariables ().hashCode ());
1155
1220
hashCode = prime * hashCode + ((getRequestContext () == null ) ? 0 : getRequestContext ().hashCode ());
0 commit comments