Class CfnUserMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.elasticache.mixins.CfnUserMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserMixinProps>
- Enclosing interface:
CfnUserMixinProps
@Stability(Stable)
public static final class CfnUserMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserMixinProps>
A builder for
CfnUserMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessString(String accessString) Sets the value ofCfnUserMixinProps.getAccessString()authenticationMode(Object authenticationMode) Sets the value ofCfnUserMixinProps.getAuthenticationMode()build()Builds the configured instance.Sets the value ofCfnUserMixinProps.getEngine()noPasswordRequired(Boolean noPasswordRequired) Sets the value ofCfnUserMixinProps.getNoPasswordRequired()noPasswordRequired(IResolvable noPasswordRequired) Sets the value ofCfnUserMixinProps.getNoPasswordRequired()Sets the value ofCfnUserMixinProps.getPasswords()Sets the value ofCfnUserMixinProps.getTags()Sets the value ofCfnUserMixinProps.getUserId()Sets the value ofCfnUserMixinProps.getUserName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessString
Sets the value ofCfnUserMixinProps.getAccessString()- Parameters:
accessString- Access permissions string used for this user.- Returns:
this
-
authenticationMode
Sets the value ofCfnUserMixinProps.getAuthenticationMode()- Parameters:
authenticationMode- Specifies the authentication mode to use. Below is an example of the possible JSON values:.{ Passwords: ["*****", "******"] // If Type is password. }- Returns:
this
-
engine
Sets the value ofCfnUserMixinProps.getEngine()- Parameters:
engine- The current supported values are valkey and redis.- Returns:
this
-
noPasswordRequired
Sets the value ofCfnUserMixinProps.getNoPasswordRequired()- Parameters:
noPasswordRequired- Indicates a password is not required for this user.- Returns:
this
-
noPasswordRequired
@Stability(Stable) public CfnUserMixinProps.Builder noPasswordRequired(IResolvable noPasswordRequired) Sets the value ofCfnUserMixinProps.getNoPasswordRequired()- Parameters:
noPasswordRequired- Indicates a password is not required for this user.- Returns:
this
-
passwords
Sets the value ofCfnUserMixinProps.getPasswords()- Parameters:
passwords- Passwords used for this user. You can create up to two passwords for each user.- Returns:
this
-
tags
Sets the value ofCfnUserMixinProps.getTags()- Parameters:
tags- The list of tags.- Returns:
this
-
userId
Sets the value ofCfnUserMixinProps.getUserId()- Parameters:
userId- The ID of the user.- Returns:
this
-
userName
Sets the value ofCfnUserMixinProps.getUserName()- Parameters:
userName- The username of the user.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnUserMixinProps>- Returns:
- a new instance of
CfnUserMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-