Class AuthorizationConfig.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.AuthorizationConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AuthorizationConfig>
- Enclosing interface:
AuthorizationConfig
@Stability(Stable)
public static final class AuthorizationConfig.Builder
extends Object
implements software.amazon.jsii.Builder<AuthorizationConfig>
A builder for
AuthorizationConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadditionalAuthorizationModes
(List<? extends AuthorizationMode> additionalAuthorizationModes) Sets the value ofAuthorizationConfig.getAdditionalAuthorizationModes()
build()
Builds the configured instance.defaultAuthorization
(AuthorizationMode defaultAuthorization) Sets the value ofAuthorizationConfig.getDefaultAuthorization()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
additionalAuthorizationModes
@Stability(Stable) public AuthorizationConfig.Builder additionalAuthorizationModes(List<? extends AuthorizationMode> additionalAuthorizationModes) Sets the value ofAuthorizationConfig.getAdditionalAuthorizationModes()
- Parameters:
additionalAuthorizationModes
- Additional authorization modes.- Returns:
this
-
defaultAuthorization
@Stability(Stable) public AuthorizationConfig.Builder defaultAuthorization(AuthorizationMode defaultAuthorization) Sets the value ofAuthorizationConfig.getDefaultAuthorization()
- Parameters:
defaultAuthorization
- Optional authorization configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AuthorizationConfig>
- Returns:
- a new instance of
AuthorizationConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-