Class CfnUserPoolUserToGroupAttachmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnUserPoolUserToGroupAttachmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPoolUserToGroupAttachmentProps>
- Enclosing interface:
CfnUserPoolUserToGroupAttachmentProps
@Stability(Stable)
public static final class CfnUserPoolUserToGroupAttachmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPoolUserToGroupAttachmentProps>
A builder for
CfnUserPoolUserToGroupAttachmentProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnUserPoolUserToGroupAttachmentProps.getGroupName()
Sets the value ofCfnUserPoolUserToGroupAttachmentProps.getUsername()
userPoolId
(String userPoolId) Sets the value ofCfnUserPoolUserToGroupAttachmentProps.getUserPoolId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
groupName
Sets the value ofCfnUserPoolUserToGroupAttachmentProps.getGroupName()
- Parameters:
groupName
- The name of the group that you want to add your user to. This parameter is required.- Returns:
this
-
username
Sets the value ofCfnUserPoolUserToGroupAttachmentProps.getUsername()
- Parameters:
username
- The user's username. This parameter is required.- Returns:
this
-
userPoolId
@Stability(Stable) public CfnUserPoolUserToGroupAttachmentProps.Builder userPoolId(String userPoolId) Sets the value ofCfnUserPoolUserToGroupAttachmentProps.getUserPoolId()
- Parameters:
userPoolId
- The user pool ID for the user pool. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnUserPoolUserToGroupAttachmentProps>
- Returns:
- a new instance of
CfnUserPoolUserToGroupAttachmentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-