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
Constructors -
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- the value to be set.- Returns:
this
-
addDefaultAuthorizerToCorsPreflight
@Stability(Stable) public CfnApi.AuthProperty.Builder addDefaultAuthorizerToCorsPreflight(IResolvable addDefaultAuthorizerToCorsPreflight) Sets the value ofCfnApi.AuthProperty.getAddDefaultAuthorizerToCorsPreflight()- Parameters:
addDefaultAuthorizerToCorsPreflight- the value to be set.- Returns:
this
-
authorizers
Sets the value ofCfnApi.AuthProperty.getAuthorizers()- Parameters:
authorizers- the value to be set.- Returns:
this
-
defaultAuthorizer
Sets the value ofCfnApi.AuthProperty.getDefaultAuthorizer()- Parameters:
defaultAuthorizer- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApi.AuthProperty>- Returns:
- a new instance of
CfnApi.AuthProperty - Throws:
NullPointerException- if any required attribute was not provided
-