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 Details

    • create

      @Stability(Stable) public static CfnRequestValidator.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnRequestValidator.Builder.
    • restApiId

      @Stability(Stable) public CfnRequestValidator.Builder restApiId(String restApiId)
      The string identifier of the associated RestApi.

      Parameters:
      restApiId - The string identifier of the associated RestApi. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnRequestValidator.Builder name(String 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

      @Stability(Stable) public CfnRequestValidator build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnRequestValidator>
      Returns:
      a newly built instance of CfnRequestValidator.