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