Class IamUserProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.alpha.IamUserProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<IamUserProps>
- Enclosing interface:
IamUserProps
@Stability(Experimental)
public static final class IamUserProps.Builder
extends Object
implements software.amazon.jsii.Builder<IamUserProps>
A builder for
IamUserProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessControl(AccessControl accessControl) Sets the value ofUserBaseProps.getAccessControl()build()Builds the configured instance.engine(UserEngine engine) Sets the value ofUserBaseProps.getEngine()Sets the value ofUserBaseProps.getUserId()Sets the value ofIamUserProps.getUserName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
userName
Sets the value ofIamUserProps.getUserName()- Parameters:
userName- The name of the user.- Returns:
this
-
accessControl
Sets the value ofUserBaseProps.getAccessControl()- Parameters:
accessControl- Access control configuration for the user. This parameter is required.- Returns:
this
-
userId
Sets the value ofUserBaseProps.getUserId()- Parameters:
userId- The ID of the user. This parameter is required.- Returns:
this
-
engine
Sets the value ofUserBaseProps.getEngine()- Parameters:
engine- The engine type for the user. Enum options: UserEngine.VALKEY, UserEngine.REDIS.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<IamUserProps>- Returns:
- a new instance of
IamUserProps - Throws:
NullPointerException- if any required attribute was not provided
-