@Stability(value=Experimental) public static final class GatewayResponseOptions.Builder extends Object implements software.amazon.jsii.Builder<GatewayResponseOptions>
GatewayResponseOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
GatewayResponseOptions |
build()
Builds the configured instance.
|
GatewayResponseOptions.Builder |
responseHeaders(Map<String,String> responseHeaders)
Sets the value of
GatewayResponseOptions.getResponseHeaders() |
GatewayResponseOptions.Builder |
statusCode(String statusCode)
Sets the value of
GatewayResponseOptions.getStatusCode() |
GatewayResponseOptions.Builder |
templates(Map<String,String> templates)
Sets the value of
GatewayResponseOptions.getTemplates() |
GatewayResponseOptions.Builder |
type(ResponseType type)
Sets the value of
GatewayResponseOptions.getType() |
@Stability(value=Experimental) public GatewayResponseOptions.Builder type(ResponseType type)
GatewayResponseOptions.getType()type - Response type to associate with gateway response. This parameter is required.this@Stability(value=Experimental) public GatewayResponseOptions.Builder responseHeaders(Map<String,String> responseHeaders)
GatewayResponseOptions.getResponseHeaders()responseHeaders - Custom headers parameters for response.this@Stability(value=Experimental) public GatewayResponseOptions.Builder statusCode(String statusCode)
GatewayResponseOptions.getStatusCode()statusCode - Http status code for response.this@Stability(value=Experimental) public GatewayResponseOptions.Builder templates(Map<String,String> templates)
GatewayResponseOptions.getTemplates()templates - Custom templates to get mapped as response.this@Stability(value=Experimental) public GatewayResponseOptions build()
build in interface software.amazon.jsii.Builder<GatewayResponseOptions>GatewayResponseOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.