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() |
Integer |
getStatusCode() |
int |
hashCode() |
void |
setBody(String body) |
void |
setHeaders(Map<String,String> headers) |
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 |
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 String getBody()
public void setBody(String body)
body
- The response bodypublic APIGatewayProxyResponseEvent withBody(String body)
body
- The response bodypublic String toString()
toString
in class Object
Object.toString()
public APIGatewayProxyResponseEvent clone()
Copyright © 2017. All rights reserved.