public class APIGatewayProxyResponseEvent extends Object implements Serializable, Cloneable
Constructor and Description |
---|
APIGatewayProxyResponseEvent()
default constructor
|
Modifier and Type | Method and Description |
---|---|
APIGatewayProxyResponseEvent |
clone() |
boolean |
equals(Object obj) |
String |
getBody() |
Map<String,String> |
getHeaders() |
Boolean |
getIsBase64Encoded() |
Map<String,List<String>> |
getMultiValueHeaders() |
Integer |
getStatusCode() |
int |
hashCode() |
void |
setBody(String body) |
void |
setHeaders(Map<String,String> headers) |
void |
setIsBase64Encoded(Boolean isBase64Encoded) |
void |
setMultiValueHeaders(Map<String,List<String>> multiValueHeaders) |
void |
setStatusCode(Integer statusCode) |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
APIGatewayProxyResponseEvent |
withBody(String body) |
APIGatewayProxyResponseEvent |
withHeaders(Map<String,String> headers) |
APIGatewayProxyResponseEvent |
withIsBase64Encoded(Boolean isBase64Encoded) |
APIGatewayProxyResponseEvent |
withMultiValueHeaders(Map<String,List<String>> multiValueHeaders) |
APIGatewayProxyResponseEvent |
withStatusCode(Integer statusCode) |
public APIGatewayProxyResponseEvent()
public Integer getStatusCode()
public void setStatusCode(Integer statusCode)
statusCode
- The HTTP status code for the requestpublic APIGatewayProxyResponseEvent withStatusCode(Integer statusCode)
statusCode
- The HTTP status code for the requestpublic void setHeaders(Map<String,String> headers)
headers
- The Http headers return in the responsepublic APIGatewayProxyResponseEvent withHeaders(Map<String,String> headers)
headers
- The Http headers return in the responsepublic Map<String,List<String>> getMultiValueHeaders()
public void setMultiValueHeaders(Map<String,List<String>> multiValueHeaders)
multiValueHeaders
- the Http multi value headers to return in the responsepublic APIGatewayProxyResponseEvent withMultiValueHeaders(Map<String,List<String>> multiValueHeaders)
multiValueHeaders
- the Http multi value headers to return in the responsepublic String getBody()
public void setBody(String body)
body
- The response bodypublic APIGatewayProxyResponseEvent withBody(String body)
body
- The response bodypublic Boolean getIsBase64Encoded()
public void setIsBase64Encoded(Boolean isBase64Encoded)
isBase64Encoded
- Whether the body String is base64 encodedpublic APIGatewayProxyResponseEvent withIsBase64Encoded(Boolean isBase64Encoded)
isBase64Encoded
- Whether the body String is base64 encodedpublic String toString()
toString
in class Object
Object.toString()
public APIGatewayProxyResponseEvent clone()
Copyright © 2021. All rights reserved.