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
-
Method Summary
Modifier and TypeMethodDescriptionaccessLogSetting
(IResolvable accessLogSetting) Sets the value ofCfnHttpApiProps.getAccessLogSetting()
accessLogSetting
(CfnHttpApi.AccessLogSettingProperty accessLogSetting) Sets the value ofCfnHttpApiProps.getAccessLogSetting()
auth
(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
(IResolvable corsConfiguration) Sets the value ofCfnHttpApiProps.getCorsConfiguration()
corsConfiguration
(CfnHttpApi.CorsConfigurationObjectProperty corsConfiguration) Sets the value ofCfnHttpApiProps.getCorsConfiguration()
defaultRouteSettings
(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
(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
(IResolvable disableExecuteApiEndpoint) Sets the value ofCfnHttpApiProps.getDisableExecuteApiEndpoint()
domain
(IResolvable domain) Sets the value ofCfnHttpApiProps.getDomain()
Sets the value ofCfnHttpApiProps.getDomain()
failOnWarnings
(Boolean failOnWarnings) Sets the value ofCfnHttpApiProps.getFailOnWarnings()
failOnWarnings
(IResolvable failOnWarnings) Sets the value ofCfnHttpApiProps.getFailOnWarnings()
routeSettings
(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
(IResolvable stageVariables) Sets the value ofCfnHttpApiProps.getStageVariables()
Sets the value ofCfnHttpApiProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
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
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(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
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(IResolvable disableExecuteApiEndpoint) Sets the value ofCfnHttpApiProps.getDisableExecuteApiEndpoint()
- Parameters:
disableExecuteApiEndpoint
-AWS::Serverless::HttpApi.DisableExecuteApiEndpoint
.- Returns:
this
-
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
Sets the value ofCfnHttpApiProps.getFailOnWarnings()
- Parameters:
failOnWarnings
-AWS::Serverless::HttpApi.FailOnWarnings
.- Returns:
this
-
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
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:
build
in interfacesoftware.amazon.jsii.Builder<CfnHttpApiProps>
- Returns:
- a new instance of
CfnHttpApiProps
- Throws:
NullPointerException
- if any required attribute was not provided
-