Class UserBaseAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.alpha.UserBaseAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UserBaseAttributes>
- Enclosing interface:
UserBaseAttributes
@Stability(Experimental)
public static final class UserBaseAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<UserBaseAttributes>
A builder for
UserBaseAttributes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.engine
(UserEngine engine) Sets the value ofUserBaseAttributes.getEngine()
Sets the value ofUserBaseAttributes.getUserArn()
Sets the value ofUserBaseAttributes.getUserId()
Sets the value ofUserBaseAttributes.getUserName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
engine
Sets the value ofUserBaseAttributes.getEngine()
- Parameters:
engine
- The engine type for the user.- Returns:
this
-
userArn
Sets the value ofUserBaseAttributes.getUserArn()
- Parameters:
userArn
- The ARN of the user. One ofuserId
oruserArn
is required.- Returns:
this
-
userId
Sets the value ofUserBaseAttributes.getUserId()
- Parameters:
userId
- The ID of the user. One ofuserId
oruserArn
is required.- Returns:
this
-
userName
Sets the value ofUserBaseAttributes.getUserName()
- Parameters:
userName
- The user's name.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<UserBaseAttributes>
- Returns:
- a new instance of
UserBaseAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-