Class PasswordUserProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.alpha.PasswordUserProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PasswordUserProps>
- Enclosing interface:
PasswordUserProps
@Stability(Experimental)
public static final class PasswordUserProps.Builder
extends Object
implements software.amazon.jsii.Builder<PasswordUserProps>
A builder for
PasswordUserProps-
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()passwords(List<? extends SecretValue> passwords) Sets the value ofPasswordUserProps.getPasswords()Sets the value ofUserBaseProps.getUserId()Sets the value ofPasswordUserProps.getUserName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
passwords
@Stability(Experimental) public PasswordUserProps.Builder passwords(List<? extends SecretValue> passwords) Sets the value ofPasswordUserProps.getPasswords()- Parameters:
passwords- The passwords for the user. This parameter is required. Password authentication requires using 1-2 passwords.- Returns:
this
-
userName
Sets the value ofPasswordUserProps.getUserName()- Parameters:
userName- The name of the user.- Returns:
this
-
accessControl
@Stability(Experimental) public PasswordUserProps.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:
buildin interfacesoftware.amazon.jsii.Builder<PasswordUserProps>- Returns:
- a new instance of
PasswordUserProps - Throws:
NullPointerException- if any required attribute was not provided
-