Class BasicAuthProps.Builder
java.lang.Object
software.amazon.awscdk.services.amplify.BasicAuthProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BasicAuthProps>
- Enclosing interface:
- BasicAuthProps
@Stability(Experimental)
public static final class BasicAuthProps.Builder
extends Object
implements software.amazon.jsii.Builder<BasicAuthProps>
A builder for
BasicAuthProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.encryptionKey(IKey encryptionKey) Sets the value ofBasicAuthProps.getEncryptionKey()password(SecretValue password) Sets the value ofBasicAuthProps.getPassword()Sets the value ofBasicAuthProps.getUsername()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
username
Sets the value ofBasicAuthProps.getUsername()- Parameters:
username- The username. This parameter is required.- Returns:
this
-
encryptionKey
Sets the value ofBasicAuthProps.getEncryptionKey()- Parameters:
encryptionKey- The encryption key to use to encrypt the password when it's generated in Secrets Manager.- Returns:
this
-
password
Sets the value ofBasicAuthProps.getPassword()- Parameters:
password- The password.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BasicAuthProps>- Returns:
- a new instance of
BasicAuthProps - Throws:
NullPointerException- if any required attribute was not provided
-