Class UserGroupAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.alpha.UserGroupAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UserGroupAttributes>
- Enclosing interface:
UserGroupAttributes
@Stability(Experimental)
public static final class UserGroupAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<UserGroupAttributes>
A builder for
UserGroupAttributes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.engine
(UserEngine engine) Sets the value ofUserGroupAttributes.getEngine()
userGroupArn
(String userGroupArn) Sets the value ofUserGroupAttributes.getUserGroupArn()
userGroupName
(String userGroupName) Sets the value ofUserGroupAttributes.getUserGroupName()
Sets the value ofUserGroupAttributes.getUsers()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
engine
Sets the value ofUserGroupAttributes.getEngine()
- Parameters:
engine
- The engine type for the user group.- Returns:
this
-
userGroupArn
Sets the value ofUserGroupAttributes.getUserGroupArn()
- Parameters:
userGroupArn
- The ARN of the user group. One ofuserGroupName
oruserGroupArn
is required.- Returns:
this
-
userGroupName
Sets the value ofUserGroupAttributes.getUserGroupName()
- Parameters:
userGroupName
- The name of the user group. One ofuserGroupName
oruserGroupArn
is required.- Returns:
this
-
users
Sets the value ofUserGroupAttributes.getUsers()
- Parameters:
users
- List of users in the user group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<UserGroupAttributes>
- Returns:
- a new instance of
UserGroupAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-