Class CfnUserGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.CfnUserGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserGroupProps>
- Enclosing interface:
CfnUserGroupProps
@Stability(Stable)
public static final class CfnUserGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserGroupProps>
A builder for
CfnUserGroupProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnUserGroupProps.getEngine()
Sets the value ofCfnUserGroupProps.getTags()
userGroupId
(String userGroupId) Sets the value ofCfnUserGroupProps.getUserGroupId()
Sets the value ofCfnUserGroupProps.getUserIds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
engine
Sets the value ofCfnUserGroupProps.getEngine()
- Parameters:
engine
- The current supported values are valkey and redis. This parameter is required.- Returns:
this
-
userGroupId
Sets the value ofCfnUserGroupProps.getUserGroupId()
- Parameters:
userGroupId
- The ID of the user group. This parameter is required.- Returns:
this
-
userIds
Sets the value ofCfnUserGroupProps.getUserIds()
- Parameters:
userIds
- The list of user IDs that belong to the user group. This parameter is required. A user nameddefault
must be included.- Returns:
this
-
tags
Sets the value ofCfnUserGroupProps.getTags()
- Parameters:
tags
- The list of tags.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnUserGroupProps>
- Returns:
- a new instance of
CfnUserGroupProps
- Throws:
NullPointerException
- if any required attribute was not provided
-