public static class ApiGatewayResponse.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ApiGatewayResponse.Builder |
base64Encoded(boolean base64Encoded)
A binary or rather a base64encoded responses requires
"Binary Media Types" to be configured in API Gateway
a request with an "Accept" header set to one of the "Binary Media
Types"
|
ApiGatewayResponse.Builder |
binaryBody(byte[] binaryBody)
Builds the
ApiGatewayResponse using the passed binary body
encoded as base64. |
ApiGatewayResponse |
build() |
ApiGatewayResponse.Builder |
headers(Map<String,String> headers) |
ApiGatewayResponse.Builder |
objectBody(Object objectBody)
Builds the
ApiGatewayResponse using the passed object body
converted to JSON. |
ApiGatewayResponse.Builder |
rawBody(String rawBody)
Builds the
ApiGatewayResponse using the passed raw body string. |
ApiGatewayResponse.Builder |
setBase64Encoded(boolean base64Encoded)
Deprecated.
|
ApiGatewayResponse.Builder |
setBinaryBody(byte[] binaryBody)
Deprecated.
|
ApiGatewayResponse.Builder |
setHeaders(Map<String,String> headers)
Deprecated.
|
ApiGatewayResponse.Builder |
setObjectBody(Object objectBody)
Deprecated.
|
ApiGatewayResponse.Builder |
setRawBody(String rawBody)
Deprecated.
|
ApiGatewayResponse.Builder |
setStatusCode(int statusCode)
Deprecated.
|
ApiGatewayResponse.Builder |
statusCode(int statusCode) |
public ApiGatewayResponse.Builder statusCode(int statusCode)
@Deprecated public ApiGatewayResponse.Builder setStatusCode(int statusCode)
public ApiGatewayResponse.Builder headers(Map<String,String> headers)
@Deprecated public ApiGatewayResponse.Builder setHeaders(Map<String,String> headers)
public ApiGatewayResponse.Builder rawBody(String rawBody)
ApiGatewayResponse using the passed raw body string.@Deprecated public ApiGatewayResponse.Builder setRawBody(String rawBody)
public ApiGatewayResponse.Builder objectBody(Object objectBody)
ApiGatewayResponse using the passed object body
converted to JSON.@Deprecated public ApiGatewayResponse.Builder setObjectBody(Object objectBody)
public ApiGatewayResponse.Builder binaryBody(byte[] binaryBody)
ApiGatewayResponse using the passed binary body
encoded as base64. setBase64Encoded(true) will be in invoked automatically.@Deprecated public ApiGatewayResponse.Builder setBinaryBody(byte[] binaryBody)
public ApiGatewayResponse.Builder base64Encoded(boolean base64Encoded)
@Deprecated public ApiGatewayResponse.Builder setBase64Encoded(boolean base64Encoded)
public ApiGatewayResponse build()
Copyright © 2019. All Rights Reserved.