public static final class AuthorizationMode.Builder
extends java.lang.Object
AuthorizationMode
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AuthorizationMode.Builder |
apiKeyConfig(ApiKeyConfig apiKeyConfig)
Sets the value of
AuthorizationMode.getApiKeyConfig() |
AuthorizationMode.Builder |
authorizationType(AuthorizationType authorizationType)
Sets the value of
AuthorizationMode.getAuthorizationType() |
AuthorizationMode |
build()
Builds the configured instance.
|
AuthorizationMode.Builder |
lambdaAuthorizerConfig(LambdaAuthorizerConfig lambdaAuthorizerConfig)
Sets the value of
AuthorizationMode.getLambdaAuthorizerConfig() |
AuthorizationMode.Builder |
openIdConnectConfig(OpenIdConnectConfig openIdConnectConfig)
Sets the value of
AuthorizationMode.getOpenIdConnectConfig() |
AuthorizationMode.Builder |
userPoolConfig(UserPoolConfig userPoolConfig)
Sets the value of
AuthorizationMode.getUserPoolConfig() |
public AuthorizationMode.Builder authorizationType(AuthorizationType authorizationType)
AuthorizationMode.getAuthorizationType()
authorizationType
- One of possible four values AppSync supports. This parameter is required.this
public AuthorizationMode.Builder apiKeyConfig(ApiKeyConfig apiKeyConfig)
AuthorizationMode.getApiKeyConfig()
apiKeyConfig
- If authorizationType is `AuthorizationType.API_KEY`, this option can be configured.this
public AuthorizationMode.Builder lambdaAuthorizerConfig(LambdaAuthorizerConfig lambdaAuthorizerConfig)
AuthorizationMode.getLambdaAuthorizerConfig()
lambdaAuthorizerConfig
- If authorizationType is `AuthorizationType.LAMBDA`, this option is required.this
public AuthorizationMode.Builder openIdConnectConfig(OpenIdConnectConfig openIdConnectConfig)
AuthorizationMode.getOpenIdConnectConfig()
openIdConnectConfig
- If authorizationType is `AuthorizationType.OIDC`, this option is required.this
public AuthorizationMode.Builder userPoolConfig(UserPoolConfig userPoolConfig)
AuthorizationMode.getUserPoolConfig()
userPoolConfig
- If authorizationType is `AuthorizationType.USER_POOL`, this option is required.this
public AuthorizationMode build()
AuthorizationMode
java.lang.NullPointerException
- if any required attribute was not provided