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