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