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