@Stability(value=Stable) public static final class RequestValidator.Builder extends Object implements software.amazon.jsii.Builder<RequestValidator>
RequestValidator.| Modifier and Type | Method and Description |
|---|---|
RequestValidator |
build() |
static RequestValidator.Builder |
create(software.constructs.Construct scope,
String id) |
RequestValidator.Builder |
requestValidatorName(String requestValidatorName)
The name of this request validator.
|
RequestValidator.Builder |
restApi(IRestApi restApi)
The rest API that this model is part of.
|
RequestValidator.Builder |
validateRequestBody(Boolean validateRequestBody)
Indicates whether to validate the request body according to the configured schema for the targeted API and method.
|
RequestValidator.Builder |
validateRequestParameters(Boolean validateRequestParameters)
Indicates whether to validate request parameters.
|
@Stability(value=Stable) public static RequestValidator.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.RequestValidator.Builder.@Stability(value=Stable) public RequestValidator.Builder requestValidatorName(String requestValidatorName)
Default: None
requestValidatorName - The name of this request validator. This parameter is required.this@Stability(value=Stable) public RequestValidator.Builder validateRequestBody(Boolean validateRequestBody)
Default: false
validateRequestBody - Indicates whether to validate the request body according to the configured schema for the targeted API and method. This parameter is required.this@Stability(value=Stable) public RequestValidator.Builder validateRequestParameters(Boolean validateRequestParameters)
Default: false
validateRequestParameters - Indicates whether to validate request parameters. This parameter is required.this@Stability(value=Stable) public RequestValidator.Builder restApi(IRestApi restApi)
The reason we need the RestApi object itself and not just the ID is because the model is being tracked by the top-level RestApi object for the purpose of calculating it's hash to determine the ID of the deployment. This allows us to automatically update the deployment when the model of the REST API changes.
restApi - The rest API that this model is part of. This parameter is required.this@Stability(value=Stable) public RequestValidator build()
build in interface software.amazon.jsii.Builder<RequestValidator>Copyright © 2022. All rights reserved.