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