Class CfnGraphQLApi.CognitoUserPoolConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.CfnGraphQLApi.CognitoUserPoolConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGraphQLApi.CognitoUserPoolConfigProperty>
- Enclosing interface:
- CfnGraphQLApi.CognitoUserPoolConfigProperty
@Stability(Stable)
public static final class CfnGraphQLApi.CognitoUserPoolConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGraphQLApi.CognitoUserPoolConfigProperty>
A builder for
CfnGraphQLApi.CognitoUserPoolConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionappIdClientRegex
(String appIdClientRegex) Sets the value ofCfnGraphQLApi.CognitoUserPoolConfigProperty.getAppIdClientRegex()
Sets the value ofCfnGraphQLApi.CognitoUserPoolConfigProperty.getAwsRegion()
build()
Builds the configured instance.userPoolId
(String userPoolId) Sets the value ofCfnGraphQLApi.CognitoUserPoolConfigProperty.getUserPoolId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
appIdClientRegex
@Stability(Stable) public CfnGraphQLApi.CognitoUserPoolConfigProperty.Builder appIdClientRegex(String appIdClientRegex) Sets the value ofCfnGraphQLApi.CognitoUserPoolConfigProperty.getAppIdClientRegex()
- Parameters:
appIdClientRegex
- A regular expression for validating the incoming Amazon Cognito user pool app client ID. If this value isn't set, no filtering is applied.- Returns:
this
-
awsRegion
@Stability(Stable) public CfnGraphQLApi.CognitoUserPoolConfigProperty.Builder awsRegion(String awsRegion) Sets the value ofCfnGraphQLApi.CognitoUserPoolConfigProperty.getAwsRegion()
- Parameters:
awsRegion
- The AWS Region in which the user pool was created.- Returns:
this
-
userPoolId
@Stability(Stable) public CfnGraphQLApi.CognitoUserPoolConfigProperty.Builder userPoolId(String userPoolId) Sets the value ofCfnGraphQLApi.CognitoUserPoolConfigProperty.getUserPoolId()
- Parameters:
userPoolId
- The user pool ID.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGraphQLApi.CognitoUserPoolConfigProperty>
- Returns:
- a new instance of
CfnGraphQLApi.CognitoUserPoolConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-