Class NoPasswordUserProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.alpha.NoPasswordUserProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NoPasswordUserProps>
- Enclosing interface:
NoPasswordUserProps
@Stability(Experimental)
public static final class NoPasswordUserProps.Builder
extends Object
implements software.amazon.jsii.Builder<NoPasswordUserProps>
A builder for
NoPasswordUserProps
-
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 ofNoPasswordUserProps.getUserName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
userName
Sets the value ofNoPasswordUserProps.getUserName()
- Parameters:
userName
- The name of the user.- Returns:
this
-
accessControl
@Stability(Experimental) public NoPasswordUserProps.Builder accessControl(AccessControl 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:
build
in interfacesoftware.amazon.jsii.Builder<NoPasswordUserProps>
- Returns:
- a new instance of
NoPasswordUserProps
- Throws:
NullPointerException
- if any required attribute was not provided
-