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 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,String> getQueryStringParameters()
public void setQueryStringParameters(Map<String,String> queryStringParameters)
queryStringParameters
- The query string parameters that were part of the requestpublic APIGatewayProxyRequestEvent withQueryStringParamters(Map<String,String> queryStringParameters)
queryStringParameters
- The 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 withPathParamters(Map<String,String> pathParameters)
pathParameters
- The path paramters that were part of the requestpublic 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)
public String toString()
toString
in class Object
Object.toString()
public APIGatewayProxyRequestEvent clone()
Copyright © 2017. All rights reserved.