Class CfnRouteResponse.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.CfnRouteResponse.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRouteResponse>
- Enclosing class:
CfnRouteResponse
@Stability(Stable)
public static final class CfnRouteResponse.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRouteResponse>
A fluent builder for
CfnRouteResponse.-
Method Summary
Modifier and TypeMethodDescriptionThe API identifier.The API identifier.build()static CfnRouteResponse.BuildermodelSelectionExpression(String modelSelectionExpression) The model selection expression for the route response.responseModels(Object responseModels) The response models for the route response.responseParameters(Map<String, ? extends Object> responseParameters) The route response parameters.responseParameters(IResolvable responseParameters) The route response parameters.The route ID.The route ID.routeResponseKey(String routeResponseKey) The route response key.
-
Method Details
-
create
@Stability(Stable) public static CfnRouteResponse.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnRouteResponse.Builder.
-
apiId
The API identifier.- Parameters:
apiId- The API identifier. This parameter is required.- Returns:
this- See Also:
-
apiId
The API identifier.- Parameters:
apiId- The API identifier. This parameter is required.- Returns:
this- See Also:
-
routeId
The route ID.- Parameters:
routeId- The route ID. This parameter is required.- Returns:
this- See Also:
-
routeId
The route ID.- Parameters:
routeId- The route ID. This parameter is required.- Returns:
this- See Also:
-
routeResponseKey
The route response key.- Parameters:
routeResponseKey- The route response key. This parameter is required.- Returns:
this- See Also:
-
modelSelectionExpression
@Stability(Stable) public CfnRouteResponse.Builder modelSelectionExpression(String modelSelectionExpression) The model selection expression for the route response.Supported only for WebSocket APIs.
- Parameters:
modelSelectionExpression- The model selection expression for the route response. This parameter is required.- Returns:
this- See Also:
-
responseModels
The response models for the route response.- Parameters:
responseModels- The response models for the route response. This parameter is required.- Returns:
this- See Also:
-
responseParameters
@Stability(Stable) public CfnRouteResponse.Builder responseParameters(IResolvable responseParameters) The route response parameters.- Parameters:
responseParameters- The route response parameters. This parameter is required.- Returns:
this- See Also:
-
responseParameters
@Stability(Stable) public CfnRouteResponse.Builder responseParameters(Map<String, ? extends Object> responseParameters) The route response parameters.- Parameters:
responseParameters- The route response parameters. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRouteResponse>- Returns:
- a newly built instance of
CfnRouteResponse.
-