@Stability(value=Experimental) public static final class RequestValidatorProps.Builder extends Object implements software.amazon.jsii.Builder<RequestValidatorProps>
RequestValidatorProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
RequestValidatorProps |
build()
Builds the configured instance.
|
RequestValidatorProps.Builder |
requestValidatorName(String requestValidatorName)
Sets the value of
RequestValidatorOptions.getRequestValidatorName() |
RequestValidatorProps.Builder |
restApi(IRestApi restApi)
Sets the value of
RequestValidatorProps.getRestApi() |
RequestValidatorProps.Builder |
validateRequestBody(Boolean validateRequestBody)
Sets the value of
RequestValidatorOptions.getValidateRequestBody() |
RequestValidatorProps.Builder |
validateRequestParameters(Boolean validateRequestParameters)
Sets the value of
RequestValidatorOptions.getValidateRequestParameters() |
@Stability(value=Experimental) public RequestValidatorProps.Builder restApi(IRestApi restApi)
RequestValidatorProps.getRestApi()restApi - The rest API that this model is part of. This parameter is required.
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.this@Stability(value=Experimental) public RequestValidatorProps.Builder requestValidatorName(String requestValidatorName)
RequestValidatorOptions.getRequestValidatorName()requestValidatorName - The name of this request validator.this@Stability(value=Experimental) public RequestValidatorProps.Builder validateRequestBody(Boolean validateRequestBody)
RequestValidatorOptions.getValidateRequestBody()validateRequestBody - Indicates whether to validate the request body according to the configured schema for the targeted API and method.this@Stability(value=Experimental) public RequestValidatorProps.Builder validateRequestParameters(Boolean validateRequestParameters)
RequestValidatorOptions.getValidateRequestParameters()validateRequestParameters - Indicates whether to validate request parameters.this@Stability(value=Experimental) public RequestValidatorProps build()
build in interface software.amazon.jsii.Builder<RequestValidatorProps>RequestValidatorPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.