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