Class CfnApi.AuthProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sam.CfnApi.AuthProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApi.AuthProperty>
- Enclosing interface:
CfnApi.AuthProperty
@Stability(Stable)
public static final class CfnApi.AuthProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApi.AuthProperty>
A builder for
CfnApi.AuthProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddDefaultAuthorizerToCorsPreflight
(Boolean addDefaultAuthorizerToCorsPreflight) Sets the value ofCfnApi.AuthProperty.getAddDefaultAuthorizerToCorsPreflight()
addDefaultAuthorizerToCorsPreflight
(IResolvable addDefaultAuthorizerToCorsPreflight) Sets the value ofCfnApi.AuthProperty.getAddDefaultAuthorizerToCorsPreflight()
authorizers
(Object authorizers) Sets the value ofCfnApi.AuthProperty.getAuthorizers()
build()
Builds the configured instance.defaultAuthorizer
(String defaultAuthorizer) Sets the value ofCfnApi.AuthProperty.getDefaultAuthorizer()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addDefaultAuthorizerToCorsPreflight
@Stability(Stable) public CfnApi.AuthProperty.Builder addDefaultAuthorizerToCorsPreflight(Boolean addDefaultAuthorizerToCorsPreflight) Sets the value ofCfnApi.AuthProperty.getAddDefaultAuthorizerToCorsPreflight()
- Parameters:
addDefaultAuthorizerToCorsPreflight
-CfnApi.AuthProperty.AddDefaultAuthorizerToCorsPreflight
.- Returns:
this
-
addDefaultAuthorizerToCorsPreflight
@Stability(Stable) public CfnApi.AuthProperty.Builder addDefaultAuthorizerToCorsPreflight(IResolvable addDefaultAuthorizerToCorsPreflight) Sets the value ofCfnApi.AuthProperty.getAddDefaultAuthorizerToCorsPreflight()
- Parameters:
addDefaultAuthorizerToCorsPreflight
-CfnApi.AuthProperty.AddDefaultAuthorizerToCorsPreflight
.- Returns:
this
-
authorizers
Sets the value ofCfnApi.AuthProperty.getAuthorizers()
- Parameters:
authorizers
-CfnApi.AuthProperty.Authorizers
.- Returns:
this
-
defaultAuthorizer
Sets the value ofCfnApi.AuthProperty.getDefaultAuthorizer()
- Parameters:
defaultAuthorizer
-CfnApi.AuthProperty.DefaultAuthorizer
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApi.AuthProperty>
- Returns:
- a new instance of
CfnApi.AuthProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-