Class CfnUser.AuthenticationModeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.CfnUser.AuthenticationModeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUser.AuthenticationModeProperty>
- Enclosing interface:
CfnUser.AuthenticationModeProperty
@Stability(Stable)
public static final class CfnUser.AuthenticationModeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUser.AuthenticationModeProperty>
A builder for
CfnUser.AuthenticationModeProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnUser.AuthenticationModeProperty.getPasswords()
Sets the value ofCfnUser.AuthenticationModeProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnUser.AuthenticationModeProperty.getType()
- Parameters:
type
- Specifies the authentication type. This parameter is required. Possible options are IAM authentication, password and no password.- Returns:
this
-
passwords
@Stability(Stable) public CfnUser.AuthenticationModeProperty.Builder passwords(List<String> passwords) Sets the value ofCfnUser.AuthenticationModeProperty.getPasswords()
- Parameters:
passwords
- Specifies the passwords to use for authentication ifType
is set topassword
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnUser.AuthenticationModeProperty>
- Returns:
- a new instance of
CfnUser.AuthenticationModeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-