Class CfnHttpApiProps.Builder
java.lang.Object
software.amazon.awscdk.services.sam.CfnHttpApiProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnHttpApiProps>
- Enclosing interface:
CfnHttpApiProps
@Stability(Stable)
public static final class CfnHttpApiProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnHttpApiProps>
A builder for
CfnHttpApiProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessLogSetting(software.amazon.awscdk.core.IResolvable accessLogSetting) Sets the value ofCfnHttpApiProps.getAccessLogSetting()accessLogSetting(CfnHttpApi.AccessLogSettingProperty accessLogSetting) Sets the value ofCfnHttpApiProps.getAccessLogSetting()auth(software.amazon.awscdk.core.IResolvable auth) Sets the value ofCfnHttpApiProps.getAuth()Sets the value ofCfnHttpApiProps.getAuth()build()Builds the configured instance.corsConfiguration(Boolean corsConfiguration) Sets the value ofCfnHttpApiProps.getCorsConfiguration()corsConfiguration(software.amazon.awscdk.core.IResolvable corsConfiguration) Sets the value ofCfnHttpApiProps.getCorsConfiguration()corsConfiguration(CfnHttpApi.CorsConfigurationObjectProperty corsConfiguration) Sets the value ofCfnHttpApiProps.getCorsConfiguration()defaultRouteSettings(software.amazon.awscdk.core.IResolvable defaultRouteSettings) Sets the value ofCfnHttpApiProps.getDefaultRouteSettings()defaultRouteSettings(CfnHttpApi.RouteSettingsProperty defaultRouteSettings) Sets the value ofCfnHttpApiProps.getDefaultRouteSettings()definitionBody(Object definitionBody) Sets the value ofCfnHttpApiProps.getDefinitionBody()definitionUri(String definitionUri) Sets the value ofCfnHttpApiProps.getDefinitionUri()definitionUri(software.amazon.awscdk.core.IResolvable definitionUri) Sets the value ofCfnHttpApiProps.getDefinitionUri()definitionUri(CfnHttpApi.S3LocationProperty definitionUri) Sets the value ofCfnHttpApiProps.getDefinitionUri()description(String description) Sets the value ofCfnHttpApiProps.getDescription()disableExecuteApiEndpoint(Boolean disableExecuteApiEndpoint) Sets the value ofCfnHttpApiProps.getDisableExecuteApiEndpoint()disableExecuteApiEndpoint(software.amazon.awscdk.core.IResolvable disableExecuteApiEndpoint) Sets the value ofCfnHttpApiProps.getDisableExecuteApiEndpoint()domain(software.amazon.awscdk.core.IResolvable domain) Sets the value ofCfnHttpApiProps.getDomain()Sets the value ofCfnHttpApiProps.getDomain()failOnWarnings(Boolean failOnWarnings) Sets the value ofCfnHttpApiProps.getFailOnWarnings()failOnWarnings(software.amazon.awscdk.core.IResolvable failOnWarnings) Sets the value ofCfnHttpApiProps.getFailOnWarnings()routeSettings(software.amazon.awscdk.core.IResolvable routeSettings) Sets the value ofCfnHttpApiProps.getRouteSettings()routeSettings(CfnHttpApi.RouteSettingsProperty routeSettings) Sets the value ofCfnHttpApiProps.getRouteSettings()Sets the value ofCfnHttpApiProps.getStageName()stageVariables(Map<String, String> stageVariables) Sets the value ofCfnHttpApiProps.getStageVariables()stageVariables(software.amazon.awscdk.core.IResolvable stageVariables) Sets the value ofCfnHttpApiProps.getStageVariables()Sets the value ofCfnHttpApiProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessLogSetting
@Stability(Stable) public CfnHttpApiProps.Builder accessLogSetting(software.amazon.awscdk.core.IResolvable accessLogSetting) Sets the value ofCfnHttpApiProps.getAccessLogSetting()- Parameters:
accessLogSetting- `AWS::Serverless::HttpApi.AccessLogSetting`.- Returns:
this
-
accessLogSetting
@Stability(Stable) public CfnHttpApiProps.Builder accessLogSetting(CfnHttpApi.AccessLogSettingProperty accessLogSetting) Sets the value ofCfnHttpApiProps.getAccessLogSetting()- Parameters:
accessLogSetting- `AWS::Serverless::HttpApi.AccessLogSetting`.- Returns:
this
-
auth
@Stability(Stable) public CfnHttpApiProps.Builder auth(software.amazon.awscdk.core.IResolvable auth) Sets the value ofCfnHttpApiProps.getAuth()- Parameters:
auth- `AWS::Serverless::HttpApi.Auth`.- Returns:
this
-
auth
Sets the value ofCfnHttpApiProps.getAuth()- Parameters:
auth- `AWS::Serverless::HttpApi.Auth`.- Returns:
this
-
corsConfiguration
Sets the value ofCfnHttpApiProps.getCorsConfiguration()- Parameters:
corsConfiguration- `AWS::Serverless::HttpApi.CorsConfiguration`.- Returns:
this
-
corsConfiguration
@Stability(Stable) public CfnHttpApiProps.Builder corsConfiguration(software.amazon.awscdk.core.IResolvable corsConfiguration) Sets the value ofCfnHttpApiProps.getCorsConfiguration()- Parameters:
corsConfiguration- `AWS::Serverless::HttpApi.CorsConfiguration`.- Returns:
this
-
corsConfiguration
@Stability(Stable) public CfnHttpApiProps.Builder corsConfiguration(CfnHttpApi.CorsConfigurationObjectProperty corsConfiguration) Sets the value ofCfnHttpApiProps.getCorsConfiguration()- Parameters:
corsConfiguration- `AWS::Serverless::HttpApi.CorsConfiguration`.- Returns:
this
-
defaultRouteSettings
@Stability(Stable) public CfnHttpApiProps.Builder defaultRouteSettings(software.amazon.awscdk.core.IResolvable defaultRouteSettings) Sets the value ofCfnHttpApiProps.getDefaultRouteSettings()- Parameters:
defaultRouteSettings- `AWS::Serverless::HttpApi.DefaultRouteSettings`.- Returns:
this
-
defaultRouteSettings
@Stability(Stable) public CfnHttpApiProps.Builder defaultRouteSettings(CfnHttpApi.RouteSettingsProperty defaultRouteSettings) Sets the value ofCfnHttpApiProps.getDefaultRouteSettings()- Parameters:
defaultRouteSettings- `AWS::Serverless::HttpApi.DefaultRouteSettings`.- Returns:
this
-
definitionBody
Sets the value ofCfnHttpApiProps.getDefinitionBody()- Parameters:
definitionBody- `AWS::Serverless::HttpApi.DefinitionBody`.- Returns:
this
-
definitionUri
Sets the value ofCfnHttpApiProps.getDefinitionUri()- Parameters:
definitionUri- `AWS::Serverless::HttpApi.DefinitionUri`.- Returns:
this
-
definitionUri
@Stability(Stable) public CfnHttpApiProps.Builder definitionUri(software.amazon.awscdk.core.IResolvable definitionUri) Sets the value ofCfnHttpApiProps.getDefinitionUri()- Parameters:
definitionUri- `AWS::Serverless::HttpApi.DefinitionUri`.- Returns:
this
-
definitionUri
@Stability(Stable) public CfnHttpApiProps.Builder definitionUri(CfnHttpApi.S3LocationProperty definitionUri) Sets the value ofCfnHttpApiProps.getDefinitionUri()- Parameters:
definitionUri- `AWS::Serverless::HttpApi.DefinitionUri`.- Returns:
this
-
description
Sets the value ofCfnHttpApiProps.getDescription()- Parameters:
description- `AWS::Serverless::HttpApi.Description`.- Returns:
this
-
disableExecuteApiEndpoint
@Stability(Stable) public CfnHttpApiProps.Builder disableExecuteApiEndpoint(Boolean disableExecuteApiEndpoint) Sets the value ofCfnHttpApiProps.getDisableExecuteApiEndpoint()- Parameters:
disableExecuteApiEndpoint- `AWS::Serverless::HttpApi.DisableExecuteApiEndpoint`.- Returns:
this
-
disableExecuteApiEndpoint
@Stability(Stable) public CfnHttpApiProps.Builder disableExecuteApiEndpoint(software.amazon.awscdk.core.IResolvable disableExecuteApiEndpoint) Sets the value ofCfnHttpApiProps.getDisableExecuteApiEndpoint()- Parameters:
disableExecuteApiEndpoint- `AWS::Serverless::HttpApi.DisableExecuteApiEndpoint`.- Returns:
this
-
domain
@Stability(Stable) public CfnHttpApiProps.Builder domain(software.amazon.awscdk.core.IResolvable domain) Sets the value ofCfnHttpApiProps.getDomain()- Parameters:
domain- `AWS::Serverless::HttpApi.Domain`.- Returns:
this
-
domain
@Stability(Stable) public CfnHttpApiProps.Builder domain(CfnHttpApi.HttpApiDomainConfigurationProperty domain) Sets the value ofCfnHttpApiProps.getDomain()- Parameters:
domain- `AWS::Serverless::HttpApi.Domain`.- Returns:
this
-
failOnWarnings
Sets the value ofCfnHttpApiProps.getFailOnWarnings()- Parameters:
failOnWarnings- `AWS::Serverless::HttpApi.FailOnWarnings`.- Returns:
this
-
failOnWarnings
@Stability(Stable) public CfnHttpApiProps.Builder failOnWarnings(software.amazon.awscdk.core.IResolvable failOnWarnings) Sets the value ofCfnHttpApiProps.getFailOnWarnings()- Parameters:
failOnWarnings- `AWS::Serverless::HttpApi.FailOnWarnings`.- Returns:
this
-
routeSettings
@Stability(Stable) public CfnHttpApiProps.Builder routeSettings(software.amazon.awscdk.core.IResolvable routeSettings) Sets the value ofCfnHttpApiProps.getRouteSettings()- Parameters:
routeSettings- `AWS::Serverless::HttpApi.RouteSettings`.- Returns:
this
-
routeSettings
@Stability(Stable) public CfnHttpApiProps.Builder routeSettings(CfnHttpApi.RouteSettingsProperty routeSettings) Sets the value ofCfnHttpApiProps.getRouteSettings()- Parameters:
routeSettings- `AWS::Serverless::HttpApi.RouteSettings`.- Returns:
this
-
stageName
Sets the value ofCfnHttpApiProps.getStageName()- Parameters:
stageName- `AWS::Serverless::HttpApi.StageName`.- Returns:
this
-
stageVariables
@Stability(Stable) public CfnHttpApiProps.Builder stageVariables(software.amazon.awscdk.core.IResolvable stageVariables) Sets the value ofCfnHttpApiProps.getStageVariables()- Parameters:
stageVariables- `AWS::Serverless::HttpApi.StageVariables`.- Returns:
this
-
stageVariables
Sets the value ofCfnHttpApiProps.getStageVariables()- Parameters:
stageVariables- `AWS::Serverless::HttpApi.StageVariables`.- Returns:
this
-
tags
Sets the value ofCfnHttpApiProps.getTags()- Parameters:
tags- `AWS::Serverless::HttpApi.Tags`.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnHttpApiProps>- Returns:
- a new instance of
CfnHttpApiProps - Throws:
NullPointerException- if any required attribute was not provided
-