public class APIGatewayProxyRequestEvent extends Object implements Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
APIGatewayProxyRequestEvent.ProxyRequestContext
class that represents proxy request context
|
static class |
APIGatewayProxyRequestEvent.RequestIdentity |
Constructor and Description |
---|
APIGatewayProxyRequestEvent()
default constructor
|
public APIGatewayProxyRequestEvent()
public String getVersion()
public void setVersion(String version)
version
- The payload format versionpublic APIGatewayProxyRequestEvent withVersion(String version)
version
- The payload format versionpublic String getResource()
public void setResource(String resource)
resource
- The resource path defined in API Gatewaypublic APIGatewayProxyRequestEvent withResource(String resource)
resource
- The resource path defined in API Gatewaypublic String getPath()
public void setPath(String path)
path
- The url path for the callerpublic APIGatewayProxyRequestEvent withPath(String path)
path
- The url path for the callerpublic String getHttpMethod()
public void setHttpMethod(String httpMethod)
httpMethod
- The HTTP method usedpublic APIGatewayProxyRequestEvent withHttpMethod(String httpMethod)
httpMethod
- The HTTP method usedpublic void setHeaders(Map<String,String> headers)
headers
- The headers sent with the requestpublic APIGatewayProxyRequestEvent withHeaders(Map<String,String> headers)
headers
- The headers sent with the requestpublic Map<String,List<String>> getMultiValueHeaders()
public void setMultiValueHeaders(Map<String,List<String>> multiValueHeaders)
multiValueHeaders
- The multi value headers sent with the requestpublic APIGatewayProxyRequestEvent withMultiValueHeaders(Map<String,List<String>> multiValueHeaders)
multiValueHeaders
- The multi value headers sent with the requestpublic Map<String,String> getQueryStringParameters()
public void setQueryStringParameters(Map<String,String> queryStringParameters)
queryStringParameters
- The query string parameters that were part of the requestpublic APIGatewayProxyRequestEvent withQueryStringParameters(Map<String,String> queryStringParameters)
queryStringParameters
- The query string parameters that were part of the request@Deprecated public APIGatewayProxyRequestEvent withQueryStringParamters(Map<String,String> queryStringParameters)
withQueryStringParameters(java.util.Map<java.lang.String, java.lang.String>)
instead.public Map<String,List<String>> getMultiValueQueryStringParameters()
public void setMultiValueQueryStringParameters(Map<String,List<String>> multiValueQueryStringParameters)
multiValueQueryStringParameters
- The multi value query string parameters that were part of the requestpublic APIGatewayProxyRequestEvent withMultiValueQueryStringParameters(Map<String,List<String>> multiValueQueryStringParameters)
multiValueQueryStringParameters
- The multi value query string parameters that were part of the requestpublic Map<String,String> getPathParameters()
public void setPathParameters(Map<String,String> pathParameters)
pathParameters
- The path parameters that were part of the requestpublic APIGatewayProxyRequestEvent withPathParameters(Map<String,String> pathParameters)
pathParameters
- The path parameters that were part of the request@Deprecated public APIGatewayProxyRequestEvent withPathParamters(Map<String,String> pathParameters)
withPathParameters(java.util.Map<java.lang.String, java.lang.String>)
instead.public Map<String,String> getStageVariables()
public void setStageVariables(Map<String,String> stageVariables)
stageVariables
- The stage variables defined for the stage in API Gatewaypublic APIGatewayProxyRequestEvent withStageVariables(Map<String,String> stageVariables)
stageVariables
- The stage variables defined for the stage in API Gatewaypublic APIGatewayProxyRequestEvent.ProxyRequestContext getRequestContext()
public void setRequestContext(APIGatewayProxyRequestEvent.ProxyRequestContext requestContext)
requestContext
- The request context for the requestpublic APIGatewayProxyRequestEvent withRequestContext(APIGatewayProxyRequestEvent.ProxyRequestContext requestContext)
requestContext
- The request context for the requestpublic String getBody()
public void setBody(String body)
body
- The HTTP request body.public APIGatewayProxyRequestEvent withBody(String body)
body
- The HTTP request bodypublic Boolean getIsBase64Encoded()
public void setIsBase64Encoded(Boolean isBase64Encoded)
isBase64Encoded
- Whether the body String is base64 encodedpublic APIGatewayProxyRequestEvent withIsBase64Encoded(Boolean isBase64Encoded)
isBase64Encoded
- Whether the body String is base64 encodedpublic String toString()
toString
in class Object
Object.toString()
public APIGatewayProxyRequestEvent clone()
Copyright © 2024. All rights reserved.