@Stability(value=Stable) public static final class GatewayResponse.Builder extends Object implements software.amazon.jsii.Builder<GatewayResponse>
GatewayResponse.| Modifier and Type | Method and Description |
|---|---|
GatewayResponse |
build() |
static GatewayResponse.Builder |
create(software.constructs.Construct scope,
String id) |
GatewayResponse.Builder |
responseHeaders(Map<String,String> responseHeaders)
Custom headers parameters for response.
|
GatewayResponse.Builder |
restApi(IRestApi restApi)
Rest api resource to target.
|
GatewayResponse.Builder |
statusCode(String statusCode)
Http status code for response.
|
GatewayResponse.Builder |
templates(Map<String,String> templates)
Custom templates to get mapped as response.
|
GatewayResponse.Builder |
type(ResponseType type)
Response type to associate with gateway response.
|
@Stability(value=Stable) public static GatewayResponse.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.GatewayResponse.Builder.@Stability(value=Stable) public GatewayResponse.Builder type(ResponseType type)
type - Response type to associate with gateway response. This parameter is required.this@Stability(value=Stable) public GatewayResponse.Builder responseHeaders(Map<String,String> responseHeaders)
Default: - no headers
responseHeaders - Custom headers parameters for response. This parameter is required.this@Stability(value=Stable) public GatewayResponse.Builder statusCode(String statusCode)
Default: - standard http status code for the response type.
statusCode - Http status code for response. This parameter is required.this@Stability(value=Stable) public GatewayResponse.Builder templates(Map<String,String> templates)
Default: - Response from api will be returned without applying any transformation.
templates - Custom templates to get mapped as response. This parameter is required.this@Stability(value=Stable) public GatewayResponse.Builder restApi(IRestApi restApi)
restApi - Rest api resource to target. This parameter is required.this@Stability(value=Stable) public GatewayResponse build()
build in interface software.amazon.jsii.Builder<GatewayResponse>Copyright © 2022. All rights reserved.