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
- the value to be set.- Returns:
this
-
accessLogSetting
@Stability(Stable) public CfnHttpApiProps.Builder accessLogSetting(CfnHttpApi.AccessLogSettingProperty accessLogSetting) Sets the value ofCfnHttpApiProps.getAccessLogSetting()
- Parameters:
accessLogSetting
- the value to be set.- Returns:
this
-
auth
Sets the value ofCfnHttpApiProps.getAuth()
- Parameters:
auth
- the value to be set.- Returns:
this
-
auth
Sets the value ofCfnHttpApiProps.getAuth()
- Parameters:
auth
- the value to be set.- Returns:
this
-
corsConfiguration
Sets the value ofCfnHttpApiProps.getCorsConfiguration()
- Parameters:
corsConfiguration
- the value to be set.- Returns:
this
-
corsConfiguration
Sets the value ofCfnHttpApiProps.getCorsConfiguration()
- Parameters:
corsConfiguration
- the value to be set.- Returns:
this
-
corsConfiguration
@Stability(Stable) public CfnHttpApiProps.Builder corsConfiguration(CfnHttpApi.CorsConfigurationObjectProperty corsConfiguration) Sets the value ofCfnHttpApiProps.getCorsConfiguration()
- Parameters:
corsConfiguration
- the value to be set.- Returns:
this
-
defaultRouteSettings
@Stability(Stable) public CfnHttpApiProps.Builder defaultRouteSettings(IResolvable defaultRouteSettings) Sets the value ofCfnHttpApiProps.getDefaultRouteSettings()
- Parameters:
defaultRouteSettings
- the value to be set.- Returns:
this
-
defaultRouteSettings
@Stability(Stable) public CfnHttpApiProps.Builder defaultRouteSettings(CfnHttpApi.RouteSettingsProperty defaultRouteSettings) Sets the value ofCfnHttpApiProps.getDefaultRouteSettings()
- Parameters:
defaultRouteSettings
- the value to be set.- Returns:
this
-
definitionBody
Sets the value ofCfnHttpApiProps.getDefinitionBody()
- Parameters:
definitionBody
- the value to be set.- Returns:
this
-
definitionUri
Sets the value ofCfnHttpApiProps.getDefinitionUri()
- Parameters:
definitionUri
- the value to be set.- Returns:
this
-
definitionUri
Sets the value ofCfnHttpApiProps.getDefinitionUri()
- Parameters:
definitionUri
- the value to be set.- Returns:
this
-
definitionUri
@Stability(Stable) public CfnHttpApiProps.Builder definitionUri(CfnHttpApi.S3LocationProperty definitionUri) Sets the value ofCfnHttpApiProps.getDefinitionUri()
- Parameters:
definitionUri
- the value to be set.- Returns:
this
-
description
Sets the value ofCfnHttpApiProps.getDescription()
- Parameters:
description
- the value to be set.- Returns:
this
-
disableExecuteApiEndpoint
@Stability(Stable) public CfnHttpApiProps.Builder disableExecuteApiEndpoint(Boolean disableExecuteApiEndpoint) Sets the value ofCfnHttpApiProps.getDisableExecuteApiEndpoint()
- Parameters:
disableExecuteApiEndpoint
- the value to be set.- Returns:
this
-
disableExecuteApiEndpoint
@Stability(Stable) public CfnHttpApiProps.Builder disableExecuteApiEndpoint(IResolvable disableExecuteApiEndpoint) Sets the value ofCfnHttpApiProps.getDisableExecuteApiEndpoint()
- Parameters:
disableExecuteApiEndpoint
- the value to be set.- Returns:
this
-
domain
Sets the value ofCfnHttpApiProps.getDomain()
- Parameters:
domain
- the value to be set.- Returns:
this
-
domain
@Stability(Stable) public CfnHttpApiProps.Builder domain(CfnHttpApi.HttpApiDomainConfigurationProperty domain) Sets the value ofCfnHttpApiProps.getDomain()
- Parameters:
domain
- the value to be set.- Returns:
this
-
failOnWarnings
Sets the value ofCfnHttpApiProps.getFailOnWarnings()
- Parameters:
failOnWarnings
- the value to be set.- Returns:
this
-
failOnWarnings
Sets the value ofCfnHttpApiProps.getFailOnWarnings()
- Parameters:
failOnWarnings
- the value to be set.- Returns:
this
-
routeSettings
Sets the value ofCfnHttpApiProps.getRouteSettings()
- Parameters:
routeSettings
- the value to be set.- Returns:
this
-
routeSettings
@Stability(Stable) public CfnHttpApiProps.Builder routeSettings(CfnHttpApi.RouteSettingsProperty routeSettings) Sets the value ofCfnHttpApiProps.getRouteSettings()
- Parameters:
routeSettings
- the value to be set.- Returns:
this
-
stageName
Sets the value ofCfnHttpApiProps.getStageName()
- Parameters:
stageName
- the value to be set.- Returns:
this
-
stageVariables
Sets the value ofCfnHttpApiProps.getStageVariables()
- Parameters:
stageVariables
- the value to be set.- Returns:
this
-
stageVariables
Sets the value ofCfnHttpApiProps.getStageVariables()
- Parameters:
stageVariables
- the value to be set.- Returns:
this
-
tags
Sets the value ofCfnHttpApiProps.getTags()
- Parameters:
tags
- the value to be set.- 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
-