Class BasePathMappingProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.BasePathMappingProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BasePathMappingProps>
- Enclosing interface:
BasePathMappingProps
@Stability(Stable)
public static final class BasePathMappingProps.Builder
extends Object
implements software.amazon.jsii.Builder<BasePathMappingProps>
A builder for
BasePathMappingProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofBasePathMappingOptions.getBasePath()
build()
Builds the configured instance.domainName
(IDomainName domainName) Sets the value ofBasePathMappingProps.getDomainName()
Sets the value ofBasePathMappingProps.getRestApi()
Sets the value ofBasePathMappingOptions.getStage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
domainName
Sets the value ofBasePathMappingProps.getDomainName()
- Parameters:
domainName
- The DomainName to associate with this base path mapping. This parameter is required.- Returns:
this
-
restApi
Sets the value ofBasePathMappingProps.getRestApi()
- Parameters:
restApi
- The RestApi resource to target. This parameter is required.- Returns:
this
-
basePath
Sets the value ofBasePathMappingOptions.getBasePath()
- Parameters:
basePath
- The base 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.- Returns:
this
-
stage
Sets the value ofBasePathMappingOptions.getStage()
- Parameters:
stage
- The Deployment stage of API [disable-awslint:ref-via-interface].- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<BasePathMappingProps>
- Returns:
- a new instance of
BasePathMappingProps
- Throws:
NullPointerException
- if any required attribute was not provided
-