Class CfnUserPoolUserToGroupAttachment.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnUserPoolUserToGroupAttachment.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPoolUserToGroupAttachment>
- Enclosing class:
- CfnUserPoolUserToGroupAttachment
@Stability(Stable)
public static final class CfnUserPoolUserToGroupAttachment.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPoolUserToGroupAttachment>
A fluent builder for
CfnUserPoolUserToGroupAttachment
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The group name.The username for the user.userPoolId
(String userPoolId) The user pool ID for the user pool.
-
Method Details
-
create
@Stability(Stable) public static CfnUserPoolUserToGroupAttachment.Builder create(Construct scope, String id) - Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnUserPoolUserToGroupAttachment.Builder
.
-
groupName
The group name.- Parameters:
groupName
- The group name. This parameter is required.- Returns:
this
-
username
The username for the user.- Parameters:
username
- The username for the user. This parameter is required.- Returns:
this
-
userPoolId
The user pool ID for the user pool.- Parameters:
userPoolId
- The user pool ID for the user pool. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnUserPoolUserToGroupAttachment>
- Returns:
- a newly built instance of
CfnUserPoolUserToGroupAttachment
.
-