Class CfnApiV2.CorsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnApiV2.CorsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApiV2.CorsProperty>
- Enclosing interface:
CfnApiV2.CorsProperty
@Stability(Deprecated)
@Deprecated
public static final class CfnApiV2.CorsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApiV2.CorsProperty>
Deprecated.
A builder for
CfnApiV2.CorsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowCredentials
(Boolean allowCredentials) Deprecated.allowCredentials
(IResolvable allowCredentials) Deprecated.allowHeaders
(List<String> allowHeaders) Deprecated.allowMethods
(List<String> allowMethods) Deprecated.allowOrigins
(List<String> allowOrigins) Deprecated.build()
Deprecated.exposeHeaders
(List<String> exposeHeaders) Deprecated.Deprecated.
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
allowCredentials
@Stability(Deprecated) @Deprecated public CfnApiV2.CorsProperty.Builder allowCredentials(Boolean allowCredentials) Deprecated.Sets the value ofCfnApiV2.CorsProperty.getAllowCredentials()
- Parameters:
allowCredentials
-CfnApiV2.CorsProperty.AllowCredentials
.- Returns:
this
-
allowCredentials
@Stability(Deprecated) @Deprecated public CfnApiV2.CorsProperty.Builder allowCredentials(IResolvable allowCredentials) Deprecated.Sets the value ofCfnApiV2.CorsProperty.getAllowCredentials()
- Parameters:
allowCredentials
-CfnApiV2.CorsProperty.AllowCredentials
.- Returns:
this
-
allowHeaders
@Stability(Deprecated) @Deprecated public CfnApiV2.CorsProperty.Builder allowHeaders(List<String> allowHeaders) Deprecated.Sets the value ofCfnApiV2.CorsProperty.getAllowHeaders()
- Parameters:
allowHeaders
-CfnApiV2.CorsProperty.AllowHeaders
.- Returns:
this
-
allowMethods
@Stability(Deprecated) @Deprecated public CfnApiV2.CorsProperty.Builder allowMethods(List<String> allowMethods) Deprecated.Sets the value ofCfnApiV2.CorsProperty.getAllowMethods()
- Parameters:
allowMethods
-CfnApiV2.CorsProperty.AllowMethods
.- Returns:
this
-
allowOrigins
@Stability(Deprecated) @Deprecated public CfnApiV2.CorsProperty.Builder allowOrigins(List<String> allowOrigins) Deprecated.Sets the value ofCfnApiV2.CorsProperty.getAllowOrigins()
- Parameters:
allowOrigins
-CfnApiV2.CorsProperty.AllowOrigins
.- Returns:
this
-
exposeHeaders
@Stability(Deprecated) @Deprecated public CfnApiV2.CorsProperty.Builder exposeHeaders(List<String> exposeHeaders) Deprecated.Sets the value ofCfnApiV2.CorsProperty.getExposeHeaders()
- Parameters:
exposeHeaders
-CfnApiV2.CorsProperty.ExposeHeaders
.- Returns:
this
-
maxAge
Deprecated.Sets the value ofCfnApiV2.CorsProperty.getMaxAge()
- Parameters:
maxAge
-CfnApiV2.CorsProperty.MaxAge
.- Returns:
this
-
build
Deprecated.Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApiV2.CorsProperty>
- Returns:
- a new instance of
CfnApiV2.CorsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-