Class CfnApi.CognitoConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.CfnApi.CognitoConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApi.CognitoConfigProperty>
- Enclosing interface:
CfnApi.CognitoConfigProperty
@Stability(Stable)
public static final class CfnApi.CognitoConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApi.CognitoConfigProperty>
A builder for
CfnApi.CognitoConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappIdClientRegex(String appIdClientRegex) Sets the value ofCfnApi.CognitoConfigProperty.getAppIdClientRegex()Sets the value ofCfnApi.CognitoConfigProperty.getAwsRegion()build()Builds the configured instance.userPoolId(String userPoolId) Sets the value ofCfnApi.CognitoConfigProperty.getUserPoolId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
awsRegion
Sets the value ofCfnApi.CognitoConfigProperty.getAwsRegion()- Parameters:
awsRegion- The AWS Region in which the user pool was created. This parameter is required.- Returns:
this
-
userPoolId
Sets the value ofCfnApi.CognitoConfigProperty.getUserPoolId()- Parameters:
userPoolId- The user pool ID. This parameter is required.- Returns:
this
-
appIdClientRegex
@Stability(Stable) public CfnApi.CognitoConfigProperty.Builder appIdClientRegex(String appIdClientRegex) Sets the value ofCfnApi.CognitoConfigProperty.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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApi.CognitoConfigProperty>- Returns:
- a new instance of
CfnApi.CognitoConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-