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.Builder
The 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
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- 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
-
name
The name of this RequestValidator.- Parameters:
name
- The name of this RequestValidator. This parameter is required.- Returns:
this
-
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
-
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
-
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
-
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
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRequestValidator>
- Returns:
- a newly built instance of
CfnRequestValidator
.
-