public static final class BasicAuthProps.Builder
extends java.lang.Object
BasicAuthProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
BasicAuthProps |
build()
Builds the configured instance.
|
BasicAuthProps.Builder |
encryptionKey(IKey encryptionKey)
Sets the value of
BasicAuthProps.getEncryptionKey() |
BasicAuthProps.Builder |
password(SecretValue password)
Sets the value of
BasicAuthProps.getPassword() |
BasicAuthProps.Builder |
username(java.lang.String username)
Sets the value of
BasicAuthProps.getUsername() |
public BasicAuthProps.Builder username(java.lang.String username)
BasicAuthProps.getUsername()
username
- The username. This parameter is required.this
public BasicAuthProps.Builder encryptionKey(IKey encryptionKey)
BasicAuthProps.getEncryptionKey()
encryptionKey
- The encryption key to use to encrypt the password when it's generated in Secrets Manager.this
public BasicAuthProps.Builder password(SecretValue password)
BasicAuthProps.getPassword()
password
- The password.this
public BasicAuthProps build()
BasicAuthProps
java.lang.NullPointerException
- if any required attribute was not provided