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