Class UserPoolReference.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.UserPoolReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UserPoolReference>
- Enclosing interface:
UserPoolReference
@Stability(Stable)
public static final class UserPoolReference.Builder
extends Object
implements software.amazon.jsii.Builder<UserPoolReference>
A builder for
UserPoolReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.userPoolArn
(String userPoolArn) Sets the value ofUserPoolReference.getUserPoolArn()
userPoolId
(String userPoolId) Sets the value ofUserPoolReference.getUserPoolId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
userPoolArn
Sets the value ofUserPoolReference.getUserPoolArn()
- Parameters:
userPoolArn
- The ARN of the UserPool resource. This parameter is required.- Returns:
this
-
userPoolId
Sets the value ofUserPoolReference.getUserPoolId()
- Parameters:
userPoolId
- The UserPoolId of the UserPool resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<UserPoolReference>
- Returns:
- a new instance of
UserPoolReference
- Throws:
NullPointerException
- if any required attribute was not provided
-