Class CfnRequestValidatorProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnRequestValidatorProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRequestValidatorProps>
- Enclosing interface:
- CfnRequestValidatorProps
@Stability(Stable)
public static final class CfnRequestValidatorProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRequestValidatorProps>
A builder for
CfnRequestValidatorProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRequestValidatorProps.getName()Sets the value ofCfnRequestValidatorProps.getRestApiId()validateRequestBody(Boolean validateRequestBody) Sets the value ofCfnRequestValidatorProps.getValidateRequestBody()validateRequestBody(IResolvable validateRequestBody) Sets the value ofCfnRequestValidatorProps.getValidateRequestBody()validateRequestParameters(Boolean validateRequestParameters) Sets the value ofCfnRequestValidatorProps.getValidateRequestParameters()validateRequestParameters(IResolvable validateRequestParameters) Sets the value ofCfnRequestValidatorProps.getValidateRequestParameters()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
restApiId
Sets the value ofCfnRequestValidatorProps.getRestApiId()- Parameters:
restApiId- The string identifier of the associated RestApi. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnRequestValidatorProps.getName()- Parameters:
name- The name of this RequestValidator.- Returns:
this
-
validateRequestBody
@Stability(Stable) public CfnRequestValidatorProps.Builder validateRequestBody(Boolean validateRequestBody) Sets the value ofCfnRequestValidatorProps.getValidateRequestBody()- Parameters:
validateRequestBody- A Boolean flag to indicate whether to validate a request body according to the configured Model schema.- Returns:
this
-
validateRequestBody
@Stability(Stable) public CfnRequestValidatorProps.Builder validateRequestBody(IResolvable validateRequestBody) Sets the value ofCfnRequestValidatorProps.getValidateRequestBody()- Parameters:
validateRequestBody- A Boolean flag to indicate whether to validate a request body according to the configured Model schema.- Returns:
this
-
validateRequestParameters
@Stability(Stable) public CfnRequestValidatorProps.Builder validateRequestParameters(Boolean validateRequestParameters) Sets the value ofCfnRequestValidatorProps.getValidateRequestParameters()- Parameters:
validateRequestParameters- A Boolean flag to indicate whether to validate request parameters (true) or not (false).- Returns:
this
-
validateRequestParameters
@Stability(Stable) public CfnRequestValidatorProps.Builder validateRequestParameters(IResolvable validateRequestParameters) Sets the value ofCfnRequestValidatorProps.getValidateRequestParameters()- Parameters:
validateRequestParameters- A Boolean flag to indicate whether to validate request parameters (true) or not (false).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRequestValidatorProps>- Returns:
- a new instance of
CfnRequestValidatorProps - Throws:
NullPointerException- if any required attribute was not provided
-