Class CfnRouteResponseProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.CfnRouteResponseProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRouteResponseProps>
- Enclosing interface:
CfnRouteResponseProps
@Stability(Stable)
public static final class CfnRouteResponseProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRouteResponseProps>
A builder for
CfnRouteResponseProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnRouteResponseProps.getApiId()build()Builds the configured instance.modelSelectionExpression(String modelSelectionExpression) Sets the value ofCfnRouteResponseProps.getModelSelectionExpression()responseModels(Object responseModels) Sets the value ofCfnRouteResponseProps.getResponseModels()responseParameters(Map<String, ? extends Object> responseParameters) Sets the value ofCfnRouteResponseProps.getResponseParameters()responseParameters(IResolvable responseParameters) Sets the value ofCfnRouteResponseProps.getResponseParameters()Sets the value ofCfnRouteResponseProps.getRouteId()routeResponseKey(String routeResponseKey) Sets the value ofCfnRouteResponseProps.getRouteResponseKey()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiId
Sets the value ofCfnRouteResponseProps.getApiId()- Parameters:
apiId- The API identifier. This parameter is required.- Returns:
this
-
routeId
Sets the value ofCfnRouteResponseProps.getRouteId()- Parameters:
routeId- The route ID. This parameter is required.- Returns:
this
-
routeResponseKey
Sets the value ofCfnRouteResponseProps.getRouteResponseKey()- Parameters:
routeResponseKey- The route response key. This parameter is required.- Returns:
this
-
modelSelectionExpression
@Stability(Stable) public CfnRouteResponseProps.Builder modelSelectionExpression(String modelSelectionExpression) Sets the value ofCfnRouteResponseProps.getModelSelectionExpression()- Parameters:
modelSelectionExpression- The model selection expression for the route response. Supported only for WebSocket APIs.- Returns:
this
-
responseModels
Sets the value ofCfnRouteResponseProps.getResponseModels()- Parameters:
responseModels- The response models for the route response.- Returns:
this
-
responseParameters
@Stability(Stable) public CfnRouteResponseProps.Builder responseParameters(IResolvable responseParameters) Sets the value ofCfnRouteResponseProps.getResponseParameters()- Parameters:
responseParameters- The route response parameters.- Returns:
this
-
responseParameters
@Stability(Stable) public CfnRouteResponseProps.Builder responseParameters(Map<String, ? extends Object> responseParameters) Sets the value ofCfnRouteResponseProps.getResponseParameters()- Parameters:
responseParameters- The route response parameters.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRouteResponseProps>- Returns:
- a new instance of
CfnRouteResponseProps - Throws:
NullPointerException- if any required attribute was not provided
-