Class ApiMappingOptions.Builder

java.lang.Object
software.amazon.awscdk.services.apigateway.ApiMappingOptions.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<ApiMappingOptions>
Enclosing interface:
ApiMappingOptions

@Stability(Stable) public static final class ApiMappingOptions.Builder extends Object implements software.amazon.jsii.Builder<ApiMappingOptions>
A builder for ApiMappingOptions
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • basePath

      @Stability(Stable) public ApiMappingOptions.Builder basePath(String basePath)
      Parameters:
      basePath - The api path name that callers of the API must provide in the URL after the domain name (e.g. example.com/base-path). If you specify this property, it can't be an empty string. If this is undefined, a mapping will be added for the empty path. Any request that does not match a mapping will get sent to the API that has been mapped to the empty path.
      Returns:
      this
    • build

      @Stability(Stable) public ApiMappingOptions build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<ApiMappingOptions>
      Returns:
      a new instance of ApiMappingOptions
      Throws:
      NullPointerException - if any required attribute was not provided