Class CfnRequestValidator.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnRequestValidator.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRequestValidator>
- Enclosing class:
CfnRequestValidator
@Stability(Stable)
public static final class CfnRequestValidator.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRequestValidator>
A fluent builder for
CfnRequestValidator.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnRequestValidator.BuilderThe name of this RequestValidator.The string identifier of the associated RestApi.validateRequestBody(Boolean validateRequestBody) A Boolean flag to indicate whether to validate a request body according to the configured Model schema.validateRequestBody(IResolvable validateRequestBody) A Boolean flag to indicate whether to validate a request body according to the configured Model schema.validateRequestParameters(Boolean validateRequestParameters) A Boolean flag to indicate whether to validate request parameters (true) or not (false).validateRequestParameters(IResolvable validateRequestParameters) A Boolean flag to indicate whether to validate request parameters (true) or not (false).
-
Method Details
-
create
@Stability(Stable) public static CfnRequestValidator.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
CfnRequestValidator.Builder.
-
restApiId
The string identifier of the associated RestApi.- Parameters:
restApiId- The string identifier of the associated RestApi. This parameter is required.- Returns:
this- See Also:
-
name
The name of this RequestValidator.- Parameters:
name- The name of this RequestValidator. This parameter is required.- Returns:
this- See Also:
-
validateRequestBody
@Stability(Stable) public CfnRequestValidator.Builder validateRequestBody(Boolean validateRequestBody) A Boolean flag to indicate whether to validate a request body according to the configured Model schema.- Parameters:
validateRequestBody- A Boolean flag to indicate whether to validate a request body according to the configured Model schema. This parameter is required.- Returns:
this- See Also:
-
validateRequestBody
@Stability(Stable) public CfnRequestValidator.Builder validateRequestBody(IResolvable validateRequestBody) A Boolean flag to indicate whether to validate a request body according to the configured Model schema.- Parameters:
validateRequestBody- A Boolean flag to indicate whether to validate a request body according to the configured Model schema. This parameter is required.- Returns:
this- See Also:
-
validateRequestParameters
@Stability(Stable) public CfnRequestValidator.Builder validateRequestParameters(Boolean validateRequestParameters) A Boolean flag to indicate whether to validate request parameters (true) or not (false).- Parameters:
validateRequestParameters- A Boolean flag to indicate whether to validate request parameters (true) or not (false). This parameter is required.- Returns:
this- See Also:
-
validateRequestParameters
@Stability(Stable) public CfnRequestValidator.Builder validateRequestParameters(IResolvable validateRequestParameters) A Boolean flag to indicate whether to validate request parameters (true) or not (false).- Parameters:
validateRequestParameters- A Boolean flag to indicate whether to validate request parameters (true) or not (false). This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRequestValidator>- Returns:
- a newly built instance of
CfnRequestValidator.
-