public static class APIGatewayProxyRequestEvent.ProxyRequestContext extends Object implements Serializable, Cloneable
Constructor and Description |
---|
ProxyRequestContext()
default constructor
|
public String getAccountId()
public void setAccountId(String accountId)
accountId
- account id that owns Lambda functionpublic APIGatewayProxyRequestEvent.ProxyRequestContext withAccountId(String accountId)
accountId
- account id that owns Lambda functionpublic String getStage()
public void setStage(String stage)
stage
- API Gateway stage namepublic APIGatewayProxyRequestEvent.ProxyRequestContext withStage(String stage)
stage
- API Gateway stage namepublic String getResourceId()
public void setResourceId(String resourceId)
resourceId
- resource idpublic APIGatewayProxyRequestEvent.ProxyRequestContext withResourceId(String resourceId)
resourceId
- resource idpublic String getRequestId()
public void setRequestId(String requestId)
requestId
- unique request idpublic APIGatewayProxyRequestEvent.ProxyRequestContext withRequestId(String requestId)
requestId
- unique request idpublic APIGatewayProxyRequestEvent.RequestIdentity getIdentity()
public void setIdentity(APIGatewayProxyRequestEvent.RequestIdentity identity)
identity
- The identity information for the request callerpublic APIGatewayProxyRequestEvent.ProxyRequestContext withIdentity(APIGatewayProxyRequestEvent.RequestIdentity identity)
identity
- The identity information for the request callerpublic String getResourcePath()
public void setResourcePath(String resourcePath)
resourcePath
- The resource path defined in API Gatewaypublic APIGatewayProxyRequestEvent.ProxyRequestContext withResourcePath(String resourcePath)
resourcePath
- The resource path defined in API Gatewaypublic String getHttpMethod()
public void setHttpMethod(String httpMethod)
httpMethod
- the HTTP method usedpublic APIGatewayProxyRequestEvent.ProxyRequestContext withHttpMethod(String httpMethod)
httpMethod
- the HTTP method usedpublic String getApiId()
public void setApiId(String apiId)
apiId
- The API Gateway rest API Id.public APIGatewayProxyRequestEvent.ProxyRequestContext withApiId(String apiId)
apiId
- The API Gateway rest API Idpublic String getPath()
public void setPath(String path)
path
- The API Gateway path (Does not include base url)public APIGatewayProxyRequestEvent.ProxyRequestContext withPath(String path)
path
- The API Gateway path (Does not include base url)public String getOperationName()
public void setOperationName(String operationName)
operationName
- The name of the operation being performedpublic APIGatewayProxyRequestEvent.ProxyRequestContext withOperationName(String operationName)
public String getExtendedRequestId()
public void setExtendedRequestId(String extendedRequestId)
extendedRequestId
- The API Gateway Extended Request Idpublic APIGatewayProxyRequestEvent.ProxyRequestContext withExtendedRequestId(String extendedRequestId)
extendedRequestId
- The API Gateway Extended Request Idpublic String getRequestTime()
public void setRequestTime(String requestTime)
requestTime
- The CLF-formatted request time (dd/MMM/yyyy:HH:mm:ss +-hhmm).public APIGatewayProxyRequestEvent.ProxyRequestContext withRequestTime(String requestTime)
requestTime
- The CLF-formatted request time (dd/MMM/yyyy:HH:mm:ss +-hhmm).public Long getRequestTimeEpoch()
public void setRequestTimeEpoch(Long requestTimeEpoch)
requestTimeEpoch
- The Epoch-formatted request time (in millis)public APIGatewayProxyRequestEvent.ProxyRequestContext withRequestTimeEpoch(Long requestTimeEpoch)
requestTimeEpoch
- The Epoch-formatted request time (in millis)public String getDomainName()
public void setDomainName(String domainName)
domainName
- The full domain name used to invoke the API.
This should be the same as the incoming Host header.public APIGatewayProxyRequestEvent.ProxyRequestContext withDomainName(String domainName)
domainName
- The full domain name used to invoke the API.
This should be the same as the incoming Host header.public String getDomainPrefix()
public void setDomainPrefix(String domainPrefix)
domainPrefix
- The first label of the domainName. This is often used as a caller/customer identifier.public APIGatewayProxyRequestEvent.ProxyRequestContext withDomainPrefix(String domainPrefix)
domainPrefix
- The first label of the domainName. This is often used as a caller/customer identifier.public String getProtocol()
public void setProtocol(String protocol)
protocol
- The request protocol, for example, HTTP/1.1.public APIGatewayProxyRequestEvent.ProxyRequestContext withProtocol(String protocol)
protocol
- The request protocol, for example, HTTP/1.1.public String toString()
toString
in class Object
Object.toString()
public APIGatewayProxyRequestEvent.ProxyRequestContext clone()
Copyright © 2024. All rights reserved.