Class CfnApiPropsMixin.CorsConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sam.CfnApiPropsMixin.CorsConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApiPropsMixin.CorsConfigurationProperty>
- Enclosing interface:
CfnApiPropsMixin.CorsConfigurationProperty
@Stability(Stable)
public static final class CfnApiPropsMixin.CorsConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApiPropsMixin.CorsConfigurationProperty>
A builder for
CfnApiPropsMixin.CorsConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowCredentials(Boolean allowCredentials) Sets the value ofCfnApiPropsMixin.CorsConfigurationProperty.getAllowCredentials()allowCredentials(IResolvable allowCredentials) Sets the value ofCfnApiPropsMixin.CorsConfigurationProperty.getAllowCredentials()allowHeaders(String allowHeaders) Sets the value ofCfnApiPropsMixin.CorsConfigurationProperty.getAllowHeaders()allowMethods(String allowMethods) Sets the value ofCfnApiPropsMixin.CorsConfigurationProperty.getAllowMethods()allowOrigin(String allowOrigin) Sets the value ofCfnApiPropsMixin.CorsConfigurationProperty.getAllowOrigin()build()Builds the configured instance.Sets the value ofCfnApiPropsMixin.CorsConfigurationProperty.getMaxAge()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowCredentials
@Stability(Stable) public CfnApiPropsMixin.CorsConfigurationProperty.Builder allowCredentials(Boolean allowCredentials) Sets the value ofCfnApiPropsMixin.CorsConfigurationProperty.getAllowCredentials()- Parameters:
allowCredentials- the value to be set.- Returns:
this
-
allowCredentials
@Stability(Stable) public CfnApiPropsMixin.CorsConfigurationProperty.Builder allowCredentials(IResolvable allowCredentials) Sets the value ofCfnApiPropsMixin.CorsConfigurationProperty.getAllowCredentials()- Parameters:
allowCredentials- the value to be set.- Returns:
this
-
allowHeaders
@Stability(Stable) public CfnApiPropsMixin.CorsConfigurationProperty.Builder allowHeaders(String allowHeaders) Sets the value ofCfnApiPropsMixin.CorsConfigurationProperty.getAllowHeaders()- Parameters:
allowHeaders- the value to be set.- Returns:
this
-
allowMethods
@Stability(Stable) public CfnApiPropsMixin.CorsConfigurationProperty.Builder allowMethods(String allowMethods) Sets the value ofCfnApiPropsMixin.CorsConfigurationProperty.getAllowMethods()- Parameters:
allowMethods- the value to be set.- Returns:
this
-
allowOrigin
@Stability(Stable) public CfnApiPropsMixin.CorsConfigurationProperty.Builder allowOrigin(String allowOrigin) Sets the value ofCfnApiPropsMixin.CorsConfigurationProperty.getAllowOrigin()- Parameters:
allowOrigin- the value to be set.- Returns:
this
-
maxAge
Sets the value ofCfnApiPropsMixin.CorsConfigurationProperty.getMaxAge()- Parameters:
maxAge- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApiPropsMixin.CorsConfigurationProperty>- Returns:
- a new instance of
CfnApiPropsMixin.CorsConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-