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