@Stability(value=Experimental) public static final class HttpApiProps.Builder extends Object implements software.amazon.jsii.Builder<HttpApiProps>
HttpApiProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
HttpApiProps.Builder |
apiName(String apiName)
Sets the value of
HttpApiProps.getApiName() |
HttpApiProps |
build()
Builds the configured instance.
|
HttpApiProps.Builder |
corsPreflight(CorsPreflightOptions corsPreflight)
Sets the value of
HttpApiProps.getCorsPreflight() |
HttpApiProps.Builder |
createDefaultStage(Boolean createDefaultStage)
Sets the value of
HttpApiProps.getCreateDefaultStage() |
HttpApiProps.Builder |
defaultDomainMapping(DefaultDomainMappingOptions defaultDomainMapping)
Sets the value of
HttpApiProps.getDefaultDomainMapping() |
HttpApiProps.Builder |
defaultIntegration(IHttpRouteIntegration defaultIntegration)
Sets the value of
HttpApiProps.getDefaultIntegration() |
HttpApiProps.Builder |
description(String description)
Sets the value of
HttpApiProps.getDescription() |
@Stability(value=Experimental) public HttpApiProps.Builder apiName(String apiName)
HttpApiProps.getApiName()apiName - Name for the HTTP API resoruce.this@Stability(value=Experimental) public HttpApiProps.Builder corsPreflight(CorsPreflightOptions corsPreflight)
HttpApiProps.getCorsPreflight()corsPreflight - Specifies a CORS configuration for an API.this@Stability(value=Experimental) public HttpApiProps.Builder createDefaultStage(Boolean createDefaultStage)
HttpApiProps.getCreateDefaultStage()createDefaultStage - Whether a default stage and deployment should be automatically created.this@Stability(value=Experimental) public HttpApiProps.Builder defaultDomainMapping(DefaultDomainMappingOptions defaultDomainMapping)
HttpApiProps.getDefaultDomainMapping()defaultDomainMapping - Configure a custom domain with the API mapping resource to the HTTP API.this@Stability(value=Experimental) public HttpApiProps.Builder defaultIntegration(IHttpRouteIntegration defaultIntegration)
HttpApiProps.getDefaultIntegration()defaultIntegration - An integration that will be configured on the catch-all route ($default).this@Stability(value=Experimental) public HttpApiProps.Builder description(String description)
HttpApiProps.getDescription()description - The description of the API.this@Stability(value=Experimental) public HttpApiProps build()
build in interface software.amazon.jsii.Builder<HttpApiProps>HttpApiPropsNullPointerException - if any required attribute was not providedCopyright © 2020. All rights reserved.