Class CfnApiProps.Builder
java.lang.Object
software.amazon.awscdk.services.sam.CfnApiProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApiProps>
- Enclosing interface:
CfnApiProps
@Stability(Stable)
public static final class CfnApiProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApiProps>
A builder for
CfnApiProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccessLogSetting
(IResolvable accessLogSetting) Sets the value ofCfnApiProps.getAccessLogSetting()
accessLogSetting
(CfnApi.AccessLogSettingProperty accessLogSetting) Sets the value ofCfnApiProps.getAccessLogSetting()
alwaysDeploy
(Boolean alwaysDeploy) Sets the value ofCfnApiProps.getAlwaysDeploy()
alwaysDeploy
(IResolvable alwaysDeploy) Sets the value ofCfnApiProps.getAlwaysDeploy()
auth
(IResolvable auth) Sets the value ofCfnApiProps.getAuth()
auth
(CfnApi.AuthProperty auth) Sets the value ofCfnApiProps.getAuth()
binaryMediaTypes
(List<String> binaryMediaTypes) Sets the value ofCfnApiProps.getBinaryMediaTypes()
build()
Builds the configured instance.cacheClusterEnabled
(Boolean cacheClusterEnabled) Sets the value ofCfnApiProps.getCacheClusterEnabled()
cacheClusterEnabled
(IResolvable cacheClusterEnabled) Sets the value ofCfnApiProps.getCacheClusterEnabled()
cacheClusterSize
(String cacheClusterSize) Sets the value ofCfnApiProps.getCacheClusterSize()
canarySetting
(IResolvable canarySetting) Sets the value ofCfnApiProps.getCanarySetting()
canarySetting
(CfnApi.CanarySettingProperty canarySetting) Sets the value ofCfnApiProps.getCanarySetting()
Sets the value ofCfnApiProps.getCors()
cors
(IResolvable cors) Sets the value ofCfnApiProps.getCors()
Sets the value ofCfnApiProps.getCors()
definitionBody
(Object definitionBody) Sets the value ofCfnApiProps.getDefinitionBody()
definitionUri
(String definitionUri) Sets the value ofCfnApiProps.getDefinitionUri()
definitionUri
(IResolvable definitionUri) Sets the value ofCfnApiProps.getDefinitionUri()
definitionUri
(CfnApi.S3LocationProperty definitionUri) Sets the value ofCfnApiProps.getDefinitionUri()
description
(String description) Sets the value ofCfnApiProps.getDescription()
disableExecuteApiEndpoint
(Boolean disableExecuteApiEndpoint) Sets the value ofCfnApiProps.getDisableExecuteApiEndpoint()
disableExecuteApiEndpoint
(IResolvable disableExecuteApiEndpoint) Sets the value ofCfnApiProps.getDisableExecuteApiEndpoint()
domain
(IResolvable domain) Sets the value ofCfnApiProps.getDomain()
Sets the value ofCfnApiProps.getDomain()
endpointConfiguration
(String endpointConfiguration) Sets the value ofCfnApiProps.getEndpointConfiguration()
endpointConfiguration
(IResolvable endpointConfiguration) Sets the value ofCfnApiProps.getEndpointConfiguration()
endpointConfiguration
(CfnApi.EndpointConfigurationProperty endpointConfiguration) Sets the value ofCfnApiProps.getEndpointConfiguration()
gatewayResponses
(Object gatewayResponses) Sets the value ofCfnApiProps.getGatewayResponses()
methodSettings
(List<? extends Object> methodSettings) Sets the value ofCfnApiProps.getMethodSettings()
methodSettings
(IResolvable methodSettings) Sets the value ofCfnApiProps.getMethodSettings()
minimumCompressionSize
(Number minimumCompressionSize) Sets the value ofCfnApiProps.getMinimumCompressionSize()
Sets the value ofCfnApiProps.getModels()
Sets the value ofCfnApiProps.getName()
openApiVersion
(String openApiVersion) Sets the value ofCfnApiProps.getOpenApiVersion()
Sets the value ofCfnApiProps.getStageName()
Sets the value ofCfnApiProps.getTags()
tracingEnabled
(Boolean tracingEnabled) Sets the value ofCfnApiProps.getTracingEnabled()
tracingEnabled
(IResolvable tracingEnabled) Sets the value ofCfnApiProps.getTracingEnabled()
Sets the value ofCfnApiProps.getVariables()
variables
(IResolvable variables) Sets the value ofCfnApiProps.getVariables()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
stageName
Sets the value ofCfnApiProps.getStageName()
- Parameters:
stageName
- the value to be set. This parameter is required.- Returns:
this
-
accessLogSetting
Sets the value ofCfnApiProps.getAccessLogSetting()
- Parameters:
accessLogSetting
- the value to be set.- Returns:
this
-
accessLogSetting
@Stability(Stable) public CfnApiProps.Builder accessLogSetting(CfnApi.AccessLogSettingProperty accessLogSetting) Sets the value ofCfnApiProps.getAccessLogSetting()
- Parameters:
accessLogSetting
- the value to be set.- Returns:
this
-
alwaysDeploy
Sets the value ofCfnApiProps.getAlwaysDeploy()
- Parameters:
alwaysDeploy
- the value to be set.- Returns:
this
-
alwaysDeploy
Sets the value ofCfnApiProps.getAlwaysDeploy()
- Parameters:
alwaysDeploy
- the value to be set.- Returns:
this
-
auth
Sets the value ofCfnApiProps.getAuth()
- Parameters:
auth
- the value to be set.- Returns:
this
-
auth
Sets the value ofCfnApiProps.getAuth()
- Parameters:
auth
- the value to be set.- Returns:
this
-
binaryMediaTypes
Sets the value ofCfnApiProps.getBinaryMediaTypes()
- Parameters:
binaryMediaTypes
- the value to be set.- Returns:
this
-
cacheClusterEnabled
Sets the value ofCfnApiProps.getCacheClusterEnabled()
- Parameters:
cacheClusterEnabled
- the value to be set.- Returns:
this
-
cacheClusterEnabled
Sets the value ofCfnApiProps.getCacheClusterEnabled()
- Parameters:
cacheClusterEnabled
- the value to be set.- Returns:
this
-
cacheClusterSize
Sets the value ofCfnApiProps.getCacheClusterSize()
- Parameters:
cacheClusterSize
- the value to be set.- Returns:
this
-
canarySetting
Sets the value ofCfnApiProps.getCanarySetting()
- Parameters:
canarySetting
- the value to be set.- Returns:
this
-
canarySetting
@Stability(Stable) public CfnApiProps.Builder canarySetting(CfnApi.CanarySettingProperty canarySetting) Sets the value ofCfnApiProps.getCanarySetting()
- Parameters:
canarySetting
- the value to be set.- Returns:
this
-
cors
Sets the value ofCfnApiProps.getCors()
- Parameters:
cors
- the value to be set.- Returns:
this
-
cors
Sets the value ofCfnApiProps.getCors()
- Parameters:
cors
- the value to be set.- Returns:
this
-
cors
Sets the value ofCfnApiProps.getCors()
- Parameters:
cors
- the value to be set.- Returns:
this
-
definitionBody
Sets the value ofCfnApiProps.getDefinitionBody()
- Parameters:
definitionBody
- the value to be set.- Returns:
this
-
definitionUri
Sets the value ofCfnApiProps.getDefinitionUri()
- Parameters:
definitionUri
- the value to be set.- Returns:
this
-
definitionUri
Sets the value ofCfnApiProps.getDefinitionUri()
- Parameters:
definitionUri
- the value to be set.- Returns:
this
-
definitionUri
@Stability(Stable) public CfnApiProps.Builder definitionUri(CfnApi.S3LocationProperty definitionUri) Sets the value ofCfnApiProps.getDefinitionUri()
- Parameters:
definitionUri
- the value to be set.- Returns:
this
-
description
Sets the value ofCfnApiProps.getDescription()
- Parameters:
description
- the value to be set.- Returns:
this
-
disableExecuteApiEndpoint
@Stability(Stable) public CfnApiProps.Builder disableExecuteApiEndpoint(Boolean disableExecuteApiEndpoint) Sets the value ofCfnApiProps.getDisableExecuteApiEndpoint()
- Parameters:
disableExecuteApiEndpoint
- the value to be set.- Returns:
this
-
disableExecuteApiEndpoint
@Stability(Stable) public CfnApiProps.Builder disableExecuteApiEndpoint(IResolvable disableExecuteApiEndpoint) Sets the value ofCfnApiProps.getDisableExecuteApiEndpoint()
- Parameters:
disableExecuteApiEndpoint
- the value to be set.- Returns:
this
-
domain
Sets the value ofCfnApiProps.getDomain()
- Parameters:
domain
- the value to be set.- Returns:
this
-
domain
Sets the value ofCfnApiProps.getDomain()
- Parameters:
domain
- the value to be set.- Returns:
this
-
endpointConfiguration
Sets the value ofCfnApiProps.getEndpointConfiguration()
- Parameters:
endpointConfiguration
- the value to be set.- Returns:
this
-
endpointConfiguration
@Stability(Stable) public CfnApiProps.Builder endpointConfiguration(IResolvable endpointConfiguration) Sets the value ofCfnApiProps.getEndpointConfiguration()
- Parameters:
endpointConfiguration
- the value to be set.- Returns:
this
-
endpointConfiguration
@Stability(Stable) public CfnApiProps.Builder endpointConfiguration(CfnApi.EndpointConfigurationProperty endpointConfiguration) Sets the value ofCfnApiProps.getEndpointConfiguration()
- Parameters:
endpointConfiguration
- the value to be set.- Returns:
this
-
gatewayResponses
Sets the value ofCfnApiProps.getGatewayResponses()
- Parameters:
gatewayResponses
- the value to be set.- Returns:
this
-
methodSettings
Sets the value ofCfnApiProps.getMethodSettings()
- Parameters:
methodSettings
- the value to be set.- Returns:
this
-
methodSettings
Sets the value ofCfnApiProps.getMethodSettings()
- Parameters:
methodSettings
- the value to be set.- Returns:
this
-
minimumCompressionSize
Sets the value ofCfnApiProps.getMinimumCompressionSize()
- Parameters:
minimumCompressionSize
- the value to be set.- Returns:
this
-
models
Sets the value ofCfnApiProps.getModels()
- Parameters:
models
- the value to be set.- Returns:
this
-
name
Sets the value ofCfnApiProps.getName()
- Parameters:
name
- the value to be set.- Returns:
this
-
openApiVersion
Sets the value ofCfnApiProps.getOpenApiVersion()
- Parameters:
openApiVersion
- the value to be set.- Returns:
this
-
tags
Sets the value ofCfnApiProps.getTags()
- Parameters:
tags
- the value to be set.- Returns:
this
-
tracingEnabled
Sets the value ofCfnApiProps.getTracingEnabled()
- Parameters:
tracingEnabled
- the value to be set.- Returns:
this
-
tracingEnabled
Sets the value ofCfnApiProps.getTracingEnabled()
- Parameters:
tracingEnabled
- the value to be set.- Returns:
this
-
variables
Sets the value ofCfnApiProps.getVariables()
- Parameters:
variables
- the value to be set.- Returns:
this
-
variables
Sets the value ofCfnApiProps.getVariables()
- Parameters:
variables
- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApiProps>
- Returns:
- a new instance of
CfnApiProps
- Throws:
NullPointerException
- if any required attribute was not provided
-