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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofApiMappingOptions.getBasePath()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
basePath
Sets the value ofApiMappingOptions.getBasePath()
- 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
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ApiMappingOptions>
- Returns:
- a new instance of
ApiMappingOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-