Class CfnUserToGroupAdditionProps.Builder
java.lang.Object
software.amazon.awscdk.services.iam.CfnUserToGroupAdditionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserToGroupAdditionProps>
- Enclosing interface:
- CfnUserToGroupAdditionProps
@Stability(Stable)
public static final class CfnUserToGroupAdditionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserToGroupAdditionProps>
A builder for
CfnUserToGroupAdditionProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnUserToGroupAdditionProps.getGroupName()
Sets the value ofCfnUserToGroupAdditionProps.getUsers()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
groupName
Sets the value ofCfnUserToGroupAdditionProps.getGroupName()
- Parameters:
groupName
- The name of the group to update. This parameter is required. This parameter allows (through its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-- Returns:
this
-
users
Sets the value ofCfnUserToGroupAdditionProps.getUsers()
- Parameters:
users
- A list of the names of the users that you want to add to the group. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnUserToGroupAdditionProps>
- Returns:
- a new instance of
CfnUserToGroupAdditionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-