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